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

28532 lines
835 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="README.txt"
  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
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. PKG_CONFIG_LIBS_PRIV
  599. SDL_RLD_FLAGS
  600. SDL_STATIC_LIBS
  601. SDL_LIBS
  602. SDL_CFLAGS
  603. INSTALL_SDL2_CONFIG
  604. LIBUSB_LIBS
  605. LIBUSB_CFLAGS
  606. IBUS_LIBS
  607. IBUS_CFLAGS
  608. DBUS_LIBS
  609. DBUS_CFLAGS
  610. LIBGBM_LIBS
  611. LIBGBM_CFLAGS
  612. LIBDRM_LIBS
  613. LIBDRM_CFLAGS
  614. DIRECTFB_LIBS
  615. DIRECTFB_CFLAGS
  616. X_EXTRA_LIBS
  617. X_LIBS
  618. X_PRE_LIBS
  619. X_CFLAGS
  620. XMKMF
  621. RPI_LIBS
  622. RPI_CFLAGS
  623. FUSIONSOUND_LIBS
  624. FUSIONSOUND_CFLAGS
  625. ARTSCONFIG
  626. PULSEAUDIO_LIBS
  627. PULSEAUDIO_CFLAGS
  628. ESD_LIBS
  629. ESD_CFLAGS
  630. ESD_CONFIG
  631. JACK_LIBS
  632. JACK_CFLAGS
  633. ALSA_LIBS
  634. ALSA_CFLAGS
  635. POW_LIB
  636. LIBOBJS
  637. ALLOCA
  638. PKG_CONFIG_LIBDIR
  639. PKG_CONFIG_PATH
  640. PKG_CONFIG
  641. SET_MAKE
  642. INSTALL_DATA
  643. INSTALL_SCRIPT
  644. INSTALL_PROGRAM
  645. CXXCPP
  646. ac_ct_CXX
  647. CXXFLAGS
  648. CXX
  649. LT_AGE
  650. LT_REVISION
  651. LT_CURRENT
  652. LT_RELEASE
  653. RC
  654. CPP
  655. OTOOL64
  656. OTOOL
  657. LIPO
  658. NMEDIT
  659. DSYMUTIL
  660. MANIFEST_TOOL
  661. AWK
  662. RANLIB
  663. STRIP
  664. ac_ct_AR
  665. AR
  666. LN_S
  667. NM
  668. ac_ct_DUMPBIN
  669. DUMPBIN
  670. LD
  671. FGREP
  672. EGREP
  673. GREP
  674. SED
  675. OBJEXT
  676. EXEEXT
  677. ac_ct_CC
  678. CPPFLAGS
  679. LDFLAGS
  680. CFLAGS
  681. CC
  682. host_os
  683. host_vendor
  684. host_cpu
  685. host
  686. build_os
  687. build_vendor
  688. build_cpu
  689. build
  690. LIBTOOL
  691. OBJDUMP
  692. DLLTOOL
  693. AS
  694. SDL_VERSION
  695. SDL_BINARY_AGE
  696. SDL_INTERFACE_AGE
  697. SDL_MICRO_VERSION
  698. SDL_MINOR_VERSION
  699. SDL_MAJOR_VERSION
  700. target_alias
  701. host_alias
  702. build_alias
  703. LIBS
  704. ECHO_T
  705. ECHO_N
  706. ECHO_C
  707. DEFS
  708. mandir
  709. localedir
  710. libdir
  711. psdir
  712. pdfdir
  713. dvidir
  714. htmldir
  715. infodir
  716. docdir
  717. oldincludedir
  718. includedir
  719. runstatedir
  720. localstatedir
  721. sharedstatedir
  722. sysconfdir
  723. datadir
  724. datarootdir
  725. libexecdir
  726. sbindir
  727. bindir
  728. program_transform_name
  729. prefix
  730. exec_prefix
  731. PACKAGE_URL
  732. PACKAGE_BUGREPORT
  733. PACKAGE_STRING
  734. PACKAGE_VERSION
  735. PACKAGE_TARNAME
  736. PACKAGE_NAME
  737. PATH_SEPARATOR
  738. SHELL'
  739. ac_subst_files=''
  740. ac_user_opts='
  741. enable_option_checking
  742. enable_shared
  743. enable_static
  744. with_pic
  745. enable_fast_install
  746. with_gnu_ld
  747. with_sysroot
  748. enable_libtool_lock
  749. enable_assertions
  750. enable_dependency_tracking
  751. enable_libc
  752. enable_gcc_atomics
  753. enable_atomic
  754. enable_audio
  755. enable_video
  756. enable_render
  757. enable_events
  758. enable_joystick
  759. enable_haptic
  760. enable_sensor
  761. enable_power
  762. enable_filesystem
  763. enable_threads
  764. enable_timers
  765. enable_file
  766. enable_loadso
  767. enable_cpuinfo
  768. enable_assembly
  769. enable_ssemath
  770. enable_mmx
  771. enable_3dnow
  772. enable_sse
  773. enable_sse2
  774. enable_sse3
  775. enable_altivec
  776. enable_oss
  777. enable_alsa
  778. with_alsa_prefix
  779. with_alsa_inc_prefix
  780. enable_alsatest
  781. enable_alsa_shared
  782. enable_jack
  783. enable_jack_shared
  784. enable_esd
  785. with_esd_prefix
  786. with_esd_exec_prefix
  787. enable_esdtest
  788. enable_esd_shared
  789. enable_pulseaudio
  790. enable_pulseaudio_shared
  791. enable_arts
  792. enable_arts_shared
  793. enable_nas
  794. enable_nas_shared
  795. enable_sndio
  796. enable_sndio_shared
  797. enable_fusionsound
  798. enable_fusionsound_shared
  799. enable_diskaudio
  800. enable_dummyaudio
  801. enable_libsamplerate
  802. enable_libsamplerate_shared
  803. enable_arm_simd
  804. enable_arm_neon
  805. enable_video_wayland
  806. enable_video_wayland_qt_touch
  807. enable_wayland_shared
  808. enable_video_rpi
  809. enable_video_x11
  810. with_x
  811. enable_x11_shared
  812. enable_video_x11_xcursor
  813. enable_video_x11_xdbe
  814. enable_video_x11_xinerama
  815. enable_video_x11_xinput
  816. enable_video_x11_xrandr
  817. enable_video_x11_scrnsaver
  818. enable_video_x11_xshape
  819. enable_video_x11_vm
  820. enable_video_vivante
  821. enable_video_cocoa
  822. enable_video_metal
  823. enable_render_metal
  824. enable_video_directfb
  825. enable_directfb_shared
  826. enable_video_kmsdrm
  827. enable_kmsdrm_shared
  828. enable_video_dummy
  829. enable_video_opengl
  830. enable_video_opengles
  831. enable_video_opengles1
  832. enable_video_opengles2
  833. enable_video_vulkan
  834. enable_libudev
  835. enable_dbus
  836. enable_ime
  837. enable_ibus
  838. enable_fcitx
  839. enable_input_tslib
  840. enable_pthreads
  841. enable_pthread_sem
  842. enable_directx
  843. enable_wasapi
  844. enable_sdl_dlopen
  845. enable_hidapi
  846. enable_clock_gettime
  847. enable_rpath
  848. enable_backgrounding_signal
  849. enable_foregrounding_signal
  850. enable_joystick_virtual
  851. enable_render_d3d
  852. enable_sdl2_config
  853. '
  854. ac_precious_vars='build_alias
  855. host_alias
  856. target_alias
  857. CC
  858. CFLAGS
  859. LDFLAGS
  860. LIBS
  861. CPPFLAGS
  862. CPP
  863. CXX
  864. CXXFLAGS
  865. CCC
  866. CXXCPP
  867. PKG_CONFIG
  868. PKG_CONFIG_PATH
  869. PKG_CONFIG_LIBDIR
  870. JACK_CFLAGS
  871. JACK_LIBS
  872. PULSEAUDIO_CFLAGS
  873. PULSEAUDIO_LIBS
  874. FUSIONSOUND_CFLAGS
  875. FUSIONSOUND_LIBS
  876. RPI_CFLAGS
  877. RPI_LIBS
  878. XMKMF
  879. DIRECTFB_CFLAGS
  880. DIRECTFB_LIBS
  881. LIBDRM_CFLAGS
  882. LIBDRM_LIBS
  883. LIBGBM_CFLAGS
  884. LIBGBM_LIBS
  885. DBUS_CFLAGS
  886. DBUS_LIBS
  887. IBUS_CFLAGS
  888. IBUS_LIBS
  889. LIBUSB_CFLAGS
  890. LIBUSB_LIBS'
  891. # Initialize some variables set by options.
  892. ac_init_help=
  893. ac_init_version=false
  894. ac_unrecognized_opts=
  895. ac_unrecognized_sep=
  896. # The variables have the same names as the options, with
  897. # dashes changed to underlines.
  898. cache_file=/dev/null
  899. exec_prefix=NONE
  900. no_create=
  901. no_recursion=
  902. prefix=NONE
  903. program_prefix=NONE
  904. program_suffix=NONE
  905. program_transform_name=s,x,x,
  906. silent=
  907. site=
  908. srcdir=
  909. verbose=
  910. x_includes=NONE
  911. x_libraries=NONE
  912. # Installation directory options.
  913. # These are left unexpanded so users can "make install exec_prefix=/foo"
  914. # and all the variables that are supposed to be based on exec_prefix
  915. # by default will actually change.
  916. # Use braces instead of parens because sh, perl, etc. also accept them.
  917. # (The list follows the same order as the GNU Coding Standards.)
  918. bindir='${exec_prefix}/bin'
  919. sbindir='${exec_prefix}/sbin'
  920. libexecdir='${exec_prefix}/libexec'
  921. datarootdir='${prefix}/share'
  922. datadir='${datarootdir}'
  923. sysconfdir='${prefix}/etc'
  924. sharedstatedir='${prefix}/com'
  925. localstatedir='${prefix}/var'
  926. runstatedir='${localstatedir}/run'
  927. includedir='${prefix}/include'
  928. oldincludedir='/usr/include'
  929. docdir='${datarootdir}/doc/${PACKAGE}'
  930. infodir='${datarootdir}/info'
  931. htmldir='${docdir}'
  932. dvidir='${docdir}'
  933. pdfdir='${docdir}'
  934. psdir='${docdir}'
  935. libdir='${exec_prefix}/lib'
  936. localedir='${datarootdir}/locale'
  937. mandir='${datarootdir}/man'
  938. ac_prev=
  939. ac_dashdash=
  940. for ac_option
  941. do
  942. # If the previous option needs an argument, assign it.
  943. if test -n "$ac_prev"; then
  944. eval $ac_prev=\$ac_option
  945. ac_prev=
  946. continue
  947. fi
  948. case $ac_option in
  949. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  950. *=) ac_optarg= ;;
  951. *) ac_optarg=yes ;;
  952. esac
  953. # Accept the important Cygnus configure options, so we can diagnose typos.
  954. case $ac_dashdash$ac_option in
  955. --)
  956. ac_dashdash=yes ;;
  957. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  958. ac_prev=bindir ;;
  959. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  960. bindir=$ac_optarg ;;
  961. -build | --build | --buil | --bui | --bu)
  962. ac_prev=build_alias ;;
  963. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  964. build_alias=$ac_optarg ;;
  965. -cache-file | --cache-file | --cache-fil | --cache-fi \
  966. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  967. ac_prev=cache_file ;;
  968. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  969. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  970. cache_file=$ac_optarg ;;
  971. --config-cache | -C)
  972. cache_file=config.cache ;;
  973. -datadir | --datadir | --datadi | --datad)
  974. ac_prev=datadir ;;
  975. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  976. datadir=$ac_optarg ;;
  977. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  978. | --dataroo | --dataro | --datar)
  979. ac_prev=datarootdir ;;
  980. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  981. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  982. datarootdir=$ac_optarg ;;
  983. -disable-* | --disable-*)
  984. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  985. # Reject names that are not valid shell variable names.
  986. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  987. as_fn_error $? "invalid feature name: $ac_useropt"
  988. ac_useropt_orig=$ac_useropt
  989. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  990. case $ac_user_opts in
  991. *"
  992. "enable_$ac_useropt"
  993. "*) ;;
  994. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  995. ac_unrecognized_sep=', ';;
  996. esac
  997. eval enable_$ac_useropt=no ;;
  998. -docdir | --docdir | --docdi | --doc | --do)
  999. ac_prev=docdir ;;
  1000. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1001. docdir=$ac_optarg ;;
  1002. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1003. ac_prev=dvidir ;;
  1004. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1005. dvidir=$ac_optarg ;;
  1006. -enable-* | --enable-*)
  1007. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1008. # Reject names that are not valid shell variable names.
  1009. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1010. as_fn_error $? "invalid feature name: $ac_useropt"
  1011. ac_useropt_orig=$ac_useropt
  1012. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1013. case $ac_user_opts in
  1014. *"
  1015. "enable_$ac_useropt"
  1016. "*) ;;
  1017. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1018. ac_unrecognized_sep=', ';;
  1019. esac
  1020. eval enable_$ac_useropt=\$ac_optarg ;;
  1021. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1022. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1023. | --exec | --exe | --ex)
  1024. ac_prev=exec_prefix ;;
  1025. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1026. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1027. | --exec=* | --exe=* | --ex=*)
  1028. exec_prefix=$ac_optarg ;;
  1029. -gas | --gas | --ga | --g)
  1030. # Obsolete; use --with-gas.
  1031. with_gas=yes ;;
  1032. -help | --help | --hel | --he | -h)
  1033. ac_init_help=long ;;
  1034. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1035. ac_init_help=recursive ;;
  1036. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1037. ac_init_help=short ;;
  1038. -host | --host | --hos | --ho)
  1039. ac_prev=host_alias ;;
  1040. -host=* | --host=* | --hos=* | --ho=*)
  1041. host_alias=$ac_optarg ;;
  1042. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1043. ac_prev=htmldir ;;
  1044. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1045. | --ht=*)
  1046. htmldir=$ac_optarg ;;
  1047. -includedir | --includedir | --includedi | --included | --include \
  1048. | --includ | --inclu | --incl | --inc)
  1049. ac_prev=includedir ;;
  1050. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1051. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1052. includedir=$ac_optarg ;;
  1053. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1054. ac_prev=infodir ;;
  1055. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1056. infodir=$ac_optarg ;;
  1057. -libdir | --libdir | --libdi | --libd)
  1058. ac_prev=libdir ;;
  1059. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1060. libdir=$ac_optarg ;;
  1061. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1062. | --libexe | --libex | --libe)
  1063. ac_prev=libexecdir ;;
  1064. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1065. | --libexe=* | --libex=* | --libe=*)
  1066. libexecdir=$ac_optarg ;;
  1067. -localedir | --localedir | --localedi | --localed | --locale)
  1068. ac_prev=localedir ;;
  1069. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1070. localedir=$ac_optarg ;;
  1071. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1072. | --localstate | --localstat | --localsta | --localst | --locals)
  1073. ac_prev=localstatedir ;;
  1074. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1075. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1076. localstatedir=$ac_optarg ;;
  1077. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1078. ac_prev=mandir ;;
  1079. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1080. mandir=$ac_optarg ;;
  1081. -nfp | --nfp | --nf)
  1082. # Obsolete; use --without-fp.
  1083. with_fp=no ;;
  1084. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1085. | --no-cr | --no-c | -n)
  1086. no_create=yes ;;
  1087. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1088. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1089. no_recursion=yes ;;
  1090. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1091. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1092. | --oldin | --oldi | --old | --ol | --o)
  1093. ac_prev=oldincludedir ;;
  1094. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1095. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1096. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1097. oldincludedir=$ac_optarg ;;
  1098. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1099. ac_prev=prefix ;;
  1100. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1101. prefix=$ac_optarg ;;
  1102. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1103. | --program-pre | --program-pr | --program-p)
  1104. ac_prev=program_prefix ;;
  1105. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1106. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1107. program_prefix=$ac_optarg ;;
  1108. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1109. | --program-suf | --program-su | --program-s)
  1110. ac_prev=program_suffix ;;
  1111. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1112. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1113. program_suffix=$ac_optarg ;;
  1114. -program-transform-name | --program-transform-name \
  1115. | --program-transform-nam | --program-transform-na \
  1116. | --program-transform-n | --program-transform- \
  1117. | --program-transform | --program-transfor \
  1118. | --program-transfo | --program-transf \
  1119. | --program-trans | --program-tran \
  1120. | --progr-tra | --program-tr | --program-t)
  1121. ac_prev=program_transform_name ;;
  1122. -program-transform-name=* | --program-transform-name=* \
  1123. | --program-transform-nam=* | --program-transform-na=* \
  1124. | --program-transform-n=* | --program-transform-=* \
  1125. | --program-transform=* | --program-transfor=* \
  1126. | --program-transfo=* | --program-transf=* \
  1127. | --program-trans=* | --program-tran=* \
  1128. | --progr-tra=* | --program-tr=* | --program-t=*)
  1129. program_transform_name=$ac_optarg ;;
  1130. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1131. ac_prev=pdfdir ;;
  1132. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1133. pdfdir=$ac_optarg ;;
  1134. -psdir | --psdir | --psdi | --psd | --ps)
  1135. ac_prev=psdir ;;
  1136. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1137. psdir=$ac_optarg ;;
  1138. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1139. | -silent | --silent | --silen | --sile | --sil)
  1140. silent=yes ;;
  1141. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1142. | --runstate | --runstat | --runsta | --runst | --runs \
  1143. | --run | --ru | --r)
  1144. ac_prev=runstatedir ;;
  1145. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1146. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1147. | --run=* | --ru=* | --r=*)
  1148. runstatedir=$ac_optarg ;;
  1149. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1150. ac_prev=sbindir ;;
  1151. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1152. | --sbi=* | --sb=*)
  1153. sbindir=$ac_optarg ;;
  1154. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1155. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1156. | --sharedst | --shareds | --shared | --share | --shar \
  1157. | --sha | --sh)
  1158. ac_prev=sharedstatedir ;;
  1159. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1160. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1161. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1162. | --sha=* | --sh=*)
  1163. sharedstatedir=$ac_optarg ;;
  1164. -site | --site | --sit)
  1165. ac_prev=site ;;
  1166. -site=* | --site=* | --sit=*)
  1167. site=$ac_optarg ;;
  1168. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1169. ac_prev=srcdir ;;
  1170. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1171. srcdir=$ac_optarg ;;
  1172. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1173. | --syscon | --sysco | --sysc | --sys | --sy)
  1174. ac_prev=sysconfdir ;;
  1175. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1176. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1177. sysconfdir=$ac_optarg ;;
  1178. -target | --target | --targe | --targ | --tar | --ta | --t)
  1179. ac_prev=target_alias ;;
  1180. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1181. target_alias=$ac_optarg ;;
  1182. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1183. verbose=yes ;;
  1184. -version | --version | --versio | --versi | --vers | -V)
  1185. ac_init_version=: ;;
  1186. -with-* | --with-*)
  1187. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1188. # Reject names that are not valid shell variable names.
  1189. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1190. as_fn_error $? "invalid package name: $ac_useropt"
  1191. ac_useropt_orig=$ac_useropt
  1192. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1193. case $ac_user_opts in
  1194. *"
  1195. "with_$ac_useropt"
  1196. "*) ;;
  1197. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1198. ac_unrecognized_sep=', ';;
  1199. esac
  1200. eval with_$ac_useropt=\$ac_optarg ;;
  1201. -without-* | --without-*)
  1202. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1203. # Reject names that are not valid shell variable names.
  1204. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1205. as_fn_error $? "invalid package name: $ac_useropt"
  1206. ac_useropt_orig=$ac_useropt
  1207. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1208. case $ac_user_opts in
  1209. *"
  1210. "with_$ac_useropt"
  1211. "*) ;;
  1212. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1213. ac_unrecognized_sep=', ';;
  1214. esac
  1215. eval with_$ac_useropt=no ;;
  1216. --x)
  1217. # Obsolete; use --with-x.
  1218. with_x=yes ;;
  1219. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1220. | --x-incl | --x-inc | --x-in | --x-i)
  1221. ac_prev=x_includes ;;
  1222. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1223. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1224. x_includes=$ac_optarg ;;
  1225. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1226. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1227. ac_prev=x_libraries ;;
  1228. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1229. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1230. x_libraries=$ac_optarg ;;
  1231. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1232. Try \`$0 --help' for more information"
  1233. ;;
  1234. *=*)
  1235. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1236. # Reject names that are not valid shell variable names.
  1237. case $ac_envvar in #(
  1238. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1239. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1240. esac
  1241. eval $ac_envvar=\$ac_optarg
  1242. export $ac_envvar ;;
  1243. *)
  1244. # FIXME: should be removed in autoconf 3.0.
  1245. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1246. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1247. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1248. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1249. ;;
  1250. esac
  1251. done
  1252. if test -n "$ac_prev"; then
  1253. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1254. as_fn_error $? "missing argument to $ac_option"
  1255. fi
  1256. if test -n "$ac_unrecognized_opts"; then
  1257. case $enable_option_checking in
  1258. no) ;;
  1259. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1260. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1261. esac
  1262. fi
  1263. # Check all directory arguments for consistency.
  1264. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1265. datadir sysconfdir sharedstatedir localstatedir includedir \
  1266. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1267. libdir localedir mandir runstatedir
  1268. do
  1269. eval ac_val=\$$ac_var
  1270. # Remove trailing slashes.
  1271. case $ac_val in
  1272. */ )
  1273. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1274. eval $ac_var=\$ac_val;;
  1275. esac
  1276. # Be sure to have absolute directory names.
  1277. case $ac_val in
  1278. [\\/$]* | ?:[\\/]* ) continue;;
  1279. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1280. esac
  1281. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1282. done
  1283. # There might be people who depend on the old broken behavior: `$host'
  1284. # used to hold the argument of --host etc.
  1285. # FIXME: To remove some day.
  1286. build=$build_alias
  1287. host=$host_alias
  1288. target=$target_alias
  1289. # FIXME: To remove some day.
  1290. if test "x$host_alias" != x; then
  1291. if test "x$build_alias" = x; then
  1292. cross_compiling=maybe
  1293. elif test "x$build_alias" != "x$host_alias"; then
  1294. cross_compiling=yes
  1295. fi
  1296. fi
  1297. ac_tool_prefix=
  1298. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1299. test "$silent" = yes && exec 6>/dev/null
  1300. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1301. ac_ls_di=`ls -di .` &&
  1302. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1303. as_fn_error $? "working directory cannot be determined"
  1304. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1305. as_fn_error $? "pwd does not report name of working directory"
  1306. # Find the source files, if location was not specified.
  1307. if test -z "$srcdir"; then
  1308. ac_srcdir_defaulted=yes
  1309. # Try the directory containing this script, then the parent directory.
  1310. ac_confdir=`$as_dirname -- "$as_myself" ||
  1311. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1312. X"$as_myself" : 'X\(//\)[^/]' \| \
  1313. X"$as_myself" : 'X\(//\)$' \| \
  1314. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1315. $as_echo X"$as_myself" |
  1316. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1317. s//\1/
  1318. q
  1319. }
  1320. /^X\(\/\/\)[^/].*/{
  1321. s//\1/
  1322. q
  1323. }
  1324. /^X\(\/\/\)$/{
  1325. s//\1/
  1326. q
  1327. }
  1328. /^X\(\/\).*/{
  1329. s//\1/
  1330. q
  1331. }
  1332. s/.*/./; q'`
  1333. srcdir=$ac_confdir
  1334. if test ! -r "$srcdir/$ac_unique_file"; then
  1335. srcdir=..
  1336. fi
  1337. else
  1338. ac_srcdir_defaulted=no
  1339. fi
  1340. if test ! -r "$srcdir/$ac_unique_file"; then
  1341. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1342. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1343. fi
  1344. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1345. ac_abs_confdir=`(
  1346. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1347. pwd)`
  1348. # When building in place, set srcdir=.
  1349. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1350. srcdir=.
  1351. fi
  1352. # Remove unnecessary trailing slashes from srcdir.
  1353. # Double slashes in file names in object file debugging info
  1354. # mess up M-x gdb in Emacs.
  1355. case $srcdir in
  1356. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1357. esac
  1358. for ac_var in $ac_precious_vars; do
  1359. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1360. eval ac_env_${ac_var}_value=\$${ac_var}
  1361. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1362. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1363. done
  1364. #
  1365. # Report the --help message.
  1366. #
  1367. if test "$ac_init_help" = "long"; then
  1368. # Omit some internal or obsolete options to make the list less imposing.
  1369. # This message is too long to be a string in the A/UX 3.1 sh.
  1370. cat <<_ACEOF
  1371. \`configure' configures this package to adapt to many kinds of systems.
  1372. Usage: $0 [OPTION]... [VAR=VALUE]...
  1373. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1374. VAR=VALUE. See below for descriptions of some of the useful variables.
  1375. Defaults for the options are specified in brackets.
  1376. Configuration:
  1377. -h, --help display this help and exit
  1378. --help=short display options specific to this package
  1379. --help=recursive display the short help of all the included packages
  1380. -V, --version display version information and exit
  1381. -q, --quiet, --silent do not print \`checking ...' messages
  1382. --cache-file=FILE cache test results in FILE [disabled]
  1383. -C, --config-cache alias for \`--cache-file=config.cache'
  1384. -n, --no-create do not create output files
  1385. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1386. Installation directories:
  1387. --prefix=PREFIX install architecture-independent files in PREFIX
  1388. [$ac_default_prefix]
  1389. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1390. [PREFIX]
  1391. By default, \`make install' will install all the files in
  1392. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1393. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1394. for instance \`--prefix=\$HOME'.
  1395. For better control, use the options below.
  1396. Fine tuning of the installation directories:
  1397. --bindir=DIR user executables [EPREFIX/bin]
  1398. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1399. --libexecdir=DIR program executables [EPREFIX/libexec]
  1400. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1401. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1402. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1403. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1404. --libdir=DIR object code libraries [EPREFIX/lib]
  1405. --includedir=DIR C header files [PREFIX/include]
  1406. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1407. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1408. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1409. --infodir=DIR info documentation [DATAROOTDIR/info]
  1410. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1411. --mandir=DIR man documentation [DATAROOTDIR/man]
  1412. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1413. --htmldir=DIR html documentation [DOCDIR]
  1414. --dvidir=DIR dvi documentation [DOCDIR]
  1415. --pdfdir=DIR pdf documentation [DOCDIR]
  1416. --psdir=DIR ps documentation [DOCDIR]
  1417. _ACEOF
  1418. cat <<\_ACEOF
  1419. X features:
  1420. --x-includes=DIR X include files are in DIR
  1421. --x-libraries=DIR X library files are in DIR
  1422. System types:
  1423. --build=BUILD configure for building on BUILD [guessed]
  1424. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1425. _ACEOF
  1426. fi
  1427. if test -n "$ac_init_help"; then
  1428. cat <<\_ACEOF
  1429. Optional Features:
  1430. --disable-option-checking ignore unrecognized --enable/--with options
  1431. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1432. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1433. --enable-shared[=PKGS] build shared libraries [default=yes]
  1434. --enable-static[=PKGS] build static libraries [default=yes]
  1435. --enable-fast-install[=PKGS]
  1436. optimize for fast installation [default=yes]
  1437. --disable-libtool-lock avoid locking (might break parallel builds)
  1438. --enable-assertions Enable internal sanity checks
  1439. (auto/disabled/release/enabled/paranoid)
  1440. [[default=auto]]
  1441. --enable-dependency-tracking
  1442. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1443. --enable-libc Use the system C library [[default=yes]]
  1444. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1445. --enable-atomic Enable the atomic operations subsystem
  1446. [[default=yes]]
  1447. --enable-audio Enable the audio subsystem [[default=yes]]
  1448. --enable-video Enable the video subsystem [[default=yes]]
  1449. --enable-render Enable the render subsystem [[default=yes]]
  1450. --enable-events Enable the events subsystem [[default=yes]]
  1451. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1452. --enable-haptic Enable the haptic (force feedback) subsystem
  1453. [[default=yes]]
  1454. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1455. --enable-power Enable the power subsystem [[default=yes]]
  1456. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1457. --enable-threads Enable the threading subsystem [[default=yes]]
  1458. --enable-timers Enable the timer subsystem [[default=yes]]
  1459. --enable-file Enable the file subsystem [[default=yes]]
  1460. --enable-loadso Enable the shared object loading subsystem
  1461. [[default=yes]]
  1462. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1463. --enable-assembly Enable assembly routines [[default=yes]]
  1464. --enable-ssemath Allow GCC to use SSE floating point math
  1465. [[default=maybe]]
  1466. --enable-mmx use MMX assembly routines [[default=yes]]
  1467. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1468. --enable-sse use SSE assembly routines [[default=yes]]
  1469. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1470. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1471. --enable-altivec use Altivec assembly routines [[default=yes]]
  1472. --enable-oss support the OSS audio API [[default=maybe]]
  1473. --enable-alsa support the ALSA audio API [[default=yes]]
  1474. --disable-alsatest Do not try to compile and run a test Alsa program
  1475. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1476. --enable-jack use JACK audio [[default=yes]]
  1477. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1478. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1479. --disable-esdtest Do not try to compile and run a test ESD program
  1480. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1481. --enable-pulseaudio use PulseAudio [[default=yes]]
  1482. --enable-pulseaudio-shared
  1483. dynamically load PulseAudio support [[default=yes]]
  1484. --enable-arts support the Analog Real Time Synthesizer
  1485. [[default=yes]]
  1486. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1487. --enable-nas support the NAS audio API [[default=yes]]
  1488. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1489. --enable-sndio support the sndio audio API [[default=yes]]
  1490. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1491. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1492. --enable-fusionsound-shared
  1493. dynamically load fusionsound audio support
  1494. [[default=yes]]
  1495. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1496. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1497. --enable-libsamplerate use libsamplerate for audio rate conversion
  1498. [[default=yes]]
  1499. --enable-libsamplerate-shared
  1500. dynamically load libsamplerate [[default=yes]]
  1501. --enable-arm-simd use SIMD assembly blitters on ARM [[default=no]]
  1502. --enable-arm-neon use NEON assembly blitters on ARM [[default=no]]
  1503. --enable-video-wayland use Wayland video driver [[default=yes]]
  1504. --enable-video-wayland-qt-touch
  1505. QtWayland server support for Wayland video driver
  1506. [[default=yes]]
  1507. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1508. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1509. --enable-video-x11 use X11 video driver [[default=yes]]
  1510. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1511. --enable-video-x11-xcursor
  1512. enable X11 Xcursor support [[default=yes]]
  1513. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1514. --enable-video-x11-xinerama
  1515. enable X11 Xinerama support [[default=yes]]
  1516. --enable-video-x11-xinput
  1517. enable X11 XInput extension for manymouse, tablets,
  1518. etc [[default=yes]]
  1519. --enable-video-x11-xrandr
  1520. enable X11 Xrandr extension for fullscreen
  1521. [[default=yes]]
  1522. --enable-video-x11-scrnsaver
  1523. enable X11 screensaver extension [[default=yes]]
  1524. --enable-video-x11-xshape
  1525. enable X11 XShape support [[default=yes]]
  1526. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1527. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1528. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1529. --enable-video-metal include Metal support [[default=yes]]
  1530. --enable-render-metal enable the Metal render driver [[default=yes]]
  1531. --enable-video-directfb use DirectFB video driver [[default=no]]
  1532. --enable-directfb-shared
  1533. dynamically load directfb support [[default=yes]]
  1534. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1535. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1536. --enable-video-dummy use dummy video driver [[default=yes]]
  1537. --enable-video-opengl include OpenGL support [[default=yes]]
  1538. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1539. --enable-video-opengles1
  1540. include OpenGL ES 1.1 support [[default=yes]]
  1541. --enable-video-opengles2
  1542. include OpenGL ES 2.0 support [[default=yes]]
  1543. --enable-video-vulkan include Vulkan support [[default=yes]]
  1544. --enable-libudev enable libudev support [[default=yes]]
  1545. --enable-dbus enable D-Bus support [[default=yes]]
  1546. --enable-ime enable IME support [[default=yes]]
  1547. --enable-ibus enable IBus support [[default=yes]]
  1548. --enable-fcitx enable fcitx support [[default=yes]]
  1549. --enable-input-tslib use the Touchscreen library for input
  1550. [[default=yes]]
  1551. --enable-pthreads use POSIX threads for multi-threading
  1552. [[default=yes]]
  1553. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1554. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1555. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1556. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1557. --enable-hidapi use HIDAPI for low level joystick drivers
  1558. [[default=no]]
  1559. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1560. UNIX [[default=yes]]
  1561. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1562. --enable-backgrounding-signal
  1563. number to use for magic backgrounding signal or 'no'
  1564. [[default=no]]
  1565. --enable-foregrounding-signal
  1566. number to use for magic foregrounding signal or 'no'
  1567. [[default=no]]
  1568. --enable-joystick-virtual
  1569. enable virtual joystick APIs [[default=yes]]
  1570. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1571. --enable-sdl2-config Install sdl2-config [default=yes]
  1572. Optional Packages:
  1573. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1574. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1575. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1576. both]
  1577. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1578. --with-sysroot=DIR Search for dependent libraries within DIR
  1579. (or the compiler's sysroot if not specified).
  1580. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1581. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1582. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1583. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1584. --with-x use the X Window System
  1585. Some influential environment variables:
  1586. CC C compiler command
  1587. CFLAGS C compiler flags
  1588. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1589. nonstandard directory <lib dir>
  1590. LIBS libraries to pass to the linker, e.g. -l<library>
  1591. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1592. you have headers in a nonstandard directory <include dir>
  1593. CPP C preprocessor
  1594. CXX C++ compiler command
  1595. CXXFLAGS C++ compiler flags
  1596. CXXCPP C++ preprocessor
  1597. PKG_CONFIG path to pkg-config utility
  1598. PKG_CONFIG_PATH
  1599. directories to add to pkg-config's search path
  1600. PKG_CONFIG_LIBDIR
  1601. path overriding pkg-config's built-in search path
  1602. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1603. JACK_LIBS linker flags for JACK, overriding pkg-config
  1604. PULSEAUDIO_CFLAGS
  1605. C compiler flags for PULSEAUDIO, overriding pkg-config
  1606. PULSEAUDIO_LIBS
  1607. linker flags for PULSEAUDIO, overriding pkg-config
  1608. FUSIONSOUND_CFLAGS
  1609. C compiler flags for FUSIONSOUND, overriding pkg-config
  1610. FUSIONSOUND_LIBS
  1611. linker flags for FUSIONSOUND, overriding pkg-config
  1612. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1613. RPI_LIBS linker flags for RPI, overriding pkg-config
  1614. XMKMF Path to xmkmf, Makefile generator for X Window System
  1615. DIRECTFB_CFLAGS
  1616. C compiler flags for DIRECTFB, overriding pkg-config
  1617. DIRECTFB_LIBS
  1618. linker flags for DIRECTFB, overriding pkg-config
  1619. LIBDRM_CFLAGS
  1620. C compiler flags for LIBDRM, overriding pkg-config
  1621. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1622. LIBGBM_CFLAGS
  1623. C compiler flags for LIBGBM, overriding pkg-config
  1624. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1625. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1626. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1627. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1628. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1629. LIBUSB_CFLAGS
  1630. C compiler flags for LIBUSB, overriding pkg-config
  1631. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1632. Use these variables to override the choices made by `configure' or to help
  1633. it to find libraries and programs with nonstandard names/locations.
  1634. Report bugs to the package provider.
  1635. _ACEOF
  1636. ac_status=$?
  1637. fi
  1638. if test "$ac_init_help" = "recursive"; then
  1639. # If there are subdirs, report their specific --help.
  1640. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1641. test -d "$ac_dir" ||
  1642. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1643. continue
  1644. ac_builddir=.
  1645. case "$ac_dir" in
  1646. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1647. *)
  1648. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1649. # A ".." for each directory in $ac_dir_suffix.
  1650. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1651. case $ac_top_builddir_sub in
  1652. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1653. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1654. esac ;;
  1655. esac
  1656. ac_abs_top_builddir=$ac_pwd
  1657. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1658. # for backward compatibility:
  1659. ac_top_builddir=$ac_top_build_prefix
  1660. case $srcdir in
  1661. .) # We are building in place.
  1662. ac_srcdir=.
  1663. ac_top_srcdir=$ac_top_builddir_sub
  1664. ac_abs_top_srcdir=$ac_pwd ;;
  1665. [\\/]* | ?:[\\/]* ) # Absolute name.
  1666. ac_srcdir=$srcdir$ac_dir_suffix;
  1667. ac_top_srcdir=$srcdir
  1668. ac_abs_top_srcdir=$srcdir ;;
  1669. *) # Relative name.
  1670. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1671. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1672. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1673. esac
  1674. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1675. cd "$ac_dir" || { ac_status=$?; continue; }
  1676. # Check for guested configure.
  1677. if test -f "$ac_srcdir/configure.gnu"; then
  1678. echo &&
  1679. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1680. elif test -f "$ac_srcdir/configure"; then
  1681. echo &&
  1682. $SHELL "$ac_srcdir/configure" --help=recursive
  1683. else
  1684. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1685. fi || ac_status=$?
  1686. cd "$ac_pwd" || { ac_status=$?; break; }
  1687. done
  1688. fi
  1689. test -n "$ac_init_help" && exit $ac_status
  1690. if $ac_init_version; then
  1691. cat <<\_ACEOF
  1692. configure
  1693. generated by GNU Autoconf 2.69
  1694. Copyright (C) 2012 Free Software Foundation, Inc.
  1695. This configure script is free software; the Free Software Foundation
  1696. gives unlimited permission to copy, distribute and modify it.
  1697. _ACEOF
  1698. exit
  1699. fi
  1700. ## ------------------------ ##
  1701. ## Autoconf initialization. ##
  1702. ## ------------------------ ##
  1703. # ac_fn_c_try_compile LINENO
  1704. # --------------------------
  1705. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1706. ac_fn_c_try_compile ()
  1707. {
  1708. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1709. rm -f conftest.$ac_objext
  1710. if { { ac_try="$ac_compile"
  1711. case "(($ac_try" in
  1712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1713. *) ac_try_echo=$ac_try;;
  1714. esac
  1715. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1716. $as_echo "$ac_try_echo"; } >&5
  1717. (eval "$ac_compile") 2>conftest.err
  1718. ac_status=$?
  1719. if test -s conftest.err; then
  1720. grep -v '^ *+' conftest.err >conftest.er1
  1721. cat conftest.er1 >&5
  1722. mv -f conftest.er1 conftest.err
  1723. fi
  1724. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1725. test $ac_status = 0; } && {
  1726. test -z "$ac_c_werror_flag" ||
  1727. test ! -s conftest.err
  1728. } && test -s conftest.$ac_objext; then :
  1729. ac_retval=0
  1730. else
  1731. $as_echo "$as_me: failed program was:" >&5
  1732. sed 's/^/| /' conftest.$ac_ext >&5
  1733. ac_retval=1
  1734. fi
  1735. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1736. as_fn_set_status $ac_retval
  1737. } # ac_fn_c_try_compile
  1738. # ac_fn_c_try_link LINENO
  1739. # -----------------------
  1740. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1741. ac_fn_c_try_link ()
  1742. {
  1743. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1744. rm -f conftest.$ac_objext conftest$ac_exeext
  1745. if { { ac_try="$ac_link"
  1746. case "(($ac_try" in
  1747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1748. *) ac_try_echo=$ac_try;;
  1749. esac
  1750. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1751. $as_echo "$ac_try_echo"; } >&5
  1752. (eval "$ac_link") 2>conftest.err
  1753. ac_status=$?
  1754. if test -s conftest.err; then
  1755. grep -v '^ *+' conftest.err >conftest.er1
  1756. cat conftest.er1 >&5
  1757. mv -f conftest.er1 conftest.err
  1758. fi
  1759. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1760. test $ac_status = 0; } && {
  1761. test -z "$ac_c_werror_flag" ||
  1762. test ! -s conftest.err
  1763. } && test -s conftest$ac_exeext && {
  1764. test "$cross_compiling" = yes ||
  1765. test -x conftest$ac_exeext
  1766. }; then :
  1767. ac_retval=0
  1768. else
  1769. $as_echo "$as_me: failed program was:" >&5
  1770. sed 's/^/| /' conftest.$ac_ext >&5
  1771. ac_retval=1
  1772. fi
  1773. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1774. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1775. # interfere with the next link command; also delete a directory that is
  1776. # left behind by Apple's compiler. We do this before executing the actions.
  1777. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1778. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1779. as_fn_set_status $ac_retval
  1780. } # ac_fn_c_try_link
  1781. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1782. # -------------------------------------------------------
  1783. # Tests whether HEADER exists and can be compiled using the include files in
  1784. # INCLUDES, setting the cache variable VAR accordingly.
  1785. ac_fn_c_check_header_compile ()
  1786. {
  1787. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1789. $as_echo_n "checking for $2... " >&6; }
  1790. if eval \${$3+:} false; then :
  1791. $as_echo_n "(cached) " >&6
  1792. else
  1793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1794. /* end confdefs.h. */
  1795. $4
  1796. #include <$2>
  1797. _ACEOF
  1798. if ac_fn_c_try_compile "$LINENO"; then :
  1799. eval "$3=yes"
  1800. else
  1801. eval "$3=no"
  1802. fi
  1803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1804. fi
  1805. eval ac_res=\$$3
  1806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1807. $as_echo "$ac_res" >&6; }
  1808. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1809. } # ac_fn_c_check_header_compile
  1810. # ac_fn_c_try_cpp LINENO
  1811. # ----------------------
  1812. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1813. ac_fn_c_try_cpp ()
  1814. {
  1815. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1816. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1817. case "(($ac_try" in
  1818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1819. *) ac_try_echo=$ac_try;;
  1820. esac
  1821. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1822. $as_echo "$ac_try_echo"; } >&5
  1823. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1824. ac_status=$?
  1825. if test -s conftest.err; then
  1826. grep -v '^ *+' conftest.err >conftest.er1
  1827. cat conftest.er1 >&5
  1828. mv -f conftest.er1 conftest.err
  1829. fi
  1830. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1831. test $ac_status = 0; } > conftest.i && {
  1832. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1833. test ! -s conftest.err
  1834. }; then :
  1835. ac_retval=0
  1836. else
  1837. $as_echo "$as_me: failed program was:" >&5
  1838. sed 's/^/| /' conftest.$ac_ext >&5
  1839. ac_retval=1
  1840. fi
  1841. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1842. as_fn_set_status $ac_retval
  1843. } # ac_fn_c_try_cpp
  1844. # ac_fn_c_try_run LINENO
  1845. # ----------------------
  1846. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1847. # that executables *can* be run.
  1848. ac_fn_c_try_run ()
  1849. {
  1850. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1851. if { { ac_try="$ac_link"
  1852. case "(($ac_try" in
  1853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1854. *) ac_try_echo=$ac_try;;
  1855. esac
  1856. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1857. $as_echo "$ac_try_echo"; } >&5
  1858. (eval "$ac_link") 2>&5
  1859. ac_status=$?
  1860. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1861. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1862. { { case "(($ac_try" in
  1863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1864. *) ac_try_echo=$ac_try;;
  1865. esac
  1866. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1867. $as_echo "$ac_try_echo"; } >&5
  1868. (eval "$ac_try") 2>&5
  1869. ac_status=$?
  1870. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1871. test $ac_status = 0; }; }; then :
  1872. ac_retval=0
  1873. else
  1874. $as_echo "$as_me: program exited with status $ac_status" >&5
  1875. $as_echo "$as_me: failed program was:" >&5
  1876. sed 's/^/| /' conftest.$ac_ext >&5
  1877. ac_retval=$ac_status
  1878. fi
  1879. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1880. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1881. as_fn_set_status $ac_retval
  1882. } # ac_fn_c_try_run
  1883. # ac_fn_c_check_func LINENO FUNC VAR
  1884. # ----------------------------------
  1885. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1886. ac_fn_c_check_func ()
  1887. {
  1888. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1890. $as_echo_n "checking for $2... " >&6; }
  1891. if eval \${$3+:} false; then :
  1892. $as_echo_n "(cached) " >&6
  1893. else
  1894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1895. /* end confdefs.h. */
  1896. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1897. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1898. #define $2 innocuous_$2
  1899. /* System header to define __stub macros and hopefully few prototypes,
  1900. which can conflict with char $2 (); below.
  1901. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1902. <limits.h> exists even on freestanding compilers. */
  1903. #ifdef __STDC__
  1904. # include <limits.h>
  1905. #else
  1906. # include <assert.h>
  1907. #endif
  1908. #undef $2
  1909. /* Override any GCC internal prototype to avoid an error.
  1910. Use char because int might match the return type of a GCC
  1911. builtin and then its argument prototype would still apply. */
  1912. #ifdef __cplusplus
  1913. extern "C"
  1914. #endif
  1915. char $2 ();
  1916. /* The GNU C library defines this for functions which it implements
  1917. to always fail with ENOSYS. Some functions are actually named
  1918. something starting with __ and the normal name is an alias. */
  1919. #if defined __stub_$2 || defined __stub___$2
  1920. choke me
  1921. #endif
  1922. int
  1923. main ()
  1924. {
  1925. return $2 ();
  1926. ;
  1927. return 0;
  1928. }
  1929. _ACEOF
  1930. if ac_fn_c_try_link "$LINENO"; then :
  1931. eval "$3=yes"
  1932. else
  1933. eval "$3=no"
  1934. fi
  1935. rm -f core conftest.err conftest.$ac_objext \
  1936. conftest$ac_exeext conftest.$ac_ext
  1937. fi
  1938. eval ac_res=\$$3
  1939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1940. $as_echo "$ac_res" >&6; }
  1941. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1942. } # ac_fn_c_check_func
  1943. # ac_fn_cxx_try_compile LINENO
  1944. # ----------------------------
  1945. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1946. ac_fn_cxx_try_compile ()
  1947. {
  1948. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1949. rm -f conftest.$ac_objext
  1950. if { { ac_try="$ac_compile"
  1951. case "(($ac_try" in
  1952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1953. *) ac_try_echo=$ac_try;;
  1954. esac
  1955. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1956. $as_echo "$ac_try_echo"; } >&5
  1957. (eval "$ac_compile") 2>conftest.err
  1958. ac_status=$?
  1959. if test -s conftest.err; then
  1960. grep -v '^ *+' conftest.err >conftest.er1
  1961. cat conftest.er1 >&5
  1962. mv -f conftest.er1 conftest.err
  1963. fi
  1964. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1965. test $ac_status = 0; } && {
  1966. test -z "$ac_cxx_werror_flag" ||
  1967. test ! -s conftest.err
  1968. } && test -s conftest.$ac_objext; then :
  1969. ac_retval=0
  1970. else
  1971. $as_echo "$as_me: failed program was:" >&5
  1972. sed 's/^/| /' conftest.$ac_ext >&5
  1973. ac_retval=1
  1974. fi
  1975. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1976. as_fn_set_status $ac_retval
  1977. } # ac_fn_cxx_try_compile
  1978. # ac_fn_cxx_try_cpp LINENO
  1979. # ------------------------
  1980. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1981. ac_fn_cxx_try_cpp ()
  1982. {
  1983. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1984. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1985. case "(($ac_try" in
  1986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1987. *) ac_try_echo=$ac_try;;
  1988. esac
  1989. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1990. $as_echo "$ac_try_echo"; } >&5
  1991. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1992. ac_status=$?
  1993. if test -s conftest.err; then
  1994. grep -v '^ *+' conftest.err >conftest.er1
  1995. cat conftest.er1 >&5
  1996. mv -f conftest.er1 conftest.err
  1997. fi
  1998. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1999. test $ac_status = 0; } > conftest.i && {
  2000. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2001. test ! -s conftest.err
  2002. }; then :
  2003. ac_retval=0
  2004. else
  2005. $as_echo "$as_me: failed program was:" >&5
  2006. sed 's/^/| /' conftest.$ac_ext >&5
  2007. ac_retval=1
  2008. fi
  2009. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2010. as_fn_set_status $ac_retval
  2011. } # ac_fn_cxx_try_cpp
  2012. # ac_fn_cxx_try_link LINENO
  2013. # -------------------------
  2014. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2015. ac_fn_cxx_try_link ()
  2016. {
  2017. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2018. rm -f conftest.$ac_objext conftest$ac_exeext
  2019. if { { ac_try="$ac_link"
  2020. case "(($ac_try" in
  2021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2022. *) ac_try_echo=$ac_try;;
  2023. esac
  2024. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2025. $as_echo "$ac_try_echo"; } >&5
  2026. (eval "$ac_link") 2>conftest.err
  2027. ac_status=$?
  2028. if test -s conftest.err; then
  2029. grep -v '^ *+' conftest.err >conftest.er1
  2030. cat conftest.er1 >&5
  2031. mv -f conftest.er1 conftest.err
  2032. fi
  2033. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2034. test $ac_status = 0; } && {
  2035. test -z "$ac_cxx_werror_flag" ||
  2036. test ! -s conftest.err
  2037. } && test -s conftest$ac_exeext && {
  2038. test "$cross_compiling" = yes ||
  2039. test -x conftest$ac_exeext
  2040. }; then :
  2041. ac_retval=0
  2042. else
  2043. $as_echo "$as_me: failed program was:" >&5
  2044. sed 's/^/| /' conftest.$ac_ext >&5
  2045. ac_retval=1
  2046. fi
  2047. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2048. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2049. # interfere with the next link command; also delete a directory that is
  2050. # left behind by Apple's compiler. We do this before executing the actions.
  2051. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2052. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2053. as_fn_set_status $ac_retval
  2054. } # ac_fn_cxx_try_link
  2055. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2056. # -------------------------------------------------------
  2057. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2058. # the include files in INCLUDES and setting the cache variable VAR
  2059. # accordingly.
  2060. ac_fn_c_check_header_mongrel ()
  2061. {
  2062. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2063. if eval \${$3+:} false; then :
  2064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2065. $as_echo_n "checking for $2... " >&6; }
  2066. if eval \${$3+:} false; then :
  2067. $as_echo_n "(cached) " >&6
  2068. fi
  2069. eval ac_res=\$$3
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2071. $as_echo "$ac_res" >&6; }
  2072. else
  2073. # Is the header compilable?
  2074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2075. $as_echo_n "checking $2 usability... " >&6; }
  2076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2077. /* end confdefs.h. */
  2078. $4
  2079. #include <$2>
  2080. _ACEOF
  2081. if ac_fn_c_try_compile "$LINENO"; then :
  2082. ac_header_compiler=yes
  2083. else
  2084. ac_header_compiler=no
  2085. fi
  2086. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2088. $as_echo "$ac_header_compiler" >&6; }
  2089. # Is the header present?
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2091. $as_echo_n "checking $2 presence... " >&6; }
  2092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2093. /* end confdefs.h. */
  2094. #include <$2>
  2095. _ACEOF
  2096. if ac_fn_c_try_cpp "$LINENO"; then :
  2097. ac_header_preproc=yes
  2098. else
  2099. ac_header_preproc=no
  2100. fi
  2101. rm -f conftest.err conftest.i conftest.$ac_ext
  2102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2103. $as_echo "$ac_header_preproc" >&6; }
  2104. # So? What about this header?
  2105. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2106. yes:no: )
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2108. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2110. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2111. ;;
  2112. no:yes:* )
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2114. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2115. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2116. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2118. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2119. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2120. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2121. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2122. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2123. ;;
  2124. esac
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2126. $as_echo_n "checking for $2... " >&6; }
  2127. if eval \${$3+:} false; then :
  2128. $as_echo_n "(cached) " >&6
  2129. else
  2130. eval "$3=\$ac_header_compiler"
  2131. fi
  2132. eval ac_res=\$$3
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2134. $as_echo "$ac_res" >&6; }
  2135. fi
  2136. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2137. } # ac_fn_c_check_header_mongrel
  2138. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2139. # -------------------------------------------
  2140. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2141. # variable VAR accordingly.
  2142. ac_fn_c_check_type ()
  2143. {
  2144. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2146. $as_echo_n "checking for $2... " >&6; }
  2147. if eval \${$3+:} false; then :
  2148. $as_echo_n "(cached) " >&6
  2149. else
  2150. eval "$3=no"
  2151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2152. /* end confdefs.h. */
  2153. $4
  2154. int
  2155. main ()
  2156. {
  2157. if (sizeof ($2))
  2158. return 0;
  2159. ;
  2160. return 0;
  2161. }
  2162. _ACEOF
  2163. if ac_fn_c_try_compile "$LINENO"; then :
  2164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2165. /* end confdefs.h. */
  2166. $4
  2167. int
  2168. main ()
  2169. {
  2170. if (sizeof (($2)))
  2171. return 0;
  2172. ;
  2173. return 0;
  2174. }
  2175. _ACEOF
  2176. if ac_fn_c_try_compile "$LINENO"; then :
  2177. else
  2178. eval "$3=yes"
  2179. fi
  2180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2181. fi
  2182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2183. fi
  2184. eval ac_res=\$$3
  2185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2186. $as_echo "$ac_res" >&6; }
  2187. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2188. } # ac_fn_c_check_type
  2189. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2190. # ----------------------------------------------------
  2191. # Tries to find if the field MEMBER exists in type AGGR, after including
  2192. # INCLUDES, setting cache variable VAR accordingly.
  2193. ac_fn_c_check_member ()
  2194. {
  2195. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2197. $as_echo_n "checking for $2.$3... " >&6; }
  2198. if eval \${$4+:} false; then :
  2199. $as_echo_n "(cached) " >&6
  2200. else
  2201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2202. /* end confdefs.h. */
  2203. $5
  2204. int
  2205. main ()
  2206. {
  2207. static $2 ac_aggr;
  2208. if (ac_aggr.$3)
  2209. return 0;
  2210. ;
  2211. return 0;
  2212. }
  2213. _ACEOF
  2214. if ac_fn_c_try_compile "$LINENO"; then :
  2215. eval "$4=yes"
  2216. else
  2217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2218. /* end confdefs.h. */
  2219. $5
  2220. int
  2221. main ()
  2222. {
  2223. static $2 ac_aggr;
  2224. if (sizeof ac_aggr.$3)
  2225. return 0;
  2226. ;
  2227. return 0;
  2228. }
  2229. _ACEOF
  2230. if ac_fn_c_try_compile "$LINENO"; then :
  2231. eval "$4=yes"
  2232. else
  2233. eval "$4=no"
  2234. fi
  2235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2236. fi
  2237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2238. fi
  2239. eval ac_res=\$$4
  2240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2241. $as_echo "$ac_res" >&6; }
  2242. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2243. } # ac_fn_c_check_member
  2244. cat >config.log <<_ACEOF
  2245. This file contains any messages produced by compilers while
  2246. running configure, to aid debugging if configure makes a mistake.
  2247. It was created by $as_me, which was
  2248. generated by GNU Autoconf 2.69. Invocation command line was
  2249. $ $0 $@
  2250. _ACEOF
  2251. exec 5>>config.log
  2252. {
  2253. cat <<_ASUNAME
  2254. ## --------- ##
  2255. ## Platform. ##
  2256. ## --------- ##
  2257. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2258. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2259. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2260. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2261. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2262. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2263. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2264. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2265. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2266. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2267. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2268. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2269. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2270. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2271. _ASUNAME
  2272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2273. for as_dir in $PATH
  2274. do
  2275. IFS=$as_save_IFS
  2276. test -z "$as_dir" && as_dir=.
  2277. $as_echo "PATH: $as_dir"
  2278. done
  2279. IFS=$as_save_IFS
  2280. } >&5
  2281. cat >&5 <<_ACEOF
  2282. ## ----------- ##
  2283. ## Core tests. ##
  2284. ## ----------- ##
  2285. _ACEOF
  2286. # Keep a trace of the command line.
  2287. # Strip out --no-create and --no-recursion so they do not pile up.
  2288. # Strip out --silent because we don't want to record it for future runs.
  2289. # Also quote any args containing shell meta-characters.
  2290. # Make two passes to allow for proper duplicate-argument suppression.
  2291. ac_configure_args=
  2292. ac_configure_args0=
  2293. ac_configure_args1=
  2294. ac_must_keep_next=false
  2295. for ac_pass in 1 2
  2296. do
  2297. for ac_arg
  2298. do
  2299. case $ac_arg in
  2300. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2301. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2302. | -silent | --silent | --silen | --sile | --sil)
  2303. continue ;;
  2304. *\'*)
  2305. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2306. esac
  2307. case $ac_pass in
  2308. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2309. 2)
  2310. as_fn_append ac_configure_args1 " '$ac_arg'"
  2311. if test $ac_must_keep_next = true; then
  2312. ac_must_keep_next=false # Got value, back to normal.
  2313. else
  2314. case $ac_arg in
  2315. *=* | --config-cache | -C | -disable-* | --disable-* \
  2316. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2317. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2318. | -with-* | --with-* | -without-* | --without-* | --x)
  2319. case "$ac_configure_args0 " in
  2320. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2321. esac
  2322. ;;
  2323. -* ) ac_must_keep_next=true ;;
  2324. esac
  2325. fi
  2326. as_fn_append ac_configure_args " '$ac_arg'"
  2327. ;;
  2328. esac
  2329. done
  2330. done
  2331. { ac_configure_args0=; unset ac_configure_args0;}
  2332. { ac_configure_args1=; unset ac_configure_args1;}
  2333. # When interrupted or exit'd, cleanup temporary files, and complete
  2334. # config.log. We remove comments because anyway the quotes in there
  2335. # would cause problems or look ugly.
  2336. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2337. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2338. trap 'exit_status=$?
  2339. # Save into config.log some information that might help in debugging.
  2340. {
  2341. echo
  2342. $as_echo "## ---------------- ##
  2343. ## Cache variables. ##
  2344. ## ---------------- ##"
  2345. echo
  2346. # The following way of writing the cache mishandles newlines in values,
  2347. (
  2348. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2349. eval ac_val=\$$ac_var
  2350. case $ac_val in #(
  2351. *${as_nl}*)
  2352. case $ac_var in #(
  2353. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2354. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2355. esac
  2356. case $ac_var in #(
  2357. _ | IFS | as_nl) ;; #(
  2358. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2359. *) { eval $ac_var=; unset $ac_var;} ;;
  2360. esac ;;
  2361. esac
  2362. done
  2363. (set) 2>&1 |
  2364. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2365. *${as_nl}ac_space=\ *)
  2366. sed -n \
  2367. "s/'\''/'\''\\\\'\'''\''/g;
  2368. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2369. ;; #(
  2370. *)
  2371. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2372. ;;
  2373. esac |
  2374. sort
  2375. )
  2376. echo
  2377. $as_echo "## ----------------- ##
  2378. ## Output variables. ##
  2379. ## ----------------- ##"
  2380. echo
  2381. for ac_var in $ac_subst_vars
  2382. do
  2383. eval ac_val=\$$ac_var
  2384. case $ac_val in
  2385. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2386. esac
  2387. $as_echo "$ac_var='\''$ac_val'\''"
  2388. done | sort
  2389. echo
  2390. if test -n "$ac_subst_files"; then
  2391. $as_echo "## ------------------- ##
  2392. ## File substitutions. ##
  2393. ## ------------------- ##"
  2394. echo
  2395. for ac_var in $ac_subst_files
  2396. do
  2397. eval ac_val=\$$ac_var
  2398. case $ac_val in
  2399. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2400. esac
  2401. $as_echo "$ac_var='\''$ac_val'\''"
  2402. done | sort
  2403. echo
  2404. fi
  2405. if test -s confdefs.h; then
  2406. $as_echo "## ----------- ##
  2407. ## confdefs.h. ##
  2408. ## ----------- ##"
  2409. echo
  2410. cat confdefs.h
  2411. echo
  2412. fi
  2413. test "$ac_signal" != 0 &&
  2414. $as_echo "$as_me: caught signal $ac_signal"
  2415. $as_echo "$as_me: exit $exit_status"
  2416. } >&5
  2417. rm -f core *.core core.conftest.* &&
  2418. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2419. exit $exit_status
  2420. ' 0
  2421. for ac_signal in 1 2 13 15; do
  2422. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2423. done
  2424. ac_signal=0
  2425. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2426. rm -f -r conftest* confdefs.h
  2427. $as_echo "/* confdefs.h */" > confdefs.h
  2428. # Predefined preprocessor variables.
  2429. cat >>confdefs.h <<_ACEOF
  2430. #define PACKAGE_NAME "$PACKAGE_NAME"
  2431. _ACEOF
  2432. cat >>confdefs.h <<_ACEOF
  2433. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2434. _ACEOF
  2435. cat >>confdefs.h <<_ACEOF
  2436. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2437. _ACEOF
  2438. cat >>confdefs.h <<_ACEOF
  2439. #define PACKAGE_STRING "$PACKAGE_STRING"
  2440. _ACEOF
  2441. cat >>confdefs.h <<_ACEOF
  2442. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2443. _ACEOF
  2444. cat >>confdefs.h <<_ACEOF
  2445. #define PACKAGE_URL "$PACKAGE_URL"
  2446. _ACEOF
  2447. # Let the site file select an alternate cache file if it wants to.
  2448. # Prefer an explicitly selected file to automatically selected ones.
  2449. ac_site_file1=NONE
  2450. ac_site_file2=NONE
  2451. if test -n "$CONFIG_SITE"; then
  2452. # We do not want a PATH search for config.site.
  2453. case $CONFIG_SITE in #((
  2454. -*) ac_site_file1=./$CONFIG_SITE;;
  2455. */*) ac_site_file1=$CONFIG_SITE;;
  2456. *) ac_site_file1=./$CONFIG_SITE;;
  2457. esac
  2458. elif test "x$prefix" != xNONE; then
  2459. ac_site_file1=$prefix/share/config.site
  2460. ac_site_file2=$prefix/etc/config.site
  2461. else
  2462. ac_site_file1=$ac_default_prefix/share/config.site
  2463. ac_site_file2=$ac_default_prefix/etc/config.site
  2464. fi
  2465. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2466. do
  2467. test "x$ac_site_file" = xNONE && continue
  2468. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2469. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2470. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2471. sed 's/^/| /' "$ac_site_file" >&5
  2472. . "$ac_site_file" \
  2473. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2474. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2475. as_fn_error $? "failed to load site script $ac_site_file
  2476. See \`config.log' for more details" "$LINENO" 5; }
  2477. fi
  2478. done
  2479. if test -r "$cache_file"; then
  2480. # Some versions of bash will fail to source /dev/null (special files
  2481. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2482. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2484. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2485. case $cache_file in
  2486. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2487. *) . "./$cache_file";;
  2488. esac
  2489. fi
  2490. else
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2492. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2493. >$cache_file
  2494. fi
  2495. # Check that the precious variables saved in the cache have kept the same
  2496. # value.
  2497. ac_cache_corrupted=false
  2498. for ac_var in $ac_precious_vars; do
  2499. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2500. eval ac_new_set=\$ac_env_${ac_var}_set
  2501. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2502. eval ac_new_val=\$ac_env_${ac_var}_value
  2503. case $ac_old_set,$ac_new_set in
  2504. set,)
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2506. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2507. ac_cache_corrupted=: ;;
  2508. ,set)
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2510. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2511. ac_cache_corrupted=: ;;
  2512. ,);;
  2513. *)
  2514. if test "x$ac_old_val" != "x$ac_new_val"; then
  2515. # differences in whitespace do not lead to failure.
  2516. ac_old_val_w=`echo x $ac_old_val`
  2517. ac_new_val_w=`echo x $ac_new_val`
  2518. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2520. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2521. ac_cache_corrupted=:
  2522. else
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2524. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2525. eval $ac_var=\$ac_old_val
  2526. fi
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2528. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2530. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2531. fi;;
  2532. esac
  2533. # Pass precious variables to config.status.
  2534. if test "$ac_new_set" = set; then
  2535. case $ac_new_val in
  2536. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2537. *) ac_arg=$ac_var=$ac_new_val ;;
  2538. esac
  2539. case " $ac_configure_args " in
  2540. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2541. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2542. esac
  2543. fi
  2544. done
  2545. if $ac_cache_corrupted; then
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2547. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2549. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2550. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2551. fi
  2552. ## -------------------- ##
  2553. ## Main body of script. ##
  2554. ## -------------------- ##
  2555. ac_ext=c
  2556. ac_cpp='$CPP $CPPFLAGS'
  2557. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2558. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2559. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2560. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2561. ac_aux_dir=
  2562. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2563. if test -f "$ac_dir/install-sh"; then
  2564. ac_aux_dir=$ac_dir
  2565. ac_install_sh="$ac_aux_dir/install-sh -c"
  2566. break
  2567. elif test -f "$ac_dir/install.sh"; then
  2568. ac_aux_dir=$ac_dir
  2569. ac_install_sh="$ac_aux_dir/install.sh -c"
  2570. break
  2571. elif test -f "$ac_dir/shtool"; then
  2572. ac_aux_dir=$ac_dir
  2573. ac_install_sh="$ac_aux_dir/shtool install -c"
  2574. break
  2575. fi
  2576. done
  2577. if test -z "$ac_aux_dir"; then
  2578. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2579. fi
  2580. # These three variables are undocumented and unsupported,
  2581. # and are intended to be withdrawn in a future Autoconf release.
  2582. # They can cause serious problems if a builder's source tree is in a directory
  2583. # whose full name contains unusual characters.
  2584. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2585. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2586. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2587. orig_CFLAGS="$CFLAGS"
  2588. #
  2589. # Making releases:
  2590. # Edit include/SDL_version.h and change the version, then:
  2591. # SDL_MICRO_VERSION += 1;
  2592. # SDL_INTERFACE_AGE += 1;
  2593. # SDL_BINARY_AGE += 1;
  2594. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2595. # if backwards compatibility has been broken,
  2596. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2597. #
  2598. SDL_MAJOR_VERSION=2
  2599. SDL_MINOR_VERSION=0
  2600. SDL_MICRO_VERSION=13
  2601. SDL_INTERFACE_AGE=1
  2602. SDL_BINARY_AGE=13
  2603. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2604. # libtool versioning
  2605. case `pwd` in
  2606. *\ * | *\ *)
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2608. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2609. esac
  2610. macro_version='2.4.2'
  2611. macro_revision='1.3337'
  2612. ltmain="$ac_aux_dir/ltmain.sh"
  2613. # Make sure we can run config.sub.
  2614. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2615. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2617. $as_echo_n "checking build system type... " >&6; }
  2618. if ${ac_cv_build+:} false; then :
  2619. $as_echo_n "(cached) " >&6
  2620. else
  2621. ac_build_alias=$build_alias
  2622. test "x$ac_build_alias" = x &&
  2623. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2624. test "x$ac_build_alias" = x &&
  2625. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2626. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2627. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2628. fi
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2630. $as_echo "$ac_cv_build" >&6; }
  2631. case $ac_cv_build in
  2632. *-*-*) ;;
  2633. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2634. esac
  2635. build=$ac_cv_build
  2636. ac_save_IFS=$IFS; IFS='-'
  2637. set x $ac_cv_build
  2638. shift
  2639. build_cpu=$1
  2640. build_vendor=$2
  2641. shift; shift
  2642. # Remember, the first character of IFS is used to create $*,
  2643. # except with old shells:
  2644. build_os=$*
  2645. IFS=$ac_save_IFS
  2646. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2648. $as_echo_n "checking host system type... " >&6; }
  2649. if ${ac_cv_host+:} false; then :
  2650. $as_echo_n "(cached) " >&6
  2651. else
  2652. if test "x$host_alias" = x; then
  2653. ac_cv_host=$ac_cv_build
  2654. else
  2655. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2656. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2657. fi
  2658. fi
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2660. $as_echo "$ac_cv_host" >&6; }
  2661. case $ac_cv_host in
  2662. *-*-*) ;;
  2663. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2664. esac
  2665. host=$ac_cv_host
  2666. ac_save_IFS=$IFS; IFS='-'
  2667. set x $ac_cv_host
  2668. shift
  2669. host_cpu=$1
  2670. host_vendor=$2
  2671. shift; shift
  2672. # Remember, the first character of IFS is used to create $*,
  2673. # except with old shells:
  2674. host_os=$*
  2675. IFS=$ac_save_IFS
  2676. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2677. # Backslashify metacharacters that are still active within
  2678. # double-quoted strings.
  2679. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2680. # Same as above, but do not quote variable references.
  2681. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2682. # Sed substitution to delay expansion of an escaped shell variable in a
  2683. # double_quote_subst'ed string.
  2684. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2685. # Sed substitution to delay expansion of an escaped single quote.
  2686. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2687. # Sed substitution to avoid accidental globbing in evaled expressions
  2688. no_glob_subst='s/\*/\\\*/g'
  2689. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2690. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2691. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2693. $as_echo_n "checking how to print strings... " >&6; }
  2694. # Test print first, because it will be a builtin if present.
  2695. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2696. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2697. ECHO='print -r --'
  2698. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2699. ECHO='printf %s\n'
  2700. else
  2701. # Use this function as a fallback that always works.
  2702. func_fallback_echo ()
  2703. {
  2704. eval 'cat <<_LTECHO_EOF
  2705. $1
  2706. _LTECHO_EOF'
  2707. }
  2708. ECHO='func_fallback_echo'
  2709. fi
  2710. # func_echo_all arg...
  2711. # Invoke $ECHO with all args, space-separated.
  2712. func_echo_all ()
  2713. {
  2714. $ECHO ""
  2715. }
  2716. case "$ECHO" in
  2717. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2718. $as_echo "printf" >&6; } ;;
  2719. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2720. $as_echo "print -r" >&6; } ;;
  2721. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2722. $as_echo "cat" >&6; } ;;
  2723. esac
  2724. ac_ext=c
  2725. ac_cpp='$CPP $CPPFLAGS'
  2726. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2727. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2728. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2729. if test -n "$ac_tool_prefix"; then
  2730. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2731. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2733. $as_echo_n "checking for $ac_word... " >&6; }
  2734. if ${ac_cv_prog_CC+:} false; then :
  2735. $as_echo_n "(cached) " >&6
  2736. else
  2737. if test -n "$CC"; then
  2738. ac_cv_prog_CC="$CC" # Let the user override the test.
  2739. else
  2740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2741. for as_dir in $PATH
  2742. do
  2743. IFS=$as_save_IFS
  2744. test -z "$as_dir" && as_dir=.
  2745. for ac_exec_ext in '' $ac_executable_extensions; do
  2746. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2747. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2749. break 2
  2750. fi
  2751. done
  2752. done
  2753. IFS=$as_save_IFS
  2754. fi
  2755. fi
  2756. CC=$ac_cv_prog_CC
  2757. if test -n "$CC"; then
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2759. $as_echo "$CC" >&6; }
  2760. else
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2762. $as_echo "no" >&6; }
  2763. fi
  2764. fi
  2765. if test -z "$ac_cv_prog_CC"; then
  2766. ac_ct_CC=$CC
  2767. # Extract the first word of "gcc", so it can be a program name with args.
  2768. set dummy gcc; ac_word=$2
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2770. $as_echo_n "checking for $ac_word... " >&6; }
  2771. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2772. $as_echo_n "(cached) " >&6
  2773. else
  2774. if test -n "$ac_ct_CC"; then
  2775. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2776. else
  2777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2778. for as_dir in $PATH
  2779. do
  2780. IFS=$as_save_IFS
  2781. test -z "$as_dir" && as_dir=.
  2782. for ac_exec_ext in '' $ac_executable_extensions; do
  2783. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2784. ac_cv_prog_ac_ct_CC="gcc"
  2785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2786. break 2
  2787. fi
  2788. done
  2789. done
  2790. IFS=$as_save_IFS
  2791. fi
  2792. fi
  2793. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2794. if test -n "$ac_ct_CC"; then
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2796. $as_echo "$ac_ct_CC" >&6; }
  2797. else
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2799. $as_echo "no" >&6; }
  2800. fi
  2801. if test "x$ac_ct_CC" = x; then
  2802. CC=""
  2803. else
  2804. case $cross_compiling:$ac_tool_warned in
  2805. yes:)
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2807. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2808. ac_tool_warned=yes ;;
  2809. esac
  2810. CC=$ac_ct_CC
  2811. fi
  2812. else
  2813. CC="$ac_cv_prog_CC"
  2814. fi
  2815. if test -z "$CC"; then
  2816. if test -n "$ac_tool_prefix"; then
  2817. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2818. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2820. $as_echo_n "checking for $ac_word... " >&6; }
  2821. if ${ac_cv_prog_CC+:} false; then :
  2822. $as_echo_n "(cached) " >&6
  2823. else
  2824. if test -n "$CC"; then
  2825. ac_cv_prog_CC="$CC" # Let the user override the test.
  2826. else
  2827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2828. for as_dir in $PATH
  2829. do
  2830. IFS=$as_save_IFS
  2831. test -z "$as_dir" && as_dir=.
  2832. for ac_exec_ext in '' $ac_executable_extensions; do
  2833. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2834. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2835. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2836. break 2
  2837. fi
  2838. done
  2839. done
  2840. IFS=$as_save_IFS
  2841. fi
  2842. fi
  2843. CC=$ac_cv_prog_CC
  2844. if test -n "$CC"; then
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2846. $as_echo "$CC" >&6; }
  2847. else
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2849. $as_echo "no" >&6; }
  2850. fi
  2851. fi
  2852. fi
  2853. if test -z "$CC"; then
  2854. # Extract the first word of "cc", so it can be a program name with args.
  2855. set dummy cc; ac_word=$2
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2857. $as_echo_n "checking for $ac_word... " >&6; }
  2858. if ${ac_cv_prog_CC+:} false; then :
  2859. $as_echo_n "(cached) " >&6
  2860. else
  2861. if test -n "$CC"; then
  2862. ac_cv_prog_CC="$CC" # Let the user override the test.
  2863. else
  2864. ac_prog_rejected=no
  2865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2866. for as_dir in $PATH
  2867. do
  2868. IFS=$as_save_IFS
  2869. test -z "$as_dir" && as_dir=.
  2870. for ac_exec_ext in '' $ac_executable_extensions; do
  2871. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2872. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2873. ac_prog_rejected=yes
  2874. continue
  2875. fi
  2876. ac_cv_prog_CC="cc"
  2877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2878. break 2
  2879. fi
  2880. done
  2881. done
  2882. IFS=$as_save_IFS
  2883. if test $ac_prog_rejected = yes; then
  2884. # We found a bogon in the path, so make sure we never use it.
  2885. set dummy $ac_cv_prog_CC
  2886. shift
  2887. if test $# != 0; then
  2888. # We chose a different compiler from the bogus one.
  2889. # However, it has the same basename, so the bogon will be chosen
  2890. # first if we set CC to just the basename; use the full file name.
  2891. shift
  2892. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2893. fi
  2894. fi
  2895. fi
  2896. fi
  2897. CC=$ac_cv_prog_CC
  2898. if test -n "$CC"; then
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2900. $as_echo "$CC" >&6; }
  2901. else
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2903. $as_echo "no" >&6; }
  2904. fi
  2905. fi
  2906. if test -z "$CC"; then
  2907. if test -n "$ac_tool_prefix"; then
  2908. for ac_prog in cl.exe
  2909. do
  2910. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2911. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2913. $as_echo_n "checking for $ac_word... " >&6; }
  2914. if ${ac_cv_prog_CC+:} false; then :
  2915. $as_echo_n "(cached) " >&6
  2916. else
  2917. if test -n "$CC"; then
  2918. ac_cv_prog_CC="$CC" # Let the user override the test.
  2919. else
  2920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2921. for as_dir in $PATH
  2922. do
  2923. IFS=$as_save_IFS
  2924. test -z "$as_dir" && as_dir=.
  2925. for ac_exec_ext in '' $ac_executable_extensions; do
  2926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2927. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2929. break 2
  2930. fi
  2931. done
  2932. done
  2933. IFS=$as_save_IFS
  2934. fi
  2935. fi
  2936. CC=$ac_cv_prog_CC
  2937. if test -n "$CC"; then
  2938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2939. $as_echo "$CC" >&6; }
  2940. else
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2942. $as_echo "no" >&6; }
  2943. fi
  2944. test -n "$CC" && break
  2945. done
  2946. fi
  2947. if test -z "$CC"; then
  2948. ac_ct_CC=$CC
  2949. for ac_prog in cl.exe
  2950. do
  2951. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2952. set dummy $ac_prog; ac_word=$2
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2954. $as_echo_n "checking for $ac_word... " >&6; }
  2955. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2956. $as_echo_n "(cached) " >&6
  2957. else
  2958. if test -n "$ac_ct_CC"; then
  2959. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2960. else
  2961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2962. for as_dir in $PATH
  2963. do
  2964. IFS=$as_save_IFS
  2965. test -z "$as_dir" && as_dir=.
  2966. for ac_exec_ext in '' $ac_executable_extensions; do
  2967. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2968. ac_cv_prog_ac_ct_CC="$ac_prog"
  2969. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2970. break 2
  2971. fi
  2972. done
  2973. done
  2974. IFS=$as_save_IFS
  2975. fi
  2976. fi
  2977. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2978. if test -n "$ac_ct_CC"; then
  2979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2980. $as_echo "$ac_ct_CC" >&6; }
  2981. else
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2983. $as_echo "no" >&6; }
  2984. fi
  2985. test -n "$ac_ct_CC" && break
  2986. done
  2987. if test "x$ac_ct_CC" = x; then
  2988. CC=""
  2989. else
  2990. case $cross_compiling:$ac_tool_warned in
  2991. yes:)
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2993. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2994. ac_tool_warned=yes ;;
  2995. esac
  2996. CC=$ac_ct_CC
  2997. fi
  2998. fi
  2999. fi
  3000. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3001. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3002. as_fn_error $? "no acceptable C compiler found in \$PATH
  3003. See \`config.log' for more details" "$LINENO" 5; }
  3004. # Provide some information about the compiler.
  3005. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3006. set X $ac_compile
  3007. ac_compiler=$2
  3008. for ac_option in --version -v -V -qversion; do
  3009. { { ac_try="$ac_compiler $ac_option >&5"
  3010. case "(($ac_try" in
  3011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3012. *) ac_try_echo=$ac_try;;
  3013. esac
  3014. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3015. $as_echo "$ac_try_echo"; } >&5
  3016. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3017. ac_status=$?
  3018. if test -s conftest.err; then
  3019. sed '10a\
  3020. ... rest of stderr output deleted ...
  3021. 10q' conftest.err >conftest.er1
  3022. cat conftest.er1 >&5
  3023. fi
  3024. rm -f conftest.er1 conftest.err
  3025. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3026. test $ac_status = 0; }
  3027. done
  3028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3029. /* end confdefs.h. */
  3030. int
  3031. main ()
  3032. {
  3033. ;
  3034. return 0;
  3035. }
  3036. _ACEOF
  3037. ac_clean_files_save=$ac_clean_files
  3038. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3039. # Try to create an executable without -o first, disregard a.out.
  3040. # It will help us diagnose broken compilers, and finding out an intuition
  3041. # of exeext.
  3042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3043. $as_echo_n "checking whether the C compiler works... " >&6; }
  3044. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3045. # The possible output files:
  3046. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3047. ac_rmfiles=
  3048. for ac_file in $ac_files
  3049. do
  3050. case $ac_file in
  3051. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3052. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3053. esac
  3054. done
  3055. rm -f $ac_rmfiles
  3056. if { { ac_try="$ac_link_default"
  3057. case "(($ac_try" in
  3058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3059. *) ac_try_echo=$ac_try;;
  3060. esac
  3061. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3062. $as_echo "$ac_try_echo"; } >&5
  3063. (eval "$ac_link_default") 2>&5
  3064. ac_status=$?
  3065. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3066. test $ac_status = 0; }; then :
  3067. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3068. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3069. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3070. # so that the user can short-circuit this test for compilers unknown to
  3071. # Autoconf.
  3072. for ac_file in $ac_files ''
  3073. do
  3074. test -f "$ac_file" || continue
  3075. case $ac_file in
  3076. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3077. ;;
  3078. [ab].out )
  3079. # We found the default executable, but exeext='' is most
  3080. # certainly right.
  3081. break;;
  3082. *.* )
  3083. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3084. then :; else
  3085. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3086. fi
  3087. # We set ac_cv_exeext here because the later test for it is not
  3088. # safe: cross compilers may not add the suffix if given an `-o'
  3089. # argument, so we may need to know it at that point already.
  3090. # Even if this section looks crufty: it has the advantage of
  3091. # actually working.
  3092. break;;
  3093. * )
  3094. break;;
  3095. esac
  3096. done
  3097. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3098. else
  3099. ac_file=''
  3100. fi
  3101. if test -z "$ac_file"; then :
  3102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3103. $as_echo "no" >&6; }
  3104. $as_echo "$as_me: failed program was:" >&5
  3105. sed 's/^/| /' conftest.$ac_ext >&5
  3106. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3107. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3108. as_fn_error 77 "C compiler cannot create executables
  3109. See \`config.log' for more details" "$LINENO" 5; }
  3110. else
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3112. $as_echo "yes" >&6; }
  3113. fi
  3114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3115. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3117. $as_echo "$ac_file" >&6; }
  3118. ac_exeext=$ac_cv_exeext
  3119. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3120. ac_clean_files=$ac_clean_files_save
  3121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3122. $as_echo_n "checking for suffix of executables... " >&6; }
  3123. if { { ac_try="$ac_link"
  3124. case "(($ac_try" in
  3125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3126. *) ac_try_echo=$ac_try;;
  3127. esac
  3128. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3129. $as_echo "$ac_try_echo"; } >&5
  3130. (eval "$ac_link") 2>&5
  3131. ac_status=$?
  3132. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3133. test $ac_status = 0; }; then :
  3134. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3135. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3136. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3137. # `rm'.
  3138. for ac_file in conftest.exe conftest conftest.*; do
  3139. test -f "$ac_file" || continue
  3140. case $ac_file in
  3141. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3142. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3143. break;;
  3144. * ) break;;
  3145. esac
  3146. done
  3147. else
  3148. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3149. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3150. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3151. See \`config.log' for more details" "$LINENO" 5; }
  3152. fi
  3153. rm -f conftest conftest$ac_cv_exeext
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3155. $as_echo "$ac_cv_exeext" >&6; }
  3156. rm -f conftest.$ac_ext
  3157. EXEEXT=$ac_cv_exeext
  3158. ac_exeext=$EXEEXT
  3159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3160. /* end confdefs.h. */
  3161. #include <stdio.h>
  3162. int
  3163. main ()
  3164. {
  3165. FILE *f = fopen ("conftest.out", "w");
  3166. return ferror (f) || fclose (f) != 0;
  3167. ;
  3168. return 0;
  3169. }
  3170. _ACEOF
  3171. ac_clean_files="$ac_clean_files conftest.out"
  3172. # Check that the compiler produces executables we can run. If not, either
  3173. # the compiler is broken, or we cross compile.
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3175. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3176. if test "$cross_compiling" != yes; then
  3177. { { ac_try="$ac_link"
  3178. case "(($ac_try" in
  3179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3180. *) ac_try_echo=$ac_try;;
  3181. esac
  3182. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3183. $as_echo "$ac_try_echo"; } >&5
  3184. (eval "$ac_link") 2>&5
  3185. ac_status=$?
  3186. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3187. test $ac_status = 0; }
  3188. if { ac_try='./conftest$ac_cv_exeext'
  3189. { { case "(($ac_try" in
  3190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3191. *) ac_try_echo=$ac_try;;
  3192. esac
  3193. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3194. $as_echo "$ac_try_echo"; } >&5
  3195. (eval "$ac_try") 2>&5
  3196. ac_status=$?
  3197. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3198. test $ac_status = 0; }; }; then
  3199. cross_compiling=no
  3200. else
  3201. if test "$cross_compiling" = maybe; then
  3202. cross_compiling=yes
  3203. else
  3204. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3205. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3206. as_fn_error $? "cannot run C compiled programs.
  3207. If you meant to cross compile, use \`--host'.
  3208. See \`config.log' for more details" "$LINENO" 5; }
  3209. fi
  3210. fi
  3211. fi
  3212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3213. $as_echo "$cross_compiling" >&6; }
  3214. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3215. ac_clean_files=$ac_clean_files_save
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3217. $as_echo_n "checking for suffix of object files... " >&6; }
  3218. if ${ac_cv_objext+:} false; then :
  3219. $as_echo_n "(cached) " >&6
  3220. else
  3221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3222. /* end confdefs.h. */
  3223. int
  3224. main ()
  3225. {
  3226. ;
  3227. return 0;
  3228. }
  3229. _ACEOF
  3230. rm -f conftest.o conftest.obj
  3231. if { { ac_try="$ac_compile"
  3232. case "(($ac_try" in
  3233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3234. *) ac_try_echo=$ac_try;;
  3235. esac
  3236. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3237. $as_echo "$ac_try_echo"; } >&5
  3238. (eval "$ac_compile") 2>&5
  3239. ac_status=$?
  3240. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3241. test $ac_status = 0; }; then :
  3242. for ac_file in conftest.o conftest.obj conftest.*; do
  3243. test -f "$ac_file" || continue;
  3244. case $ac_file in
  3245. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3246. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3247. break;;
  3248. esac
  3249. done
  3250. else
  3251. $as_echo "$as_me: failed program was:" >&5
  3252. sed 's/^/| /' conftest.$ac_ext >&5
  3253. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3254. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3255. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3256. See \`config.log' for more details" "$LINENO" 5; }
  3257. fi
  3258. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3259. fi
  3260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3261. $as_echo "$ac_cv_objext" >&6; }
  3262. OBJEXT=$ac_cv_objext
  3263. ac_objext=$OBJEXT
  3264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3265. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3266. if ${ac_cv_c_compiler_gnu+:} false; then :
  3267. $as_echo_n "(cached) " >&6
  3268. else
  3269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3270. /* end confdefs.h. */
  3271. int
  3272. main ()
  3273. {
  3274. #ifndef __GNUC__
  3275. choke me
  3276. #endif
  3277. ;
  3278. return 0;
  3279. }
  3280. _ACEOF
  3281. if ac_fn_c_try_compile "$LINENO"; then :
  3282. ac_compiler_gnu=yes
  3283. else
  3284. ac_compiler_gnu=no
  3285. fi
  3286. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3287. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3288. fi
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3290. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3291. if test $ac_compiler_gnu = yes; then
  3292. GCC=yes
  3293. else
  3294. GCC=
  3295. fi
  3296. ac_test_CFLAGS=${CFLAGS+set}
  3297. ac_save_CFLAGS=$CFLAGS
  3298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3299. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3300. if ${ac_cv_prog_cc_g+:} false; then :
  3301. $as_echo_n "(cached) " >&6
  3302. else
  3303. ac_save_c_werror_flag=$ac_c_werror_flag
  3304. ac_c_werror_flag=yes
  3305. ac_cv_prog_cc_g=no
  3306. CFLAGS="-g"
  3307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3308. /* end confdefs.h. */
  3309. int
  3310. main ()
  3311. {
  3312. ;
  3313. return 0;
  3314. }
  3315. _ACEOF
  3316. if ac_fn_c_try_compile "$LINENO"; then :
  3317. ac_cv_prog_cc_g=yes
  3318. else
  3319. CFLAGS=""
  3320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3321. /* end confdefs.h. */
  3322. int
  3323. main ()
  3324. {
  3325. ;
  3326. return 0;
  3327. }
  3328. _ACEOF
  3329. if ac_fn_c_try_compile "$LINENO"; then :
  3330. else
  3331. ac_c_werror_flag=$ac_save_c_werror_flag
  3332. CFLAGS="-g"
  3333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3334. /* end confdefs.h. */
  3335. int
  3336. main ()
  3337. {
  3338. ;
  3339. return 0;
  3340. }
  3341. _ACEOF
  3342. if ac_fn_c_try_compile "$LINENO"; then :
  3343. ac_cv_prog_cc_g=yes
  3344. fi
  3345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3346. fi
  3347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3348. fi
  3349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3350. ac_c_werror_flag=$ac_save_c_werror_flag
  3351. fi
  3352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3353. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3354. if test "$ac_test_CFLAGS" = set; then
  3355. CFLAGS=$ac_save_CFLAGS
  3356. elif test $ac_cv_prog_cc_g = yes; then
  3357. if test "$GCC" = yes; then
  3358. CFLAGS="-g -O2"
  3359. else
  3360. CFLAGS="-g"
  3361. fi
  3362. else
  3363. if test "$GCC" = yes; then
  3364. CFLAGS="-O2"
  3365. else
  3366. CFLAGS=
  3367. fi
  3368. fi
  3369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3370. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3371. if ${ac_cv_prog_cc_c89+:} false; then :
  3372. $as_echo_n "(cached) " >&6
  3373. else
  3374. ac_cv_prog_cc_c89=no
  3375. ac_save_CC=$CC
  3376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3377. /* end confdefs.h. */
  3378. #include <stdarg.h>
  3379. #include <stdio.h>
  3380. struct stat;
  3381. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3382. struct buf { int x; };
  3383. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3384. static char *e (p, i)
  3385. char **p;
  3386. int i;
  3387. {
  3388. return p[i];
  3389. }
  3390. static char *f (char * (*g) (char **, int), char **p, ...)
  3391. {
  3392. char *s;
  3393. va_list v;
  3394. va_start (v,p);
  3395. s = g (p, va_arg (v,int));
  3396. va_end (v);
  3397. return s;
  3398. }
  3399. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3400. function prototypes and stuff, but not '\xHH' hex character constants.
  3401. These don't provoke an error unfortunately, instead are silently treated
  3402. as 'x'. The following induces an error, until -std is added to get
  3403. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3404. array size at least. It's necessary to write '\x00'==0 to get something
  3405. that's true only with -std. */
  3406. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3407. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3408. inside strings and character constants. */
  3409. #define FOO(x) 'x'
  3410. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3411. int test (int i, double x);
  3412. struct s1 {int (*f) (int a);};
  3413. struct s2 {int (*f) (double a);};
  3414. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3415. int argc;
  3416. char **argv;
  3417. int
  3418. main ()
  3419. {
  3420. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3421. ;
  3422. return 0;
  3423. }
  3424. _ACEOF
  3425. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3426. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3427. do
  3428. CC="$ac_save_CC $ac_arg"
  3429. if ac_fn_c_try_compile "$LINENO"; then :
  3430. ac_cv_prog_cc_c89=$ac_arg
  3431. fi
  3432. rm -f core conftest.err conftest.$ac_objext
  3433. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3434. done
  3435. rm -f conftest.$ac_ext
  3436. CC=$ac_save_CC
  3437. fi
  3438. # AC_CACHE_VAL
  3439. case "x$ac_cv_prog_cc_c89" in
  3440. x)
  3441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3442. $as_echo "none needed" >&6; } ;;
  3443. xno)
  3444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3445. $as_echo "unsupported" >&6; } ;;
  3446. *)
  3447. CC="$CC $ac_cv_prog_cc_c89"
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3449. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3450. esac
  3451. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3452. fi
  3453. ac_ext=c
  3454. ac_cpp='$CPP $CPPFLAGS'
  3455. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3456. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3457. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3459. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3460. if ${ac_cv_path_SED+:} false; then :
  3461. $as_echo_n "(cached) " >&6
  3462. else
  3463. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3464. for ac_i in 1 2 3 4 5 6 7; do
  3465. ac_script="$ac_script$as_nl$ac_script"
  3466. done
  3467. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3468. { ac_script=; unset ac_script;}
  3469. if test -z "$SED"; then
  3470. ac_path_SED_found=false
  3471. # Loop through the user's path and test for each of PROGNAME-LIST
  3472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3473. for as_dir in $PATH
  3474. do
  3475. IFS=$as_save_IFS
  3476. test -z "$as_dir" && as_dir=.
  3477. for ac_prog in sed gsed; do
  3478. for ac_exec_ext in '' $ac_executable_extensions; do
  3479. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3480. as_fn_executable_p "$ac_path_SED" || continue
  3481. # Check for GNU ac_path_SED and select it if it is found.
  3482. # Check for GNU $ac_path_SED
  3483. case `"$ac_path_SED" --version 2>&1` in
  3484. *GNU*)
  3485. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3486. *)
  3487. ac_count=0
  3488. $as_echo_n 0123456789 >"conftest.in"
  3489. while :
  3490. do
  3491. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3492. mv "conftest.tmp" "conftest.in"
  3493. cp "conftest.in" "conftest.nl"
  3494. $as_echo '' >> "conftest.nl"
  3495. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3496. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3497. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3498. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3499. # Best one so far, save it but keep looking for a better one
  3500. ac_cv_path_SED="$ac_path_SED"
  3501. ac_path_SED_max=$ac_count
  3502. fi
  3503. # 10*(2^10) chars as input seems more than enough
  3504. test $ac_count -gt 10 && break
  3505. done
  3506. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3507. esac
  3508. $ac_path_SED_found && break 3
  3509. done
  3510. done
  3511. done
  3512. IFS=$as_save_IFS
  3513. if test -z "$ac_cv_path_SED"; then
  3514. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3515. fi
  3516. else
  3517. ac_cv_path_SED=$SED
  3518. fi
  3519. fi
  3520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3521. $as_echo "$ac_cv_path_SED" >&6; }
  3522. SED="$ac_cv_path_SED"
  3523. rm -f conftest.sed
  3524. test -z "$SED" && SED=sed
  3525. Xsed="$SED -e 1s/^X//"
  3526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3527. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3528. if ${ac_cv_path_GREP+:} false; then :
  3529. $as_echo_n "(cached) " >&6
  3530. else
  3531. if test -z "$GREP"; then
  3532. ac_path_GREP_found=false
  3533. # Loop through the user's path and test for each of PROGNAME-LIST
  3534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3535. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3536. do
  3537. IFS=$as_save_IFS
  3538. test -z "$as_dir" && as_dir=.
  3539. for ac_prog in grep ggrep; do
  3540. for ac_exec_ext in '' $ac_executable_extensions; do
  3541. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3542. as_fn_executable_p "$ac_path_GREP" || continue
  3543. # Check for GNU ac_path_GREP and select it if it is found.
  3544. # Check for GNU $ac_path_GREP
  3545. case `"$ac_path_GREP" --version 2>&1` in
  3546. *GNU*)
  3547. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3548. *)
  3549. ac_count=0
  3550. $as_echo_n 0123456789 >"conftest.in"
  3551. while :
  3552. do
  3553. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3554. mv "conftest.tmp" "conftest.in"
  3555. cp "conftest.in" "conftest.nl"
  3556. $as_echo 'GREP' >> "conftest.nl"
  3557. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3558. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3559. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3560. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3561. # Best one so far, save it but keep looking for a better one
  3562. ac_cv_path_GREP="$ac_path_GREP"
  3563. ac_path_GREP_max=$ac_count
  3564. fi
  3565. # 10*(2^10) chars as input seems more than enough
  3566. test $ac_count -gt 10 && break
  3567. done
  3568. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3569. esac
  3570. $ac_path_GREP_found && break 3
  3571. done
  3572. done
  3573. done
  3574. IFS=$as_save_IFS
  3575. if test -z "$ac_cv_path_GREP"; then
  3576. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3577. fi
  3578. else
  3579. ac_cv_path_GREP=$GREP
  3580. fi
  3581. fi
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3583. $as_echo "$ac_cv_path_GREP" >&6; }
  3584. GREP="$ac_cv_path_GREP"
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3586. $as_echo_n "checking for egrep... " >&6; }
  3587. if ${ac_cv_path_EGREP+:} false; then :
  3588. $as_echo_n "(cached) " >&6
  3589. else
  3590. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3591. then ac_cv_path_EGREP="$GREP -E"
  3592. else
  3593. if test -z "$EGREP"; then
  3594. ac_path_EGREP_found=false
  3595. # Loop through the user's path and test for each of PROGNAME-LIST
  3596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3597. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3598. do
  3599. IFS=$as_save_IFS
  3600. test -z "$as_dir" && as_dir=.
  3601. for ac_prog in egrep; do
  3602. for ac_exec_ext in '' $ac_executable_extensions; do
  3603. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3604. as_fn_executable_p "$ac_path_EGREP" || continue
  3605. # Check for GNU ac_path_EGREP and select it if it is found.
  3606. # Check for GNU $ac_path_EGREP
  3607. case `"$ac_path_EGREP" --version 2>&1` in
  3608. *GNU*)
  3609. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3610. *)
  3611. ac_count=0
  3612. $as_echo_n 0123456789 >"conftest.in"
  3613. while :
  3614. do
  3615. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3616. mv "conftest.tmp" "conftest.in"
  3617. cp "conftest.in" "conftest.nl"
  3618. $as_echo 'EGREP' >> "conftest.nl"
  3619. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3620. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3621. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3622. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3623. # Best one so far, save it but keep looking for a better one
  3624. ac_cv_path_EGREP="$ac_path_EGREP"
  3625. ac_path_EGREP_max=$ac_count
  3626. fi
  3627. # 10*(2^10) chars as input seems more than enough
  3628. test $ac_count -gt 10 && break
  3629. done
  3630. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3631. esac
  3632. $ac_path_EGREP_found && break 3
  3633. done
  3634. done
  3635. done
  3636. IFS=$as_save_IFS
  3637. if test -z "$ac_cv_path_EGREP"; then
  3638. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3639. fi
  3640. else
  3641. ac_cv_path_EGREP=$EGREP
  3642. fi
  3643. fi
  3644. fi
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3646. $as_echo "$ac_cv_path_EGREP" >&6; }
  3647. EGREP="$ac_cv_path_EGREP"
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3649. $as_echo_n "checking for fgrep... " >&6; }
  3650. if ${ac_cv_path_FGREP+:} false; then :
  3651. $as_echo_n "(cached) " >&6
  3652. else
  3653. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3654. then ac_cv_path_FGREP="$GREP -F"
  3655. else
  3656. if test -z "$FGREP"; then
  3657. ac_path_FGREP_found=false
  3658. # Loop through the user's path and test for each of PROGNAME-LIST
  3659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3660. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3661. do
  3662. IFS=$as_save_IFS
  3663. test -z "$as_dir" && as_dir=.
  3664. for ac_prog in fgrep; do
  3665. for ac_exec_ext in '' $ac_executable_extensions; do
  3666. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3667. as_fn_executable_p "$ac_path_FGREP" || continue
  3668. # Check for GNU ac_path_FGREP and select it if it is found.
  3669. # Check for GNU $ac_path_FGREP
  3670. case `"$ac_path_FGREP" --version 2>&1` in
  3671. *GNU*)
  3672. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3673. *)
  3674. ac_count=0
  3675. $as_echo_n 0123456789 >"conftest.in"
  3676. while :
  3677. do
  3678. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3679. mv "conftest.tmp" "conftest.in"
  3680. cp "conftest.in" "conftest.nl"
  3681. $as_echo 'FGREP' >> "conftest.nl"
  3682. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3683. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3684. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3685. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3686. # Best one so far, save it but keep looking for a better one
  3687. ac_cv_path_FGREP="$ac_path_FGREP"
  3688. ac_path_FGREP_max=$ac_count
  3689. fi
  3690. # 10*(2^10) chars as input seems more than enough
  3691. test $ac_count -gt 10 && break
  3692. done
  3693. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3694. esac
  3695. $ac_path_FGREP_found && break 3
  3696. done
  3697. done
  3698. done
  3699. IFS=$as_save_IFS
  3700. if test -z "$ac_cv_path_FGREP"; then
  3701. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3702. fi
  3703. else
  3704. ac_cv_path_FGREP=$FGREP
  3705. fi
  3706. fi
  3707. fi
  3708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3709. $as_echo "$ac_cv_path_FGREP" >&6; }
  3710. FGREP="$ac_cv_path_FGREP"
  3711. test -z "$GREP" && GREP=grep
  3712. # Check whether --with-gnu-ld was given.
  3713. if test "${with_gnu_ld+set}" = set; then :
  3714. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3715. else
  3716. with_gnu_ld=no
  3717. fi
  3718. ac_prog=ld
  3719. if test "$GCC" = yes; then
  3720. # Check if gcc -print-prog-name=ld gives a path.
  3721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3722. $as_echo_n "checking for ld used by $CC... " >&6; }
  3723. case $host in
  3724. *-*-mingw*)
  3725. # gcc leaves a trailing carriage return which upsets mingw
  3726. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3727. *)
  3728. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3729. esac
  3730. case $ac_prog in
  3731. # Accept absolute paths.
  3732. [\\/]* | ?:[\\/]*)
  3733. re_direlt='/[^/][^/]*/\.\./'
  3734. # Canonicalize the pathname of ld
  3735. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3736. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3737. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3738. done
  3739. test -z "$LD" && LD="$ac_prog"
  3740. ;;
  3741. "")
  3742. # If it fails, then pretend we aren't using GCC.
  3743. ac_prog=ld
  3744. ;;
  3745. *)
  3746. # If it is relative, then search for the first ld in PATH.
  3747. with_gnu_ld=unknown
  3748. ;;
  3749. esac
  3750. elif test "$with_gnu_ld" = yes; then
  3751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3752. $as_echo_n "checking for GNU ld... " >&6; }
  3753. else
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3755. $as_echo_n "checking for non-GNU ld... " >&6; }
  3756. fi
  3757. if ${lt_cv_path_LD+:} false; then :
  3758. $as_echo_n "(cached) " >&6
  3759. else
  3760. if test -z "$LD"; then
  3761. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3762. for ac_dir in $PATH; do
  3763. IFS="$lt_save_ifs"
  3764. test -z "$ac_dir" && ac_dir=.
  3765. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3766. lt_cv_path_LD="$ac_dir/$ac_prog"
  3767. # Check to see if the program is GNU ld. I'd rather use --version,
  3768. # but apparently some variants of GNU ld only accept -v.
  3769. # Break only if it was the GNU/non-GNU ld that we prefer.
  3770. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3771. *GNU* | *'with BFD'*)
  3772. test "$with_gnu_ld" != no && break
  3773. ;;
  3774. *)
  3775. test "$with_gnu_ld" != yes && break
  3776. ;;
  3777. esac
  3778. fi
  3779. done
  3780. IFS="$lt_save_ifs"
  3781. else
  3782. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3783. fi
  3784. fi
  3785. LD="$lt_cv_path_LD"
  3786. if test -n "$LD"; then
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3788. $as_echo "$LD" >&6; }
  3789. else
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3791. $as_echo "no" >&6; }
  3792. fi
  3793. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3795. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3796. if ${lt_cv_prog_gnu_ld+:} false; then :
  3797. $as_echo_n "(cached) " >&6
  3798. else
  3799. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3800. case `$LD -v 2>&1 </dev/null` in
  3801. *GNU* | *'with BFD'*)
  3802. lt_cv_prog_gnu_ld=yes
  3803. ;;
  3804. *)
  3805. lt_cv_prog_gnu_ld=no
  3806. ;;
  3807. esac
  3808. fi
  3809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3810. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3811. with_gnu_ld=$lt_cv_prog_gnu_ld
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3813. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3814. if ${lt_cv_path_NM+:} false; then :
  3815. $as_echo_n "(cached) " >&6
  3816. else
  3817. if test -n "$NM"; then
  3818. # Let the user override the test.
  3819. lt_cv_path_NM="$NM"
  3820. else
  3821. lt_nm_to_check="${ac_tool_prefix}nm"
  3822. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3823. lt_nm_to_check="$lt_nm_to_check nm"
  3824. fi
  3825. for lt_tmp_nm in $lt_nm_to_check; do
  3826. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3827. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3828. IFS="$lt_save_ifs"
  3829. test -z "$ac_dir" && ac_dir=.
  3830. tmp_nm="$ac_dir/$lt_tmp_nm"
  3831. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3832. # Check to see if the nm accepts a BSD-compat flag.
  3833. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3834. # nm: unknown option "B" ignored
  3835. # Tru64's nm complains that /dev/null is an invalid object file
  3836. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3837. */dev/null* | *'Invalid file or object type'*)
  3838. lt_cv_path_NM="$tmp_nm -B"
  3839. break
  3840. ;;
  3841. *)
  3842. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3843. */dev/null*)
  3844. lt_cv_path_NM="$tmp_nm -p"
  3845. break
  3846. ;;
  3847. *)
  3848. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3849. continue # so that we can try to find one that supports BSD flags
  3850. ;;
  3851. esac
  3852. ;;
  3853. esac
  3854. fi
  3855. done
  3856. IFS="$lt_save_ifs"
  3857. done
  3858. : ${lt_cv_path_NM=no}
  3859. fi
  3860. fi
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3862. $as_echo "$lt_cv_path_NM" >&6; }
  3863. if test "$lt_cv_path_NM" != "no"; then
  3864. NM="$lt_cv_path_NM"
  3865. else
  3866. # Didn't find any BSD compatible name lister, look for dumpbin.
  3867. if test -n "$DUMPBIN"; then :
  3868. # Let the user override the test.
  3869. else
  3870. if test -n "$ac_tool_prefix"; then
  3871. for ac_prog in dumpbin "link -dump"
  3872. do
  3873. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3874. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3876. $as_echo_n "checking for $ac_word... " >&6; }
  3877. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3878. $as_echo_n "(cached) " >&6
  3879. else
  3880. if test -n "$DUMPBIN"; then
  3881. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3882. else
  3883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3884. for as_dir in $PATH
  3885. do
  3886. IFS=$as_save_IFS
  3887. test -z "$as_dir" && as_dir=.
  3888. for ac_exec_ext in '' $ac_executable_extensions; do
  3889. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3890. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3892. break 2
  3893. fi
  3894. done
  3895. done
  3896. IFS=$as_save_IFS
  3897. fi
  3898. fi
  3899. DUMPBIN=$ac_cv_prog_DUMPBIN
  3900. if test -n "$DUMPBIN"; then
  3901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3902. $as_echo "$DUMPBIN" >&6; }
  3903. else
  3904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3905. $as_echo "no" >&6; }
  3906. fi
  3907. test -n "$DUMPBIN" && break
  3908. done
  3909. fi
  3910. if test -z "$DUMPBIN"; then
  3911. ac_ct_DUMPBIN=$DUMPBIN
  3912. for ac_prog in dumpbin "link -dump"
  3913. do
  3914. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3915. set dummy $ac_prog; ac_word=$2
  3916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3917. $as_echo_n "checking for $ac_word... " >&6; }
  3918. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3919. $as_echo_n "(cached) " >&6
  3920. else
  3921. if test -n "$ac_ct_DUMPBIN"; then
  3922. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3923. else
  3924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3925. for as_dir in $PATH
  3926. do
  3927. IFS=$as_save_IFS
  3928. test -z "$as_dir" && as_dir=.
  3929. for ac_exec_ext in '' $ac_executable_extensions; do
  3930. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3931. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3932. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3933. break 2
  3934. fi
  3935. done
  3936. done
  3937. IFS=$as_save_IFS
  3938. fi
  3939. fi
  3940. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3941. if test -n "$ac_ct_DUMPBIN"; then
  3942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3943. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3944. else
  3945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3946. $as_echo "no" >&6; }
  3947. fi
  3948. test -n "$ac_ct_DUMPBIN" && break
  3949. done
  3950. if test "x$ac_ct_DUMPBIN" = x; then
  3951. DUMPBIN=":"
  3952. else
  3953. case $cross_compiling:$ac_tool_warned in
  3954. yes:)
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3956. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3957. ac_tool_warned=yes ;;
  3958. esac
  3959. DUMPBIN=$ac_ct_DUMPBIN
  3960. fi
  3961. fi
  3962. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3963. *COFF*)
  3964. DUMPBIN="$DUMPBIN -symbols"
  3965. ;;
  3966. *)
  3967. DUMPBIN=:
  3968. ;;
  3969. esac
  3970. fi
  3971. if test "$DUMPBIN" != ":"; then
  3972. NM="$DUMPBIN"
  3973. fi
  3974. fi
  3975. test -z "$NM" && NM=nm
  3976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3977. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3978. if ${lt_cv_nm_interface+:} false; then :
  3979. $as_echo_n "(cached) " >&6
  3980. else
  3981. lt_cv_nm_interface="BSD nm"
  3982. echo "int some_variable = 0;" > conftest.$ac_ext
  3983. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3984. (eval "$ac_compile" 2>conftest.err)
  3985. cat conftest.err >&5
  3986. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3987. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3988. cat conftest.err >&5
  3989. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3990. cat conftest.out >&5
  3991. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3992. lt_cv_nm_interface="MS dumpbin"
  3993. fi
  3994. rm -f conftest*
  3995. fi
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3997. $as_echo "$lt_cv_nm_interface" >&6; }
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3999. $as_echo_n "checking whether ln -s works... " >&6; }
  4000. LN_S=$as_ln_s
  4001. if test "$LN_S" = "ln -s"; then
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4003. $as_echo "yes" >&6; }
  4004. else
  4005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4006. $as_echo "no, using $LN_S" >&6; }
  4007. fi
  4008. # find the maximum length of command line arguments
  4009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4010. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4011. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4012. $as_echo_n "(cached) " >&6
  4013. else
  4014. i=0
  4015. teststring="ABCD"
  4016. case $build_os in
  4017. msdosdjgpp*)
  4018. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4019. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4020. # during glob expansion). Even if it were fixed, the result of this
  4021. # check would be larger than it should be.
  4022. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4023. ;;
  4024. gnu*)
  4025. # Under GNU Hurd, this test is not required because there is
  4026. # no limit to the length of command line arguments.
  4027. # Libtool will interpret -1 as no limit whatsoever
  4028. lt_cv_sys_max_cmd_len=-1;
  4029. ;;
  4030. cygwin* | mingw* | cegcc*)
  4031. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4032. # about 5 minutes as the teststring grows exponentially.
  4033. # Worse, since 9x/ME are not pre-emptively multitasking,
  4034. # you end up with a "frozen" computer, even though with patience
  4035. # the test eventually succeeds (with a max line length of 256k).
  4036. # Instead, let's just punt: use the minimum linelength reported by
  4037. # all of the supported platforms: 8192 (on NT/2K/XP).
  4038. lt_cv_sys_max_cmd_len=8192;
  4039. ;;
  4040. mint*)
  4041. # On MiNT this can take a long time and run out of memory.
  4042. lt_cv_sys_max_cmd_len=8192;
  4043. ;;
  4044. amigaos*)
  4045. # On AmigaOS with pdksh, this test takes hours, literally.
  4046. # So we just punt and use a minimum line length of 8192.
  4047. lt_cv_sys_max_cmd_len=8192;
  4048. ;;
  4049. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4050. # This has been around since 386BSD, at least. Likely further.
  4051. if test -x /sbin/sysctl; then
  4052. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4053. elif test -x /usr/sbin/sysctl; then
  4054. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4055. else
  4056. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4057. fi
  4058. # And add a safety zone
  4059. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4060. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4061. ;;
  4062. interix*)
  4063. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4064. lt_cv_sys_max_cmd_len=196608
  4065. ;;
  4066. os2*)
  4067. # The test takes a long time on OS/2.
  4068. lt_cv_sys_max_cmd_len=8192
  4069. ;;
  4070. osf*)
  4071. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4072. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4073. # nice to cause kernel panics so lets avoid the loop below.
  4074. # First set a reasonable default.
  4075. lt_cv_sys_max_cmd_len=16384
  4076. #
  4077. if test -x /sbin/sysconfig; then
  4078. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4079. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4080. esac
  4081. fi
  4082. ;;
  4083. sco3.2v5*)
  4084. lt_cv_sys_max_cmd_len=102400
  4085. ;;
  4086. sysv5* | sco5v6* | sysv4.2uw2*)
  4087. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4088. if test -n "$kargmax"; then
  4089. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4090. else
  4091. lt_cv_sys_max_cmd_len=32768
  4092. fi
  4093. ;;
  4094. *)
  4095. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4096. if test -n "$lt_cv_sys_max_cmd_len"; then
  4097. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4098. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4099. else
  4100. # Make teststring a little bigger before we do anything with it.
  4101. # a 1K string should be a reasonable start.
  4102. for i in 1 2 3 4 5 6 7 8 ; do
  4103. teststring=$teststring$teststring
  4104. done
  4105. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4106. # If test is not a shell built-in, we'll probably end up computing a
  4107. # maximum length that is only half of the actual maximum length, but
  4108. # we can't tell.
  4109. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4110. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4111. test $i != 17 # 1/2 MB should be enough
  4112. do
  4113. i=`expr $i + 1`
  4114. teststring=$teststring$teststring
  4115. done
  4116. # Only check the string length outside the loop.
  4117. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4118. teststring=
  4119. # Add a significant safety factor because C++ compilers can tack on
  4120. # massive amounts of additional arguments before passing them to the
  4121. # linker. It appears as though 1/2 is a usable value.
  4122. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4123. fi
  4124. ;;
  4125. esac
  4126. fi
  4127. if test -n $lt_cv_sys_max_cmd_len ; then
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4129. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4130. else
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4132. $as_echo "none" >&6; }
  4133. fi
  4134. max_cmd_len=$lt_cv_sys_max_cmd_len
  4135. : ${CP="cp -f"}
  4136. : ${MV="mv -f"}
  4137. : ${RM="rm -f"}
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4139. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4140. # Try some XSI features
  4141. xsi_shell=no
  4142. ( _lt_dummy="a/b/c"
  4143. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4144. = c,a/b,b/c, \
  4145. && eval 'test $(( 1 + 1 )) -eq 2 \
  4146. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4147. && xsi_shell=yes
  4148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4149. $as_echo "$xsi_shell" >&6; }
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4151. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4152. lt_shell_append=no
  4153. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4154. >/dev/null 2>&1 \
  4155. && lt_shell_append=yes
  4156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4157. $as_echo "$lt_shell_append" >&6; }
  4158. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4159. lt_unset=unset
  4160. else
  4161. lt_unset=false
  4162. fi
  4163. # test EBCDIC or ASCII
  4164. case `echo X|tr X '\101'` in
  4165. A) # ASCII based system
  4166. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4167. lt_SP2NL='tr \040 \012'
  4168. lt_NL2SP='tr \015\012 \040\040'
  4169. ;;
  4170. *) # EBCDIC based system
  4171. lt_SP2NL='tr \100 \n'
  4172. lt_NL2SP='tr \r\n \100\100'
  4173. ;;
  4174. esac
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4176. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4177. if ${lt_cv_to_host_file_cmd+:} false; then :
  4178. $as_echo_n "(cached) " >&6
  4179. else
  4180. case $host in
  4181. *-*-mingw* )
  4182. case $build in
  4183. *-*-mingw* ) # actually msys
  4184. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4185. ;;
  4186. *-*-cygwin* )
  4187. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4188. ;;
  4189. * ) # otherwise, assume *nix
  4190. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4191. ;;
  4192. esac
  4193. ;;
  4194. *-*-cygwin* )
  4195. case $build in
  4196. *-*-mingw* ) # actually msys
  4197. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4198. ;;
  4199. *-*-cygwin* )
  4200. lt_cv_to_host_file_cmd=func_convert_file_noop
  4201. ;;
  4202. * ) # otherwise, assume *nix
  4203. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4204. ;;
  4205. esac
  4206. ;;
  4207. * ) # unhandled hosts (and "normal" native builds)
  4208. lt_cv_to_host_file_cmd=func_convert_file_noop
  4209. ;;
  4210. esac
  4211. fi
  4212. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4214. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4216. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4217. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4218. $as_echo_n "(cached) " >&6
  4219. else
  4220. #assume ordinary cross tools, or native build.
  4221. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4222. case $host in
  4223. *-*-mingw* )
  4224. case $build in
  4225. *-*-mingw* ) # actually msys
  4226. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4227. ;;
  4228. esac
  4229. ;;
  4230. esac
  4231. fi
  4232. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4234. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4236. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4237. if ${lt_cv_ld_reload_flag+:} false; then :
  4238. $as_echo_n "(cached) " >&6
  4239. else
  4240. lt_cv_ld_reload_flag='-r'
  4241. fi
  4242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4243. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4244. reload_flag=$lt_cv_ld_reload_flag
  4245. case $reload_flag in
  4246. "" | " "*) ;;
  4247. *) reload_flag=" $reload_flag" ;;
  4248. esac
  4249. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4250. case $host_os in
  4251. cygwin* | mingw* | pw32* | cegcc*)
  4252. if test "$GCC" != yes; then
  4253. reload_cmds=false
  4254. fi
  4255. ;;
  4256. darwin*)
  4257. if test "$GCC" = yes; then
  4258. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4259. else
  4260. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4261. fi
  4262. ;;
  4263. esac
  4264. if test -n "$ac_tool_prefix"; then
  4265. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4266. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4268. $as_echo_n "checking for $ac_word... " >&6; }
  4269. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4270. $as_echo_n "(cached) " >&6
  4271. else
  4272. if test -n "$OBJDUMP"; then
  4273. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4274. else
  4275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4276. for as_dir in $PATH
  4277. do
  4278. IFS=$as_save_IFS
  4279. test -z "$as_dir" && as_dir=.
  4280. for ac_exec_ext in '' $ac_executable_extensions; do
  4281. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4282. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4283. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4284. break 2
  4285. fi
  4286. done
  4287. done
  4288. IFS=$as_save_IFS
  4289. fi
  4290. fi
  4291. OBJDUMP=$ac_cv_prog_OBJDUMP
  4292. if test -n "$OBJDUMP"; then
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4294. $as_echo "$OBJDUMP" >&6; }
  4295. else
  4296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4297. $as_echo "no" >&6; }
  4298. fi
  4299. fi
  4300. if test -z "$ac_cv_prog_OBJDUMP"; then
  4301. ac_ct_OBJDUMP=$OBJDUMP
  4302. # Extract the first word of "objdump", so it can be a program name with args.
  4303. set dummy objdump; ac_word=$2
  4304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4305. $as_echo_n "checking for $ac_word... " >&6; }
  4306. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4307. $as_echo_n "(cached) " >&6
  4308. else
  4309. if test -n "$ac_ct_OBJDUMP"; then
  4310. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4311. else
  4312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4313. for as_dir in $PATH
  4314. do
  4315. IFS=$as_save_IFS
  4316. test -z "$as_dir" && as_dir=.
  4317. for ac_exec_ext in '' $ac_executable_extensions; do
  4318. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4319. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4320. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4321. break 2
  4322. fi
  4323. done
  4324. done
  4325. IFS=$as_save_IFS
  4326. fi
  4327. fi
  4328. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4329. if test -n "$ac_ct_OBJDUMP"; then
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4331. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4332. else
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4334. $as_echo "no" >&6; }
  4335. fi
  4336. if test "x$ac_ct_OBJDUMP" = x; then
  4337. OBJDUMP="false"
  4338. else
  4339. case $cross_compiling:$ac_tool_warned in
  4340. yes:)
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4342. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4343. ac_tool_warned=yes ;;
  4344. esac
  4345. OBJDUMP=$ac_ct_OBJDUMP
  4346. fi
  4347. else
  4348. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4349. fi
  4350. test -z "$OBJDUMP" && OBJDUMP=objdump
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4352. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4353. if ${lt_cv_deplibs_check_method+:} false; then :
  4354. $as_echo_n "(cached) " >&6
  4355. else
  4356. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4357. lt_cv_file_magic_test_file=
  4358. lt_cv_deplibs_check_method='unknown'
  4359. # Need to set the preceding variable on all platforms that support
  4360. # interlibrary dependencies.
  4361. # 'none' -- dependencies not supported.
  4362. # `unknown' -- same as none, but documents that we really don't know.
  4363. # 'pass_all' -- all dependencies passed with no checks.
  4364. # 'test_compile' -- check by making test program.
  4365. # 'file_magic [[regex]]' -- check by looking for files in library path
  4366. # which responds to the $file_magic_cmd with a given extended regex.
  4367. # If you have `file' or equivalent on your system and you're not sure
  4368. # whether `pass_all' will *always* work, you probably want this one.
  4369. case $host_os in
  4370. aix[4-9]*)
  4371. lt_cv_deplibs_check_method=pass_all
  4372. ;;
  4373. beos*)
  4374. lt_cv_deplibs_check_method=pass_all
  4375. ;;
  4376. bsdi[45]*)
  4377. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4378. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4379. lt_cv_file_magic_test_file=/shlib/libc.so
  4380. ;;
  4381. cygwin*)
  4382. # func_win32_libid is a shell function defined in ltmain.sh
  4383. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4384. lt_cv_file_magic_cmd='func_win32_libid'
  4385. lt_cv_deplibs_check_method=pass_all
  4386. ;;
  4387. mingw* | pw32*)
  4388. # Base MSYS/MinGW do not provide the 'file' command needed by
  4389. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4390. # unless we find 'file', for example because we are cross-compiling.
  4391. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4392. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4393. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4394. lt_cv_file_magic_cmd='func_win32_libid'
  4395. else
  4396. # Keep this pattern in sync with the one in func_win32_libid.
  4397. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4398. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4399. fi
  4400. lt_cv_deplibs_check_method=pass_all
  4401. ;;
  4402. cegcc*)
  4403. # use the weaker test based on 'objdump'. See mingw*.
  4404. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4405. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4406. ;;
  4407. darwin* | rhapsody*)
  4408. lt_cv_deplibs_check_method=pass_all
  4409. ;;
  4410. freebsd* | dragonfly*)
  4411. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4412. case $host_cpu in
  4413. i*86 )
  4414. # Not sure whether the presence of OpenBSD here was a mistake.
  4415. # Let's accept both of them until this is cleared up.
  4416. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4417. lt_cv_file_magic_cmd=/usr/bin/file
  4418. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4419. ;;
  4420. esac
  4421. else
  4422. lt_cv_deplibs_check_method=pass_all
  4423. fi
  4424. ;;
  4425. gnu*)
  4426. lt_cv_deplibs_check_method=pass_all
  4427. ;;
  4428. haiku*)
  4429. lt_cv_deplibs_check_method=pass_all
  4430. ;;
  4431. hpux10.20* | hpux11*)
  4432. lt_cv_file_magic_cmd=/usr/bin/file
  4433. case $host_cpu in
  4434. ia64*)
  4435. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4436. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4437. ;;
  4438. hppa*64*)
  4439. 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]'
  4440. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4441. ;;
  4442. *)
  4443. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4444. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4445. ;;
  4446. esac
  4447. ;;
  4448. interix[3-9]*)
  4449. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4450. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4451. ;;
  4452. irix5* | irix6* | nonstopux*)
  4453. case $LD in
  4454. *-32|*"-32 ") libmagic=32-bit;;
  4455. *-n32|*"-n32 ") libmagic=N32;;
  4456. *-64|*"-64 ") libmagic=64-bit;;
  4457. *) libmagic=never-match;;
  4458. esac
  4459. lt_cv_deplibs_check_method=pass_all
  4460. ;;
  4461. # This must be glibc/ELF.
  4462. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4463. lt_cv_deplibs_check_method=pass_all
  4464. ;;
  4465. netbsd*)
  4466. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4467. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4468. else
  4469. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4470. fi
  4471. ;;
  4472. newos6*)
  4473. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4474. lt_cv_file_magic_cmd=/usr/bin/file
  4475. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4476. ;;
  4477. *nto* | *qnx*)
  4478. lt_cv_deplibs_check_method=pass_all
  4479. ;;
  4480. openbsd*)
  4481. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4482. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4483. else
  4484. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4485. fi
  4486. ;;
  4487. osf3* | osf4* | osf5*)
  4488. lt_cv_deplibs_check_method=pass_all
  4489. ;;
  4490. rdos*)
  4491. lt_cv_deplibs_check_method=pass_all
  4492. ;;
  4493. solaris*)
  4494. lt_cv_deplibs_check_method=pass_all
  4495. ;;
  4496. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4497. lt_cv_deplibs_check_method=pass_all
  4498. ;;
  4499. sysv4 | sysv4.3*)
  4500. case $host_vendor in
  4501. motorola)
  4502. 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]'
  4503. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4504. ;;
  4505. ncr)
  4506. lt_cv_deplibs_check_method=pass_all
  4507. ;;
  4508. sequent)
  4509. lt_cv_file_magic_cmd='/bin/file'
  4510. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4511. ;;
  4512. sni)
  4513. lt_cv_file_magic_cmd='/bin/file'
  4514. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4515. lt_cv_file_magic_test_file=/lib/libc.so
  4516. ;;
  4517. siemens)
  4518. lt_cv_deplibs_check_method=pass_all
  4519. ;;
  4520. pc)
  4521. lt_cv_deplibs_check_method=pass_all
  4522. ;;
  4523. esac
  4524. ;;
  4525. tpf*)
  4526. lt_cv_deplibs_check_method=pass_all
  4527. ;;
  4528. esac
  4529. fi
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4531. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4532. file_magic_glob=
  4533. want_nocaseglob=no
  4534. if test "$build" = "$host"; then
  4535. case $host_os in
  4536. mingw* | pw32*)
  4537. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4538. want_nocaseglob=yes
  4539. else
  4540. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4541. fi
  4542. ;;
  4543. esac
  4544. fi
  4545. file_magic_cmd=$lt_cv_file_magic_cmd
  4546. deplibs_check_method=$lt_cv_deplibs_check_method
  4547. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4548. if test -n "$ac_tool_prefix"; then
  4549. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4550. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4552. $as_echo_n "checking for $ac_word... " >&6; }
  4553. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4554. $as_echo_n "(cached) " >&6
  4555. else
  4556. if test -n "$DLLTOOL"; then
  4557. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4558. else
  4559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4560. for as_dir in $PATH
  4561. do
  4562. IFS=$as_save_IFS
  4563. test -z "$as_dir" && as_dir=.
  4564. for ac_exec_ext in '' $ac_executable_extensions; do
  4565. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4566. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4568. break 2
  4569. fi
  4570. done
  4571. done
  4572. IFS=$as_save_IFS
  4573. fi
  4574. fi
  4575. DLLTOOL=$ac_cv_prog_DLLTOOL
  4576. if test -n "$DLLTOOL"; then
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4578. $as_echo "$DLLTOOL" >&6; }
  4579. else
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4581. $as_echo "no" >&6; }
  4582. fi
  4583. fi
  4584. if test -z "$ac_cv_prog_DLLTOOL"; then
  4585. ac_ct_DLLTOOL=$DLLTOOL
  4586. # Extract the first word of "dlltool", so it can be a program name with args.
  4587. set dummy dlltool; ac_word=$2
  4588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4589. $as_echo_n "checking for $ac_word... " >&6; }
  4590. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4591. $as_echo_n "(cached) " >&6
  4592. else
  4593. if test -n "$ac_ct_DLLTOOL"; then
  4594. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4595. else
  4596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4597. for as_dir in $PATH
  4598. do
  4599. IFS=$as_save_IFS
  4600. test -z "$as_dir" && as_dir=.
  4601. for ac_exec_ext in '' $ac_executable_extensions; do
  4602. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4603. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4605. break 2
  4606. fi
  4607. done
  4608. done
  4609. IFS=$as_save_IFS
  4610. fi
  4611. fi
  4612. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4613. if test -n "$ac_ct_DLLTOOL"; then
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4615. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4616. else
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4618. $as_echo "no" >&6; }
  4619. fi
  4620. if test "x$ac_ct_DLLTOOL" = x; then
  4621. DLLTOOL="false"
  4622. else
  4623. case $cross_compiling:$ac_tool_warned in
  4624. yes:)
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4626. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4627. ac_tool_warned=yes ;;
  4628. esac
  4629. DLLTOOL=$ac_ct_DLLTOOL
  4630. fi
  4631. else
  4632. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4633. fi
  4634. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4636. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4637. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4638. $as_echo_n "(cached) " >&6
  4639. else
  4640. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4641. case $host_os in
  4642. cygwin* | mingw* | pw32* | cegcc*)
  4643. # two different shell functions defined in ltmain.sh
  4644. # decide which to use based on capabilities of $DLLTOOL
  4645. case `$DLLTOOL --help 2>&1` in
  4646. *--identify-strict*)
  4647. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4648. ;;
  4649. *)
  4650. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4651. ;;
  4652. esac
  4653. ;;
  4654. *)
  4655. # fallback: assume linklib IS sharedlib
  4656. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4657. ;;
  4658. esac
  4659. fi
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4661. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4662. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4663. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4664. if test -n "$ac_tool_prefix"; then
  4665. for ac_prog in ar
  4666. do
  4667. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4668. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4670. $as_echo_n "checking for $ac_word... " >&6; }
  4671. if ${ac_cv_prog_AR+:} false; then :
  4672. $as_echo_n "(cached) " >&6
  4673. else
  4674. if test -n "$AR"; then
  4675. ac_cv_prog_AR="$AR" # Let the user override the test.
  4676. else
  4677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4678. for as_dir in $PATH
  4679. do
  4680. IFS=$as_save_IFS
  4681. test -z "$as_dir" && as_dir=.
  4682. for ac_exec_ext in '' $ac_executable_extensions; do
  4683. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4684. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4686. break 2
  4687. fi
  4688. done
  4689. done
  4690. IFS=$as_save_IFS
  4691. fi
  4692. fi
  4693. AR=$ac_cv_prog_AR
  4694. if test -n "$AR"; then
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4696. $as_echo "$AR" >&6; }
  4697. else
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4699. $as_echo "no" >&6; }
  4700. fi
  4701. test -n "$AR" && break
  4702. done
  4703. fi
  4704. if test -z "$AR"; then
  4705. ac_ct_AR=$AR
  4706. for ac_prog in ar
  4707. do
  4708. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4709. set dummy $ac_prog; ac_word=$2
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4711. $as_echo_n "checking for $ac_word... " >&6; }
  4712. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4713. $as_echo_n "(cached) " >&6
  4714. else
  4715. if test -n "$ac_ct_AR"; then
  4716. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4717. else
  4718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4719. for as_dir in $PATH
  4720. do
  4721. IFS=$as_save_IFS
  4722. test -z "$as_dir" && as_dir=.
  4723. for ac_exec_ext in '' $ac_executable_extensions; do
  4724. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4725. ac_cv_prog_ac_ct_AR="$ac_prog"
  4726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4727. break 2
  4728. fi
  4729. done
  4730. done
  4731. IFS=$as_save_IFS
  4732. fi
  4733. fi
  4734. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4735. if test -n "$ac_ct_AR"; then
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4737. $as_echo "$ac_ct_AR" >&6; }
  4738. else
  4739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4740. $as_echo "no" >&6; }
  4741. fi
  4742. test -n "$ac_ct_AR" && break
  4743. done
  4744. if test "x$ac_ct_AR" = x; then
  4745. AR="false"
  4746. else
  4747. case $cross_compiling:$ac_tool_warned in
  4748. yes:)
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4750. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4751. ac_tool_warned=yes ;;
  4752. esac
  4753. AR=$ac_ct_AR
  4754. fi
  4755. fi
  4756. : ${AR=ar}
  4757. : ${AR_FLAGS=cru}
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4759. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4760. if ${lt_cv_ar_at_file+:} false; then :
  4761. $as_echo_n "(cached) " >&6
  4762. else
  4763. lt_cv_ar_at_file=no
  4764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4765. /* end confdefs.h. */
  4766. int
  4767. main ()
  4768. {
  4769. ;
  4770. return 0;
  4771. }
  4772. _ACEOF
  4773. if ac_fn_c_try_compile "$LINENO"; then :
  4774. echo conftest.$ac_objext > conftest.lst
  4775. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4776. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4777. (eval $lt_ar_try) 2>&5
  4778. ac_status=$?
  4779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4780. test $ac_status = 0; }
  4781. if test "$ac_status" -eq 0; then
  4782. # Ensure the archiver fails upon bogus file names.
  4783. rm -f conftest.$ac_objext libconftest.a
  4784. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4785. (eval $lt_ar_try) 2>&5
  4786. ac_status=$?
  4787. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4788. test $ac_status = 0; }
  4789. if test "$ac_status" -ne 0; then
  4790. lt_cv_ar_at_file=@
  4791. fi
  4792. fi
  4793. rm -f conftest.* libconftest.a
  4794. fi
  4795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4796. fi
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4798. $as_echo "$lt_cv_ar_at_file" >&6; }
  4799. if test "x$lt_cv_ar_at_file" = xno; then
  4800. archiver_list_spec=
  4801. else
  4802. archiver_list_spec=$lt_cv_ar_at_file
  4803. fi
  4804. if test -n "$ac_tool_prefix"; then
  4805. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4806. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4808. $as_echo_n "checking for $ac_word... " >&6; }
  4809. if ${ac_cv_prog_STRIP+:} false; then :
  4810. $as_echo_n "(cached) " >&6
  4811. else
  4812. if test -n "$STRIP"; then
  4813. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4814. else
  4815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4816. for as_dir in $PATH
  4817. do
  4818. IFS=$as_save_IFS
  4819. test -z "$as_dir" && as_dir=.
  4820. for ac_exec_ext in '' $ac_executable_extensions; do
  4821. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4822. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4823. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4824. break 2
  4825. fi
  4826. done
  4827. done
  4828. IFS=$as_save_IFS
  4829. fi
  4830. fi
  4831. STRIP=$ac_cv_prog_STRIP
  4832. if test -n "$STRIP"; then
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4834. $as_echo "$STRIP" >&6; }
  4835. else
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4837. $as_echo "no" >&6; }
  4838. fi
  4839. fi
  4840. if test -z "$ac_cv_prog_STRIP"; then
  4841. ac_ct_STRIP=$STRIP
  4842. # Extract the first word of "strip", so it can be a program name with args.
  4843. set dummy strip; ac_word=$2
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4845. $as_echo_n "checking for $ac_word... " >&6; }
  4846. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4847. $as_echo_n "(cached) " >&6
  4848. else
  4849. if test -n "$ac_ct_STRIP"; then
  4850. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4851. else
  4852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4853. for as_dir in $PATH
  4854. do
  4855. IFS=$as_save_IFS
  4856. test -z "$as_dir" && as_dir=.
  4857. for ac_exec_ext in '' $ac_executable_extensions; do
  4858. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4859. ac_cv_prog_ac_ct_STRIP="strip"
  4860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4861. break 2
  4862. fi
  4863. done
  4864. done
  4865. IFS=$as_save_IFS
  4866. fi
  4867. fi
  4868. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4869. if test -n "$ac_ct_STRIP"; then
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4871. $as_echo "$ac_ct_STRIP" >&6; }
  4872. else
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4874. $as_echo "no" >&6; }
  4875. fi
  4876. if test "x$ac_ct_STRIP" = x; then
  4877. STRIP=":"
  4878. else
  4879. case $cross_compiling:$ac_tool_warned in
  4880. yes:)
  4881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4882. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4883. ac_tool_warned=yes ;;
  4884. esac
  4885. STRIP=$ac_ct_STRIP
  4886. fi
  4887. else
  4888. STRIP="$ac_cv_prog_STRIP"
  4889. fi
  4890. test -z "$STRIP" && STRIP=:
  4891. if test -n "$ac_tool_prefix"; then
  4892. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4893. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4895. $as_echo_n "checking for $ac_word... " >&6; }
  4896. if ${ac_cv_prog_RANLIB+:} false; then :
  4897. $as_echo_n "(cached) " >&6
  4898. else
  4899. if test -n "$RANLIB"; then
  4900. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4901. else
  4902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4903. for as_dir in $PATH
  4904. do
  4905. IFS=$as_save_IFS
  4906. test -z "$as_dir" && as_dir=.
  4907. for ac_exec_ext in '' $ac_executable_extensions; do
  4908. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4909. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4911. break 2
  4912. fi
  4913. done
  4914. done
  4915. IFS=$as_save_IFS
  4916. fi
  4917. fi
  4918. RANLIB=$ac_cv_prog_RANLIB
  4919. if test -n "$RANLIB"; then
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4921. $as_echo "$RANLIB" >&6; }
  4922. else
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4924. $as_echo "no" >&6; }
  4925. fi
  4926. fi
  4927. if test -z "$ac_cv_prog_RANLIB"; then
  4928. ac_ct_RANLIB=$RANLIB
  4929. # Extract the first word of "ranlib", so it can be a program name with args.
  4930. set dummy ranlib; ac_word=$2
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4932. $as_echo_n "checking for $ac_word... " >&6; }
  4933. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4934. $as_echo_n "(cached) " >&6
  4935. else
  4936. if test -n "$ac_ct_RANLIB"; then
  4937. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4938. else
  4939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4940. for as_dir in $PATH
  4941. do
  4942. IFS=$as_save_IFS
  4943. test -z "$as_dir" && as_dir=.
  4944. for ac_exec_ext in '' $ac_executable_extensions; do
  4945. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4946. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4947. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4948. break 2
  4949. fi
  4950. done
  4951. done
  4952. IFS=$as_save_IFS
  4953. fi
  4954. fi
  4955. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4956. if test -n "$ac_ct_RANLIB"; then
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4958. $as_echo "$ac_ct_RANLIB" >&6; }
  4959. else
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4961. $as_echo "no" >&6; }
  4962. fi
  4963. if test "x$ac_ct_RANLIB" = x; then
  4964. RANLIB=":"
  4965. else
  4966. case $cross_compiling:$ac_tool_warned in
  4967. yes:)
  4968. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4969. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4970. ac_tool_warned=yes ;;
  4971. esac
  4972. RANLIB=$ac_ct_RANLIB
  4973. fi
  4974. else
  4975. RANLIB="$ac_cv_prog_RANLIB"
  4976. fi
  4977. test -z "$RANLIB" && RANLIB=:
  4978. # Determine commands to create old-style static archives.
  4979. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4980. old_postinstall_cmds='chmod 644 $oldlib'
  4981. old_postuninstall_cmds=
  4982. if test -n "$RANLIB"; then
  4983. case $host_os in
  4984. openbsd*)
  4985. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4986. ;;
  4987. *)
  4988. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4989. ;;
  4990. esac
  4991. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4992. fi
  4993. case $host_os in
  4994. darwin*)
  4995. lock_old_archive_extraction=yes ;;
  4996. *)
  4997. lock_old_archive_extraction=no ;;
  4998. esac
  4999. for ac_prog in gawk mawk nawk awk
  5000. do
  5001. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5002. set dummy $ac_prog; ac_word=$2
  5003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5004. $as_echo_n "checking for $ac_word... " >&6; }
  5005. if ${ac_cv_prog_AWK+:} false; then :
  5006. $as_echo_n "(cached) " >&6
  5007. else
  5008. if test -n "$AWK"; then
  5009. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5010. else
  5011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5012. for as_dir in $PATH
  5013. do
  5014. IFS=$as_save_IFS
  5015. test -z "$as_dir" && as_dir=.
  5016. for ac_exec_ext in '' $ac_executable_extensions; do
  5017. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5018. ac_cv_prog_AWK="$ac_prog"
  5019. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5020. break 2
  5021. fi
  5022. done
  5023. done
  5024. IFS=$as_save_IFS
  5025. fi
  5026. fi
  5027. AWK=$ac_cv_prog_AWK
  5028. if test -n "$AWK"; then
  5029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5030. $as_echo "$AWK" >&6; }
  5031. else
  5032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5033. $as_echo "no" >&6; }
  5034. fi
  5035. test -n "$AWK" && break
  5036. done
  5037. # If no C compiler was specified, use CC.
  5038. LTCC=${LTCC-"$CC"}
  5039. # If no C compiler flags were specified, use CFLAGS.
  5040. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5041. # Allow CC to be a program name with arguments.
  5042. compiler=$CC
  5043. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5045. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5046. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5047. $as_echo_n "(cached) " >&6
  5048. else
  5049. # These are sane defaults that work on at least a few old systems.
  5050. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5051. # Character class describing NM global symbol codes.
  5052. symcode='[BCDEGRST]'
  5053. # Regexp to match symbols that can be accessed directly from C.
  5054. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5055. # Define system-specific variables.
  5056. case $host_os in
  5057. aix*)
  5058. symcode='[BCDT]'
  5059. ;;
  5060. cygwin* | mingw* | pw32* | cegcc*)
  5061. symcode='[ABCDGISTW]'
  5062. ;;
  5063. hpux*)
  5064. if test "$host_cpu" = ia64; then
  5065. symcode='[ABCDEGRST]'
  5066. fi
  5067. ;;
  5068. irix* | nonstopux*)
  5069. symcode='[BCDEGRST]'
  5070. ;;
  5071. osf*)
  5072. symcode='[BCDEGQRST]'
  5073. ;;
  5074. solaris*)
  5075. symcode='[BDRT]'
  5076. ;;
  5077. sco3.2v5*)
  5078. symcode='[DT]'
  5079. ;;
  5080. sysv4.2uw2*)
  5081. symcode='[DT]'
  5082. ;;
  5083. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5084. symcode='[ABDT]'
  5085. ;;
  5086. sysv4)
  5087. symcode='[DFNSTU]'
  5088. ;;
  5089. esac
  5090. # If we're using GNU nm, then use its standard symbol codes.
  5091. case `$NM -V 2>&1` in
  5092. *GNU* | *'with BFD'*)
  5093. symcode='[ABCDGIRSTW]' ;;
  5094. esac
  5095. # Transform an extracted symbol line into a proper C declaration.
  5096. # Some systems (esp. on ia64) link data and code symbols differently,
  5097. # so use this general approach.
  5098. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5099. # Transform an extracted symbol line into symbol name and symbol address
  5100. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5101. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5102. # Handle CRLF in mingw tool chain
  5103. opt_cr=
  5104. case $build_os in
  5105. mingw*)
  5106. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5107. ;;
  5108. esac
  5109. # Try without a prefix underscore, then with it.
  5110. for ac_symprfx in "" "_"; do
  5111. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5112. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5113. # Write the raw and C identifiers.
  5114. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5115. # Fake it for dumpbin and say T for any non-static function
  5116. # and D for any global variable.
  5117. # Also find C++ and __fastcall symbols from MSVC++,
  5118. # which start with @ or ?.
  5119. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5120. " {last_section=section; section=\$ 3};"\
  5121. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5122. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5123. " \$ 0!~/External *\|/{next};"\
  5124. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5125. " {if(hide[section]) next};"\
  5126. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5127. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5128. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5129. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5130. " ' prfx=^$ac_symprfx"
  5131. else
  5132. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5133. fi
  5134. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5135. # Check to see that the pipe works correctly.
  5136. pipe_works=no
  5137. rm -f conftest*
  5138. cat > conftest.$ac_ext <<_LT_EOF
  5139. #ifdef __cplusplus
  5140. extern "C" {
  5141. #endif
  5142. char nm_test_var;
  5143. void nm_test_func(void);
  5144. void nm_test_func(void){}
  5145. #ifdef __cplusplus
  5146. }
  5147. #endif
  5148. int main(){nm_test_var='a';nm_test_func();return(0);}
  5149. _LT_EOF
  5150. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5151. (eval $ac_compile) 2>&5
  5152. ac_status=$?
  5153. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5154. test $ac_status = 0; }; then
  5155. # Now try to grab the symbols.
  5156. nlist=conftest.nm
  5157. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5158. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5159. ac_status=$?
  5160. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5161. test $ac_status = 0; } && test -s "$nlist"; then
  5162. # Try sorting and uniquifying the output.
  5163. if sort "$nlist" | uniq > "$nlist"T; then
  5164. mv -f "$nlist"T "$nlist"
  5165. else
  5166. rm -f "$nlist"T
  5167. fi
  5168. # Make sure that we snagged all the symbols we need.
  5169. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5170. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5171. cat <<_LT_EOF > conftest.$ac_ext
  5172. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5173. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5174. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5175. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5176. # define LT_DLSYM_CONST
  5177. #elif defined(__osf__)
  5178. /* This system does not cope well with relocations in const data. */
  5179. # define LT_DLSYM_CONST
  5180. #else
  5181. # define LT_DLSYM_CONST const
  5182. #endif
  5183. #ifdef __cplusplus
  5184. extern "C" {
  5185. #endif
  5186. _LT_EOF
  5187. # Now generate the symbol file.
  5188. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5189. cat <<_LT_EOF >> conftest.$ac_ext
  5190. /* The mapping between symbol names and symbols. */
  5191. LT_DLSYM_CONST struct {
  5192. const char *name;
  5193. void *address;
  5194. }
  5195. lt__PROGRAM__LTX_preloaded_symbols[] =
  5196. {
  5197. { "@PROGRAM@", (void *) 0 },
  5198. _LT_EOF
  5199. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5200. cat <<\_LT_EOF >> conftest.$ac_ext
  5201. {0, (void *) 0}
  5202. };
  5203. /* This works around a problem in FreeBSD linker */
  5204. #ifdef FREEBSD_WORKAROUND
  5205. static const void *lt_preloaded_setup() {
  5206. return lt__PROGRAM__LTX_preloaded_symbols;
  5207. }
  5208. #endif
  5209. #ifdef __cplusplus
  5210. }
  5211. #endif
  5212. _LT_EOF
  5213. # Now try linking the two files.
  5214. mv conftest.$ac_objext conftstm.$ac_objext
  5215. lt_globsym_save_LIBS=$LIBS
  5216. lt_globsym_save_CFLAGS=$CFLAGS
  5217. LIBS="conftstm.$ac_objext"
  5218. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5219. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5220. (eval $ac_link) 2>&5
  5221. ac_status=$?
  5222. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5223. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5224. pipe_works=yes
  5225. fi
  5226. LIBS=$lt_globsym_save_LIBS
  5227. CFLAGS=$lt_globsym_save_CFLAGS
  5228. else
  5229. echo "cannot find nm_test_func in $nlist" >&5
  5230. fi
  5231. else
  5232. echo "cannot find nm_test_var in $nlist" >&5
  5233. fi
  5234. else
  5235. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5236. fi
  5237. else
  5238. echo "$progname: failed program was:" >&5
  5239. cat conftest.$ac_ext >&5
  5240. fi
  5241. rm -rf conftest* conftst*
  5242. # Do not use the global_symbol_pipe unless it works.
  5243. if test "$pipe_works" = yes; then
  5244. break
  5245. else
  5246. lt_cv_sys_global_symbol_pipe=
  5247. fi
  5248. done
  5249. fi
  5250. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5251. lt_cv_sys_global_symbol_to_cdecl=
  5252. fi
  5253. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5255. $as_echo "failed" >&6; }
  5256. else
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5258. $as_echo "ok" >&6; }
  5259. fi
  5260. # Response file support.
  5261. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5262. nm_file_list_spec='@'
  5263. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5264. nm_file_list_spec='@'
  5265. fi
  5266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5267. $as_echo_n "checking for sysroot... " >&6; }
  5268. # Check whether --with-sysroot was given.
  5269. if test "${with_sysroot+set}" = set; then :
  5270. withval=$with_sysroot;
  5271. else
  5272. with_sysroot=no
  5273. fi
  5274. lt_sysroot=
  5275. case ${with_sysroot} in #(
  5276. yes)
  5277. if test "$GCC" = yes; then
  5278. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5279. fi
  5280. ;; #(
  5281. /*)
  5282. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5283. ;; #(
  5284. no|'')
  5285. ;; #(
  5286. *)
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5288. $as_echo "${with_sysroot}" >&6; }
  5289. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5290. ;;
  5291. esac
  5292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5293. $as_echo "${lt_sysroot:-no}" >&6; }
  5294. # Check whether --enable-libtool-lock was given.
  5295. if test "${enable_libtool_lock+set}" = set; then :
  5296. enableval=$enable_libtool_lock;
  5297. fi
  5298. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5299. # Some flags need to be propagated to the compiler or linker for good
  5300. # libtool support.
  5301. case $host in
  5302. ia64-*-hpux*)
  5303. # Find out which ABI we are using.
  5304. echo 'int i;' > conftest.$ac_ext
  5305. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5306. (eval $ac_compile) 2>&5
  5307. ac_status=$?
  5308. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5309. test $ac_status = 0; }; then
  5310. case `/usr/bin/file conftest.$ac_objext` in
  5311. *ELF-32*)
  5312. HPUX_IA64_MODE="32"
  5313. ;;
  5314. *ELF-64*)
  5315. HPUX_IA64_MODE="64"
  5316. ;;
  5317. esac
  5318. fi
  5319. rm -rf conftest*
  5320. ;;
  5321. *-*-irix6*)
  5322. # Find out which ABI we are using.
  5323. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5324. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5325. (eval $ac_compile) 2>&5
  5326. ac_status=$?
  5327. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5328. test $ac_status = 0; }; then
  5329. if test "$lt_cv_prog_gnu_ld" = yes; then
  5330. case `/usr/bin/file conftest.$ac_objext` in
  5331. *32-bit*)
  5332. LD="${LD-ld} -melf32bsmip"
  5333. ;;
  5334. *N32*)
  5335. LD="${LD-ld} -melf32bmipn32"
  5336. ;;
  5337. *64-bit*)
  5338. LD="${LD-ld} -melf64bmip"
  5339. ;;
  5340. esac
  5341. else
  5342. case `/usr/bin/file conftest.$ac_objext` in
  5343. *32-bit*)
  5344. LD="${LD-ld} -32"
  5345. ;;
  5346. *N32*)
  5347. LD="${LD-ld} -n32"
  5348. ;;
  5349. *64-bit*)
  5350. LD="${LD-ld} -64"
  5351. ;;
  5352. esac
  5353. fi
  5354. fi
  5355. rm -rf conftest*
  5356. ;;
  5357. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5358. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5359. # Find out which ABI we are using.
  5360. echo 'int i;' > conftest.$ac_ext
  5361. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5362. (eval $ac_compile) 2>&5
  5363. ac_status=$?
  5364. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5365. test $ac_status = 0; }; then
  5366. case `/usr/bin/file conftest.o` in
  5367. *32-bit*)
  5368. case $host in
  5369. x86_64-*kfreebsd*-gnu)
  5370. LD="${LD-ld} -m elf_i386_fbsd"
  5371. ;;
  5372. x86_64-*linux*)
  5373. LD="${LD-ld} -m elf_i386"
  5374. ;;
  5375. ppc64-*linux*|powerpc64-*linux*)
  5376. LD="${LD-ld} -m elf32ppclinux"
  5377. ;;
  5378. s390x-*linux*)
  5379. LD="${LD-ld} -m elf_s390"
  5380. ;;
  5381. sparc64-*linux*)
  5382. LD="${LD-ld} -m elf32_sparc"
  5383. ;;
  5384. esac
  5385. ;;
  5386. *64-bit*)
  5387. case $host in
  5388. x86_64-*kfreebsd*-gnu)
  5389. LD="${LD-ld} -m elf_x86_64_fbsd"
  5390. ;;
  5391. x86_64-*linux*)
  5392. LD="${LD-ld} -m elf_x86_64"
  5393. ;;
  5394. powerpc64le-*linux*)
  5395. LD="${LD-ld} -m elf64lppc"
  5396. ;;
  5397. powerpc64-*linux*)
  5398. LD="${LD-ld} -m elf64ppc"
  5399. ;;
  5400. s390*-*linux*|s390*-*tpf*)
  5401. LD="${LD-ld} -m elf64_s390"
  5402. ;;
  5403. sparc*-*linux*)
  5404. LD="${LD-ld} -m elf64_sparc"
  5405. ;;
  5406. esac
  5407. ;;
  5408. esac
  5409. fi
  5410. rm -rf conftest*
  5411. ;;
  5412. *-*-sco3.2v5*)
  5413. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5414. SAVE_CFLAGS="$CFLAGS"
  5415. CFLAGS="$CFLAGS -belf"
  5416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5417. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5418. if ${lt_cv_cc_needs_belf+:} false; then :
  5419. $as_echo_n "(cached) " >&6
  5420. else
  5421. ac_ext=c
  5422. ac_cpp='$CPP $CPPFLAGS'
  5423. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5424. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5425. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5427. /* end confdefs.h. */
  5428. int
  5429. main ()
  5430. {
  5431. ;
  5432. return 0;
  5433. }
  5434. _ACEOF
  5435. if ac_fn_c_try_link "$LINENO"; then :
  5436. lt_cv_cc_needs_belf=yes
  5437. else
  5438. lt_cv_cc_needs_belf=no
  5439. fi
  5440. rm -f core conftest.err conftest.$ac_objext \
  5441. conftest$ac_exeext conftest.$ac_ext
  5442. ac_ext=c
  5443. ac_cpp='$CPP $CPPFLAGS'
  5444. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5445. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5446. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5447. fi
  5448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5449. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5450. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5451. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5452. CFLAGS="$SAVE_CFLAGS"
  5453. fi
  5454. ;;
  5455. *-*solaris*)
  5456. # Find out which ABI we are using.
  5457. echo 'int i;' > conftest.$ac_ext
  5458. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5459. (eval $ac_compile) 2>&5
  5460. ac_status=$?
  5461. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5462. test $ac_status = 0; }; then
  5463. case `/usr/bin/file conftest.o` in
  5464. *64-bit*)
  5465. case $lt_cv_prog_gnu_ld in
  5466. yes*)
  5467. case $host in
  5468. i?86-*-solaris*)
  5469. LD="${LD-ld} -m elf_x86_64"
  5470. ;;
  5471. sparc*-*-solaris*)
  5472. LD="${LD-ld} -m elf64_sparc"
  5473. ;;
  5474. esac
  5475. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5476. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5477. LD="${LD-ld}_sol2"
  5478. fi
  5479. ;;
  5480. *)
  5481. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5482. LD="${LD-ld} -64"
  5483. fi
  5484. ;;
  5485. esac
  5486. ;;
  5487. esac
  5488. fi
  5489. rm -rf conftest*
  5490. ;;
  5491. esac
  5492. need_locks="$enable_libtool_lock"
  5493. if test -n "$ac_tool_prefix"; then
  5494. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5495. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5497. $as_echo_n "checking for $ac_word... " >&6; }
  5498. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5499. $as_echo_n "(cached) " >&6
  5500. else
  5501. if test -n "$MANIFEST_TOOL"; then
  5502. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5503. else
  5504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5505. for as_dir in $PATH
  5506. do
  5507. IFS=$as_save_IFS
  5508. test -z "$as_dir" && as_dir=.
  5509. for ac_exec_ext in '' $ac_executable_extensions; do
  5510. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5511. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5512. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5513. break 2
  5514. fi
  5515. done
  5516. done
  5517. IFS=$as_save_IFS
  5518. fi
  5519. fi
  5520. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5521. if test -n "$MANIFEST_TOOL"; then
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5523. $as_echo "$MANIFEST_TOOL" >&6; }
  5524. else
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5526. $as_echo "no" >&6; }
  5527. fi
  5528. fi
  5529. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5530. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5531. # Extract the first word of "mt", so it can be a program name with args.
  5532. set dummy mt; ac_word=$2
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5534. $as_echo_n "checking for $ac_word... " >&6; }
  5535. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5536. $as_echo_n "(cached) " >&6
  5537. else
  5538. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5539. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5540. else
  5541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5542. for as_dir in $PATH
  5543. do
  5544. IFS=$as_save_IFS
  5545. test -z "$as_dir" && as_dir=.
  5546. for ac_exec_ext in '' $ac_executable_extensions; do
  5547. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5548. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5550. break 2
  5551. fi
  5552. done
  5553. done
  5554. IFS=$as_save_IFS
  5555. fi
  5556. fi
  5557. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5558. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5560. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5561. else
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5563. $as_echo "no" >&6; }
  5564. fi
  5565. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5566. MANIFEST_TOOL=":"
  5567. else
  5568. case $cross_compiling:$ac_tool_warned in
  5569. yes:)
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5571. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5572. ac_tool_warned=yes ;;
  5573. esac
  5574. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5575. fi
  5576. else
  5577. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5578. fi
  5579. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5581. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5582. if ${lt_cv_path_mainfest_tool+:} false; then :
  5583. $as_echo_n "(cached) " >&6
  5584. else
  5585. lt_cv_path_mainfest_tool=no
  5586. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5587. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5588. cat conftest.err >&5
  5589. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5590. lt_cv_path_mainfest_tool=yes
  5591. fi
  5592. rm -f conftest*
  5593. fi
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5595. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5596. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5597. MANIFEST_TOOL=:
  5598. fi
  5599. case $host_os in
  5600. rhapsody* | darwin*)
  5601. if test -n "$ac_tool_prefix"; then
  5602. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5603. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5605. $as_echo_n "checking for $ac_word... " >&6; }
  5606. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5607. $as_echo_n "(cached) " >&6
  5608. else
  5609. if test -n "$DSYMUTIL"; then
  5610. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5611. else
  5612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5613. for as_dir in $PATH
  5614. do
  5615. IFS=$as_save_IFS
  5616. test -z "$as_dir" && as_dir=.
  5617. for ac_exec_ext in '' $ac_executable_extensions; do
  5618. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5619. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5620. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5621. break 2
  5622. fi
  5623. done
  5624. done
  5625. IFS=$as_save_IFS
  5626. fi
  5627. fi
  5628. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5629. if test -n "$DSYMUTIL"; then
  5630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5631. $as_echo "$DSYMUTIL" >&6; }
  5632. else
  5633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5634. $as_echo "no" >&6; }
  5635. fi
  5636. fi
  5637. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5638. ac_ct_DSYMUTIL=$DSYMUTIL
  5639. # Extract the first word of "dsymutil", so it can be a program name with args.
  5640. set dummy dsymutil; ac_word=$2
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5642. $as_echo_n "checking for $ac_word... " >&6; }
  5643. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5644. $as_echo_n "(cached) " >&6
  5645. else
  5646. if test -n "$ac_ct_DSYMUTIL"; then
  5647. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5648. else
  5649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5650. for as_dir in $PATH
  5651. do
  5652. IFS=$as_save_IFS
  5653. test -z "$as_dir" && as_dir=.
  5654. for ac_exec_ext in '' $ac_executable_extensions; do
  5655. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5656. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5657. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5658. break 2
  5659. fi
  5660. done
  5661. done
  5662. IFS=$as_save_IFS
  5663. fi
  5664. fi
  5665. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5666. if test -n "$ac_ct_DSYMUTIL"; then
  5667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5668. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5669. else
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5671. $as_echo "no" >&6; }
  5672. fi
  5673. if test "x$ac_ct_DSYMUTIL" = x; then
  5674. DSYMUTIL=":"
  5675. else
  5676. case $cross_compiling:$ac_tool_warned in
  5677. yes:)
  5678. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5679. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5680. ac_tool_warned=yes ;;
  5681. esac
  5682. DSYMUTIL=$ac_ct_DSYMUTIL
  5683. fi
  5684. else
  5685. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5686. fi
  5687. if test -n "$ac_tool_prefix"; then
  5688. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5689. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5691. $as_echo_n "checking for $ac_word... " >&6; }
  5692. if ${ac_cv_prog_NMEDIT+:} false; then :
  5693. $as_echo_n "(cached) " >&6
  5694. else
  5695. if test -n "$NMEDIT"; then
  5696. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5697. else
  5698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5699. for as_dir in $PATH
  5700. do
  5701. IFS=$as_save_IFS
  5702. test -z "$as_dir" && as_dir=.
  5703. for ac_exec_ext in '' $ac_executable_extensions; do
  5704. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5705. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5707. break 2
  5708. fi
  5709. done
  5710. done
  5711. IFS=$as_save_IFS
  5712. fi
  5713. fi
  5714. NMEDIT=$ac_cv_prog_NMEDIT
  5715. if test -n "$NMEDIT"; then
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5717. $as_echo "$NMEDIT" >&6; }
  5718. else
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5720. $as_echo "no" >&6; }
  5721. fi
  5722. fi
  5723. if test -z "$ac_cv_prog_NMEDIT"; then
  5724. ac_ct_NMEDIT=$NMEDIT
  5725. # Extract the first word of "nmedit", so it can be a program name with args.
  5726. set dummy nmedit; ac_word=$2
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5728. $as_echo_n "checking for $ac_word... " >&6; }
  5729. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5730. $as_echo_n "(cached) " >&6
  5731. else
  5732. if test -n "$ac_ct_NMEDIT"; then
  5733. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5734. else
  5735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5736. for as_dir in $PATH
  5737. do
  5738. IFS=$as_save_IFS
  5739. test -z "$as_dir" && as_dir=.
  5740. for ac_exec_ext in '' $ac_executable_extensions; do
  5741. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5742. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5744. break 2
  5745. fi
  5746. done
  5747. done
  5748. IFS=$as_save_IFS
  5749. fi
  5750. fi
  5751. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5752. if test -n "$ac_ct_NMEDIT"; then
  5753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5754. $as_echo "$ac_ct_NMEDIT" >&6; }
  5755. else
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5757. $as_echo "no" >&6; }
  5758. fi
  5759. if test "x$ac_ct_NMEDIT" = x; then
  5760. NMEDIT=":"
  5761. else
  5762. case $cross_compiling:$ac_tool_warned in
  5763. yes:)
  5764. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5765. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5766. ac_tool_warned=yes ;;
  5767. esac
  5768. NMEDIT=$ac_ct_NMEDIT
  5769. fi
  5770. else
  5771. NMEDIT="$ac_cv_prog_NMEDIT"
  5772. fi
  5773. if test -n "$ac_tool_prefix"; then
  5774. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5775. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5777. $as_echo_n "checking for $ac_word... " >&6; }
  5778. if ${ac_cv_prog_LIPO+:} false; then :
  5779. $as_echo_n "(cached) " >&6
  5780. else
  5781. if test -n "$LIPO"; then
  5782. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5783. else
  5784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5785. for as_dir in $PATH
  5786. do
  5787. IFS=$as_save_IFS
  5788. test -z "$as_dir" && as_dir=.
  5789. for ac_exec_ext in '' $ac_executable_extensions; do
  5790. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5791. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5792. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5793. break 2
  5794. fi
  5795. done
  5796. done
  5797. IFS=$as_save_IFS
  5798. fi
  5799. fi
  5800. LIPO=$ac_cv_prog_LIPO
  5801. if test -n "$LIPO"; then
  5802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5803. $as_echo "$LIPO" >&6; }
  5804. else
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5806. $as_echo "no" >&6; }
  5807. fi
  5808. fi
  5809. if test -z "$ac_cv_prog_LIPO"; then
  5810. ac_ct_LIPO=$LIPO
  5811. # Extract the first word of "lipo", so it can be a program name with args.
  5812. set dummy lipo; ac_word=$2
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5814. $as_echo_n "checking for $ac_word... " >&6; }
  5815. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5816. $as_echo_n "(cached) " >&6
  5817. else
  5818. if test -n "$ac_ct_LIPO"; then
  5819. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5820. else
  5821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5822. for as_dir in $PATH
  5823. do
  5824. IFS=$as_save_IFS
  5825. test -z "$as_dir" && as_dir=.
  5826. for ac_exec_ext in '' $ac_executable_extensions; do
  5827. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5828. ac_cv_prog_ac_ct_LIPO="lipo"
  5829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5830. break 2
  5831. fi
  5832. done
  5833. done
  5834. IFS=$as_save_IFS
  5835. fi
  5836. fi
  5837. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5838. if test -n "$ac_ct_LIPO"; then
  5839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5840. $as_echo "$ac_ct_LIPO" >&6; }
  5841. else
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5843. $as_echo "no" >&6; }
  5844. fi
  5845. if test "x$ac_ct_LIPO" = x; then
  5846. LIPO=":"
  5847. else
  5848. case $cross_compiling:$ac_tool_warned in
  5849. yes:)
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5851. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5852. ac_tool_warned=yes ;;
  5853. esac
  5854. LIPO=$ac_ct_LIPO
  5855. fi
  5856. else
  5857. LIPO="$ac_cv_prog_LIPO"
  5858. fi
  5859. if test -n "$ac_tool_prefix"; then
  5860. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5861. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5863. $as_echo_n "checking for $ac_word... " >&6; }
  5864. if ${ac_cv_prog_OTOOL+:} false; then :
  5865. $as_echo_n "(cached) " >&6
  5866. else
  5867. if test -n "$OTOOL"; then
  5868. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5869. else
  5870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5871. for as_dir in $PATH
  5872. do
  5873. IFS=$as_save_IFS
  5874. test -z "$as_dir" && as_dir=.
  5875. for ac_exec_ext in '' $ac_executable_extensions; do
  5876. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5877. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5879. break 2
  5880. fi
  5881. done
  5882. done
  5883. IFS=$as_save_IFS
  5884. fi
  5885. fi
  5886. OTOOL=$ac_cv_prog_OTOOL
  5887. if test -n "$OTOOL"; then
  5888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5889. $as_echo "$OTOOL" >&6; }
  5890. else
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5892. $as_echo "no" >&6; }
  5893. fi
  5894. fi
  5895. if test -z "$ac_cv_prog_OTOOL"; then
  5896. ac_ct_OTOOL=$OTOOL
  5897. # Extract the first word of "otool", so it can be a program name with args.
  5898. set dummy otool; ac_word=$2
  5899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5900. $as_echo_n "checking for $ac_word... " >&6; }
  5901. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5902. $as_echo_n "(cached) " >&6
  5903. else
  5904. if test -n "$ac_ct_OTOOL"; then
  5905. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5906. else
  5907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5908. for as_dir in $PATH
  5909. do
  5910. IFS=$as_save_IFS
  5911. test -z "$as_dir" && as_dir=.
  5912. for ac_exec_ext in '' $ac_executable_extensions; do
  5913. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5914. ac_cv_prog_ac_ct_OTOOL="otool"
  5915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5916. break 2
  5917. fi
  5918. done
  5919. done
  5920. IFS=$as_save_IFS
  5921. fi
  5922. fi
  5923. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5924. if test -n "$ac_ct_OTOOL"; then
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5926. $as_echo "$ac_ct_OTOOL" >&6; }
  5927. else
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5929. $as_echo "no" >&6; }
  5930. fi
  5931. if test "x$ac_ct_OTOOL" = x; then
  5932. OTOOL=":"
  5933. else
  5934. case $cross_compiling:$ac_tool_warned in
  5935. yes:)
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5937. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5938. ac_tool_warned=yes ;;
  5939. esac
  5940. OTOOL=$ac_ct_OTOOL
  5941. fi
  5942. else
  5943. OTOOL="$ac_cv_prog_OTOOL"
  5944. fi
  5945. if test -n "$ac_tool_prefix"; then
  5946. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5947. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5949. $as_echo_n "checking for $ac_word... " >&6; }
  5950. if ${ac_cv_prog_OTOOL64+:} false; then :
  5951. $as_echo_n "(cached) " >&6
  5952. else
  5953. if test -n "$OTOOL64"; then
  5954. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5955. else
  5956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5957. for as_dir in $PATH
  5958. do
  5959. IFS=$as_save_IFS
  5960. test -z "$as_dir" && as_dir=.
  5961. for ac_exec_ext in '' $ac_executable_extensions; do
  5962. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5963. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5965. break 2
  5966. fi
  5967. done
  5968. done
  5969. IFS=$as_save_IFS
  5970. fi
  5971. fi
  5972. OTOOL64=$ac_cv_prog_OTOOL64
  5973. if test -n "$OTOOL64"; then
  5974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5975. $as_echo "$OTOOL64" >&6; }
  5976. else
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5978. $as_echo "no" >&6; }
  5979. fi
  5980. fi
  5981. if test -z "$ac_cv_prog_OTOOL64"; then
  5982. ac_ct_OTOOL64=$OTOOL64
  5983. # Extract the first word of "otool64", so it can be a program name with args.
  5984. set dummy otool64; ac_word=$2
  5985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5986. $as_echo_n "checking for $ac_word... " >&6; }
  5987. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5988. $as_echo_n "(cached) " >&6
  5989. else
  5990. if test -n "$ac_ct_OTOOL64"; then
  5991. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5992. else
  5993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5994. for as_dir in $PATH
  5995. do
  5996. IFS=$as_save_IFS
  5997. test -z "$as_dir" && as_dir=.
  5998. for ac_exec_ext in '' $ac_executable_extensions; do
  5999. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6000. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6001. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6002. break 2
  6003. fi
  6004. done
  6005. done
  6006. IFS=$as_save_IFS
  6007. fi
  6008. fi
  6009. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6010. if test -n "$ac_ct_OTOOL64"; then
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6012. $as_echo "$ac_ct_OTOOL64" >&6; }
  6013. else
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6015. $as_echo "no" >&6; }
  6016. fi
  6017. if test "x$ac_ct_OTOOL64" = x; then
  6018. OTOOL64=":"
  6019. else
  6020. case $cross_compiling:$ac_tool_warned in
  6021. yes:)
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6023. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6024. ac_tool_warned=yes ;;
  6025. esac
  6026. OTOOL64=$ac_ct_OTOOL64
  6027. fi
  6028. else
  6029. OTOOL64="$ac_cv_prog_OTOOL64"
  6030. fi
  6031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6032. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6033. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6034. $as_echo_n "(cached) " >&6
  6035. else
  6036. lt_cv_apple_cc_single_mod=no
  6037. if test -z "${LT_MULTI_MODULE}"; then
  6038. # By default we will add the -single_module flag. You can override
  6039. # by either setting the environment variable LT_MULTI_MODULE
  6040. # non-empty at configure time, or by adding -multi_module to the
  6041. # link flags.
  6042. rm -rf libconftest.dylib*
  6043. echo "int foo(void){return 1;}" > conftest.c
  6044. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6045. -dynamiclib -Wl,-single_module conftest.c" >&5
  6046. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6047. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6048. _lt_result=$?
  6049. # If there is a non-empty error log, and "single_module"
  6050. # appears in it, assume the flag caused a linker warning
  6051. if test -s conftest.err && $GREP single_module conftest.err; then
  6052. cat conftest.err >&5
  6053. # Otherwise, if the output was created with a 0 exit code from
  6054. # the compiler, it worked.
  6055. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6056. lt_cv_apple_cc_single_mod=yes
  6057. else
  6058. cat conftest.err >&5
  6059. fi
  6060. rm -rf libconftest.dylib*
  6061. rm -f conftest.*
  6062. fi
  6063. fi
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6065. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6067. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6068. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6069. $as_echo_n "(cached) " >&6
  6070. else
  6071. lt_cv_ld_exported_symbols_list=no
  6072. save_LDFLAGS=$LDFLAGS
  6073. echo "_main" > conftest.sym
  6074. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6076. /* end confdefs.h. */
  6077. int
  6078. main ()
  6079. {
  6080. ;
  6081. return 0;
  6082. }
  6083. _ACEOF
  6084. if ac_fn_c_try_link "$LINENO"; then :
  6085. lt_cv_ld_exported_symbols_list=yes
  6086. else
  6087. lt_cv_ld_exported_symbols_list=no
  6088. fi
  6089. rm -f core conftest.err conftest.$ac_objext \
  6090. conftest$ac_exeext conftest.$ac_ext
  6091. LDFLAGS="$save_LDFLAGS"
  6092. fi
  6093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6094. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6096. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6097. if ${lt_cv_ld_force_load+:} false; then :
  6098. $as_echo_n "(cached) " >&6
  6099. else
  6100. lt_cv_ld_force_load=no
  6101. cat > conftest.c << _LT_EOF
  6102. int forced_loaded() { return 2;}
  6103. _LT_EOF
  6104. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6105. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6106. echo "$AR cru libconftest.a conftest.o" >&5
  6107. $AR cru libconftest.a conftest.o 2>&5
  6108. echo "$RANLIB libconftest.a" >&5
  6109. $RANLIB libconftest.a 2>&5
  6110. cat > conftest.c << _LT_EOF
  6111. int main() { return 0;}
  6112. _LT_EOF
  6113. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6114. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6115. _lt_result=$?
  6116. if test -s conftest.err && $GREP force_load conftest.err; then
  6117. cat conftest.err >&5
  6118. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6119. lt_cv_ld_force_load=yes
  6120. else
  6121. cat conftest.err >&5
  6122. fi
  6123. rm -f conftest.err libconftest.a conftest conftest.c
  6124. rm -rf conftest.dSYM
  6125. fi
  6126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6127. $as_echo "$lt_cv_ld_force_load" >&6; }
  6128. case $host_os in
  6129. rhapsody* | darwin1.[012])
  6130. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6131. darwin1.*)
  6132. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6133. darwin*) # darwin 5.x on
  6134. # if running on 10.5 or later, the deployment target defaults
  6135. # to the OS version, if on x86, and 10.4, the deployment
  6136. # target defaults to 10.4. Don't you love it?
  6137. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6138. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6139. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6140. 10.[012]*)
  6141. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6142. 10.*)
  6143. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6144. esac
  6145. ;;
  6146. esac
  6147. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6148. _lt_dar_single_mod='$single_module'
  6149. fi
  6150. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6151. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6152. else
  6153. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6154. fi
  6155. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6156. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6157. else
  6158. _lt_dsymutil=
  6159. fi
  6160. ;;
  6161. esac
  6162. ac_ext=c
  6163. ac_cpp='$CPP $CPPFLAGS'
  6164. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6165. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6166. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6168. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6169. # On Suns, sometimes $CPP names a directory.
  6170. if test -n "$CPP" && test -d "$CPP"; then
  6171. CPP=
  6172. fi
  6173. if test -z "$CPP"; then
  6174. if ${ac_cv_prog_CPP+:} false; then :
  6175. $as_echo_n "(cached) " >&6
  6176. else
  6177. # Double quotes because CPP needs to be expanded
  6178. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6179. do
  6180. ac_preproc_ok=false
  6181. for ac_c_preproc_warn_flag in '' yes
  6182. do
  6183. # Use a header file that comes with gcc, so configuring glibc
  6184. # with a fresh cross-compiler works.
  6185. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6186. # <limits.h> exists even on freestanding compilers.
  6187. # On the NeXT, cc -E runs the code through the compiler's parser,
  6188. # not just through cpp. "Syntax error" is here to catch this case.
  6189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6190. /* end confdefs.h. */
  6191. #ifdef __STDC__
  6192. # include <limits.h>
  6193. #else
  6194. # include <assert.h>
  6195. #endif
  6196. Syntax error
  6197. _ACEOF
  6198. if ac_fn_c_try_cpp "$LINENO"; then :
  6199. else
  6200. # Broken: fails on valid input.
  6201. continue
  6202. fi
  6203. rm -f conftest.err conftest.i conftest.$ac_ext
  6204. # OK, works on sane cases. Now check whether nonexistent headers
  6205. # can be detected and how.
  6206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6207. /* end confdefs.h. */
  6208. #include <ac_nonexistent.h>
  6209. _ACEOF
  6210. if ac_fn_c_try_cpp "$LINENO"; then :
  6211. # Broken: success on invalid input.
  6212. continue
  6213. else
  6214. # Passes both tests.
  6215. ac_preproc_ok=:
  6216. break
  6217. fi
  6218. rm -f conftest.err conftest.i conftest.$ac_ext
  6219. done
  6220. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6221. rm -f conftest.i conftest.err conftest.$ac_ext
  6222. if $ac_preproc_ok; then :
  6223. break
  6224. fi
  6225. done
  6226. ac_cv_prog_CPP=$CPP
  6227. fi
  6228. CPP=$ac_cv_prog_CPP
  6229. else
  6230. ac_cv_prog_CPP=$CPP
  6231. fi
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6233. $as_echo "$CPP" >&6; }
  6234. ac_preproc_ok=false
  6235. for ac_c_preproc_warn_flag in '' yes
  6236. do
  6237. # Use a header file that comes with gcc, so configuring glibc
  6238. # with a fresh cross-compiler works.
  6239. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6240. # <limits.h> exists even on freestanding compilers.
  6241. # On the NeXT, cc -E runs the code through the compiler's parser,
  6242. # not just through cpp. "Syntax error" is here to catch this case.
  6243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6244. /* end confdefs.h. */
  6245. #ifdef __STDC__
  6246. # include <limits.h>
  6247. #else
  6248. # include <assert.h>
  6249. #endif
  6250. Syntax error
  6251. _ACEOF
  6252. if ac_fn_c_try_cpp "$LINENO"; then :
  6253. else
  6254. # Broken: fails on valid input.
  6255. continue
  6256. fi
  6257. rm -f conftest.err conftest.i conftest.$ac_ext
  6258. # OK, works on sane cases. Now check whether nonexistent headers
  6259. # can be detected and how.
  6260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6261. /* end confdefs.h. */
  6262. #include <ac_nonexistent.h>
  6263. _ACEOF
  6264. if ac_fn_c_try_cpp "$LINENO"; then :
  6265. # Broken: success on invalid input.
  6266. continue
  6267. else
  6268. # Passes both tests.
  6269. ac_preproc_ok=:
  6270. break
  6271. fi
  6272. rm -f conftest.err conftest.i conftest.$ac_ext
  6273. done
  6274. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6275. rm -f conftest.i conftest.err conftest.$ac_ext
  6276. if $ac_preproc_ok; then :
  6277. else
  6278. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6279. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6280. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6281. See \`config.log' for more details" "$LINENO" 5; }
  6282. fi
  6283. ac_ext=c
  6284. ac_cpp='$CPP $CPPFLAGS'
  6285. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6286. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6287. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6289. $as_echo_n "checking for ANSI C header files... " >&6; }
  6290. if ${ac_cv_header_stdc+:} false; then :
  6291. $as_echo_n "(cached) " >&6
  6292. else
  6293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6294. /* end confdefs.h. */
  6295. #include <stdlib.h>
  6296. #include <stdarg.h>
  6297. #include <string.h>
  6298. #include <float.h>
  6299. int
  6300. main ()
  6301. {
  6302. ;
  6303. return 0;
  6304. }
  6305. _ACEOF
  6306. if ac_fn_c_try_compile "$LINENO"; then :
  6307. ac_cv_header_stdc=yes
  6308. else
  6309. ac_cv_header_stdc=no
  6310. fi
  6311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6312. if test $ac_cv_header_stdc = yes; then
  6313. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6315. /* end confdefs.h. */
  6316. #include <string.h>
  6317. _ACEOF
  6318. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6319. $EGREP "memchr" >/dev/null 2>&1; then :
  6320. else
  6321. ac_cv_header_stdc=no
  6322. fi
  6323. rm -f conftest*
  6324. fi
  6325. if test $ac_cv_header_stdc = yes; then
  6326. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6328. /* end confdefs.h. */
  6329. #include <stdlib.h>
  6330. _ACEOF
  6331. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6332. $EGREP "free" >/dev/null 2>&1; then :
  6333. else
  6334. ac_cv_header_stdc=no
  6335. fi
  6336. rm -f conftest*
  6337. fi
  6338. if test $ac_cv_header_stdc = yes; then
  6339. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6340. if test "$cross_compiling" = yes; then :
  6341. :
  6342. else
  6343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6344. /* end confdefs.h. */
  6345. #include <ctype.h>
  6346. #include <stdlib.h>
  6347. #if ((' ' & 0x0FF) == 0x020)
  6348. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6349. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6350. #else
  6351. # define ISLOWER(c) \
  6352. (('a' <= (c) && (c) <= 'i') \
  6353. || ('j' <= (c) && (c) <= 'r') \
  6354. || ('s' <= (c) && (c) <= 'z'))
  6355. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6356. #endif
  6357. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6358. int
  6359. main ()
  6360. {
  6361. int i;
  6362. for (i = 0; i < 256; i++)
  6363. if (XOR (islower (i), ISLOWER (i))
  6364. || toupper (i) != TOUPPER (i))
  6365. return 2;
  6366. return 0;
  6367. }
  6368. _ACEOF
  6369. if ac_fn_c_try_run "$LINENO"; then :
  6370. else
  6371. ac_cv_header_stdc=no
  6372. fi
  6373. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6374. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6375. fi
  6376. fi
  6377. fi
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6379. $as_echo "$ac_cv_header_stdc" >&6; }
  6380. if test $ac_cv_header_stdc = yes; then
  6381. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6382. fi
  6383. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6384. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6385. inttypes.h stdint.h unistd.h
  6386. do :
  6387. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6388. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6389. "
  6390. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6391. cat >>confdefs.h <<_ACEOF
  6392. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6393. _ACEOF
  6394. fi
  6395. done
  6396. for ac_header in dlfcn.h
  6397. do :
  6398. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6399. "
  6400. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6401. cat >>confdefs.h <<_ACEOF
  6402. #define HAVE_DLFCN_H 1
  6403. _ACEOF
  6404. fi
  6405. done
  6406. # Set options
  6407. enable_win32_dll=yes
  6408. case $host in
  6409. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6410. if test -n "$ac_tool_prefix"; then
  6411. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6412. set dummy ${ac_tool_prefix}as; ac_word=$2
  6413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6414. $as_echo_n "checking for $ac_word... " >&6; }
  6415. if ${ac_cv_prog_AS+:} false; then :
  6416. $as_echo_n "(cached) " >&6
  6417. else
  6418. if test -n "$AS"; then
  6419. ac_cv_prog_AS="$AS" # Let the user override the test.
  6420. else
  6421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6422. for as_dir in $PATH
  6423. do
  6424. IFS=$as_save_IFS
  6425. test -z "$as_dir" && as_dir=.
  6426. for ac_exec_ext in '' $ac_executable_extensions; do
  6427. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6428. ac_cv_prog_AS="${ac_tool_prefix}as"
  6429. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6430. break 2
  6431. fi
  6432. done
  6433. done
  6434. IFS=$as_save_IFS
  6435. fi
  6436. fi
  6437. AS=$ac_cv_prog_AS
  6438. if test -n "$AS"; then
  6439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6440. $as_echo "$AS" >&6; }
  6441. else
  6442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6443. $as_echo "no" >&6; }
  6444. fi
  6445. fi
  6446. if test -z "$ac_cv_prog_AS"; then
  6447. ac_ct_AS=$AS
  6448. # Extract the first word of "as", so it can be a program name with args.
  6449. set dummy as; ac_word=$2
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6451. $as_echo_n "checking for $ac_word... " >&6; }
  6452. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6453. $as_echo_n "(cached) " >&6
  6454. else
  6455. if test -n "$ac_ct_AS"; then
  6456. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6457. else
  6458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6459. for as_dir in $PATH
  6460. do
  6461. IFS=$as_save_IFS
  6462. test -z "$as_dir" && as_dir=.
  6463. for ac_exec_ext in '' $ac_executable_extensions; do
  6464. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6465. ac_cv_prog_ac_ct_AS="as"
  6466. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6467. break 2
  6468. fi
  6469. done
  6470. done
  6471. IFS=$as_save_IFS
  6472. fi
  6473. fi
  6474. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6475. if test -n "$ac_ct_AS"; then
  6476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6477. $as_echo "$ac_ct_AS" >&6; }
  6478. else
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6480. $as_echo "no" >&6; }
  6481. fi
  6482. if test "x$ac_ct_AS" = x; then
  6483. AS="false"
  6484. else
  6485. case $cross_compiling:$ac_tool_warned in
  6486. yes:)
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6488. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6489. ac_tool_warned=yes ;;
  6490. esac
  6491. AS=$ac_ct_AS
  6492. fi
  6493. else
  6494. AS="$ac_cv_prog_AS"
  6495. fi
  6496. if test -n "$ac_tool_prefix"; then
  6497. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6498. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6500. $as_echo_n "checking for $ac_word... " >&6; }
  6501. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6502. $as_echo_n "(cached) " >&6
  6503. else
  6504. if test -n "$DLLTOOL"; then
  6505. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6506. else
  6507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6508. for as_dir in $PATH
  6509. do
  6510. IFS=$as_save_IFS
  6511. test -z "$as_dir" && as_dir=.
  6512. for ac_exec_ext in '' $ac_executable_extensions; do
  6513. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6514. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6515. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6516. break 2
  6517. fi
  6518. done
  6519. done
  6520. IFS=$as_save_IFS
  6521. fi
  6522. fi
  6523. DLLTOOL=$ac_cv_prog_DLLTOOL
  6524. if test -n "$DLLTOOL"; then
  6525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6526. $as_echo "$DLLTOOL" >&6; }
  6527. else
  6528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6529. $as_echo "no" >&6; }
  6530. fi
  6531. fi
  6532. if test -z "$ac_cv_prog_DLLTOOL"; then
  6533. ac_ct_DLLTOOL=$DLLTOOL
  6534. # Extract the first word of "dlltool", so it can be a program name with args.
  6535. set dummy dlltool; ac_word=$2
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6537. $as_echo_n "checking for $ac_word... " >&6; }
  6538. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6539. $as_echo_n "(cached) " >&6
  6540. else
  6541. if test -n "$ac_ct_DLLTOOL"; then
  6542. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6543. else
  6544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6545. for as_dir in $PATH
  6546. do
  6547. IFS=$as_save_IFS
  6548. test -z "$as_dir" && as_dir=.
  6549. for ac_exec_ext in '' $ac_executable_extensions; do
  6550. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6551. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6552. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6553. break 2
  6554. fi
  6555. done
  6556. done
  6557. IFS=$as_save_IFS
  6558. fi
  6559. fi
  6560. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6561. if test -n "$ac_ct_DLLTOOL"; then
  6562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6563. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6564. else
  6565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6566. $as_echo "no" >&6; }
  6567. fi
  6568. if test "x$ac_ct_DLLTOOL" = x; then
  6569. DLLTOOL="false"
  6570. else
  6571. case $cross_compiling:$ac_tool_warned in
  6572. yes:)
  6573. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6574. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6575. ac_tool_warned=yes ;;
  6576. esac
  6577. DLLTOOL=$ac_ct_DLLTOOL
  6578. fi
  6579. else
  6580. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6581. fi
  6582. if test -n "$ac_tool_prefix"; then
  6583. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6584. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6586. $as_echo_n "checking for $ac_word... " >&6; }
  6587. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6588. $as_echo_n "(cached) " >&6
  6589. else
  6590. if test -n "$OBJDUMP"; then
  6591. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6592. else
  6593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6594. for as_dir in $PATH
  6595. do
  6596. IFS=$as_save_IFS
  6597. test -z "$as_dir" && as_dir=.
  6598. for ac_exec_ext in '' $ac_executable_extensions; do
  6599. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6600. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6601. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6602. break 2
  6603. fi
  6604. done
  6605. done
  6606. IFS=$as_save_IFS
  6607. fi
  6608. fi
  6609. OBJDUMP=$ac_cv_prog_OBJDUMP
  6610. if test -n "$OBJDUMP"; then
  6611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6612. $as_echo "$OBJDUMP" >&6; }
  6613. else
  6614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6615. $as_echo "no" >&6; }
  6616. fi
  6617. fi
  6618. if test -z "$ac_cv_prog_OBJDUMP"; then
  6619. ac_ct_OBJDUMP=$OBJDUMP
  6620. # Extract the first word of "objdump", so it can be a program name with args.
  6621. set dummy objdump; ac_word=$2
  6622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6623. $as_echo_n "checking for $ac_word... " >&6; }
  6624. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6625. $as_echo_n "(cached) " >&6
  6626. else
  6627. if test -n "$ac_ct_OBJDUMP"; then
  6628. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6629. else
  6630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6631. for as_dir in $PATH
  6632. do
  6633. IFS=$as_save_IFS
  6634. test -z "$as_dir" && as_dir=.
  6635. for ac_exec_ext in '' $ac_executable_extensions; do
  6636. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6637. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6639. break 2
  6640. fi
  6641. done
  6642. done
  6643. IFS=$as_save_IFS
  6644. fi
  6645. fi
  6646. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6647. if test -n "$ac_ct_OBJDUMP"; then
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6649. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6650. else
  6651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6652. $as_echo "no" >&6; }
  6653. fi
  6654. if test "x$ac_ct_OBJDUMP" = x; then
  6655. OBJDUMP="false"
  6656. else
  6657. case $cross_compiling:$ac_tool_warned in
  6658. yes:)
  6659. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6660. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6661. ac_tool_warned=yes ;;
  6662. esac
  6663. OBJDUMP=$ac_ct_OBJDUMP
  6664. fi
  6665. else
  6666. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6667. fi
  6668. ;;
  6669. esac
  6670. test -z "$AS" && AS=as
  6671. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6672. test -z "$OBJDUMP" && OBJDUMP=objdump
  6673. enable_dlopen=no
  6674. # Check whether --enable-shared was given.
  6675. if test "${enable_shared+set}" = set; then :
  6676. enableval=$enable_shared; p=${PACKAGE-default}
  6677. case $enableval in
  6678. yes) enable_shared=yes ;;
  6679. no) enable_shared=no ;;
  6680. *)
  6681. enable_shared=no
  6682. # Look at the argument we got. We use all the common list separators.
  6683. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6684. for pkg in $enableval; do
  6685. IFS="$lt_save_ifs"
  6686. if test "X$pkg" = "X$p"; then
  6687. enable_shared=yes
  6688. fi
  6689. done
  6690. IFS="$lt_save_ifs"
  6691. ;;
  6692. esac
  6693. else
  6694. enable_shared=yes
  6695. fi
  6696. # Check whether --enable-static was given.
  6697. if test "${enable_static+set}" = set; then :
  6698. enableval=$enable_static; p=${PACKAGE-default}
  6699. case $enableval in
  6700. yes) enable_static=yes ;;
  6701. no) enable_static=no ;;
  6702. *)
  6703. enable_static=no
  6704. # Look at the argument we got. We use all the common list separators.
  6705. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6706. for pkg in $enableval; do
  6707. IFS="$lt_save_ifs"
  6708. if test "X$pkg" = "X$p"; then
  6709. enable_static=yes
  6710. fi
  6711. done
  6712. IFS="$lt_save_ifs"
  6713. ;;
  6714. esac
  6715. else
  6716. enable_static=yes
  6717. fi
  6718. # Check whether --with-pic was given.
  6719. if test "${with_pic+set}" = set; then :
  6720. withval=$with_pic; lt_p=${PACKAGE-default}
  6721. case $withval in
  6722. yes|no) pic_mode=$withval ;;
  6723. *)
  6724. pic_mode=default
  6725. # Look at the argument we got. We use all the common list separators.
  6726. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6727. for lt_pkg in $withval; do
  6728. IFS="$lt_save_ifs"
  6729. if test "X$lt_pkg" = "X$lt_p"; then
  6730. pic_mode=yes
  6731. fi
  6732. done
  6733. IFS="$lt_save_ifs"
  6734. ;;
  6735. esac
  6736. else
  6737. pic_mode=default
  6738. fi
  6739. test -z "$pic_mode" && pic_mode=default
  6740. # Check whether --enable-fast-install was given.
  6741. if test "${enable_fast_install+set}" = set; then :
  6742. enableval=$enable_fast_install; p=${PACKAGE-default}
  6743. case $enableval in
  6744. yes) enable_fast_install=yes ;;
  6745. no) enable_fast_install=no ;;
  6746. *)
  6747. enable_fast_install=no
  6748. # Look at the argument we got. We use all the common list separators.
  6749. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6750. for pkg in $enableval; do
  6751. IFS="$lt_save_ifs"
  6752. if test "X$pkg" = "X$p"; then
  6753. enable_fast_install=yes
  6754. fi
  6755. done
  6756. IFS="$lt_save_ifs"
  6757. ;;
  6758. esac
  6759. else
  6760. enable_fast_install=yes
  6761. fi
  6762. # This can be used to rebuild libtool when needed
  6763. LIBTOOL_DEPS="$ltmain"
  6764. # Always use our own libtool.
  6765. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6766. test -z "$LN_S" && LN_S="ln -s"
  6767. if test -n "${ZSH_VERSION+set}" ; then
  6768. setopt NO_GLOB_SUBST
  6769. fi
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6771. $as_echo_n "checking for objdir... " >&6; }
  6772. if ${lt_cv_objdir+:} false; then :
  6773. $as_echo_n "(cached) " >&6
  6774. else
  6775. rm -f .libs 2>/dev/null
  6776. mkdir .libs 2>/dev/null
  6777. if test -d .libs; then
  6778. lt_cv_objdir=.libs
  6779. else
  6780. # MS-DOS does not allow filenames that begin with a dot.
  6781. lt_cv_objdir=_libs
  6782. fi
  6783. rmdir .libs 2>/dev/null
  6784. fi
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6786. $as_echo "$lt_cv_objdir" >&6; }
  6787. objdir=$lt_cv_objdir
  6788. cat >>confdefs.h <<_ACEOF
  6789. #define LT_OBJDIR "$lt_cv_objdir/"
  6790. _ACEOF
  6791. case $host_os in
  6792. aix3*)
  6793. # AIX sometimes has problems with the GCC collect2 program. For some
  6794. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6795. # vanish in a puff of smoke.
  6796. if test "X${COLLECT_NAMES+set}" != Xset; then
  6797. COLLECT_NAMES=
  6798. export COLLECT_NAMES
  6799. fi
  6800. ;;
  6801. esac
  6802. # Global variables:
  6803. ofile=libtool
  6804. can_build_shared=yes
  6805. # All known linkers require a `.a' archive for static linking (except MSVC,
  6806. # which needs '.lib').
  6807. libext=a
  6808. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6809. old_CC="$CC"
  6810. old_CFLAGS="$CFLAGS"
  6811. # Set sane defaults for various variables
  6812. test -z "$CC" && CC=cc
  6813. test -z "$LTCC" && LTCC=$CC
  6814. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6815. test -z "$LD" && LD=ld
  6816. test -z "$ac_objext" && ac_objext=o
  6817. for cc_temp in $compiler""; do
  6818. case $cc_temp in
  6819. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6820. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6821. \-*) ;;
  6822. *) break;;
  6823. esac
  6824. done
  6825. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6826. # Only perform the check for file, if the check method requires it
  6827. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6828. case $deplibs_check_method in
  6829. file_magic*)
  6830. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6832. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6833. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6834. $as_echo_n "(cached) " >&6
  6835. else
  6836. case $MAGIC_CMD in
  6837. [\\/*] | ?:[\\/]*)
  6838. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6839. ;;
  6840. *)
  6841. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6842. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6843. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6844. for ac_dir in $ac_dummy; do
  6845. IFS="$lt_save_ifs"
  6846. test -z "$ac_dir" && ac_dir=.
  6847. if test -f $ac_dir/${ac_tool_prefix}file; then
  6848. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6849. if test -n "$file_magic_test_file"; then
  6850. case $deplibs_check_method in
  6851. "file_magic "*)
  6852. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6853. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6854. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6855. $EGREP "$file_magic_regex" > /dev/null; then
  6856. :
  6857. else
  6858. cat <<_LT_EOF 1>&2
  6859. *** Warning: the command libtool uses to detect shared libraries,
  6860. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6861. *** The result is that libtool may fail to recognize shared libraries
  6862. *** as such. This will affect the creation of libtool libraries that
  6863. *** depend on shared libraries, but programs linked with such libtool
  6864. *** libraries will work regardless of this problem. Nevertheless, you
  6865. *** may want to report the problem to your system manager and/or to
  6866. *** bug-libtool@gnu.org
  6867. _LT_EOF
  6868. fi ;;
  6869. esac
  6870. fi
  6871. break
  6872. fi
  6873. done
  6874. IFS="$lt_save_ifs"
  6875. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6876. ;;
  6877. esac
  6878. fi
  6879. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6880. if test -n "$MAGIC_CMD"; then
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6882. $as_echo "$MAGIC_CMD" >&6; }
  6883. else
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6885. $as_echo "no" >&6; }
  6886. fi
  6887. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6888. if test -n "$ac_tool_prefix"; then
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6890. $as_echo_n "checking for file... " >&6; }
  6891. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6892. $as_echo_n "(cached) " >&6
  6893. else
  6894. case $MAGIC_CMD in
  6895. [\\/*] | ?:[\\/]*)
  6896. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6897. ;;
  6898. *)
  6899. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6900. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6901. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6902. for ac_dir in $ac_dummy; do
  6903. IFS="$lt_save_ifs"
  6904. test -z "$ac_dir" && ac_dir=.
  6905. if test -f $ac_dir/file; then
  6906. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6907. if test -n "$file_magic_test_file"; then
  6908. case $deplibs_check_method in
  6909. "file_magic "*)
  6910. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6911. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6912. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6913. $EGREP "$file_magic_regex" > /dev/null; then
  6914. :
  6915. else
  6916. cat <<_LT_EOF 1>&2
  6917. *** Warning: the command libtool uses to detect shared libraries,
  6918. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6919. *** The result is that libtool may fail to recognize shared libraries
  6920. *** as such. This will affect the creation of libtool libraries that
  6921. *** depend on shared libraries, but programs linked with such libtool
  6922. *** libraries will work regardless of this problem. Nevertheless, you
  6923. *** may want to report the problem to your system manager and/or to
  6924. *** bug-libtool@gnu.org
  6925. _LT_EOF
  6926. fi ;;
  6927. esac
  6928. fi
  6929. break
  6930. fi
  6931. done
  6932. IFS="$lt_save_ifs"
  6933. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6934. ;;
  6935. esac
  6936. fi
  6937. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6938. if test -n "$MAGIC_CMD"; then
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6940. $as_echo "$MAGIC_CMD" >&6; }
  6941. else
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6943. $as_echo "no" >&6; }
  6944. fi
  6945. else
  6946. MAGIC_CMD=:
  6947. fi
  6948. fi
  6949. fi
  6950. ;;
  6951. esac
  6952. # Use C for the default configuration in the libtool script
  6953. lt_save_CC="$CC"
  6954. ac_ext=c
  6955. ac_cpp='$CPP $CPPFLAGS'
  6956. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6957. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6958. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6959. # Source file extension for C test sources.
  6960. ac_ext=c
  6961. # Object file extension for compiled C test sources.
  6962. objext=o
  6963. objext=$objext
  6964. # Code to be used in simple compile tests
  6965. lt_simple_compile_test_code="int some_variable = 0;"
  6966. # Code to be used in simple link tests
  6967. lt_simple_link_test_code='int main(){return(0);}'
  6968. # If no C compiler was specified, use CC.
  6969. LTCC=${LTCC-"$CC"}
  6970. # If no C compiler flags were specified, use CFLAGS.
  6971. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6972. # Allow CC to be a program name with arguments.
  6973. compiler=$CC
  6974. # Save the default compiler, since it gets overwritten when the other
  6975. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6976. compiler_DEFAULT=$CC
  6977. # save warnings/boilerplate of simple test code
  6978. ac_outfile=conftest.$ac_objext
  6979. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6980. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6981. _lt_compiler_boilerplate=`cat conftest.err`
  6982. $RM conftest*
  6983. ac_outfile=conftest.$ac_objext
  6984. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6985. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6986. _lt_linker_boilerplate=`cat conftest.err`
  6987. $RM -r conftest*
  6988. ## CAVEAT EMPTOR:
  6989. ## There is no encapsulation within the following macros, do not change
  6990. ## the running order or otherwise move them around unless you know exactly
  6991. ## what you are doing...
  6992. if test -n "$compiler"; then
  6993. lt_prog_compiler_no_builtin_flag=
  6994. if test "$GCC" = yes; then
  6995. case $cc_basename in
  6996. nvcc*)
  6997. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6998. *)
  6999. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7000. esac
  7001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7002. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7003. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7004. $as_echo_n "(cached) " >&6
  7005. else
  7006. lt_cv_prog_compiler_rtti_exceptions=no
  7007. ac_outfile=conftest.$ac_objext
  7008. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7009. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7010. # Insert the option either (1) after the last *FLAGS variable, or
  7011. # (2) before a word containing "conftest.", or (3) at the end.
  7012. # Note that $ac_compile itself does not contain backslashes and begins
  7013. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7014. # The option is referenced via a variable to avoid confusing sed.
  7015. lt_compile=`echo "$ac_compile" | $SED \
  7016. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7017. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7018. -e 's:$: $lt_compiler_flag:'`
  7019. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7020. (eval "$lt_compile" 2>conftest.err)
  7021. ac_status=$?
  7022. cat conftest.err >&5
  7023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7024. if (exit $ac_status) && test -s "$ac_outfile"; then
  7025. # The compiler can only warn and ignore the option if not recognized
  7026. # So say no if there are warnings other than the usual output.
  7027. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7028. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7029. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7030. lt_cv_prog_compiler_rtti_exceptions=yes
  7031. fi
  7032. fi
  7033. $RM conftest*
  7034. fi
  7035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7036. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7037. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7038. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7039. else
  7040. :
  7041. fi
  7042. fi
  7043. lt_prog_compiler_wl=
  7044. lt_prog_compiler_pic=
  7045. lt_prog_compiler_static=
  7046. if test "$GCC" = yes; then
  7047. lt_prog_compiler_wl='-Wl,'
  7048. lt_prog_compiler_static='-static'
  7049. case $host_os in
  7050. aix*)
  7051. # All AIX code is PIC.
  7052. if test "$host_cpu" = ia64; then
  7053. # AIX 5 now supports IA64 processor
  7054. lt_prog_compiler_static='-Bstatic'
  7055. fi
  7056. ;;
  7057. amigaos*)
  7058. case $host_cpu in
  7059. powerpc)
  7060. # see comment about AmigaOS4 .so support
  7061. lt_prog_compiler_pic='-fPIC'
  7062. ;;
  7063. m68k)
  7064. # FIXME: we need at least 68020 code to build shared libraries, but
  7065. # adding the `-m68020' flag to GCC prevents building anything better,
  7066. # like `-m68040'.
  7067. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7068. ;;
  7069. esac
  7070. ;;
  7071. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7072. # PIC is the default for these OSes.
  7073. ;;
  7074. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7075. # This hack is so that the source file can tell whether it is being
  7076. # built for inclusion in a dll (and should export symbols for example).
  7077. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7078. # (--disable-auto-import) libraries
  7079. lt_prog_compiler_pic='-DDLL_EXPORT'
  7080. ;;
  7081. darwin* | rhapsody*)
  7082. # PIC is the default on this platform
  7083. # Common symbols not allowed in MH_DYLIB files
  7084. lt_prog_compiler_pic='-fno-common'
  7085. ;;
  7086. haiku*)
  7087. # PIC is the default for Haiku.
  7088. # The "-static" flag exists, but is broken.
  7089. lt_prog_compiler_static=
  7090. ;;
  7091. hpux*)
  7092. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7093. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7094. # sets the default TLS model and affects inlining.
  7095. case $host_cpu in
  7096. hppa*64*)
  7097. # +Z the default
  7098. ;;
  7099. *)
  7100. lt_prog_compiler_pic='-fPIC'
  7101. ;;
  7102. esac
  7103. ;;
  7104. interix[3-9]*)
  7105. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7106. # Instead, we relocate shared libraries at runtime.
  7107. ;;
  7108. msdosdjgpp*)
  7109. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7110. # on systems that don't support them.
  7111. lt_prog_compiler_can_build_shared=no
  7112. enable_shared=no
  7113. ;;
  7114. *nto* | *qnx*)
  7115. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7116. # it will coredump.
  7117. lt_prog_compiler_pic='-fPIC -shared'
  7118. ;;
  7119. sysv4*MP*)
  7120. if test -d /usr/nec; then
  7121. lt_prog_compiler_pic=-Kconform_pic
  7122. fi
  7123. ;;
  7124. *)
  7125. lt_prog_compiler_pic='-fPIC'
  7126. ;;
  7127. esac
  7128. case $cc_basename in
  7129. nvcc*) # Cuda Compiler Driver 2.2
  7130. lt_prog_compiler_wl='-Xlinker '
  7131. if test -n "$lt_prog_compiler_pic"; then
  7132. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7133. fi
  7134. ;;
  7135. esac
  7136. else
  7137. # PORTME Check for flag to pass linker flags through the system compiler.
  7138. case $host_os in
  7139. aix*)
  7140. lt_prog_compiler_wl='-Wl,'
  7141. if test "$host_cpu" = ia64; then
  7142. # AIX 5 now supports IA64 processor
  7143. lt_prog_compiler_static='-Bstatic'
  7144. else
  7145. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7146. fi
  7147. ;;
  7148. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7149. # This hack is so that the source file can tell whether it is being
  7150. # built for inclusion in a dll (and should export symbols for example).
  7151. lt_prog_compiler_pic='-DDLL_EXPORT'
  7152. ;;
  7153. hpux9* | hpux10* | hpux11*)
  7154. lt_prog_compiler_wl='-Wl,'
  7155. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7156. # not for PA HP-UX.
  7157. case $host_cpu in
  7158. hppa*64*|ia64*)
  7159. # +Z the default
  7160. ;;
  7161. *)
  7162. lt_prog_compiler_pic='+Z'
  7163. ;;
  7164. esac
  7165. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7166. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7167. ;;
  7168. irix5* | irix6* | nonstopux*)
  7169. lt_prog_compiler_wl='-Wl,'
  7170. # PIC (with -KPIC) is the default.
  7171. lt_prog_compiler_static='-non_shared'
  7172. ;;
  7173. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7174. case $cc_basename in
  7175. # old Intel for x86_64 which still supported -KPIC.
  7176. ecc*)
  7177. lt_prog_compiler_wl='-Wl,'
  7178. lt_prog_compiler_pic='-KPIC'
  7179. lt_prog_compiler_static='-static'
  7180. ;;
  7181. # icc used to be incompatible with GCC.
  7182. # ICC 10 doesn't accept -KPIC any more.
  7183. icc* | ifort*)
  7184. lt_prog_compiler_wl='-Wl,'
  7185. lt_prog_compiler_pic='-fPIC'
  7186. lt_prog_compiler_static='-static'
  7187. ;;
  7188. # Lahey Fortran 8.1.
  7189. lf95*)
  7190. lt_prog_compiler_wl='-Wl,'
  7191. lt_prog_compiler_pic='--shared'
  7192. lt_prog_compiler_static='--static'
  7193. ;;
  7194. nagfor*)
  7195. # NAG Fortran compiler
  7196. lt_prog_compiler_wl='-Wl,-Wl,,'
  7197. lt_prog_compiler_pic='-PIC'
  7198. lt_prog_compiler_static='-Bstatic'
  7199. ;;
  7200. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7201. # Portland Group compilers (*not* the Pentium gcc compiler,
  7202. # which looks to be a dead project)
  7203. lt_prog_compiler_wl='-Wl,'
  7204. lt_prog_compiler_pic='-fpic'
  7205. lt_prog_compiler_static='-Bstatic'
  7206. ;;
  7207. ccc*)
  7208. lt_prog_compiler_wl='-Wl,'
  7209. # All Alpha code is PIC.
  7210. lt_prog_compiler_static='-non_shared'
  7211. ;;
  7212. xl* | bgxl* | bgf* | mpixl*)
  7213. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7214. lt_prog_compiler_wl='-Wl,'
  7215. lt_prog_compiler_pic='-qpic'
  7216. lt_prog_compiler_static='-qstaticlink'
  7217. ;;
  7218. *)
  7219. case `$CC -V 2>&1 | sed 5q` in
  7220. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7221. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7222. lt_prog_compiler_pic='-KPIC'
  7223. lt_prog_compiler_static='-Bstatic'
  7224. lt_prog_compiler_wl=''
  7225. ;;
  7226. *Sun\ F* | *Sun*Fortran*)
  7227. lt_prog_compiler_pic='-KPIC'
  7228. lt_prog_compiler_static='-Bstatic'
  7229. lt_prog_compiler_wl='-Qoption ld '
  7230. ;;
  7231. *Sun\ C*)
  7232. # Sun C 5.9
  7233. lt_prog_compiler_pic='-KPIC'
  7234. lt_prog_compiler_static='-Bstatic'
  7235. lt_prog_compiler_wl='-Wl,'
  7236. ;;
  7237. *Intel*\ [CF]*Compiler*)
  7238. lt_prog_compiler_wl='-Wl,'
  7239. lt_prog_compiler_pic='-fPIC'
  7240. lt_prog_compiler_static='-static'
  7241. ;;
  7242. *Portland\ Group*)
  7243. lt_prog_compiler_wl='-Wl,'
  7244. lt_prog_compiler_pic='-fpic'
  7245. lt_prog_compiler_static='-Bstatic'
  7246. ;;
  7247. esac
  7248. ;;
  7249. esac
  7250. ;;
  7251. newsos6)
  7252. lt_prog_compiler_pic='-KPIC'
  7253. lt_prog_compiler_static='-Bstatic'
  7254. ;;
  7255. *nto* | *qnx*)
  7256. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7257. # it will coredump.
  7258. lt_prog_compiler_pic='-fPIC -shared'
  7259. ;;
  7260. osf3* | osf4* | osf5*)
  7261. lt_prog_compiler_wl='-Wl,'
  7262. # All OSF/1 code is PIC.
  7263. lt_prog_compiler_static='-non_shared'
  7264. ;;
  7265. rdos*)
  7266. lt_prog_compiler_static='-non_shared'
  7267. ;;
  7268. solaris*)
  7269. lt_prog_compiler_pic='-KPIC'
  7270. lt_prog_compiler_static='-Bstatic'
  7271. case $cc_basename in
  7272. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7273. lt_prog_compiler_wl='-Qoption ld ';;
  7274. *)
  7275. lt_prog_compiler_wl='-Wl,';;
  7276. esac
  7277. ;;
  7278. sunos4*)
  7279. lt_prog_compiler_wl='-Qoption ld '
  7280. lt_prog_compiler_pic='-PIC'
  7281. lt_prog_compiler_static='-Bstatic'
  7282. ;;
  7283. sysv4 | sysv4.2uw2* | sysv4.3*)
  7284. lt_prog_compiler_wl='-Wl,'
  7285. lt_prog_compiler_pic='-KPIC'
  7286. lt_prog_compiler_static='-Bstatic'
  7287. ;;
  7288. sysv4*MP*)
  7289. if test -d /usr/nec ;then
  7290. lt_prog_compiler_pic='-Kconform_pic'
  7291. lt_prog_compiler_static='-Bstatic'
  7292. fi
  7293. ;;
  7294. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7295. lt_prog_compiler_wl='-Wl,'
  7296. lt_prog_compiler_pic='-KPIC'
  7297. lt_prog_compiler_static='-Bstatic'
  7298. ;;
  7299. unicos*)
  7300. lt_prog_compiler_wl='-Wl,'
  7301. lt_prog_compiler_can_build_shared=no
  7302. ;;
  7303. uts4*)
  7304. lt_prog_compiler_pic='-pic'
  7305. lt_prog_compiler_static='-Bstatic'
  7306. ;;
  7307. *)
  7308. lt_prog_compiler_can_build_shared=no
  7309. ;;
  7310. esac
  7311. fi
  7312. case $host_os in
  7313. # For platforms which do not support PIC, -DPIC is meaningless:
  7314. *djgpp*)
  7315. lt_prog_compiler_pic=
  7316. ;;
  7317. *)
  7318. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7319. ;;
  7320. esac
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7322. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7323. if ${lt_cv_prog_compiler_pic+:} false; then :
  7324. $as_echo_n "(cached) " >&6
  7325. else
  7326. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7327. fi
  7328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7329. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7330. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7331. #
  7332. # Check to make sure the PIC flag actually works.
  7333. #
  7334. if test -n "$lt_prog_compiler_pic"; then
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7336. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7337. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7338. $as_echo_n "(cached) " >&6
  7339. else
  7340. lt_cv_prog_compiler_pic_works=no
  7341. ac_outfile=conftest.$ac_objext
  7342. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7343. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7344. # Insert the option either (1) after the last *FLAGS variable, or
  7345. # (2) before a word containing "conftest.", or (3) at the end.
  7346. # Note that $ac_compile itself does not contain backslashes and begins
  7347. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7348. # The option is referenced via a variable to avoid confusing sed.
  7349. lt_compile=`echo "$ac_compile" | $SED \
  7350. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7351. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7352. -e 's:$: $lt_compiler_flag:'`
  7353. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7354. (eval "$lt_compile" 2>conftest.err)
  7355. ac_status=$?
  7356. cat conftest.err >&5
  7357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7358. if (exit $ac_status) && test -s "$ac_outfile"; then
  7359. # The compiler can only warn and ignore the option if not recognized
  7360. # So say no if there are warnings other than the usual output.
  7361. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7362. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7363. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7364. lt_cv_prog_compiler_pic_works=yes
  7365. fi
  7366. fi
  7367. $RM conftest*
  7368. fi
  7369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7370. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7371. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7372. case $lt_prog_compiler_pic in
  7373. "" | " "*) ;;
  7374. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7375. esac
  7376. else
  7377. lt_prog_compiler_pic=
  7378. lt_prog_compiler_can_build_shared=no
  7379. fi
  7380. fi
  7381. #
  7382. # Check to make sure the static flag actually works.
  7383. #
  7384. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7386. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7387. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7388. $as_echo_n "(cached) " >&6
  7389. else
  7390. lt_cv_prog_compiler_static_works=no
  7391. save_LDFLAGS="$LDFLAGS"
  7392. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7393. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7394. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7395. # The linker can only warn and ignore the option if not recognized
  7396. # So say no if there are warnings
  7397. if test -s conftest.err; then
  7398. # Append any errors to the config.log.
  7399. cat conftest.err 1>&5
  7400. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7401. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7402. if diff conftest.exp conftest.er2 >/dev/null; then
  7403. lt_cv_prog_compiler_static_works=yes
  7404. fi
  7405. else
  7406. lt_cv_prog_compiler_static_works=yes
  7407. fi
  7408. fi
  7409. $RM -r conftest*
  7410. LDFLAGS="$save_LDFLAGS"
  7411. fi
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7413. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7414. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7415. :
  7416. else
  7417. lt_prog_compiler_static=
  7418. fi
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7420. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7421. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7422. $as_echo_n "(cached) " >&6
  7423. else
  7424. lt_cv_prog_compiler_c_o=no
  7425. $RM -r conftest 2>/dev/null
  7426. mkdir conftest
  7427. cd conftest
  7428. mkdir out
  7429. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7430. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7431. # Insert the option either (1) after the last *FLAGS variable, or
  7432. # (2) before a word containing "conftest.", or (3) at the end.
  7433. # Note that $ac_compile itself does not contain backslashes and begins
  7434. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7435. lt_compile=`echo "$ac_compile" | $SED \
  7436. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7437. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7438. -e 's:$: $lt_compiler_flag:'`
  7439. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7440. (eval "$lt_compile" 2>out/conftest.err)
  7441. ac_status=$?
  7442. cat out/conftest.err >&5
  7443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7444. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7445. then
  7446. # The compiler can only warn and ignore the option if not recognized
  7447. # So say no if there are warnings
  7448. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7449. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7450. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7451. lt_cv_prog_compiler_c_o=yes
  7452. fi
  7453. fi
  7454. chmod u+w . 2>&5
  7455. $RM conftest*
  7456. # SGI C++ compiler will create directory out/ii_files/ for
  7457. # template instantiation
  7458. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7459. $RM out/* && rmdir out
  7460. cd ..
  7461. $RM -r conftest
  7462. $RM conftest*
  7463. fi
  7464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7465. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7467. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7468. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7469. $as_echo_n "(cached) " >&6
  7470. else
  7471. lt_cv_prog_compiler_c_o=no
  7472. $RM -r conftest 2>/dev/null
  7473. mkdir conftest
  7474. cd conftest
  7475. mkdir out
  7476. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7477. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7478. # Insert the option either (1) after the last *FLAGS variable, or
  7479. # (2) before a word containing "conftest.", or (3) at the end.
  7480. # Note that $ac_compile itself does not contain backslashes and begins
  7481. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7482. lt_compile=`echo "$ac_compile" | $SED \
  7483. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7484. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7485. -e 's:$: $lt_compiler_flag:'`
  7486. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7487. (eval "$lt_compile" 2>out/conftest.err)
  7488. ac_status=$?
  7489. cat out/conftest.err >&5
  7490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7491. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7492. then
  7493. # The compiler can only warn and ignore the option if not recognized
  7494. # So say no if there are warnings
  7495. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7496. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7497. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7498. lt_cv_prog_compiler_c_o=yes
  7499. fi
  7500. fi
  7501. chmod u+w . 2>&5
  7502. $RM conftest*
  7503. # SGI C++ compiler will create directory out/ii_files/ for
  7504. # template instantiation
  7505. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7506. $RM out/* && rmdir out
  7507. cd ..
  7508. $RM -r conftest
  7509. $RM conftest*
  7510. fi
  7511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7512. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7513. hard_links="nottested"
  7514. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7515. # do not overwrite the value of need_locks provided by the user
  7516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7517. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7518. hard_links=yes
  7519. $RM conftest*
  7520. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7521. touch conftest.a
  7522. ln conftest.a conftest.b 2>&5 || hard_links=no
  7523. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7525. $as_echo "$hard_links" >&6; }
  7526. if test "$hard_links" = no; then
  7527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7528. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7529. need_locks=warn
  7530. fi
  7531. else
  7532. need_locks=no
  7533. fi
  7534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7535. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7536. runpath_var=
  7537. allow_undefined_flag=
  7538. always_export_symbols=no
  7539. archive_cmds=
  7540. archive_expsym_cmds=
  7541. compiler_needs_object=no
  7542. enable_shared_with_static_runtimes=no
  7543. export_dynamic_flag_spec=
  7544. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7545. hardcode_automatic=no
  7546. hardcode_direct=no
  7547. hardcode_direct_absolute=no
  7548. hardcode_libdir_flag_spec=
  7549. hardcode_libdir_separator=
  7550. hardcode_minus_L=no
  7551. hardcode_shlibpath_var=unsupported
  7552. inherit_rpath=no
  7553. link_all_deplibs=unknown
  7554. module_cmds=
  7555. module_expsym_cmds=
  7556. old_archive_from_new_cmds=
  7557. old_archive_from_expsyms_cmds=
  7558. thread_safe_flag_spec=
  7559. whole_archive_flag_spec=
  7560. # include_expsyms should be a list of space-separated symbols to be *always*
  7561. # included in the symbol list
  7562. include_expsyms=
  7563. # exclude_expsyms can be an extended regexp of symbols to exclude
  7564. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7565. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7566. # as well as any symbol that contains `d'.
  7567. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7568. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7569. # platforms (ab)use it in PIC code, but their linkers get confused if
  7570. # the symbol is explicitly referenced. Since portable code cannot
  7571. # rely on this symbol name, it's probably fine to never include it in
  7572. # preloaded symbol tables.
  7573. # Exclude shared library initialization/finalization symbols.
  7574. extract_expsyms_cmds=
  7575. case $host_os in
  7576. cygwin* | mingw* | pw32* | cegcc*)
  7577. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7578. # When not using gcc, we currently assume that we are using
  7579. # Microsoft Visual C++.
  7580. if test "$GCC" != yes; then
  7581. with_gnu_ld=no
  7582. fi
  7583. ;;
  7584. interix*)
  7585. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7586. with_gnu_ld=yes
  7587. ;;
  7588. openbsd*)
  7589. with_gnu_ld=no
  7590. ;;
  7591. esac
  7592. ld_shlibs=yes
  7593. # On some targets, GNU ld is compatible enough with the native linker
  7594. # that we're better off using the native interface for both.
  7595. lt_use_gnu_ld_interface=no
  7596. if test "$with_gnu_ld" = yes; then
  7597. case $host_os in
  7598. aix*)
  7599. # The AIX port of GNU ld has always aspired to compatibility
  7600. # with the native linker. However, as the warning in the GNU ld
  7601. # block says, versions before 2.19.5* couldn't really create working
  7602. # shared libraries, regardless of the interface used.
  7603. case `$LD -v 2>&1` in
  7604. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7605. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7606. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7607. *)
  7608. lt_use_gnu_ld_interface=yes
  7609. ;;
  7610. esac
  7611. ;;
  7612. *)
  7613. lt_use_gnu_ld_interface=yes
  7614. ;;
  7615. esac
  7616. fi
  7617. if test "$lt_use_gnu_ld_interface" = yes; then
  7618. # If archive_cmds runs LD, not CC, wlarc should be empty
  7619. wlarc='${wl}'
  7620. # Set some defaults for GNU ld with shared library support. These
  7621. # are reset later if shared libraries are not supported. Putting them
  7622. # here allows them to be overridden if necessary.
  7623. runpath_var=LD_RUN_PATH
  7624. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7625. export_dynamic_flag_spec='${wl}--export-dynamic'
  7626. # ancient GNU ld didn't support --whole-archive et. al.
  7627. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7628. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7629. else
  7630. whole_archive_flag_spec=
  7631. fi
  7632. supports_anon_versioning=no
  7633. case `$LD -v 2>&1` in
  7634. *GNU\ gold*) supports_anon_versioning=yes ;;
  7635. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7636. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7637. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7638. *\ 2.11.*) ;; # other 2.11 versions
  7639. *) supports_anon_versioning=yes ;;
  7640. esac
  7641. # See if GNU ld supports shared libraries.
  7642. case $host_os in
  7643. aix[3-9]*)
  7644. # On AIX/PPC, the GNU linker is very broken
  7645. if test "$host_cpu" != ia64; then
  7646. ld_shlibs=no
  7647. cat <<_LT_EOF 1>&2
  7648. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7649. *** to be unable to reliably create shared libraries on AIX.
  7650. *** Therefore, libtool is disabling shared libraries support. If you
  7651. *** really care for shared libraries, you may want to install binutils
  7652. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7653. *** You will then need to restart the configuration process.
  7654. _LT_EOF
  7655. fi
  7656. ;;
  7657. amigaos*)
  7658. case $host_cpu in
  7659. powerpc)
  7660. # see comment about AmigaOS4 .so support
  7661. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7662. archive_expsym_cmds=''
  7663. ;;
  7664. m68k)
  7665. 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)'
  7666. hardcode_libdir_flag_spec='-L$libdir'
  7667. hardcode_minus_L=yes
  7668. ;;
  7669. esac
  7670. ;;
  7671. beos*)
  7672. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7673. allow_undefined_flag=unsupported
  7674. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7675. # support --undefined. This deserves some investigation. FIXME
  7676. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7677. else
  7678. ld_shlibs=no
  7679. fi
  7680. ;;
  7681. cygwin* | mingw* | pw32* | cegcc*)
  7682. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7683. # as there is no search path for DLLs.
  7684. hardcode_libdir_flag_spec='-L$libdir'
  7685. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7686. allow_undefined_flag=unsupported
  7687. always_export_symbols=no
  7688. enable_shared_with_static_runtimes=yes
  7689. 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'
  7690. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7691. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7692. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7693. # If the export-symbols file already is a .def file (1st line
  7694. # is EXPORTS), use it as is; otherwise, prepend...
  7695. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7696. cp $export_symbols $output_objdir/$soname.def;
  7697. else
  7698. echo EXPORTS > $output_objdir/$soname.def;
  7699. cat $export_symbols >> $output_objdir/$soname.def;
  7700. fi~
  7701. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7702. else
  7703. ld_shlibs=no
  7704. fi
  7705. ;;
  7706. haiku*)
  7707. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7708. link_all_deplibs=yes
  7709. ;;
  7710. interix[3-9]*)
  7711. hardcode_direct=no
  7712. hardcode_shlibpath_var=no
  7713. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7714. export_dynamic_flag_spec='${wl}-E'
  7715. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7716. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7717. # default) and relocated if they conflict, which is a slow very memory
  7718. # consuming and fragmenting process. To avoid this, we pick a random,
  7719. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7720. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7721. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7722. 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'
  7723. ;;
  7724. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7725. tmp_diet=no
  7726. if test "$host_os" = linux-dietlibc; then
  7727. case $cc_basename in
  7728. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7729. esac
  7730. fi
  7731. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7732. && test "$tmp_diet" = no
  7733. then
  7734. tmp_addflag=' $pic_flag'
  7735. tmp_sharedflag='-shared'
  7736. case $cc_basename,$host_cpu in
  7737. pgcc*) # Portland Group C compiler
  7738. 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'
  7739. tmp_addflag=' $pic_flag'
  7740. ;;
  7741. pgf77* | pgf90* | pgf95* | pgfortran*)
  7742. # Portland Group f77 and f90 compilers
  7743. 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'
  7744. tmp_addflag=' $pic_flag -Mnomain' ;;
  7745. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7746. tmp_addflag=' -i_dynamic' ;;
  7747. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7748. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7749. ifc* | ifort*) # Intel Fortran compiler
  7750. tmp_addflag=' -nofor_main' ;;
  7751. lf95*) # Lahey Fortran 8.1
  7752. whole_archive_flag_spec=
  7753. tmp_sharedflag='--shared' ;;
  7754. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7755. tmp_sharedflag='-qmkshrobj'
  7756. tmp_addflag= ;;
  7757. nvcc*) # Cuda Compiler Driver 2.2
  7758. 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'
  7759. compiler_needs_object=yes
  7760. ;;
  7761. esac
  7762. case `$CC -V 2>&1 | sed 5q` in
  7763. *Sun\ C*) # Sun C 5.9
  7764. 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'
  7765. compiler_needs_object=yes
  7766. tmp_sharedflag='-G' ;;
  7767. *Sun\ F*) # Sun Fortran 8.3
  7768. tmp_sharedflag='-G' ;;
  7769. esac
  7770. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7771. if test "x$supports_anon_versioning" = xyes; then
  7772. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7773. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7774. echo "local: *; };" >> $output_objdir/$libname.ver~
  7775. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7776. fi
  7777. case $cc_basename in
  7778. xlf* | bgf* | bgxlf* | mpixlf*)
  7779. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7780. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7781. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7782. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7783. if test "x$supports_anon_versioning" = xyes; then
  7784. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7785. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7786. echo "local: *; };" >> $output_objdir/$libname.ver~
  7787. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7788. fi
  7789. ;;
  7790. esac
  7791. else
  7792. ld_shlibs=no
  7793. fi
  7794. ;;
  7795. netbsd*)
  7796. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7797. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7798. wlarc=
  7799. else
  7800. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7801. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7802. fi
  7803. ;;
  7804. solaris*)
  7805. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7806. ld_shlibs=no
  7807. cat <<_LT_EOF 1>&2
  7808. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7809. *** create shared libraries on Solaris systems. Therefore, libtool
  7810. *** is disabling shared libraries support. We urge you to upgrade GNU
  7811. *** binutils to release 2.9.1 or newer. Another option is to modify
  7812. *** your PATH or compiler configuration so that the native linker is
  7813. *** used, and then restart.
  7814. _LT_EOF
  7815. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7816. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7817. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7818. else
  7819. ld_shlibs=no
  7820. fi
  7821. ;;
  7822. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7823. case `$LD -v 2>&1` in
  7824. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7825. ld_shlibs=no
  7826. cat <<_LT_EOF 1>&2
  7827. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7828. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7829. *** is disabling shared libraries support. We urge you to upgrade GNU
  7830. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7831. *** your PATH or compiler configuration so that the native linker is
  7832. *** used, and then restart.
  7833. _LT_EOF
  7834. ;;
  7835. *)
  7836. # For security reasons, it is highly recommended that you always
  7837. # use absolute paths for naming shared libraries, and exclude the
  7838. # DT_RUNPATH tag from executables and libraries. But doing so
  7839. # requires that you compile everything twice, which is a pain.
  7840. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7841. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7842. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7843. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7844. else
  7845. ld_shlibs=no
  7846. fi
  7847. ;;
  7848. esac
  7849. ;;
  7850. sunos4*)
  7851. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7852. wlarc=
  7853. hardcode_direct=yes
  7854. hardcode_shlibpath_var=no
  7855. ;;
  7856. *)
  7857. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7858. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7859. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7860. else
  7861. ld_shlibs=no
  7862. fi
  7863. ;;
  7864. esac
  7865. if test "$ld_shlibs" = no; then
  7866. runpath_var=
  7867. hardcode_libdir_flag_spec=
  7868. export_dynamic_flag_spec=
  7869. whole_archive_flag_spec=
  7870. fi
  7871. else
  7872. # PORTME fill in a description of your system's linker (not GNU ld)
  7873. case $host_os in
  7874. aix3*)
  7875. allow_undefined_flag=unsupported
  7876. always_export_symbols=yes
  7877. 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'
  7878. # Note: this linker hardcodes the directories in LIBPATH if there
  7879. # are no directories specified by -L.
  7880. hardcode_minus_L=yes
  7881. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7882. # Neither direct hardcoding nor static linking is supported with a
  7883. # broken collect2.
  7884. hardcode_direct=unsupported
  7885. fi
  7886. ;;
  7887. aix[4-9]*)
  7888. if test "$host_cpu" = ia64; then
  7889. # On IA64, the linker does run time linking by default, so we don't
  7890. # have to do anything special.
  7891. aix_use_runtimelinking=no
  7892. exp_sym_flag='-Bexport'
  7893. no_entry_flag=""
  7894. else
  7895. # If we're using GNU nm, then we don't want the "-C" option.
  7896. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7897. # Also, AIX nm treats weak defined symbols like other global
  7898. # defined symbols, whereas GNU nm marks them as "W".
  7899. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7900. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7901. else
  7902. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7903. fi
  7904. aix_use_runtimelinking=no
  7905. # Test if we are trying to use run time linking or normal
  7906. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7907. # need to do runtime linking.
  7908. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7909. for ld_flag in $LDFLAGS; do
  7910. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7911. aix_use_runtimelinking=yes
  7912. break
  7913. fi
  7914. done
  7915. ;;
  7916. esac
  7917. exp_sym_flag='-bexport'
  7918. no_entry_flag='-bnoentry'
  7919. fi
  7920. # When large executables or shared objects are built, AIX ld can
  7921. # have problems creating the table of contents. If linking a library
  7922. # or program results in "error TOC overflow" add -mminimal-toc to
  7923. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7924. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7925. archive_cmds=''
  7926. hardcode_direct=yes
  7927. hardcode_direct_absolute=yes
  7928. hardcode_libdir_separator=':'
  7929. link_all_deplibs=yes
  7930. file_list_spec='${wl}-f,'
  7931. if test "$GCC" = yes; then
  7932. case $host_os in aix4.[012]|aix4.[012].*)
  7933. # We only want to do this on AIX 4.2 and lower, the check
  7934. # below for broken collect2 doesn't work under 4.3+
  7935. collect2name=`${CC} -print-prog-name=collect2`
  7936. if test -f "$collect2name" &&
  7937. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7938. then
  7939. # We have reworked collect2
  7940. :
  7941. else
  7942. # We have old collect2
  7943. hardcode_direct=unsupported
  7944. # It fails to find uninstalled libraries when the uninstalled
  7945. # path is not listed in the libpath. Setting hardcode_minus_L
  7946. # to unsupported forces relinking
  7947. hardcode_minus_L=yes
  7948. hardcode_libdir_flag_spec='-L$libdir'
  7949. hardcode_libdir_separator=
  7950. fi
  7951. ;;
  7952. esac
  7953. shared_flag='-shared'
  7954. if test "$aix_use_runtimelinking" = yes; then
  7955. shared_flag="$shared_flag "'${wl}-G'
  7956. fi
  7957. else
  7958. # not using gcc
  7959. if test "$host_cpu" = ia64; then
  7960. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7961. # chokes on -Wl,-G. The following line is correct:
  7962. shared_flag='-G'
  7963. else
  7964. if test "$aix_use_runtimelinking" = yes; then
  7965. shared_flag='${wl}-G'
  7966. else
  7967. shared_flag='${wl}-bM:SRE'
  7968. fi
  7969. fi
  7970. fi
  7971. export_dynamic_flag_spec='${wl}-bexpall'
  7972. # It seems that -bexpall does not export symbols beginning with
  7973. # underscore (_), so it is better to generate a list of symbols to export.
  7974. always_export_symbols=yes
  7975. if test "$aix_use_runtimelinking" = yes; then
  7976. # Warning - without using the other runtime loading flags (-brtl),
  7977. # -berok will link without error, but may produce a broken library.
  7978. allow_undefined_flag='-berok'
  7979. # Determine the default libpath from the value encoded in an
  7980. # empty executable.
  7981. if test "${lt_cv_aix_libpath+set}" = set; then
  7982. aix_libpath=$lt_cv_aix_libpath
  7983. else
  7984. if ${lt_cv_aix_libpath_+:} false; then :
  7985. $as_echo_n "(cached) " >&6
  7986. else
  7987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7988. /* end confdefs.h. */
  7989. int
  7990. main ()
  7991. {
  7992. ;
  7993. return 0;
  7994. }
  7995. _ACEOF
  7996. if ac_fn_c_try_link "$LINENO"; then :
  7997. lt_aix_libpath_sed='
  7998. /Import File Strings/,/^$/ {
  7999. /^0/ {
  8000. s/^0 *\([^ ]*\) *$/\1/
  8001. p
  8002. }
  8003. }'
  8004. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8005. # Check for a 64-bit object if we didn't find anything.
  8006. if test -z "$lt_cv_aix_libpath_"; then
  8007. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8008. fi
  8009. fi
  8010. rm -f core conftest.err conftest.$ac_objext \
  8011. conftest$ac_exeext conftest.$ac_ext
  8012. if test -z "$lt_cv_aix_libpath_"; then
  8013. lt_cv_aix_libpath_="/usr/lib:/lib"
  8014. fi
  8015. fi
  8016. aix_libpath=$lt_cv_aix_libpath_
  8017. fi
  8018. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8019. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8020. else
  8021. if test "$host_cpu" = ia64; then
  8022. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8023. allow_undefined_flag="-z nodefs"
  8024. 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"
  8025. else
  8026. # Determine the default libpath from the value encoded in an
  8027. # empty executable.
  8028. if test "${lt_cv_aix_libpath+set}" = set; then
  8029. aix_libpath=$lt_cv_aix_libpath
  8030. else
  8031. if ${lt_cv_aix_libpath_+:} false; then :
  8032. $as_echo_n "(cached) " >&6
  8033. else
  8034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8035. /* end confdefs.h. */
  8036. int
  8037. main ()
  8038. {
  8039. ;
  8040. return 0;
  8041. }
  8042. _ACEOF
  8043. if ac_fn_c_try_link "$LINENO"; then :
  8044. lt_aix_libpath_sed='
  8045. /Import File Strings/,/^$/ {
  8046. /^0/ {
  8047. s/^0 *\([^ ]*\) *$/\1/
  8048. p
  8049. }
  8050. }'
  8051. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8052. # Check for a 64-bit object if we didn't find anything.
  8053. if test -z "$lt_cv_aix_libpath_"; then
  8054. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8055. fi
  8056. fi
  8057. rm -f core conftest.err conftest.$ac_objext \
  8058. conftest$ac_exeext conftest.$ac_ext
  8059. if test -z "$lt_cv_aix_libpath_"; then
  8060. lt_cv_aix_libpath_="/usr/lib:/lib"
  8061. fi
  8062. fi
  8063. aix_libpath=$lt_cv_aix_libpath_
  8064. fi
  8065. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8066. # Warning - without using the other run time loading flags,
  8067. # -berok will link without error, but may produce a broken library.
  8068. no_undefined_flag=' ${wl}-bernotok'
  8069. allow_undefined_flag=' ${wl}-berok'
  8070. if test "$with_gnu_ld" = yes; then
  8071. # We only use this code for GNU lds that support --whole-archive.
  8072. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8073. else
  8074. # Exported symbols can be pulled into shared objects from archives
  8075. whole_archive_flag_spec='$convenience'
  8076. fi
  8077. archive_cmds_need_lc=yes
  8078. # This is similar to how AIX traditionally builds its shared libraries.
  8079. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8080. fi
  8081. fi
  8082. ;;
  8083. amigaos*)
  8084. case $host_cpu in
  8085. powerpc)
  8086. # see comment about AmigaOS4 .so support
  8087. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8088. archive_expsym_cmds=''
  8089. ;;
  8090. m68k)
  8091. 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)'
  8092. hardcode_libdir_flag_spec='-L$libdir'
  8093. hardcode_minus_L=yes
  8094. ;;
  8095. esac
  8096. ;;
  8097. bsdi[45]*)
  8098. export_dynamic_flag_spec=-rdynamic
  8099. ;;
  8100. cygwin* | mingw* | pw32* | cegcc*)
  8101. # When not using gcc, we currently assume that we are using
  8102. # Microsoft Visual C++.
  8103. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8104. # no search path for DLLs.
  8105. case $cc_basename in
  8106. cl*)
  8107. # Native MSVC
  8108. hardcode_libdir_flag_spec=' '
  8109. allow_undefined_flag=unsupported
  8110. always_export_symbols=yes
  8111. file_list_spec='@'
  8112. # Tell ltmain to make .lib files, not .a files.
  8113. libext=lib
  8114. # Tell ltmain to make .dll files, not .so files.
  8115. shrext_cmds=".dll"
  8116. # FIXME: Setting linknames here is a bad hack.
  8117. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8118. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8119. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8120. else
  8121. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8122. fi~
  8123. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8124. linknames='
  8125. # The linker will not automatically build a static lib if we build a DLL.
  8126. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8127. enable_shared_with_static_runtimes=yes
  8128. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8129. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8130. # Don't use ranlib
  8131. old_postinstall_cmds='chmod 644 $oldlib'
  8132. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8133. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8134. case $lt_outputfile in
  8135. *.exe|*.EXE) ;;
  8136. *)
  8137. lt_outputfile="$lt_outputfile.exe"
  8138. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8139. ;;
  8140. esac~
  8141. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8142. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8143. $RM "$lt_outputfile.manifest";
  8144. fi'
  8145. ;;
  8146. *)
  8147. # Assume MSVC wrapper
  8148. hardcode_libdir_flag_spec=' '
  8149. allow_undefined_flag=unsupported
  8150. # Tell ltmain to make .lib files, not .a files.
  8151. libext=lib
  8152. # Tell ltmain to make .dll files, not .so files.
  8153. shrext_cmds=".dll"
  8154. # FIXME: Setting linknames here is a bad hack.
  8155. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8156. # The linker will automatically build a .lib file if we build a DLL.
  8157. old_archive_from_new_cmds='true'
  8158. # FIXME: Should let the user specify the lib program.
  8159. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8160. enable_shared_with_static_runtimes=yes
  8161. ;;
  8162. esac
  8163. ;;
  8164. darwin* | rhapsody*)
  8165. archive_cmds_need_lc=no
  8166. hardcode_direct=no
  8167. hardcode_automatic=yes
  8168. hardcode_shlibpath_var=unsupported
  8169. if test "$lt_cv_ld_force_load" = "yes"; then
  8170. 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\"`'
  8171. else
  8172. whole_archive_flag_spec=''
  8173. fi
  8174. link_all_deplibs=yes
  8175. allow_undefined_flag="$_lt_dar_allow_undefined"
  8176. case $cc_basename in
  8177. ifort*) _lt_dar_can_shared=yes ;;
  8178. *) _lt_dar_can_shared=$GCC ;;
  8179. esac
  8180. if test "$_lt_dar_can_shared" = "yes"; then
  8181. output_verbose_link_cmd=func_echo_all
  8182. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8183. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8184. 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}"
  8185. 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}"
  8186. else
  8187. ld_shlibs=no
  8188. fi
  8189. ;;
  8190. dgux*)
  8191. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8192. hardcode_libdir_flag_spec='-L$libdir'
  8193. hardcode_shlibpath_var=no
  8194. ;;
  8195. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8196. # support. Future versions do this automatically, but an explicit c++rt0.o
  8197. # does not break anything, and helps significantly (at the cost of a little
  8198. # extra space).
  8199. freebsd2.2*)
  8200. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8201. hardcode_libdir_flag_spec='-R$libdir'
  8202. hardcode_direct=yes
  8203. hardcode_shlibpath_var=no
  8204. ;;
  8205. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8206. freebsd2.*)
  8207. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8208. hardcode_direct=yes
  8209. hardcode_minus_L=yes
  8210. hardcode_shlibpath_var=no
  8211. ;;
  8212. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8213. freebsd* | dragonfly*)
  8214. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8215. hardcode_libdir_flag_spec='-R$libdir'
  8216. hardcode_direct=yes
  8217. hardcode_shlibpath_var=no
  8218. ;;
  8219. hpux9*)
  8220. if test "$GCC" = yes; then
  8221. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8222. else
  8223. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8224. fi
  8225. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8226. hardcode_libdir_separator=:
  8227. hardcode_direct=yes
  8228. # hardcode_minus_L: Not really in the search PATH,
  8229. # but as the default location of the library.
  8230. hardcode_minus_L=yes
  8231. export_dynamic_flag_spec='${wl}-E'
  8232. ;;
  8233. hpux10*)
  8234. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8235. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8236. else
  8237. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8238. fi
  8239. if test "$with_gnu_ld" = no; then
  8240. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8241. hardcode_libdir_separator=:
  8242. hardcode_direct=yes
  8243. hardcode_direct_absolute=yes
  8244. export_dynamic_flag_spec='${wl}-E'
  8245. # hardcode_minus_L: Not really in the search PATH,
  8246. # but as the default location of the library.
  8247. hardcode_minus_L=yes
  8248. fi
  8249. ;;
  8250. hpux11*)
  8251. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8252. case $host_cpu in
  8253. hppa*64*)
  8254. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8255. ;;
  8256. ia64*)
  8257. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8258. ;;
  8259. *)
  8260. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8261. ;;
  8262. esac
  8263. else
  8264. case $host_cpu in
  8265. hppa*64*)
  8266. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8267. ;;
  8268. ia64*)
  8269. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8270. ;;
  8271. *)
  8272. # Older versions of the 11.00 compiler do not understand -b yet
  8273. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8275. $as_echo_n "checking if $CC understands -b... " >&6; }
  8276. if ${lt_cv_prog_compiler__b+:} false; then :
  8277. $as_echo_n "(cached) " >&6
  8278. else
  8279. lt_cv_prog_compiler__b=no
  8280. save_LDFLAGS="$LDFLAGS"
  8281. LDFLAGS="$LDFLAGS -b"
  8282. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8283. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8284. # The linker can only warn and ignore the option if not recognized
  8285. # So say no if there are warnings
  8286. if test -s conftest.err; then
  8287. # Append any errors to the config.log.
  8288. cat conftest.err 1>&5
  8289. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8290. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8291. if diff conftest.exp conftest.er2 >/dev/null; then
  8292. lt_cv_prog_compiler__b=yes
  8293. fi
  8294. else
  8295. lt_cv_prog_compiler__b=yes
  8296. fi
  8297. fi
  8298. $RM -r conftest*
  8299. LDFLAGS="$save_LDFLAGS"
  8300. fi
  8301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8302. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8303. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8304. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8305. else
  8306. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8307. fi
  8308. ;;
  8309. esac
  8310. fi
  8311. if test "$with_gnu_ld" = no; then
  8312. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8313. hardcode_libdir_separator=:
  8314. case $host_cpu in
  8315. hppa*64*|ia64*)
  8316. hardcode_direct=no
  8317. hardcode_shlibpath_var=no
  8318. ;;
  8319. *)
  8320. hardcode_direct=yes
  8321. hardcode_direct_absolute=yes
  8322. export_dynamic_flag_spec='${wl}-E'
  8323. # hardcode_minus_L: Not really in the search PATH,
  8324. # but as the default location of the library.
  8325. hardcode_minus_L=yes
  8326. ;;
  8327. esac
  8328. fi
  8329. ;;
  8330. irix5* | irix6* | nonstopux*)
  8331. if test "$GCC" = yes; then
  8332. 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'
  8333. # Try to use the -exported_symbol ld option, if it does not
  8334. # work, assume that -exports_file does not work either and
  8335. # implicitly export all symbols.
  8336. # This should be the same for all languages, so no per-tag cache variable.
  8337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8338. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8339. if ${lt_cv_irix_exported_symbol+:} false; then :
  8340. $as_echo_n "(cached) " >&6
  8341. else
  8342. save_LDFLAGS="$LDFLAGS"
  8343. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8345. /* end confdefs.h. */
  8346. int foo (void) { return 0; }
  8347. _ACEOF
  8348. if ac_fn_c_try_link "$LINENO"; then :
  8349. lt_cv_irix_exported_symbol=yes
  8350. else
  8351. lt_cv_irix_exported_symbol=no
  8352. fi
  8353. rm -f core conftest.err conftest.$ac_objext \
  8354. conftest$ac_exeext conftest.$ac_ext
  8355. LDFLAGS="$save_LDFLAGS"
  8356. fi
  8357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8358. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8359. if test "$lt_cv_irix_exported_symbol" = yes; then
  8360. 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'
  8361. fi
  8362. else
  8363. 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'
  8364. 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'
  8365. fi
  8366. archive_cmds_need_lc='no'
  8367. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8368. hardcode_libdir_separator=:
  8369. inherit_rpath=yes
  8370. link_all_deplibs=yes
  8371. ;;
  8372. netbsd*)
  8373. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8374. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8375. else
  8376. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8377. fi
  8378. hardcode_libdir_flag_spec='-R$libdir'
  8379. hardcode_direct=yes
  8380. hardcode_shlibpath_var=no
  8381. ;;
  8382. newsos6)
  8383. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8384. hardcode_direct=yes
  8385. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8386. hardcode_libdir_separator=:
  8387. hardcode_shlibpath_var=no
  8388. ;;
  8389. *nto* | *qnx*)
  8390. ;;
  8391. openbsd*)
  8392. if test -f /usr/libexec/ld.so; then
  8393. hardcode_direct=yes
  8394. hardcode_shlibpath_var=no
  8395. hardcode_direct_absolute=yes
  8396. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8397. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8398. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8399. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8400. export_dynamic_flag_spec='${wl}-E'
  8401. else
  8402. case $host_os in
  8403. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8404. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8405. hardcode_libdir_flag_spec='-R$libdir'
  8406. ;;
  8407. *)
  8408. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8409. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8410. ;;
  8411. esac
  8412. fi
  8413. else
  8414. ld_shlibs=no
  8415. fi
  8416. ;;
  8417. os2*)
  8418. hardcode_libdir_flag_spec='-L$libdir'
  8419. hardcode_minus_L=yes
  8420. allow_undefined_flag=unsupported
  8421. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8422. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8423. ;;
  8424. osf3*)
  8425. if test "$GCC" = yes; then
  8426. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8427. 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'
  8428. else
  8429. allow_undefined_flag=' -expect_unresolved \*'
  8430. 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'
  8431. fi
  8432. archive_cmds_need_lc='no'
  8433. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8434. hardcode_libdir_separator=:
  8435. ;;
  8436. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8437. if test "$GCC" = yes; then
  8438. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8439. 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'
  8440. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8441. else
  8442. allow_undefined_flag=' -expect_unresolved \*'
  8443. 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'
  8444. 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~
  8445. $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'
  8446. # Both c and cxx compiler support -rpath directly
  8447. hardcode_libdir_flag_spec='-rpath $libdir'
  8448. fi
  8449. archive_cmds_need_lc='no'
  8450. hardcode_libdir_separator=:
  8451. ;;
  8452. solaris*)
  8453. no_undefined_flag=' -z defs'
  8454. if test "$GCC" = yes; then
  8455. wlarc='${wl}'
  8456. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8457. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8458. $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'
  8459. else
  8460. case `$CC -V 2>&1` in
  8461. *"Compilers 5.0"*)
  8462. wlarc=''
  8463. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8464. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8465. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8466. ;;
  8467. *)
  8468. wlarc='${wl}'
  8469. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8470. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8471. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8472. ;;
  8473. esac
  8474. fi
  8475. hardcode_libdir_flag_spec='-R$libdir'
  8476. hardcode_shlibpath_var=no
  8477. case $host_os in
  8478. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8479. *)
  8480. # The compiler driver will combine and reorder linker options,
  8481. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8482. # but is careful enough not to reorder.
  8483. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8484. if test "$GCC" = yes; then
  8485. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8486. else
  8487. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8488. fi
  8489. ;;
  8490. esac
  8491. link_all_deplibs=yes
  8492. ;;
  8493. sunos4*)
  8494. if test "x$host_vendor" = xsequent; then
  8495. # Use $CC to link under sequent, because it throws in some extra .o
  8496. # files that make .init and .fini sections work.
  8497. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8498. else
  8499. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8500. fi
  8501. hardcode_libdir_flag_spec='-L$libdir'
  8502. hardcode_direct=yes
  8503. hardcode_minus_L=yes
  8504. hardcode_shlibpath_var=no
  8505. ;;
  8506. sysv4)
  8507. case $host_vendor in
  8508. sni)
  8509. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8510. hardcode_direct=yes # is this really true???
  8511. ;;
  8512. siemens)
  8513. ## LD is ld it makes a PLAMLIB
  8514. ## CC just makes a GrossModule.
  8515. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8516. reload_cmds='$CC -r -o $output$reload_objs'
  8517. hardcode_direct=no
  8518. ;;
  8519. motorola)
  8520. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8521. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8522. ;;
  8523. esac
  8524. runpath_var='LD_RUN_PATH'
  8525. hardcode_shlibpath_var=no
  8526. ;;
  8527. sysv4.3*)
  8528. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8529. hardcode_shlibpath_var=no
  8530. export_dynamic_flag_spec='-Bexport'
  8531. ;;
  8532. sysv4*MP*)
  8533. if test -d /usr/nec; then
  8534. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8535. hardcode_shlibpath_var=no
  8536. runpath_var=LD_RUN_PATH
  8537. hardcode_runpath_var=yes
  8538. ld_shlibs=yes
  8539. fi
  8540. ;;
  8541. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8542. no_undefined_flag='${wl}-z,text'
  8543. archive_cmds_need_lc=no
  8544. hardcode_shlibpath_var=no
  8545. runpath_var='LD_RUN_PATH'
  8546. if test "$GCC" = yes; then
  8547. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8548. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8549. else
  8550. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8551. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8552. fi
  8553. ;;
  8554. sysv5* | sco3.2v5* | sco5v6*)
  8555. # Note: We can NOT use -z defs as we might desire, because we do not
  8556. # link with -lc, and that would cause any symbols used from libc to
  8557. # always be unresolved, which means just about no library would
  8558. # ever link correctly. If we're not using GNU ld we use -z text
  8559. # though, which does catch some bad symbols but isn't as heavy-handed
  8560. # as -z defs.
  8561. no_undefined_flag='${wl}-z,text'
  8562. allow_undefined_flag='${wl}-z,nodefs'
  8563. archive_cmds_need_lc=no
  8564. hardcode_shlibpath_var=no
  8565. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8566. hardcode_libdir_separator=':'
  8567. link_all_deplibs=yes
  8568. export_dynamic_flag_spec='${wl}-Bexport'
  8569. runpath_var='LD_RUN_PATH'
  8570. if test "$GCC" = yes; then
  8571. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8572. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8573. else
  8574. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8575. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8576. fi
  8577. ;;
  8578. uts4*)
  8579. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8580. hardcode_libdir_flag_spec='-L$libdir'
  8581. hardcode_shlibpath_var=no
  8582. ;;
  8583. *)
  8584. ld_shlibs=no
  8585. ;;
  8586. esac
  8587. if test x$host_vendor = xsni; then
  8588. case $host in
  8589. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8590. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8591. ;;
  8592. esac
  8593. fi
  8594. fi
  8595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8596. $as_echo "$ld_shlibs" >&6; }
  8597. test "$ld_shlibs" = no && can_build_shared=no
  8598. with_gnu_ld=$with_gnu_ld
  8599. #
  8600. # Do we need to explicitly link libc?
  8601. #
  8602. case "x$archive_cmds_need_lc" in
  8603. x|xyes)
  8604. # Assume -lc should be added
  8605. archive_cmds_need_lc=yes
  8606. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8607. case $archive_cmds in
  8608. *'~'*)
  8609. # FIXME: we may have to deal with multi-command sequences.
  8610. ;;
  8611. '$CC '*)
  8612. # Test whether the compiler implicitly links with -lc since on some
  8613. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8614. # to ld, don't add -lc before -lgcc.
  8615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8616. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8617. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8618. $as_echo_n "(cached) " >&6
  8619. else
  8620. $RM conftest*
  8621. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8622. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8623. (eval $ac_compile) 2>&5
  8624. ac_status=$?
  8625. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8626. test $ac_status = 0; } 2>conftest.err; then
  8627. soname=conftest
  8628. lib=conftest
  8629. libobjs=conftest.$ac_objext
  8630. deplibs=
  8631. wl=$lt_prog_compiler_wl
  8632. pic_flag=$lt_prog_compiler_pic
  8633. compiler_flags=-v
  8634. linker_flags=-v
  8635. verstring=
  8636. output_objdir=.
  8637. libname=conftest
  8638. lt_save_allow_undefined_flag=$allow_undefined_flag
  8639. allow_undefined_flag=
  8640. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8641. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8642. ac_status=$?
  8643. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8644. test $ac_status = 0; }
  8645. then
  8646. lt_cv_archive_cmds_need_lc=no
  8647. else
  8648. lt_cv_archive_cmds_need_lc=yes
  8649. fi
  8650. allow_undefined_flag=$lt_save_allow_undefined_flag
  8651. else
  8652. cat conftest.err 1>&5
  8653. fi
  8654. $RM conftest*
  8655. fi
  8656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8657. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8658. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8659. ;;
  8660. esac
  8661. fi
  8662. ;;
  8663. esac
  8664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8665. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8666. if test "$GCC" = yes; then
  8667. case $host_os in
  8668. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8669. *) lt_awk_arg="/^libraries:/" ;;
  8670. esac
  8671. case $host_os in
  8672. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8673. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8674. esac
  8675. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8676. case $lt_search_path_spec in
  8677. *\;*)
  8678. # if the path contains ";" then we assume it to be the separator
  8679. # otherwise default to the standard path separator (i.e. ":") - it is
  8680. # assumed that no part of a normal pathname contains ";" but that should
  8681. # okay in the real world where ";" in dirpaths is itself problematic.
  8682. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8683. ;;
  8684. *)
  8685. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8686. ;;
  8687. esac
  8688. # Ok, now we have the path, separated by spaces, we can step through it
  8689. # and add multilib dir if necessary...
  8690. lt_tmp_lt_search_path_spec=
  8691. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8692. # ...but if some path already ends with the multilib dir we assume
  8693. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8694. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8695. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8696. lt_multi_os_dir=
  8697. ;;
  8698. esac
  8699. for lt_sys_path in $lt_search_path_spec; do
  8700. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8701. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8702. elif test -n "$lt_multi_os_dir"; then
  8703. test -d "$lt_sys_path" && \
  8704. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8705. fi
  8706. done
  8707. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8708. BEGIN {RS=" "; FS="/|\n";} {
  8709. lt_foo="";
  8710. lt_count=0;
  8711. for (lt_i = NF; lt_i > 0; lt_i--) {
  8712. if ($lt_i != "" && $lt_i != ".") {
  8713. if ($lt_i == "..") {
  8714. lt_count++;
  8715. } else {
  8716. if (lt_count == 0) {
  8717. lt_foo="/" $lt_i lt_foo;
  8718. } else {
  8719. lt_count--;
  8720. }
  8721. }
  8722. }
  8723. }
  8724. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8725. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8726. }'`
  8727. # AWK program above erroneously prepends '/' to C:/dos/paths
  8728. # for these hosts.
  8729. case $host_os in
  8730. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8731. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8732. esac
  8733. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8734. else
  8735. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8736. fi
  8737. library_names_spec=
  8738. libname_spec='lib$name'
  8739. soname_spec=
  8740. shrext_cmds=".so"
  8741. postinstall_cmds=
  8742. postuninstall_cmds=
  8743. finish_cmds=
  8744. finish_eval=
  8745. shlibpath_var=
  8746. shlibpath_overrides_runpath=unknown
  8747. version_type=none
  8748. dynamic_linker="$host_os ld.so"
  8749. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8750. need_lib_prefix=unknown
  8751. hardcode_into_libs=no
  8752. # when you set need_version to no, make sure it does not cause -set_version
  8753. # flags to be left without arguments
  8754. need_version=unknown
  8755. case $host_os in
  8756. aix3*)
  8757. version_type=linux # correct to gnu/linux during the next big refactor
  8758. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8759. shlibpath_var=LIBPATH
  8760. # AIX 3 has no versioning support, so we append a major version to the name.
  8761. soname_spec='${libname}${release}${shared_ext}$major'
  8762. ;;
  8763. aix[4-9]*)
  8764. version_type=linux # correct to gnu/linux during the next big refactor
  8765. need_lib_prefix=no
  8766. need_version=no
  8767. hardcode_into_libs=yes
  8768. if test "$host_cpu" = ia64; then
  8769. # AIX 5 supports IA64
  8770. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8771. shlibpath_var=LD_LIBRARY_PATH
  8772. else
  8773. # With GCC up to 2.95.x, collect2 would create an import file
  8774. # for dependence libraries. The import file would start with
  8775. # the line `#! .'. This would cause the generated library to
  8776. # depend on `.', always an invalid library. This was fixed in
  8777. # development snapshots of GCC prior to 3.0.
  8778. case $host_os in
  8779. aix4 | aix4.[01] | aix4.[01].*)
  8780. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8781. echo ' yes '
  8782. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8783. :
  8784. else
  8785. can_build_shared=no
  8786. fi
  8787. ;;
  8788. esac
  8789. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8790. # soname into executable. Probably we can add versioning support to
  8791. # collect2, so additional links can be useful in future.
  8792. if test "$aix_use_runtimelinking" = yes; then
  8793. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8794. # instead of lib<name>.a to let people know that these are not
  8795. # typical AIX shared libraries.
  8796. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8797. else
  8798. # We preserve .a as extension for shared libraries through AIX4.2
  8799. # and later when we are not doing run time linking.
  8800. library_names_spec='${libname}${release}.a $libname.a'
  8801. soname_spec='${libname}${release}${shared_ext}$major'
  8802. fi
  8803. shlibpath_var=LIBPATH
  8804. fi
  8805. ;;
  8806. amigaos*)
  8807. case $host_cpu in
  8808. powerpc)
  8809. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8810. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8811. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8812. ;;
  8813. m68k)
  8814. library_names_spec='$libname.ixlibrary $libname.a'
  8815. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8816. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8817. ;;
  8818. esac
  8819. ;;
  8820. beos*)
  8821. library_names_spec='${libname}${shared_ext}'
  8822. dynamic_linker="$host_os ld.so"
  8823. shlibpath_var=LIBRARY_PATH
  8824. ;;
  8825. bsdi[45]*)
  8826. version_type=linux # correct to gnu/linux during the next big refactor
  8827. need_version=no
  8828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8829. soname_spec='${libname}${release}${shared_ext}$major'
  8830. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8831. shlibpath_var=LD_LIBRARY_PATH
  8832. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8833. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8834. # the default ld.so.conf also contains /usr/contrib/lib and
  8835. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8836. # libtool to hard-code these into programs
  8837. ;;
  8838. cygwin* | mingw* | pw32* | cegcc*)
  8839. version_type=windows
  8840. shrext_cmds=".dll"
  8841. need_version=no
  8842. need_lib_prefix=no
  8843. case $GCC,$cc_basename in
  8844. yes,*)
  8845. # gcc
  8846. library_names_spec='$libname.dll.a'
  8847. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8848. postinstall_cmds='base_file=`basename \${file}`~
  8849. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8850. dldir=$destdir/`dirname \$dlpath`~
  8851. test -d \$dldir || mkdir -p \$dldir~
  8852. $install_prog $dir/$dlname \$dldir/$dlname~
  8853. chmod a+x \$dldir/$dlname~
  8854. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8855. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8856. fi'
  8857. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8858. dlpath=$dir/\$dldll~
  8859. $RM \$dlpath'
  8860. shlibpath_overrides_runpath=yes
  8861. case $host_os in
  8862. cygwin*)
  8863. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8864. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8865. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8866. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8867. ;;
  8868. mingw* | cegcc*)
  8869. # MinGW DLLs use traditional 'lib' prefix
  8870. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8871. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8872. ;;
  8873. pw32*)
  8874. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8875. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8876. ;;
  8877. esac
  8878. dynamic_linker='Win32 ld.exe'
  8879. ;;
  8880. *,cl*)
  8881. # Native MSVC
  8882. libname_spec='$name'
  8883. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8884. library_names_spec='${libname}.dll.lib'
  8885. case $build_os in
  8886. mingw*)
  8887. sys_lib_search_path_spec=
  8888. lt_save_ifs=$IFS
  8889. IFS=';'
  8890. for lt_path in $LIB
  8891. do
  8892. IFS=$lt_save_ifs
  8893. # Let DOS variable expansion print the short 8.3 style file name.
  8894. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8895. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8896. done
  8897. IFS=$lt_save_ifs
  8898. # Convert to MSYS style.
  8899. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8900. ;;
  8901. cygwin*)
  8902. # Convert to unix form, then to dos form, then back to unix form
  8903. # but this time dos style (no spaces!) so that the unix form looks
  8904. # like /cygdrive/c/PROGRA~1:/cygdr...
  8905. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8906. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8907. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8908. ;;
  8909. *)
  8910. sys_lib_search_path_spec="$LIB"
  8911. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8912. # It is most probably a Windows format PATH.
  8913. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8914. else
  8915. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8916. fi
  8917. # FIXME: find the short name or the path components, as spaces are
  8918. # common. (e.g. "Program Files" -> "PROGRA~1")
  8919. ;;
  8920. esac
  8921. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8922. postinstall_cmds='base_file=`basename \${file}`~
  8923. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8924. dldir=$destdir/`dirname \$dlpath`~
  8925. test -d \$dldir || mkdir -p \$dldir~
  8926. $install_prog $dir/$dlname \$dldir/$dlname'
  8927. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8928. dlpath=$dir/\$dldll~
  8929. $RM \$dlpath'
  8930. shlibpath_overrides_runpath=yes
  8931. dynamic_linker='Win32 link.exe'
  8932. ;;
  8933. *)
  8934. # Assume MSVC wrapper
  8935. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8936. dynamic_linker='Win32 ld.exe'
  8937. ;;
  8938. esac
  8939. # FIXME: first we should search . and the directory the executable is in
  8940. shlibpath_var=PATH
  8941. ;;
  8942. darwin* | rhapsody*)
  8943. dynamic_linker="$host_os dyld"
  8944. version_type=darwin
  8945. need_lib_prefix=no
  8946. need_version=no
  8947. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8948. soname_spec='${libname}${release}${major}$shared_ext'
  8949. shlibpath_overrides_runpath=yes
  8950. shlibpath_var=DYLD_LIBRARY_PATH
  8951. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8952. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8953. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8954. ;;
  8955. dgux*)
  8956. version_type=linux # correct to gnu/linux during the next big refactor
  8957. need_lib_prefix=no
  8958. need_version=no
  8959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8960. soname_spec='${libname}${release}${shared_ext}$major'
  8961. shlibpath_var=LD_LIBRARY_PATH
  8962. ;;
  8963. freebsd* | dragonfly*)
  8964. # DragonFly does not have aout. When/if they implement a new
  8965. # versioning mechanism, adjust this.
  8966. if test -x /usr/bin/objformat; then
  8967. objformat=`/usr/bin/objformat`
  8968. else
  8969. case $host_os in
  8970. freebsd[23].*) objformat=aout ;;
  8971. *) objformat=elf ;;
  8972. esac
  8973. fi
  8974. version_type=freebsd-$objformat
  8975. case $version_type in
  8976. freebsd-elf*)
  8977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8978. need_version=no
  8979. need_lib_prefix=no
  8980. ;;
  8981. freebsd-*)
  8982. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8983. need_version=yes
  8984. ;;
  8985. esac
  8986. shlibpath_var=LD_LIBRARY_PATH
  8987. case $host_os in
  8988. freebsd2.*)
  8989. shlibpath_overrides_runpath=yes
  8990. ;;
  8991. freebsd3.[01]* | freebsdelf3.[01]*)
  8992. shlibpath_overrides_runpath=yes
  8993. hardcode_into_libs=yes
  8994. ;;
  8995. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8996. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8997. shlibpath_overrides_runpath=no
  8998. hardcode_into_libs=yes
  8999. ;;
  9000. *) # from 4.6 on, and DragonFly
  9001. shlibpath_overrides_runpath=yes
  9002. hardcode_into_libs=yes
  9003. ;;
  9004. esac
  9005. ;;
  9006. gnu*)
  9007. version_type=linux # correct to gnu/linux during the next big refactor
  9008. need_lib_prefix=no
  9009. need_version=no
  9010. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9011. soname_spec='${libname}${release}${shared_ext}$major'
  9012. shlibpath_var=LD_LIBRARY_PATH
  9013. shlibpath_overrides_runpath=no
  9014. hardcode_into_libs=yes
  9015. ;;
  9016. haiku*)
  9017. version_type=linux # correct to gnu/linux during the next big refactor
  9018. need_lib_prefix=no
  9019. need_version=no
  9020. dynamic_linker="$host_os runtime_loader"
  9021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9022. soname_spec='${libname}${release}${shared_ext}$major'
  9023. shlibpath_var=LIBRARY_PATH
  9024. shlibpath_overrides_runpath=yes
  9025. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9026. hardcode_into_libs=yes
  9027. ;;
  9028. hpux9* | hpux10* | hpux11*)
  9029. # Give a soname corresponding to the major version so that dld.sl refuses to
  9030. # link against other versions.
  9031. version_type=sunos
  9032. need_lib_prefix=no
  9033. need_version=no
  9034. case $host_cpu in
  9035. ia64*)
  9036. shrext_cmds='.so'
  9037. hardcode_into_libs=yes
  9038. dynamic_linker="$host_os dld.so"
  9039. shlibpath_var=LD_LIBRARY_PATH
  9040. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9041. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9042. soname_spec='${libname}${release}${shared_ext}$major'
  9043. if test "X$HPUX_IA64_MODE" = X32; then
  9044. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9045. else
  9046. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9047. fi
  9048. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9049. ;;
  9050. hppa*64*)
  9051. shrext_cmds='.sl'
  9052. hardcode_into_libs=yes
  9053. dynamic_linker="$host_os dld.sl"
  9054. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9055. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9057. soname_spec='${libname}${release}${shared_ext}$major'
  9058. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9059. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9060. ;;
  9061. *)
  9062. shrext_cmds='.sl'
  9063. dynamic_linker="$host_os dld.sl"
  9064. shlibpath_var=SHLIB_PATH
  9065. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9067. soname_spec='${libname}${release}${shared_ext}$major'
  9068. ;;
  9069. esac
  9070. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9071. postinstall_cmds='chmod 555 $lib'
  9072. # or fails outright, so override atomically:
  9073. install_override_mode=555
  9074. ;;
  9075. interix[3-9]*)
  9076. version_type=linux # correct to gnu/linux during the next big refactor
  9077. need_lib_prefix=no
  9078. need_version=no
  9079. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9080. soname_spec='${libname}${release}${shared_ext}$major'
  9081. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9082. shlibpath_var=LD_LIBRARY_PATH
  9083. shlibpath_overrides_runpath=no
  9084. hardcode_into_libs=yes
  9085. ;;
  9086. irix5* | irix6* | nonstopux*)
  9087. case $host_os in
  9088. nonstopux*) version_type=nonstopux ;;
  9089. *)
  9090. if test "$lt_cv_prog_gnu_ld" = yes; then
  9091. version_type=linux # correct to gnu/linux during the next big refactor
  9092. else
  9093. version_type=irix
  9094. fi ;;
  9095. esac
  9096. need_lib_prefix=no
  9097. need_version=no
  9098. soname_spec='${libname}${release}${shared_ext}$major'
  9099. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9100. case $host_os in
  9101. irix5* | nonstopux*)
  9102. libsuff= shlibsuff=
  9103. ;;
  9104. *)
  9105. case $LD in # libtool.m4 will add one of these switches to LD
  9106. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9107. libsuff= shlibsuff= libmagic=32-bit;;
  9108. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9109. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9110. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9111. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9112. *) libsuff= shlibsuff= libmagic=never-match;;
  9113. esac
  9114. ;;
  9115. esac
  9116. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9117. shlibpath_overrides_runpath=no
  9118. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9119. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9120. hardcode_into_libs=yes
  9121. ;;
  9122. # No shared lib support for Linux oldld, aout, or coff.
  9123. linux*oldld* | linux*aout* | linux*coff*)
  9124. dynamic_linker=no
  9125. ;;
  9126. # This must be glibc/ELF.
  9127. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9128. version_type=linux # correct to gnu/linux during the next big refactor
  9129. need_lib_prefix=no
  9130. need_version=no
  9131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9132. soname_spec='${libname}${release}${shared_ext}$major'
  9133. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9134. shlibpath_var=LD_LIBRARY_PATH
  9135. shlibpath_overrides_runpath=no
  9136. # Some binutils ld are patched to set DT_RUNPATH
  9137. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9138. $as_echo_n "(cached) " >&6
  9139. else
  9140. lt_cv_shlibpath_overrides_runpath=no
  9141. save_LDFLAGS=$LDFLAGS
  9142. save_libdir=$libdir
  9143. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9144. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9146. /* end confdefs.h. */
  9147. int
  9148. main ()
  9149. {
  9150. ;
  9151. return 0;
  9152. }
  9153. _ACEOF
  9154. if ac_fn_c_try_link "$LINENO"; then :
  9155. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9156. lt_cv_shlibpath_overrides_runpath=yes
  9157. fi
  9158. fi
  9159. rm -f core conftest.err conftest.$ac_objext \
  9160. conftest$ac_exeext conftest.$ac_ext
  9161. LDFLAGS=$save_LDFLAGS
  9162. libdir=$save_libdir
  9163. fi
  9164. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9165. # This implies no fast_install, which is unacceptable.
  9166. # Some rework will be needed to allow for fast_install
  9167. # before this can be enabled.
  9168. hardcode_into_libs=yes
  9169. # Append ld.so.conf contents to the search path
  9170. if test -f /etc/ld.so.conf; then
  9171. 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' ' '`
  9172. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9173. fi
  9174. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9175. # powerpc, because MkLinux only supported shared libraries with the
  9176. # GNU dynamic linker. Since this was broken with cross compilers,
  9177. # most powerpc-linux boxes support dynamic linking these days and
  9178. # people can always --disable-shared, the test was removed, and we
  9179. # assume the GNU/Linux dynamic linker is in use.
  9180. dynamic_linker='GNU/Linux ld.so'
  9181. ;;
  9182. netbsd*)
  9183. version_type=sunos
  9184. need_lib_prefix=no
  9185. need_version=no
  9186. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9187. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9188. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9189. dynamic_linker='NetBSD (a.out) ld.so'
  9190. else
  9191. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9192. soname_spec='${libname}${release}${shared_ext}$major'
  9193. dynamic_linker='NetBSD ld.elf_so'
  9194. fi
  9195. shlibpath_var=LD_LIBRARY_PATH
  9196. shlibpath_overrides_runpath=yes
  9197. hardcode_into_libs=yes
  9198. ;;
  9199. newsos6)
  9200. version_type=linux # correct to gnu/linux during the next big refactor
  9201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9202. shlibpath_var=LD_LIBRARY_PATH
  9203. shlibpath_overrides_runpath=yes
  9204. ;;
  9205. *nto* | *qnx*)
  9206. version_type=qnx
  9207. need_lib_prefix=no
  9208. need_version=no
  9209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9210. soname_spec='${libname}${release}${shared_ext}$major'
  9211. shlibpath_var=LD_LIBRARY_PATH
  9212. shlibpath_overrides_runpath=no
  9213. hardcode_into_libs=yes
  9214. dynamic_linker='ldqnx.so'
  9215. ;;
  9216. openbsd*)
  9217. version_type=sunos
  9218. sys_lib_dlsearch_path_spec="/usr/lib"
  9219. need_lib_prefix=no
  9220. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9221. case $host_os in
  9222. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9223. *) need_version=no ;;
  9224. esac
  9225. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9226. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9227. shlibpath_var=LD_LIBRARY_PATH
  9228. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9229. case $host_os in
  9230. openbsd2.[89] | openbsd2.[89].*)
  9231. shlibpath_overrides_runpath=no
  9232. ;;
  9233. *)
  9234. shlibpath_overrides_runpath=yes
  9235. ;;
  9236. esac
  9237. else
  9238. shlibpath_overrides_runpath=yes
  9239. fi
  9240. ;;
  9241. os2*)
  9242. libname_spec='$name'
  9243. shrext_cmds=".dll"
  9244. need_lib_prefix=no
  9245. library_names_spec='$libname${shared_ext} $libname.a'
  9246. dynamic_linker='OS/2 ld.exe'
  9247. shlibpath_var=LIBPATH
  9248. ;;
  9249. osf3* | osf4* | osf5*)
  9250. version_type=osf
  9251. need_lib_prefix=no
  9252. need_version=no
  9253. soname_spec='${libname}${release}${shared_ext}$major'
  9254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9255. shlibpath_var=LD_LIBRARY_PATH
  9256. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9257. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9258. ;;
  9259. rdos*)
  9260. dynamic_linker=no
  9261. ;;
  9262. solaris*)
  9263. version_type=linux # correct to gnu/linux during the next big refactor
  9264. need_lib_prefix=no
  9265. need_version=no
  9266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9267. soname_spec='${libname}${release}${shared_ext}$major'
  9268. shlibpath_var=LD_LIBRARY_PATH
  9269. shlibpath_overrides_runpath=yes
  9270. hardcode_into_libs=yes
  9271. # ldd complains unless libraries are executable
  9272. postinstall_cmds='chmod +x $lib'
  9273. ;;
  9274. sunos4*)
  9275. version_type=sunos
  9276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9277. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9278. shlibpath_var=LD_LIBRARY_PATH
  9279. shlibpath_overrides_runpath=yes
  9280. if test "$with_gnu_ld" = yes; then
  9281. need_lib_prefix=no
  9282. fi
  9283. need_version=yes
  9284. ;;
  9285. sysv4 | sysv4.3*)
  9286. version_type=linux # correct to gnu/linux during the next big refactor
  9287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9288. soname_spec='${libname}${release}${shared_ext}$major'
  9289. shlibpath_var=LD_LIBRARY_PATH
  9290. case $host_vendor in
  9291. sni)
  9292. shlibpath_overrides_runpath=no
  9293. need_lib_prefix=no
  9294. runpath_var=LD_RUN_PATH
  9295. ;;
  9296. siemens)
  9297. need_lib_prefix=no
  9298. ;;
  9299. motorola)
  9300. need_lib_prefix=no
  9301. need_version=no
  9302. shlibpath_overrides_runpath=no
  9303. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9304. ;;
  9305. esac
  9306. ;;
  9307. sysv4*MP*)
  9308. if test -d /usr/nec ;then
  9309. version_type=linux # correct to gnu/linux during the next big refactor
  9310. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9311. soname_spec='$libname${shared_ext}.$major'
  9312. shlibpath_var=LD_LIBRARY_PATH
  9313. fi
  9314. ;;
  9315. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9316. version_type=freebsd-elf
  9317. need_lib_prefix=no
  9318. need_version=no
  9319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9320. soname_spec='${libname}${release}${shared_ext}$major'
  9321. shlibpath_var=LD_LIBRARY_PATH
  9322. shlibpath_overrides_runpath=yes
  9323. hardcode_into_libs=yes
  9324. if test "$with_gnu_ld" = yes; then
  9325. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9326. else
  9327. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9328. case $host_os in
  9329. sco3.2v5*)
  9330. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9331. ;;
  9332. esac
  9333. fi
  9334. sys_lib_dlsearch_path_spec='/usr/lib'
  9335. ;;
  9336. tpf*)
  9337. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9338. version_type=linux # correct to gnu/linux during the next big refactor
  9339. need_lib_prefix=no
  9340. need_version=no
  9341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9342. shlibpath_var=LD_LIBRARY_PATH
  9343. shlibpath_overrides_runpath=no
  9344. hardcode_into_libs=yes
  9345. ;;
  9346. uts4*)
  9347. version_type=linux # correct to gnu/linux during the next big refactor
  9348. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9349. soname_spec='${libname}${release}${shared_ext}$major'
  9350. shlibpath_var=LD_LIBRARY_PATH
  9351. ;;
  9352. *)
  9353. dynamic_linker=no
  9354. ;;
  9355. esac
  9356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9357. $as_echo "$dynamic_linker" >&6; }
  9358. test "$dynamic_linker" = no && can_build_shared=no
  9359. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9360. if test "$GCC" = yes; then
  9361. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9362. fi
  9363. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9364. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9365. fi
  9366. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9367. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9368. fi
  9369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9370. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9371. hardcode_action=
  9372. if test -n "$hardcode_libdir_flag_spec" ||
  9373. test -n "$runpath_var" ||
  9374. test "X$hardcode_automatic" = "Xyes" ; then
  9375. # We can hardcode non-existent directories.
  9376. if test "$hardcode_direct" != no &&
  9377. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9378. # have to relink, otherwise we might link with an installed library
  9379. # when we should be linking with a yet-to-be-installed one
  9380. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9381. test "$hardcode_minus_L" != no; then
  9382. # Linking always hardcodes the temporary library directory.
  9383. hardcode_action=relink
  9384. else
  9385. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9386. hardcode_action=immediate
  9387. fi
  9388. else
  9389. # We cannot hardcode anything, or else we can only hardcode existing
  9390. # directories.
  9391. hardcode_action=unsupported
  9392. fi
  9393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9394. $as_echo "$hardcode_action" >&6; }
  9395. if test "$hardcode_action" = relink ||
  9396. test "$inherit_rpath" = yes; then
  9397. # Fast installation is not supported
  9398. enable_fast_install=no
  9399. elif test "$shlibpath_overrides_runpath" = yes ||
  9400. test "$enable_shared" = no; then
  9401. # Fast installation is not necessary
  9402. enable_fast_install=needless
  9403. fi
  9404. if test "x$enable_dlopen" != xyes; then
  9405. enable_dlopen=unknown
  9406. enable_dlopen_self=unknown
  9407. enable_dlopen_self_static=unknown
  9408. else
  9409. lt_cv_dlopen=no
  9410. lt_cv_dlopen_libs=
  9411. case $host_os in
  9412. beos*)
  9413. lt_cv_dlopen="load_add_on"
  9414. lt_cv_dlopen_libs=
  9415. lt_cv_dlopen_self=yes
  9416. ;;
  9417. mingw* | pw32* | cegcc*)
  9418. lt_cv_dlopen="LoadLibrary"
  9419. lt_cv_dlopen_libs=
  9420. ;;
  9421. cygwin*)
  9422. lt_cv_dlopen="dlopen"
  9423. lt_cv_dlopen_libs=
  9424. ;;
  9425. darwin*)
  9426. # if libdl is installed we need to link against it
  9427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9428. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9429. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9430. $as_echo_n "(cached) " >&6
  9431. else
  9432. ac_check_lib_save_LIBS=$LIBS
  9433. LIBS="-ldl $LIBS"
  9434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9435. /* end confdefs.h. */
  9436. /* Override any GCC internal prototype to avoid an error.
  9437. Use char because int might match the return type of a GCC
  9438. builtin and then its argument prototype would still apply. */
  9439. #ifdef __cplusplus
  9440. extern "C"
  9441. #endif
  9442. char dlopen ();
  9443. int
  9444. main ()
  9445. {
  9446. return dlopen ();
  9447. ;
  9448. return 0;
  9449. }
  9450. _ACEOF
  9451. if ac_fn_c_try_link "$LINENO"; then :
  9452. ac_cv_lib_dl_dlopen=yes
  9453. else
  9454. ac_cv_lib_dl_dlopen=no
  9455. fi
  9456. rm -f core conftest.err conftest.$ac_objext \
  9457. conftest$ac_exeext conftest.$ac_ext
  9458. LIBS=$ac_check_lib_save_LIBS
  9459. fi
  9460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9461. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9462. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9463. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9464. else
  9465. lt_cv_dlopen="dyld"
  9466. lt_cv_dlopen_libs=
  9467. lt_cv_dlopen_self=yes
  9468. fi
  9469. ;;
  9470. *)
  9471. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9472. if test "x$ac_cv_func_shl_load" = xyes; then :
  9473. lt_cv_dlopen="shl_load"
  9474. else
  9475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9476. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9477. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9478. $as_echo_n "(cached) " >&6
  9479. else
  9480. ac_check_lib_save_LIBS=$LIBS
  9481. LIBS="-ldld $LIBS"
  9482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9483. /* end confdefs.h. */
  9484. /* Override any GCC internal prototype to avoid an error.
  9485. Use char because int might match the return type of a GCC
  9486. builtin and then its argument prototype would still apply. */
  9487. #ifdef __cplusplus
  9488. extern "C"
  9489. #endif
  9490. char shl_load ();
  9491. int
  9492. main ()
  9493. {
  9494. return shl_load ();
  9495. ;
  9496. return 0;
  9497. }
  9498. _ACEOF
  9499. if ac_fn_c_try_link "$LINENO"; then :
  9500. ac_cv_lib_dld_shl_load=yes
  9501. else
  9502. ac_cv_lib_dld_shl_load=no
  9503. fi
  9504. rm -f core conftest.err conftest.$ac_objext \
  9505. conftest$ac_exeext conftest.$ac_ext
  9506. LIBS=$ac_check_lib_save_LIBS
  9507. fi
  9508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9509. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9510. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9511. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9512. else
  9513. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9514. if test "x$ac_cv_func_dlopen" = xyes; then :
  9515. lt_cv_dlopen="dlopen"
  9516. else
  9517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9518. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9519. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9520. $as_echo_n "(cached) " >&6
  9521. else
  9522. ac_check_lib_save_LIBS=$LIBS
  9523. LIBS="-ldl $LIBS"
  9524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9525. /* end confdefs.h. */
  9526. /* Override any GCC internal prototype to avoid an error.
  9527. Use char because int might match the return type of a GCC
  9528. builtin and then its argument prototype would still apply. */
  9529. #ifdef __cplusplus
  9530. extern "C"
  9531. #endif
  9532. char dlopen ();
  9533. int
  9534. main ()
  9535. {
  9536. return dlopen ();
  9537. ;
  9538. return 0;
  9539. }
  9540. _ACEOF
  9541. if ac_fn_c_try_link "$LINENO"; then :
  9542. ac_cv_lib_dl_dlopen=yes
  9543. else
  9544. ac_cv_lib_dl_dlopen=no
  9545. fi
  9546. rm -f core conftest.err conftest.$ac_objext \
  9547. conftest$ac_exeext conftest.$ac_ext
  9548. LIBS=$ac_check_lib_save_LIBS
  9549. fi
  9550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9551. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9552. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9553. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9554. else
  9555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9556. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9557. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9558. $as_echo_n "(cached) " >&6
  9559. else
  9560. ac_check_lib_save_LIBS=$LIBS
  9561. LIBS="-lsvld $LIBS"
  9562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9563. /* end confdefs.h. */
  9564. /* Override any GCC internal prototype to avoid an error.
  9565. Use char because int might match the return type of a GCC
  9566. builtin and then its argument prototype would still apply. */
  9567. #ifdef __cplusplus
  9568. extern "C"
  9569. #endif
  9570. char dlopen ();
  9571. int
  9572. main ()
  9573. {
  9574. return dlopen ();
  9575. ;
  9576. return 0;
  9577. }
  9578. _ACEOF
  9579. if ac_fn_c_try_link "$LINENO"; then :
  9580. ac_cv_lib_svld_dlopen=yes
  9581. else
  9582. ac_cv_lib_svld_dlopen=no
  9583. fi
  9584. rm -f core conftest.err conftest.$ac_objext \
  9585. conftest$ac_exeext conftest.$ac_ext
  9586. LIBS=$ac_check_lib_save_LIBS
  9587. fi
  9588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9589. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9590. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9591. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9592. else
  9593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9594. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9595. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9596. $as_echo_n "(cached) " >&6
  9597. else
  9598. ac_check_lib_save_LIBS=$LIBS
  9599. LIBS="-ldld $LIBS"
  9600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9601. /* end confdefs.h. */
  9602. /* Override any GCC internal prototype to avoid an error.
  9603. Use char because int might match the return type of a GCC
  9604. builtin and then its argument prototype would still apply. */
  9605. #ifdef __cplusplus
  9606. extern "C"
  9607. #endif
  9608. char dld_link ();
  9609. int
  9610. main ()
  9611. {
  9612. return dld_link ();
  9613. ;
  9614. return 0;
  9615. }
  9616. _ACEOF
  9617. if ac_fn_c_try_link "$LINENO"; then :
  9618. ac_cv_lib_dld_dld_link=yes
  9619. else
  9620. ac_cv_lib_dld_dld_link=no
  9621. fi
  9622. rm -f core conftest.err conftest.$ac_objext \
  9623. conftest$ac_exeext conftest.$ac_ext
  9624. LIBS=$ac_check_lib_save_LIBS
  9625. fi
  9626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9627. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9628. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9629. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9630. fi
  9631. fi
  9632. fi
  9633. fi
  9634. fi
  9635. fi
  9636. ;;
  9637. esac
  9638. if test "x$lt_cv_dlopen" != xno; then
  9639. enable_dlopen=yes
  9640. else
  9641. enable_dlopen=no
  9642. fi
  9643. case $lt_cv_dlopen in
  9644. dlopen)
  9645. save_CPPFLAGS="$CPPFLAGS"
  9646. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9647. save_LDFLAGS="$LDFLAGS"
  9648. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9649. save_LIBS="$LIBS"
  9650. LIBS="$lt_cv_dlopen_libs $LIBS"
  9651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9652. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9653. if ${lt_cv_dlopen_self+:} false; then :
  9654. $as_echo_n "(cached) " >&6
  9655. else
  9656. if test "$cross_compiling" = yes; then :
  9657. lt_cv_dlopen_self=cross
  9658. else
  9659. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9660. lt_status=$lt_dlunknown
  9661. cat > conftest.$ac_ext <<_LT_EOF
  9662. #line $LINENO "configure"
  9663. #include "confdefs.h"
  9664. #if HAVE_DLFCN_H
  9665. #include <dlfcn.h>
  9666. #endif
  9667. #include <stdio.h>
  9668. #ifdef RTLD_GLOBAL
  9669. # define LT_DLGLOBAL RTLD_GLOBAL
  9670. #else
  9671. # ifdef DL_GLOBAL
  9672. # define LT_DLGLOBAL DL_GLOBAL
  9673. # else
  9674. # define LT_DLGLOBAL 0
  9675. # endif
  9676. #endif
  9677. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9678. find out it does not work in some platform. */
  9679. #ifndef LT_DLLAZY_OR_NOW
  9680. # ifdef RTLD_LAZY
  9681. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9682. # else
  9683. # ifdef DL_LAZY
  9684. # define LT_DLLAZY_OR_NOW DL_LAZY
  9685. # else
  9686. # ifdef RTLD_NOW
  9687. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9688. # else
  9689. # ifdef DL_NOW
  9690. # define LT_DLLAZY_OR_NOW DL_NOW
  9691. # else
  9692. # define LT_DLLAZY_OR_NOW 0
  9693. # endif
  9694. # endif
  9695. # endif
  9696. # endif
  9697. #endif
  9698. /* When -fvisbility=hidden is used, assume the code has been annotated
  9699. correspondingly for the symbols needed. */
  9700. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9701. int fnord () __attribute__((visibility("default")));
  9702. #endif
  9703. int fnord () { return 42; }
  9704. int main ()
  9705. {
  9706. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9707. int status = $lt_dlunknown;
  9708. if (self)
  9709. {
  9710. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9711. else
  9712. {
  9713. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9714. else puts (dlerror ());
  9715. }
  9716. /* dlclose (self); */
  9717. }
  9718. else
  9719. puts (dlerror ());
  9720. return status;
  9721. }
  9722. _LT_EOF
  9723. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9724. (eval $ac_link) 2>&5
  9725. ac_status=$?
  9726. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9727. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9728. (./conftest; exit; ) >&5 2>/dev/null
  9729. lt_status=$?
  9730. case x$lt_status in
  9731. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9732. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9733. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9734. esac
  9735. else :
  9736. # compilation failed
  9737. lt_cv_dlopen_self=no
  9738. fi
  9739. fi
  9740. rm -fr conftest*
  9741. fi
  9742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9743. $as_echo "$lt_cv_dlopen_self" >&6; }
  9744. if test "x$lt_cv_dlopen_self" = xyes; then
  9745. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9747. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9748. if ${lt_cv_dlopen_self_static+:} false; then :
  9749. $as_echo_n "(cached) " >&6
  9750. else
  9751. if test "$cross_compiling" = yes; then :
  9752. lt_cv_dlopen_self_static=cross
  9753. else
  9754. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9755. lt_status=$lt_dlunknown
  9756. cat > conftest.$ac_ext <<_LT_EOF
  9757. #line $LINENO "configure"
  9758. #include "confdefs.h"
  9759. #if HAVE_DLFCN_H
  9760. #include <dlfcn.h>
  9761. #endif
  9762. #include <stdio.h>
  9763. #ifdef RTLD_GLOBAL
  9764. # define LT_DLGLOBAL RTLD_GLOBAL
  9765. #else
  9766. # ifdef DL_GLOBAL
  9767. # define LT_DLGLOBAL DL_GLOBAL
  9768. # else
  9769. # define LT_DLGLOBAL 0
  9770. # endif
  9771. #endif
  9772. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9773. find out it does not work in some platform. */
  9774. #ifndef LT_DLLAZY_OR_NOW
  9775. # ifdef RTLD_LAZY
  9776. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9777. # else
  9778. # ifdef DL_LAZY
  9779. # define LT_DLLAZY_OR_NOW DL_LAZY
  9780. # else
  9781. # ifdef RTLD_NOW
  9782. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9783. # else
  9784. # ifdef DL_NOW
  9785. # define LT_DLLAZY_OR_NOW DL_NOW
  9786. # else
  9787. # define LT_DLLAZY_OR_NOW 0
  9788. # endif
  9789. # endif
  9790. # endif
  9791. # endif
  9792. #endif
  9793. /* When -fvisbility=hidden is used, assume the code has been annotated
  9794. correspondingly for the symbols needed. */
  9795. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9796. int fnord () __attribute__((visibility("default")));
  9797. #endif
  9798. int fnord () { return 42; }
  9799. int main ()
  9800. {
  9801. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9802. int status = $lt_dlunknown;
  9803. if (self)
  9804. {
  9805. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9806. else
  9807. {
  9808. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9809. else puts (dlerror ());
  9810. }
  9811. /* dlclose (self); */
  9812. }
  9813. else
  9814. puts (dlerror ());
  9815. return status;
  9816. }
  9817. _LT_EOF
  9818. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9819. (eval $ac_link) 2>&5
  9820. ac_status=$?
  9821. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9822. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9823. (./conftest; exit; ) >&5 2>/dev/null
  9824. lt_status=$?
  9825. case x$lt_status in
  9826. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9827. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9828. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9829. esac
  9830. else :
  9831. # compilation failed
  9832. lt_cv_dlopen_self_static=no
  9833. fi
  9834. fi
  9835. rm -fr conftest*
  9836. fi
  9837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9838. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9839. fi
  9840. CPPFLAGS="$save_CPPFLAGS"
  9841. LDFLAGS="$save_LDFLAGS"
  9842. LIBS="$save_LIBS"
  9843. ;;
  9844. esac
  9845. case $lt_cv_dlopen_self in
  9846. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9847. *) enable_dlopen_self=unknown ;;
  9848. esac
  9849. case $lt_cv_dlopen_self_static in
  9850. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9851. *) enable_dlopen_self_static=unknown ;;
  9852. esac
  9853. fi
  9854. striplib=
  9855. old_striplib=
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9857. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9858. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9859. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9860. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9862. $as_echo "yes" >&6; }
  9863. else
  9864. # FIXME - insert some real tests, host_os isn't really good enough
  9865. case $host_os in
  9866. darwin*)
  9867. if test -n "$STRIP" ; then
  9868. striplib="$STRIP -x"
  9869. old_striplib="$STRIP -S"
  9870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9871. $as_echo "yes" >&6; }
  9872. else
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9874. $as_echo "no" >&6; }
  9875. fi
  9876. ;;
  9877. *)
  9878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9879. $as_echo "no" >&6; }
  9880. ;;
  9881. esac
  9882. fi
  9883. # Report which library types will actually be built
  9884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9885. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9887. $as_echo "$can_build_shared" >&6; }
  9888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9889. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9890. test "$can_build_shared" = "no" && enable_shared=no
  9891. # On AIX, shared libraries and static libraries use the same namespace, and
  9892. # are all built from PIC.
  9893. case $host_os in
  9894. aix3*)
  9895. test "$enable_shared" = yes && enable_static=no
  9896. if test -n "$RANLIB"; then
  9897. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9898. postinstall_cmds='$RANLIB $lib'
  9899. fi
  9900. ;;
  9901. aix[4-9]*)
  9902. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9903. test "$enable_shared" = yes && enable_static=no
  9904. fi
  9905. ;;
  9906. esac
  9907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9908. $as_echo "$enable_shared" >&6; }
  9909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9910. $as_echo_n "checking whether to build static libraries... " >&6; }
  9911. # Make sure either enable_shared or enable_static is yes.
  9912. test "$enable_shared" = yes || enable_static=yes
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9914. $as_echo "$enable_static" >&6; }
  9915. fi
  9916. ac_ext=c
  9917. ac_cpp='$CPP $CPPFLAGS'
  9918. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9919. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9920. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9921. CC="$lt_save_CC"
  9922. ac_config_commands="$ac_config_commands libtool"
  9923. # Only expand once:
  9924. if test -n "$ac_tool_prefix"; then
  9925. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9926. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9928. $as_echo_n "checking for $ac_word... " >&6; }
  9929. if ${ac_cv_prog_RC+:} false; then :
  9930. $as_echo_n "(cached) " >&6
  9931. else
  9932. if test -n "$RC"; then
  9933. ac_cv_prog_RC="$RC" # Let the user override the test.
  9934. else
  9935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9936. for as_dir in $PATH
  9937. do
  9938. IFS=$as_save_IFS
  9939. test -z "$as_dir" && as_dir=.
  9940. for ac_exec_ext in '' $ac_executable_extensions; do
  9941. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9942. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9943. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9944. break 2
  9945. fi
  9946. done
  9947. done
  9948. IFS=$as_save_IFS
  9949. fi
  9950. fi
  9951. RC=$ac_cv_prog_RC
  9952. if test -n "$RC"; then
  9953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9954. $as_echo "$RC" >&6; }
  9955. else
  9956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9957. $as_echo "no" >&6; }
  9958. fi
  9959. fi
  9960. if test -z "$ac_cv_prog_RC"; then
  9961. ac_ct_RC=$RC
  9962. # Extract the first word of "windres", so it can be a program name with args.
  9963. set dummy windres; ac_word=$2
  9964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9965. $as_echo_n "checking for $ac_word... " >&6; }
  9966. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9967. $as_echo_n "(cached) " >&6
  9968. else
  9969. if test -n "$ac_ct_RC"; then
  9970. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9971. else
  9972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9973. for as_dir in $PATH
  9974. do
  9975. IFS=$as_save_IFS
  9976. test -z "$as_dir" && as_dir=.
  9977. for ac_exec_ext in '' $ac_executable_extensions; do
  9978. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9979. ac_cv_prog_ac_ct_RC="windres"
  9980. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9981. break 2
  9982. fi
  9983. done
  9984. done
  9985. IFS=$as_save_IFS
  9986. fi
  9987. fi
  9988. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  9989. if test -n "$ac_ct_RC"; then
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  9991. $as_echo "$ac_ct_RC" >&6; }
  9992. else
  9993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9994. $as_echo "no" >&6; }
  9995. fi
  9996. if test "x$ac_ct_RC" = x; then
  9997. RC=""
  9998. else
  9999. case $cross_compiling:$ac_tool_warned in
  10000. yes:)
  10001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10002. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10003. ac_tool_warned=yes ;;
  10004. esac
  10005. RC=$ac_ct_RC
  10006. fi
  10007. else
  10008. RC="$ac_cv_prog_RC"
  10009. fi
  10010. # Source file extension for RC test sources.
  10011. ac_ext=rc
  10012. # Object file extension for compiled RC test sources.
  10013. objext=o
  10014. objext_RC=$objext
  10015. # Code to be used in simple compile tests
  10016. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10017. # Code to be used in simple link tests
  10018. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10019. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10020. # If no C compiler was specified, use CC.
  10021. LTCC=${LTCC-"$CC"}
  10022. # If no C compiler flags were specified, use CFLAGS.
  10023. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10024. # Allow CC to be a program name with arguments.
  10025. compiler=$CC
  10026. # save warnings/boilerplate of simple test code
  10027. ac_outfile=conftest.$ac_objext
  10028. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10029. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10030. _lt_compiler_boilerplate=`cat conftest.err`
  10031. $RM conftest*
  10032. ac_outfile=conftest.$ac_objext
  10033. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10034. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10035. _lt_linker_boilerplate=`cat conftest.err`
  10036. $RM -r conftest*
  10037. # Allow CC to be a program name with arguments.
  10038. lt_save_CC="$CC"
  10039. lt_save_CFLAGS=$CFLAGS
  10040. lt_save_GCC=$GCC
  10041. GCC=
  10042. CC=${RC-"windres"}
  10043. CFLAGS=
  10044. compiler=$CC
  10045. compiler_RC=$CC
  10046. for cc_temp in $compiler""; do
  10047. case $cc_temp in
  10048. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10049. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10050. \-*) ;;
  10051. *) break;;
  10052. esac
  10053. done
  10054. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10055. lt_cv_prog_compiler_c_o_RC=yes
  10056. if test -n "$compiler"; then
  10057. :
  10058. fi
  10059. GCC=$lt_save_GCC
  10060. ac_ext=c
  10061. ac_cpp='$CPP $CPPFLAGS'
  10062. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10063. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10064. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10065. CC=$lt_save_CC
  10066. CFLAGS=$lt_save_CFLAGS
  10067. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10068. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10069. LT_REVISION=$SDL_INTERFACE_AGE
  10070. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10071. ac_ext=c
  10072. ac_cpp='$CPP $CPPFLAGS'
  10073. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10074. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10075. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10076. if test -n "$ac_tool_prefix"; then
  10077. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10078. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10080. $as_echo_n "checking for $ac_word... " >&6; }
  10081. if ${ac_cv_prog_CC+:} false; then :
  10082. $as_echo_n "(cached) " >&6
  10083. else
  10084. if test -n "$CC"; then
  10085. ac_cv_prog_CC="$CC" # Let the user override the test.
  10086. else
  10087. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10088. for as_dir in $PATH
  10089. do
  10090. IFS=$as_save_IFS
  10091. test -z "$as_dir" && as_dir=.
  10092. for ac_exec_ext in '' $ac_executable_extensions; do
  10093. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10094. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10095. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10096. break 2
  10097. fi
  10098. done
  10099. done
  10100. IFS=$as_save_IFS
  10101. fi
  10102. fi
  10103. CC=$ac_cv_prog_CC
  10104. if test -n "$CC"; then
  10105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10106. $as_echo "$CC" >&6; }
  10107. else
  10108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10109. $as_echo "no" >&6; }
  10110. fi
  10111. fi
  10112. if test -z "$ac_cv_prog_CC"; then
  10113. ac_ct_CC=$CC
  10114. # Extract the first word of "gcc", so it can be a program name with args.
  10115. set dummy gcc; ac_word=$2
  10116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10117. $as_echo_n "checking for $ac_word... " >&6; }
  10118. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10119. $as_echo_n "(cached) " >&6
  10120. else
  10121. if test -n "$ac_ct_CC"; then
  10122. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10123. else
  10124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10125. for as_dir in $PATH
  10126. do
  10127. IFS=$as_save_IFS
  10128. test -z "$as_dir" && as_dir=.
  10129. for ac_exec_ext in '' $ac_executable_extensions; do
  10130. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10131. ac_cv_prog_ac_ct_CC="gcc"
  10132. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10133. break 2
  10134. fi
  10135. done
  10136. done
  10137. IFS=$as_save_IFS
  10138. fi
  10139. fi
  10140. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10141. if test -n "$ac_ct_CC"; then
  10142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10143. $as_echo "$ac_ct_CC" >&6; }
  10144. else
  10145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10146. $as_echo "no" >&6; }
  10147. fi
  10148. if test "x$ac_ct_CC" = x; then
  10149. CC=""
  10150. else
  10151. case $cross_compiling:$ac_tool_warned in
  10152. yes:)
  10153. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10154. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10155. ac_tool_warned=yes ;;
  10156. esac
  10157. CC=$ac_ct_CC
  10158. fi
  10159. else
  10160. CC="$ac_cv_prog_CC"
  10161. fi
  10162. if test -z "$CC"; then
  10163. if test -n "$ac_tool_prefix"; then
  10164. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10165. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10167. $as_echo_n "checking for $ac_word... " >&6; }
  10168. if ${ac_cv_prog_CC+:} false; then :
  10169. $as_echo_n "(cached) " >&6
  10170. else
  10171. if test -n "$CC"; then
  10172. ac_cv_prog_CC="$CC" # Let the user override the test.
  10173. else
  10174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10175. for as_dir in $PATH
  10176. do
  10177. IFS=$as_save_IFS
  10178. test -z "$as_dir" && as_dir=.
  10179. for ac_exec_ext in '' $ac_executable_extensions; do
  10180. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10181. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10182. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10183. break 2
  10184. fi
  10185. done
  10186. done
  10187. IFS=$as_save_IFS
  10188. fi
  10189. fi
  10190. CC=$ac_cv_prog_CC
  10191. if test -n "$CC"; then
  10192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10193. $as_echo "$CC" >&6; }
  10194. else
  10195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10196. $as_echo "no" >&6; }
  10197. fi
  10198. fi
  10199. fi
  10200. if test -z "$CC"; then
  10201. # Extract the first word of "cc", so it can be a program name with args.
  10202. set dummy cc; ac_word=$2
  10203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10204. $as_echo_n "checking for $ac_word... " >&6; }
  10205. if ${ac_cv_prog_CC+:} false; then :
  10206. $as_echo_n "(cached) " >&6
  10207. else
  10208. if test -n "$CC"; then
  10209. ac_cv_prog_CC="$CC" # Let the user override the test.
  10210. else
  10211. ac_prog_rejected=no
  10212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10213. for as_dir in $PATH
  10214. do
  10215. IFS=$as_save_IFS
  10216. test -z "$as_dir" && as_dir=.
  10217. for ac_exec_ext in '' $ac_executable_extensions; do
  10218. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10219. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10220. ac_prog_rejected=yes
  10221. continue
  10222. fi
  10223. ac_cv_prog_CC="cc"
  10224. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10225. break 2
  10226. fi
  10227. done
  10228. done
  10229. IFS=$as_save_IFS
  10230. if test $ac_prog_rejected = yes; then
  10231. # We found a bogon in the path, so make sure we never use it.
  10232. set dummy $ac_cv_prog_CC
  10233. shift
  10234. if test $# != 0; then
  10235. # We chose a different compiler from the bogus one.
  10236. # However, it has the same basename, so the bogon will be chosen
  10237. # first if we set CC to just the basename; use the full file name.
  10238. shift
  10239. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10240. fi
  10241. fi
  10242. fi
  10243. fi
  10244. CC=$ac_cv_prog_CC
  10245. if test -n "$CC"; then
  10246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10247. $as_echo "$CC" >&6; }
  10248. else
  10249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10250. $as_echo "no" >&6; }
  10251. fi
  10252. fi
  10253. if test -z "$CC"; then
  10254. if test -n "$ac_tool_prefix"; then
  10255. for ac_prog in cl.exe
  10256. do
  10257. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10258. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10260. $as_echo_n "checking for $ac_word... " >&6; }
  10261. if ${ac_cv_prog_CC+:} false; then :
  10262. $as_echo_n "(cached) " >&6
  10263. else
  10264. if test -n "$CC"; then
  10265. ac_cv_prog_CC="$CC" # Let the user override the test.
  10266. else
  10267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10268. for as_dir in $PATH
  10269. do
  10270. IFS=$as_save_IFS
  10271. test -z "$as_dir" && as_dir=.
  10272. for ac_exec_ext in '' $ac_executable_extensions; do
  10273. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10274. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10275. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10276. break 2
  10277. fi
  10278. done
  10279. done
  10280. IFS=$as_save_IFS
  10281. fi
  10282. fi
  10283. CC=$ac_cv_prog_CC
  10284. if test -n "$CC"; then
  10285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10286. $as_echo "$CC" >&6; }
  10287. else
  10288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10289. $as_echo "no" >&6; }
  10290. fi
  10291. test -n "$CC" && break
  10292. done
  10293. fi
  10294. if test -z "$CC"; then
  10295. ac_ct_CC=$CC
  10296. for ac_prog in cl.exe
  10297. do
  10298. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10299. set dummy $ac_prog; ac_word=$2
  10300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10301. $as_echo_n "checking for $ac_word... " >&6; }
  10302. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10303. $as_echo_n "(cached) " >&6
  10304. else
  10305. if test -n "$ac_ct_CC"; then
  10306. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10307. else
  10308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10309. for as_dir in $PATH
  10310. do
  10311. IFS=$as_save_IFS
  10312. test -z "$as_dir" && as_dir=.
  10313. for ac_exec_ext in '' $ac_executable_extensions; do
  10314. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10315. ac_cv_prog_ac_ct_CC="$ac_prog"
  10316. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10317. break 2
  10318. fi
  10319. done
  10320. done
  10321. IFS=$as_save_IFS
  10322. fi
  10323. fi
  10324. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10325. if test -n "$ac_ct_CC"; then
  10326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10327. $as_echo "$ac_ct_CC" >&6; }
  10328. else
  10329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10330. $as_echo "no" >&6; }
  10331. fi
  10332. test -n "$ac_ct_CC" && break
  10333. done
  10334. if test "x$ac_ct_CC" = x; then
  10335. CC=""
  10336. else
  10337. case $cross_compiling:$ac_tool_warned in
  10338. yes:)
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10340. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10341. ac_tool_warned=yes ;;
  10342. esac
  10343. CC=$ac_ct_CC
  10344. fi
  10345. fi
  10346. fi
  10347. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10348. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10349. as_fn_error $? "no acceptable C compiler found in \$PATH
  10350. See \`config.log' for more details" "$LINENO" 5; }
  10351. # Provide some information about the compiler.
  10352. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10353. set X $ac_compile
  10354. ac_compiler=$2
  10355. for ac_option in --version -v -V -qversion; do
  10356. { { ac_try="$ac_compiler $ac_option >&5"
  10357. case "(($ac_try" in
  10358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10359. *) ac_try_echo=$ac_try;;
  10360. esac
  10361. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10362. $as_echo "$ac_try_echo"; } >&5
  10363. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10364. ac_status=$?
  10365. if test -s conftest.err; then
  10366. sed '10a\
  10367. ... rest of stderr output deleted ...
  10368. 10q' conftest.err >conftest.er1
  10369. cat conftest.er1 >&5
  10370. fi
  10371. rm -f conftest.er1 conftest.err
  10372. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10373. test $ac_status = 0; }
  10374. done
  10375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10376. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10377. if ${ac_cv_c_compiler_gnu+:} false; then :
  10378. $as_echo_n "(cached) " >&6
  10379. else
  10380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10381. /* end confdefs.h. */
  10382. int
  10383. main ()
  10384. {
  10385. #ifndef __GNUC__
  10386. choke me
  10387. #endif
  10388. ;
  10389. return 0;
  10390. }
  10391. _ACEOF
  10392. if ac_fn_c_try_compile "$LINENO"; then :
  10393. ac_compiler_gnu=yes
  10394. else
  10395. ac_compiler_gnu=no
  10396. fi
  10397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10398. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10399. fi
  10400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10401. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10402. if test $ac_compiler_gnu = yes; then
  10403. GCC=yes
  10404. else
  10405. GCC=
  10406. fi
  10407. ac_test_CFLAGS=${CFLAGS+set}
  10408. ac_save_CFLAGS=$CFLAGS
  10409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10410. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10411. if ${ac_cv_prog_cc_g+:} false; then :
  10412. $as_echo_n "(cached) " >&6
  10413. else
  10414. ac_save_c_werror_flag=$ac_c_werror_flag
  10415. ac_c_werror_flag=yes
  10416. ac_cv_prog_cc_g=no
  10417. CFLAGS="-g"
  10418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10419. /* end confdefs.h. */
  10420. int
  10421. main ()
  10422. {
  10423. ;
  10424. return 0;
  10425. }
  10426. _ACEOF
  10427. if ac_fn_c_try_compile "$LINENO"; then :
  10428. ac_cv_prog_cc_g=yes
  10429. else
  10430. CFLAGS=""
  10431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10432. /* end confdefs.h. */
  10433. int
  10434. main ()
  10435. {
  10436. ;
  10437. return 0;
  10438. }
  10439. _ACEOF
  10440. if ac_fn_c_try_compile "$LINENO"; then :
  10441. else
  10442. ac_c_werror_flag=$ac_save_c_werror_flag
  10443. CFLAGS="-g"
  10444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10445. /* end confdefs.h. */
  10446. int
  10447. main ()
  10448. {
  10449. ;
  10450. return 0;
  10451. }
  10452. _ACEOF
  10453. if ac_fn_c_try_compile "$LINENO"; then :
  10454. ac_cv_prog_cc_g=yes
  10455. fi
  10456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10457. fi
  10458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10459. fi
  10460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10461. ac_c_werror_flag=$ac_save_c_werror_flag
  10462. fi
  10463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10464. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10465. if test "$ac_test_CFLAGS" = set; then
  10466. CFLAGS=$ac_save_CFLAGS
  10467. elif test $ac_cv_prog_cc_g = yes; then
  10468. if test "$GCC" = yes; then
  10469. CFLAGS="-g -O2"
  10470. else
  10471. CFLAGS="-g"
  10472. fi
  10473. else
  10474. if test "$GCC" = yes; then
  10475. CFLAGS="-O2"
  10476. else
  10477. CFLAGS=
  10478. fi
  10479. fi
  10480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10481. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10482. if ${ac_cv_prog_cc_c89+:} false; then :
  10483. $as_echo_n "(cached) " >&6
  10484. else
  10485. ac_cv_prog_cc_c89=no
  10486. ac_save_CC=$CC
  10487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10488. /* end confdefs.h. */
  10489. #include <stdarg.h>
  10490. #include <stdio.h>
  10491. struct stat;
  10492. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10493. struct buf { int x; };
  10494. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10495. static char *e (p, i)
  10496. char **p;
  10497. int i;
  10498. {
  10499. return p[i];
  10500. }
  10501. static char *f (char * (*g) (char **, int), char **p, ...)
  10502. {
  10503. char *s;
  10504. va_list v;
  10505. va_start (v,p);
  10506. s = g (p, va_arg (v,int));
  10507. va_end (v);
  10508. return s;
  10509. }
  10510. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10511. function prototypes and stuff, but not '\xHH' hex character constants.
  10512. These don't provoke an error unfortunately, instead are silently treated
  10513. as 'x'. The following induces an error, until -std is added to get
  10514. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10515. array size at least. It's necessary to write '\x00'==0 to get something
  10516. that's true only with -std. */
  10517. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10518. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10519. inside strings and character constants. */
  10520. #define FOO(x) 'x'
  10521. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10522. int test (int i, double x);
  10523. struct s1 {int (*f) (int a);};
  10524. struct s2 {int (*f) (double a);};
  10525. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10526. int argc;
  10527. char **argv;
  10528. int
  10529. main ()
  10530. {
  10531. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10532. ;
  10533. return 0;
  10534. }
  10535. _ACEOF
  10536. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10537. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10538. do
  10539. CC="$ac_save_CC $ac_arg"
  10540. if ac_fn_c_try_compile "$LINENO"; then :
  10541. ac_cv_prog_cc_c89=$ac_arg
  10542. fi
  10543. rm -f core conftest.err conftest.$ac_objext
  10544. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10545. done
  10546. rm -f conftest.$ac_ext
  10547. CC=$ac_save_CC
  10548. fi
  10549. # AC_CACHE_VAL
  10550. case "x$ac_cv_prog_cc_c89" in
  10551. x)
  10552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10553. $as_echo "none needed" >&6; } ;;
  10554. xno)
  10555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10556. $as_echo "unsupported" >&6; } ;;
  10557. *)
  10558. CC="$CC $ac_cv_prog_cc_c89"
  10559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10560. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10561. esac
  10562. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10563. fi
  10564. ac_ext=c
  10565. ac_cpp='$CPP $CPPFLAGS'
  10566. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10567. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10568. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10569. ac_ext=cpp
  10570. ac_cpp='$CXXCPP $CPPFLAGS'
  10571. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10572. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10573. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10574. if test -z "$CXX"; then
  10575. if test -n "$CCC"; then
  10576. CXX=$CCC
  10577. else
  10578. if test -n "$ac_tool_prefix"; then
  10579. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10580. do
  10581. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10582. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10584. $as_echo_n "checking for $ac_word... " >&6; }
  10585. if ${ac_cv_prog_CXX+:} false; then :
  10586. $as_echo_n "(cached) " >&6
  10587. else
  10588. if test -n "$CXX"; then
  10589. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10590. else
  10591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10592. for as_dir in $PATH
  10593. do
  10594. IFS=$as_save_IFS
  10595. test -z "$as_dir" && as_dir=.
  10596. for ac_exec_ext in '' $ac_executable_extensions; do
  10597. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10598. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10600. break 2
  10601. fi
  10602. done
  10603. done
  10604. IFS=$as_save_IFS
  10605. fi
  10606. fi
  10607. CXX=$ac_cv_prog_CXX
  10608. if test -n "$CXX"; then
  10609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10610. $as_echo "$CXX" >&6; }
  10611. else
  10612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10613. $as_echo "no" >&6; }
  10614. fi
  10615. test -n "$CXX" && break
  10616. done
  10617. fi
  10618. if test -z "$CXX"; then
  10619. ac_ct_CXX=$CXX
  10620. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10621. do
  10622. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10623. set dummy $ac_prog; ac_word=$2
  10624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10625. $as_echo_n "checking for $ac_word... " >&6; }
  10626. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10627. $as_echo_n "(cached) " >&6
  10628. else
  10629. if test -n "$ac_ct_CXX"; then
  10630. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10631. else
  10632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10633. for as_dir in $PATH
  10634. do
  10635. IFS=$as_save_IFS
  10636. test -z "$as_dir" && as_dir=.
  10637. for ac_exec_ext in '' $ac_executable_extensions; do
  10638. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10639. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10641. break 2
  10642. fi
  10643. done
  10644. done
  10645. IFS=$as_save_IFS
  10646. fi
  10647. fi
  10648. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10649. if test -n "$ac_ct_CXX"; then
  10650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10651. $as_echo "$ac_ct_CXX" >&6; }
  10652. else
  10653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10654. $as_echo "no" >&6; }
  10655. fi
  10656. test -n "$ac_ct_CXX" && break
  10657. done
  10658. if test "x$ac_ct_CXX" = x; then
  10659. CXX="g++"
  10660. else
  10661. case $cross_compiling:$ac_tool_warned in
  10662. yes:)
  10663. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10664. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10665. ac_tool_warned=yes ;;
  10666. esac
  10667. CXX=$ac_ct_CXX
  10668. fi
  10669. fi
  10670. fi
  10671. fi
  10672. # Provide some information about the compiler.
  10673. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10674. set X $ac_compile
  10675. ac_compiler=$2
  10676. for ac_option in --version -v -V -qversion; do
  10677. { { ac_try="$ac_compiler $ac_option >&5"
  10678. case "(($ac_try" in
  10679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10680. *) ac_try_echo=$ac_try;;
  10681. esac
  10682. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10683. $as_echo "$ac_try_echo"; } >&5
  10684. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10685. ac_status=$?
  10686. if test -s conftest.err; then
  10687. sed '10a\
  10688. ... rest of stderr output deleted ...
  10689. 10q' conftest.err >conftest.er1
  10690. cat conftest.er1 >&5
  10691. fi
  10692. rm -f conftest.er1 conftest.err
  10693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10694. test $ac_status = 0; }
  10695. done
  10696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10697. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10698. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10699. $as_echo_n "(cached) " >&6
  10700. else
  10701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10702. /* end confdefs.h. */
  10703. int
  10704. main ()
  10705. {
  10706. #ifndef __GNUC__
  10707. choke me
  10708. #endif
  10709. ;
  10710. return 0;
  10711. }
  10712. _ACEOF
  10713. if ac_fn_cxx_try_compile "$LINENO"; then :
  10714. ac_compiler_gnu=yes
  10715. else
  10716. ac_compiler_gnu=no
  10717. fi
  10718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10719. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10720. fi
  10721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10722. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10723. if test $ac_compiler_gnu = yes; then
  10724. GXX=yes
  10725. else
  10726. GXX=
  10727. fi
  10728. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10729. ac_save_CXXFLAGS=$CXXFLAGS
  10730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10731. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10732. if ${ac_cv_prog_cxx_g+:} false; then :
  10733. $as_echo_n "(cached) " >&6
  10734. else
  10735. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10736. ac_cxx_werror_flag=yes
  10737. ac_cv_prog_cxx_g=no
  10738. CXXFLAGS="-g"
  10739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10740. /* end confdefs.h. */
  10741. int
  10742. main ()
  10743. {
  10744. ;
  10745. return 0;
  10746. }
  10747. _ACEOF
  10748. if ac_fn_cxx_try_compile "$LINENO"; then :
  10749. ac_cv_prog_cxx_g=yes
  10750. else
  10751. CXXFLAGS=""
  10752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10753. /* end confdefs.h. */
  10754. int
  10755. main ()
  10756. {
  10757. ;
  10758. return 0;
  10759. }
  10760. _ACEOF
  10761. if ac_fn_cxx_try_compile "$LINENO"; then :
  10762. else
  10763. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10764. CXXFLAGS="-g"
  10765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10766. /* end confdefs.h. */
  10767. int
  10768. main ()
  10769. {
  10770. ;
  10771. return 0;
  10772. }
  10773. _ACEOF
  10774. if ac_fn_cxx_try_compile "$LINENO"; then :
  10775. ac_cv_prog_cxx_g=yes
  10776. fi
  10777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10778. fi
  10779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10780. fi
  10781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10782. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10783. fi
  10784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10785. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10786. if test "$ac_test_CXXFLAGS" = set; then
  10787. CXXFLAGS=$ac_save_CXXFLAGS
  10788. elif test $ac_cv_prog_cxx_g = yes; then
  10789. if test "$GXX" = yes; then
  10790. CXXFLAGS="-g -O2"
  10791. else
  10792. CXXFLAGS="-g"
  10793. fi
  10794. else
  10795. if test "$GXX" = yes; then
  10796. CXXFLAGS="-O2"
  10797. else
  10798. CXXFLAGS=
  10799. fi
  10800. fi
  10801. ac_ext=c
  10802. ac_cpp='$CPP $CPPFLAGS'
  10803. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10804. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10805. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10806. func_stripname_cnf ()
  10807. {
  10808. case ${2} in
  10809. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10810. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10811. esac
  10812. } # func_stripname_cnf
  10813. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10814. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10815. (test "X$CXX" != "Xg++"))) ; then
  10816. ac_ext=cpp
  10817. ac_cpp='$CXXCPP $CPPFLAGS'
  10818. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10819. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10820. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10822. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10823. if test -z "$CXXCPP"; then
  10824. if ${ac_cv_prog_CXXCPP+:} false; then :
  10825. $as_echo_n "(cached) " >&6
  10826. else
  10827. # Double quotes because CXXCPP needs to be expanded
  10828. for CXXCPP in "$CXX -E" "/lib/cpp"
  10829. do
  10830. ac_preproc_ok=false
  10831. for ac_cxx_preproc_warn_flag in '' yes
  10832. do
  10833. # Use a header file that comes with gcc, so configuring glibc
  10834. # with a fresh cross-compiler works.
  10835. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10836. # <limits.h> exists even on freestanding compilers.
  10837. # On the NeXT, cc -E runs the code through the compiler's parser,
  10838. # not just through cpp. "Syntax error" is here to catch this case.
  10839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10840. /* end confdefs.h. */
  10841. #ifdef __STDC__
  10842. # include <limits.h>
  10843. #else
  10844. # include <assert.h>
  10845. #endif
  10846. Syntax error
  10847. _ACEOF
  10848. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10849. else
  10850. # Broken: fails on valid input.
  10851. continue
  10852. fi
  10853. rm -f conftest.err conftest.i conftest.$ac_ext
  10854. # OK, works on sane cases. Now check whether nonexistent headers
  10855. # can be detected and how.
  10856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10857. /* end confdefs.h. */
  10858. #include <ac_nonexistent.h>
  10859. _ACEOF
  10860. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10861. # Broken: success on invalid input.
  10862. continue
  10863. else
  10864. # Passes both tests.
  10865. ac_preproc_ok=:
  10866. break
  10867. fi
  10868. rm -f conftest.err conftest.i conftest.$ac_ext
  10869. done
  10870. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10871. rm -f conftest.i conftest.err conftest.$ac_ext
  10872. if $ac_preproc_ok; then :
  10873. break
  10874. fi
  10875. done
  10876. ac_cv_prog_CXXCPP=$CXXCPP
  10877. fi
  10878. CXXCPP=$ac_cv_prog_CXXCPP
  10879. else
  10880. ac_cv_prog_CXXCPP=$CXXCPP
  10881. fi
  10882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10883. $as_echo "$CXXCPP" >&6; }
  10884. ac_preproc_ok=false
  10885. for ac_cxx_preproc_warn_flag in '' yes
  10886. do
  10887. # Use a header file that comes with gcc, so configuring glibc
  10888. # with a fresh cross-compiler works.
  10889. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10890. # <limits.h> exists even on freestanding compilers.
  10891. # On the NeXT, cc -E runs the code through the compiler's parser,
  10892. # not just through cpp. "Syntax error" is here to catch this case.
  10893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10894. /* end confdefs.h. */
  10895. #ifdef __STDC__
  10896. # include <limits.h>
  10897. #else
  10898. # include <assert.h>
  10899. #endif
  10900. Syntax error
  10901. _ACEOF
  10902. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10903. else
  10904. # Broken: fails on valid input.
  10905. continue
  10906. fi
  10907. rm -f conftest.err conftest.i conftest.$ac_ext
  10908. # OK, works on sane cases. Now check whether nonexistent headers
  10909. # can be detected and how.
  10910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10911. /* end confdefs.h. */
  10912. #include <ac_nonexistent.h>
  10913. _ACEOF
  10914. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10915. # Broken: success on invalid input.
  10916. continue
  10917. else
  10918. # Passes both tests.
  10919. ac_preproc_ok=:
  10920. break
  10921. fi
  10922. rm -f conftest.err conftest.i conftest.$ac_ext
  10923. done
  10924. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10925. rm -f conftest.i conftest.err conftest.$ac_ext
  10926. if $ac_preproc_ok; then :
  10927. else
  10928. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10929. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10930. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10931. See \`config.log' for more details" "$LINENO" 5; }
  10932. fi
  10933. ac_ext=c
  10934. ac_cpp='$CPP $CPPFLAGS'
  10935. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10936. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10937. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10938. else
  10939. _lt_caught_CXX_error=yes
  10940. fi
  10941. ac_ext=cpp
  10942. ac_cpp='$CXXCPP $CPPFLAGS'
  10943. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10944. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10945. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10946. archive_cmds_need_lc_CXX=no
  10947. allow_undefined_flag_CXX=
  10948. always_export_symbols_CXX=no
  10949. archive_expsym_cmds_CXX=
  10950. compiler_needs_object_CXX=no
  10951. export_dynamic_flag_spec_CXX=
  10952. hardcode_direct_CXX=no
  10953. hardcode_direct_absolute_CXX=no
  10954. hardcode_libdir_flag_spec_CXX=
  10955. hardcode_libdir_separator_CXX=
  10956. hardcode_minus_L_CXX=no
  10957. hardcode_shlibpath_var_CXX=unsupported
  10958. hardcode_automatic_CXX=no
  10959. inherit_rpath_CXX=no
  10960. module_cmds_CXX=
  10961. module_expsym_cmds_CXX=
  10962. link_all_deplibs_CXX=unknown
  10963. old_archive_cmds_CXX=$old_archive_cmds
  10964. reload_flag_CXX=$reload_flag
  10965. reload_cmds_CXX=$reload_cmds
  10966. no_undefined_flag_CXX=
  10967. whole_archive_flag_spec_CXX=
  10968. enable_shared_with_static_runtimes_CXX=no
  10969. # Source file extension for C++ test sources.
  10970. ac_ext=cpp
  10971. # Object file extension for compiled C++ test sources.
  10972. objext=o
  10973. objext_CXX=$objext
  10974. # No sense in running all these tests if we already determined that
  10975. # the CXX compiler isn't working. Some variables (like enable_shared)
  10976. # are currently assumed to apply to all compilers on this platform,
  10977. # and will be corrupted by setting them based on a non-working compiler.
  10978. if test "$_lt_caught_CXX_error" != yes; then
  10979. # Code to be used in simple compile tests
  10980. lt_simple_compile_test_code="int some_variable = 0;"
  10981. # Code to be used in simple link tests
  10982. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10983. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10984. # If no C compiler was specified, use CC.
  10985. LTCC=${LTCC-"$CC"}
  10986. # If no C compiler flags were specified, use CFLAGS.
  10987. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10988. # Allow CC to be a program name with arguments.
  10989. compiler=$CC
  10990. # save warnings/boilerplate of simple test code
  10991. ac_outfile=conftest.$ac_objext
  10992. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10993. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10994. _lt_compiler_boilerplate=`cat conftest.err`
  10995. $RM conftest*
  10996. ac_outfile=conftest.$ac_objext
  10997. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10998. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10999. _lt_linker_boilerplate=`cat conftest.err`
  11000. $RM -r conftest*
  11001. # Allow CC to be a program name with arguments.
  11002. lt_save_CC=$CC
  11003. lt_save_CFLAGS=$CFLAGS
  11004. lt_save_LD=$LD
  11005. lt_save_GCC=$GCC
  11006. GCC=$GXX
  11007. lt_save_with_gnu_ld=$with_gnu_ld
  11008. lt_save_path_LD=$lt_cv_path_LD
  11009. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11010. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11011. else
  11012. $as_unset lt_cv_prog_gnu_ld
  11013. fi
  11014. if test -n "${lt_cv_path_LDCXX+set}"; then
  11015. lt_cv_path_LD=$lt_cv_path_LDCXX
  11016. else
  11017. $as_unset lt_cv_path_LD
  11018. fi
  11019. test -z "${LDCXX+set}" || LD=$LDCXX
  11020. CC=${CXX-"c++"}
  11021. CFLAGS=$CXXFLAGS
  11022. compiler=$CC
  11023. compiler_CXX=$CC
  11024. for cc_temp in $compiler""; do
  11025. case $cc_temp in
  11026. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11027. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11028. \-*) ;;
  11029. *) break;;
  11030. esac
  11031. done
  11032. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11033. if test -n "$compiler"; then
  11034. # We don't want -fno-exception when compiling C++ code, so set the
  11035. # no_builtin_flag separately
  11036. if test "$GXX" = yes; then
  11037. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11038. else
  11039. lt_prog_compiler_no_builtin_flag_CXX=
  11040. fi
  11041. if test "$GXX" = yes; then
  11042. # Set up default GNU C++ configuration
  11043. # Check whether --with-gnu-ld was given.
  11044. if test "${with_gnu_ld+set}" = set; then :
  11045. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11046. else
  11047. with_gnu_ld=no
  11048. fi
  11049. ac_prog=ld
  11050. if test "$GCC" = yes; then
  11051. # Check if gcc -print-prog-name=ld gives a path.
  11052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11053. $as_echo_n "checking for ld used by $CC... " >&6; }
  11054. case $host in
  11055. *-*-mingw*)
  11056. # gcc leaves a trailing carriage return which upsets mingw
  11057. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11058. *)
  11059. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11060. esac
  11061. case $ac_prog in
  11062. # Accept absolute paths.
  11063. [\\/]* | ?:[\\/]*)
  11064. re_direlt='/[^/][^/]*/\.\./'
  11065. # Canonicalize the pathname of ld
  11066. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11067. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11068. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11069. done
  11070. test -z "$LD" && LD="$ac_prog"
  11071. ;;
  11072. "")
  11073. # If it fails, then pretend we aren't using GCC.
  11074. ac_prog=ld
  11075. ;;
  11076. *)
  11077. # If it is relative, then search for the first ld in PATH.
  11078. with_gnu_ld=unknown
  11079. ;;
  11080. esac
  11081. elif test "$with_gnu_ld" = yes; then
  11082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11083. $as_echo_n "checking for GNU ld... " >&6; }
  11084. else
  11085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11086. $as_echo_n "checking for non-GNU ld... " >&6; }
  11087. fi
  11088. if ${lt_cv_path_LD+:} false; then :
  11089. $as_echo_n "(cached) " >&6
  11090. else
  11091. if test -z "$LD"; then
  11092. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11093. for ac_dir in $PATH; do
  11094. IFS="$lt_save_ifs"
  11095. test -z "$ac_dir" && ac_dir=.
  11096. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11097. lt_cv_path_LD="$ac_dir/$ac_prog"
  11098. # Check to see if the program is GNU ld. I'd rather use --version,
  11099. # but apparently some variants of GNU ld only accept -v.
  11100. # Break only if it was the GNU/non-GNU ld that we prefer.
  11101. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11102. *GNU* | *'with BFD'*)
  11103. test "$with_gnu_ld" != no && break
  11104. ;;
  11105. *)
  11106. test "$with_gnu_ld" != yes && break
  11107. ;;
  11108. esac
  11109. fi
  11110. done
  11111. IFS="$lt_save_ifs"
  11112. else
  11113. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11114. fi
  11115. fi
  11116. LD="$lt_cv_path_LD"
  11117. if test -n "$LD"; then
  11118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11119. $as_echo "$LD" >&6; }
  11120. else
  11121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11122. $as_echo "no" >&6; }
  11123. fi
  11124. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11126. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11127. if ${lt_cv_prog_gnu_ld+:} false; then :
  11128. $as_echo_n "(cached) " >&6
  11129. else
  11130. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11131. case `$LD -v 2>&1 </dev/null` in
  11132. *GNU* | *'with BFD'*)
  11133. lt_cv_prog_gnu_ld=yes
  11134. ;;
  11135. *)
  11136. lt_cv_prog_gnu_ld=no
  11137. ;;
  11138. esac
  11139. fi
  11140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11141. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11142. with_gnu_ld=$lt_cv_prog_gnu_ld
  11143. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11144. # archiving commands below assume that GNU ld is being used.
  11145. if test "$with_gnu_ld" = yes; then
  11146. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11147. 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'
  11148. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11149. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11150. # If archive_cmds runs LD, not CC, wlarc should be empty
  11151. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11152. # investigate it a little bit more. (MM)
  11153. wlarc='${wl}'
  11154. # ancient GNU ld didn't support --whole-archive et. al.
  11155. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11156. $GREP 'no-whole-archive' > /dev/null; then
  11157. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11158. else
  11159. whole_archive_flag_spec_CXX=
  11160. fi
  11161. else
  11162. with_gnu_ld=no
  11163. wlarc=
  11164. # A generic and very simple default shared library creation
  11165. # command for GNU C++ for the case where it uses the native
  11166. # linker, instead of GNU ld. If possible, this setting should
  11167. # overridden to take advantage of the native linker features on
  11168. # the platform it is being used on.
  11169. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11170. fi
  11171. # Commands to make compiler produce verbose output that lists
  11172. # what "hidden" libraries, object files and flags are used when
  11173. # linking a shared library.
  11174. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11175. else
  11176. GXX=no
  11177. with_gnu_ld=no
  11178. wlarc=
  11179. fi
  11180. # PORTME: fill in a description of your system's C++ link characteristics
  11181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11182. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11183. ld_shlibs_CXX=yes
  11184. case $host_os in
  11185. aix3*)
  11186. # FIXME: insert proper C++ library support
  11187. ld_shlibs_CXX=no
  11188. ;;
  11189. aix[4-9]*)
  11190. if test "$host_cpu" = ia64; then
  11191. # On IA64, the linker does run time linking by default, so we don't
  11192. # have to do anything special.
  11193. aix_use_runtimelinking=no
  11194. exp_sym_flag='-Bexport'
  11195. no_entry_flag=""
  11196. else
  11197. aix_use_runtimelinking=no
  11198. # Test if we are trying to use run time linking or normal
  11199. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11200. # need to do runtime linking.
  11201. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11202. for ld_flag in $LDFLAGS; do
  11203. case $ld_flag in
  11204. *-brtl*)
  11205. aix_use_runtimelinking=yes
  11206. break
  11207. ;;
  11208. esac
  11209. done
  11210. ;;
  11211. esac
  11212. exp_sym_flag='-bexport'
  11213. no_entry_flag='-bnoentry'
  11214. fi
  11215. # When large executables or shared objects are built, AIX ld can
  11216. # have problems creating the table of contents. If linking a library
  11217. # or program results in "error TOC overflow" add -mminimal-toc to
  11218. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11219. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11220. archive_cmds_CXX=''
  11221. hardcode_direct_CXX=yes
  11222. hardcode_direct_absolute_CXX=yes
  11223. hardcode_libdir_separator_CXX=':'
  11224. link_all_deplibs_CXX=yes
  11225. file_list_spec_CXX='${wl}-f,'
  11226. if test "$GXX" = yes; then
  11227. case $host_os in aix4.[012]|aix4.[012].*)
  11228. # We only want to do this on AIX 4.2 and lower, the check
  11229. # below for broken collect2 doesn't work under 4.3+
  11230. collect2name=`${CC} -print-prog-name=collect2`
  11231. if test -f "$collect2name" &&
  11232. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11233. then
  11234. # We have reworked collect2
  11235. :
  11236. else
  11237. # We have old collect2
  11238. hardcode_direct_CXX=unsupported
  11239. # It fails to find uninstalled libraries when the uninstalled
  11240. # path is not listed in the libpath. Setting hardcode_minus_L
  11241. # to unsupported forces relinking
  11242. hardcode_minus_L_CXX=yes
  11243. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11244. hardcode_libdir_separator_CXX=
  11245. fi
  11246. esac
  11247. shared_flag='-shared'
  11248. if test "$aix_use_runtimelinking" = yes; then
  11249. shared_flag="$shared_flag "'${wl}-G'
  11250. fi
  11251. else
  11252. # not using gcc
  11253. if test "$host_cpu" = ia64; then
  11254. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11255. # chokes on -Wl,-G. The following line is correct:
  11256. shared_flag='-G'
  11257. else
  11258. if test "$aix_use_runtimelinking" = yes; then
  11259. shared_flag='${wl}-G'
  11260. else
  11261. shared_flag='${wl}-bM:SRE'
  11262. fi
  11263. fi
  11264. fi
  11265. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11266. # It seems that -bexpall does not export symbols beginning with
  11267. # underscore (_), so it is better to generate a list of symbols to
  11268. # export.
  11269. always_export_symbols_CXX=yes
  11270. if test "$aix_use_runtimelinking" = yes; then
  11271. # Warning - without using the other runtime loading flags (-brtl),
  11272. # -berok will link without error, but may produce a broken library.
  11273. allow_undefined_flag_CXX='-berok'
  11274. # Determine the default libpath from the value encoded in an empty
  11275. # executable.
  11276. if test "${lt_cv_aix_libpath+set}" = set; then
  11277. aix_libpath=$lt_cv_aix_libpath
  11278. else
  11279. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11280. $as_echo_n "(cached) " >&6
  11281. else
  11282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11283. /* end confdefs.h. */
  11284. int
  11285. main ()
  11286. {
  11287. ;
  11288. return 0;
  11289. }
  11290. _ACEOF
  11291. if ac_fn_cxx_try_link "$LINENO"; then :
  11292. lt_aix_libpath_sed='
  11293. /Import File Strings/,/^$/ {
  11294. /^0/ {
  11295. s/^0 *\([^ ]*\) *$/\1/
  11296. p
  11297. }
  11298. }'
  11299. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11300. # Check for a 64-bit object if we didn't find anything.
  11301. if test -z "$lt_cv_aix_libpath__CXX"; then
  11302. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11303. fi
  11304. fi
  11305. rm -f core conftest.err conftest.$ac_objext \
  11306. conftest$ac_exeext conftest.$ac_ext
  11307. if test -z "$lt_cv_aix_libpath__CXX"; then
  11308. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11309. fi
  11310. fi
  11311. aix_libpath=$lt_cv_aix_libpath__CXX
  11312. fi
  11313. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11314. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11315. else
  11316. if test "$host_cpu" = ia64; then
  11317. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11318. allow_undefined_flag_CXX="-z nodefs"
  11319. 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"
  11320. else
  11321. # Determine the default libpath from the value encoded in an
  11322. # empty executable.
  11323. if test "${lt_cv_aix_libpath+set}" = set; then
  11324. aix_libpath=$lt_cv_aix_libpath
  11325. else
  11326. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11327. $as_echo_n "(cached) " >&6
  11328. else
  11329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11330. /* end confdefs.h. */
  11331. int
  11332. main ()
  11333. {
  11334. ;
  11335. return 0;
  11336. }
  11337. _ACEOF
  11338. if ac_fn_cxx_try_link "$LINENO"; then :
  11339. lt_aix_libpath_sed='
  11340. /Import File Strings/,/^$/ {
  11341. /^0/ {
  11342. s/^0 *\([^ ]*\) *$/\1/
  11343. p
  11344. }
  11345. }'
  11346. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11347. # Check for a 64-bit object if we didn't find anything.
  11348. if test -z "$lt_cv_aix_libpath__CXX"; then
  11349. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11350. fi
  11351. fi
  11352. rm -f core conftest.err conftest.$ac_objext \
  11353. conftest$ac_exeext conftest.$ac_ext
  11354. if test -z "$lt_cv_aix_libpath__CXX"; then
  11355. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11356. fi
  11357. fi
  11358. aix_libpath=$lt_cv_aix_libpath__CXX
  11359. fi
  11360. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11361. # Warning - without using the other run time loading flags,
  11362. # -berok will link without error, but may produce a broken library.
  11363. no_undefined_flag_CXX=' ${wl}-bernotok'
  11364. allow_undefined_flag_CXX=' ${wl}-berok'
  11365. if test "$with_gnu_ld" = yes; then
  11366. # We only use this code for GNU lds that support --whole-archive.
  11367. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11368. else
  11369. # Exported symbols can be pulled into shared objects from archives
  11370. whole_archive_flag_spec_CXX='$convenience'
  11371. fi
  11372. archive_cmds_need_lc_CXX=yes
  11373. # This is similar to how AIX traditionally builds its shared
  11374. # libraries.
  11375. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11376. fi
  11377. fi
  11378. ;;
  11379. beos*)
  11380. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11381. allow_undefined_flag_CXX=unsupported
  11382. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11383. # support --undefined. This deserves some investigation. FIXME
  11384. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11385. else
  11386. ld_shlibs_CXX=no
  11387. fi
  11388. ;;
  11389. chorus*)
  11390. case $cc_basename in
  11391. *)
  11392. # FIXME: insert proper C++ library support
  11393. ld_shlibs_CXX=no
  11394. ;;
  11395. esac
  11396. ;;
  11397. cygwin* | mingw* | pw32* | cegcc*)
  11398. case $GXX,$cc_basename in
  11399. ,cl* | no,cl*)
  11400. # Native MSVC
  11401. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11402. # no search path for DLLs.
  11403. hardcode_libdir_flag_spec_CXX=' '
  11404. allow_undefined_flag_CXX=unsupported
  11405. always_export_symbols_CXX=yes
  11406. file_list_spec_CXX='@'
  11407. # Tell ltmain to make .lib files, not .a files.
  11408. libext=lib
  11409. # Tell ltmain to make .dll files, not .so files.
  11410. shrext_cmds=".dll"
  11411. # FIXME: Setting linknames here is a bad hack.
  11412. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11413. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11414. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11415. else
  11416. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11417. fi~
  11418. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11419. linknames='
  11420. # The linker will not automatically build a static lib if we build a DLL.
  11421. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11422. enable_shared_with_static_runtimes_CXX=yes
  11423. # Don't use ranlib
  11424. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11425. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11426. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11427. case $lt_outputfile in
  11428. *.exe|*.EXE) ;;
  11429. *)
  11430. lt_outputfile="$lt_outputfile.exe"
  11431. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11432. ;;
  11433. esac~
  11434. func_to_tool_file "$lt_outputfile"~
  11435. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11436. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11437. $RM "$lt_outputfile.manifest";
  11438. fi'
  11439. ;;
  11440. *)
  11441. # g++
  11442. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11443. # as there is no search path for DLLs.
  11444. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11445. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11446. allow_undefined_flag_CXX=unsupported
  11447. always_export_symbols_CXX=no
  11448. enable_shared_with_static_runtimes_CXX=yes
  11449. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11450. 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'
  11451. # If the export-symbols file already is a .def file (1st line
  11452. # is EXPORTS), use it as is; otherwise, prepend...
  11453. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11454. cp $export_symbols $output_objdir/$soname.def;
  11455. else
  11456. echo EXPORTS > $output_objdir/$soname.def;
  11457. cat $export_symbols >> $output_objdir/$soname.def;
  11458. fi~
  11459. $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'
  11460. else
  11461. ld_shlibs_CXX=no
  11462. fi
  11463. ;;
  11464. esac
  11465. ;;
  11466. darwin* | rhapsody*)
  11467. archive_cmds_need_lc_CXX=no
  11468. hardcode_direct_CXX=no
  11469. hardcode_automatic_CXX=yes
  11470. hardcode_shlibpath_var_CXX=unsupported
  11471. if test "$lt_cv_ld_force_load" = "yes"; then
  11472. 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\"`'
  11473. else
  11474. whole_archive_flag_spec_CXX=''
  11475. fi
  11476. link_all_deplibs_CXX=yes
  11477. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11478. case $cc_basename in
  11479. ifort*) _lt_dar_can_shared=yes ;;
  11480. *) _lt_dar_can_shared=$GCC ;;
  11481. esac
  11482. if test "$_lt_dar_can_shared" = "yes"; then
  11483. output_verbose_link_cmd=func_echo_all
  11484. 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}"
  11485. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11486. 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}"
  11487. 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}"
  11488. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11489. 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}"
  11490. 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}"
  11491. fi
  11492. else
  11493. ld_shlibs_CXX=no
  11494. fi
  11495. ;;
  11496. dgux*)
  11497. case $cc_basename in
  11498. ec++*)
  11499. # FIXME: insert proper C++ library support
  11500. ld_shlibs_CXX=no
  11501. ;;
  11502. ghcx*)
  11503. # Green Hills C++ Compiler
  11504. # FIXME: insert proper C++ library support
  11505. ld_shlibs_CXX=no
  11506. ;;
  11507. *)
  11508. # FIXME: insert proper C++ library support
  11509. ld_shlibs_CXX=no
  11510. ;;
  11511. esac
  11512. ;;
  11513. freebsd2.*)
  11514. # C++ shared libraries reported to be fairly broken before
  11515. # switch to ELF
  11516. ld_shlibs_CXX=no
  11517. ;;
  11518. freebsd-elf*)
  11519. archive_cmds_need_lc_CXX=no
  11520. ;;
  11521. freebsd* | dragonfly*)
  11522. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11523. # conventions
  11524. ld_shlibs_CXX=yes
  11525. ;;
  11526. gnu*)
  11527. ;;
  11528. haiku*)
  11529. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11530. link_all_deplibs_CXX=yes
  11531. ;;
  11532. hpux9*)
  11533. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11534. hardcode_libdir_separator_CXX=:
  11535. export_dynamic_flag_spec_CXX='${wl}-E'
  11536. hardcode_direct_CXX=yes
  11537. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11538. # but as the default
  11539. # location of the library.
  11540. case $cc_basename in
  11541. CC*)
  11542. # FIXME: insert proper C++ library support
  11543. ld_shlibs_CXX=no
  11544. ;;
  11545. aCC*)
  11546. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11547. # Commands to make compiler produce verbose output that lists
  11548. # what "hidden" libraries, object files and flags are used when
  11549. # linking a shared library.
  11550. #
  11551. # There doesn't appear to be a way to prevent this compiler from
  11552. # explicitly linking system object files so we need to strip them
  11553. # from the output so that they don't get included in the library
  11554. # dependencies.
  11555. 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"'
  11556. ;;
  11557. *)
  11558. if test "$GXX" = yes; then
  11559. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11560. else
  11561. # FIXME: insert proper C++ library support
  11562. ld_shlibs_CXX=no
  11563. fi
  11564. ;;
  11565. esac
  11566. ;;
  11567. hpux10*|hpux11*)
  11568. if test $with_gnu_ld = no; then
  11569. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11570. hardcode_libdir_separator_CXX=:
  11571. case $host_cpu in
  11572. hppa*64*|ia64*)
  11573. ;;
  11574. *)
  11575. export_dynamic_flag_spec_CXX='${wl}-E'
  11576. ;;
  11577. esac
  11578. fi
  11579. case $host_cpu in
  11580. hppa*64*|ia64*)
  11581. hardcode_direct_CXX=no
  11582. hardcode_shlibpath_var_CXX=no
  11583. ;;
  11584. *)
  11585. hardcode_direct_CXX=yes
  11586. hardcode_direct_absolute_CXX=yes
  11587. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11588. # but as the default
  11589. # location of the library.
  11590. ;;
  11591. esac
  11592. case $cc_basename in
  11593. CC*)
  11594. # FIXME: insert proper C++ library support
  11595. ld_shlibs_CXX=no
  11596. ;;
  11597. aCC*)
  11598. case $host_cpu in
  11599. hppa*64*)
  11600. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11601. ;;
  11602. ia64*)
  11603. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11604. ;;
  11605. *)
  11606. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11607. ;;
  11608. esac
  11609. # Commands to make compiler produce verbose output that lists
  11610. # what "hidden" libraries, object files and flags are used when
  11611. # linking a shared library.
  11612. #
  11613. # There doesn't appear to be a way to prevent this compiler from
  11614. # explicitly linking system object files so we need to strip them
  11615. # from the output so that they don't get included in the library
  11616. # dependencies.
  11617. 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"'
  11618. ;;
  11619. *)
  11620. if test "$GXX" = yes; then
  11621. if test $with_gnu_ld = no; then
  11622. case $host_cpu in
  11623. hppa*64*)
  11624. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11625. ;;
  11626. ia64*)
  11627. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11628. ;;
  11629. *)
  11630. 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'
  11631. ;;
  11632. esac
  11633. fi
  11634. else
  11635. # FIXME: insert proper C++ library support
  11636. ld_shlibs_CXX=no
  11637. fi
  11638. ;;
  11639. esac
  11640. ;;
  11641. interix[3-9]*)
  11642. hardcode_direct_CXX=no
  11643. hardcode_shlibpath_var_CXX=no
  11644. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11645. export_dynamic_flag_spec_CXX='${wl}-E'
  11646. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11647. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11648. # default) and relocated if they conflict, which is a slow very memory
  11649. # consuming and fragmenting process. To avoid this, we pick a random,
  11650. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11651. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11652. 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'
  11653. 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'
  11654. ;;
  11655. irix5* | irix6*)
  11656. case $cc_basename in
  11657. CC*)
  11658. # SGI C++
  11659. 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'
  11660. # Archives containing C++ object files must be created using
  11661. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11662. # necessary to make sure instantiated templates are included
  11663. # in the archive.
  11664. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11665. ;;
  11666. *)
  11667. if test "$GXX" = yes; then
  11668. if test "$with_gnu_ld" = no; then
  11669. 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'
  11670. else
  11671. 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'
  11672. fi
  11673. fi
  11674. link_all_deplibs_CXX=yes
  11675. ;;
  11676. esac
  11677. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11678. hardcode_libdir_separator_CXX=:
  11679. inherit_rpath_CXX=yes
  11680. ;;
  11681. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11682. case $cc_basename in
  11683. KCC*)
  11684. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11685. # KCC will only create a shared library if the output file
  11686. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11687. # to its proper name (with version) after linking.
  11688. 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'
  11689. 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'
  11690. # Commands to make compiler produce verbose output that lists
  11691. # what "hidden" libraries, object files and flags are used when
  11692. # linking a shared library.
  11693. #
  11694. # There doesn't appear to be a way to prevent this compiler from
  11695. # explicitly linking system object files so we need to strip them
  11696. # from the output so that they don't get included in the library
  11697. # dependencies.
  11698. 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"'
  11699. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11700. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11701. # Archives containing C++ object files must be created using
  11702. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11703. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11704. ;;
  11705. icpc* | ecpc* )
  11706. # Intel C++
  11707. with_gnu_ld=yes
  11708. # version 8.0 and above of icpc choke on multiply defined symbols
  11709. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11710. # earlier do not add the objects themselves.
  11711. case `$CC -V 2>&1` in
  11712. *"Version 7."*)
  11713. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11714. 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'
  11715. ;;
  11716. *) # Version 8.0 or newer
  11717. tmp_idyn=
  11718. case $host_cpu in
  11719. ia64*) tmp_idyn=' -i_dynamic';;
  11720. esac
  11721. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11722. 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'
  11723. ;;
  11724. esac
  11725. archive_cmds_need_lc_CXX=no
  11726. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11727. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11728. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11729. ;;
  11730. pgCC* | pgcpp*)
  11731. # Portland Group C++ compiler
  11732. case `$CC -V` in
  11733. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11734. prelink_cmds_CXX='tpldir=Template.dir~
  11735. rm -rf $tpldir~
  11736. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11737. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11738. old_archive_cmds_CXX='tpldir=Template.dir~
  11739. rm -rf $tpldir~
  11740. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11741. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11742. $RANLIB $oldlib'
  11743. archive_cmds_CXX='tpldir=Template.dir~
  11744. rm -rf $tpldir~
  11745. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11746. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11747. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11748. rm -rf $tpldir~
  11749. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11750. $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'
  11751. ;;
  11752. *) # Version 6 and above use weak symbols
  11753. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11754. 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'
  11755. ;;
  11756. esac
  11757. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11758. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11759. 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'
  11760. ;;
  11761. cxx*)
  11762. # Compaq C++
  11763. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11764. 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'
  11765. runpath_var=LD_RUN_PATH
  11766. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11767. hardcode_libdir_separator_CXX=:
  11768. # Commands to make compiler produce verbose output that lists
  11769. # what "hidden" libraries, object files and flags are used when
  11770. # linking a shared library.
  11771. #
  11772. # There doesn't appear to be a way to prevent this compiler from
  11773. # explicitly linking system object files so we need to strip them
  11774. # from the output so that they don't get included in the library
  11775. # dependencies.
  11776. 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'
  11777. ;;
  11778. xl* | mpixl* | bgxl*)
  11779. # IBM XL 8.0 on PPC, with GNU ld
  11780. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11781. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11782. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11783. if test "x$supports_anon_versioning" = xyes; then
  11784. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11785. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11786. echo "local: *; };" >> $output_objdir/$libname.ver~
  11787. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11788. fi
  11789. ;;
  11790. *)
  11791. case `$CC -V 2>&1 | sed 5q` in
  11792. *Sun\ C*)
  11793. # Sun C++ 5.9
  11794. no_undefined_flag_CXX=' -zdefs'
  11795. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11796. 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'
  11797. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11798. 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'
  11799. compiler_needs_object_CXX=yes
  11800. # Not sure whether something based on
  11801. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11802. # would be better.
  11803. output_verbose_link_cmd='func_echo_all'
  11804. # Archives containing C++ object files must be created using
  11805. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11806. # necessary to make sure instantiated templates are included
  11807. # in the archive.
  11808. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11809. ;;
  11810. esac
  11811. ;;
  11812. esac
  11813. ;;
  11814. lynxos*)
  11815. # FIXME: insert proper C++ library support
  11816. ld_shlibs_CXX=no
  11817. ;;
  11818. m88k*)
  11819. # FIXME: insert proper C++ library support
  11820. ld_shlibs_CXX=no
  11821. ;;
  11822. mvs*)
  11823. case $cc_basename in
  11824. cxx*)
  11825. # FIXME: insert proper C++ library support
  11826. ld_shlibs_CXX=no
  11827. ;;
  11828. *)
  11829. # FIXME: insert proper C++ library support
  11830. ld_shlibs_CXX=no
  11831. ;;
  11832. esac
  11833. ;;
  11834. netbsd*)
  11835. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11836. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11837. wlarc=
  11838. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11839. hardcode_direct_CXX=yes
  11840. hardcode_shlibpath_var_CXX=no
  11841. fi
  11842. # Workaround some broken pre-1.5 toolchains
  11843. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11844. ;;
  11845. *nto* | *qnx*)
  11846. ld_shlibs_CXX=yes
  11847. ;;
  11848. openbsd2*)
  11849. # C++ shared libraries are fairly broken
  11850. ld_shlibs_CXX=no
  11851. ;;
  11852. openbsd*)
  11853. if test -f /usr/libexec/ld.so; then
  11854. hardcode_direct_CXX=yes
  11855. hardcode_shlibpath_var_CXX=no
  11856. hardcode_direct_absolute_CXX=yes
  11857. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11858. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11859. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11860. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11861. export_dynamic_flag_spec_CXX='${wl}-E'
  11862. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11863. fi
  11864. output_verbose_link_cmd=func_echo_all
  11865. else
  11866. ld_shlibs_CXX=no
  11867. fi
  11868. ;;
  11869. osf3* | osf4* | osf5*)
  11870. case $cc_basename in
  11871. KCC*)
  11872. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11873. # KCC will only create a shared library if the output file
  11874. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11875. # to its proper name (with version) after linking.
  11876. 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'
  11877. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11878. hardcode_libdir_separator_CXX=:
  11879. # Archives containing C++ object files must be created using
  11880. # the KAI C++ compiler.
  11881. case $host in
  11882. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11883. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11884. esac
  11885. ;;
  11886. RCC*)
  11887. # Rational C++ 2.4.1
  11888. # FIXME: insert proper C++ library support
  11889. ld_shlibs_CXX=no
  11890. ;;
  11891. cxx*)
  11892. case $host in
  11893. osf3*)
  11894. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11895. 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'
  11896. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11897. ;;
  11898. *)
  11899. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11900. 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'
  11901. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11902. echo "-hidden">> $lib.exp~
  11903. $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~
  11904. $RM $lib.exp'
  11905. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11906. ;;
  11907. esac
  11908. hardcode_libdir_separator_CXX=:
  11909. # Commands to make compiler produce verbose output that lists
  11910. # what "hidden" libraries, object files and flags are used when
  11911. # linking a shared library.
  11912. #
  11913. # There doesn't appear to be a way to prevent this compiler from
  11914. # explicitly linking system object files so we need to strip them
  11915. # from the output so that they don't get included in the library
  11916. # dependencies.
  11917. 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"'
  11918. ;;
  11919. *)
  11920. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11921. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11922. case $host in
  11923. osf3*)
  11924. 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'
  11925. ;;
  11926. *)
  11927. 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'
  11928. ;;
  11929. esac
  11930. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11931. hardcode_libdir_separator_CXX=:
  11932. # Commands to make compiler produce verbose output that lists
  11933. # what "hidden" libraries, object files and flags are used when
  11934. # linking a shared library.
  11935. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11936. else
  11937. # FIXME: insert proper C++ library support
  11938. ld_shlibs_CXX=no
  11939. fi
  11940. ;;
  11941. esac
  11942. ;;
  11943. psos*)
  11944. # FIXME: insert proper C++ library support
  11945. ld_shlibs_CXX=no
  11946. ;;
  11947. sunos4*)
  11948. case $cc_basename in
  11949. CC*)
  11950. # Sun C++ 4.x
  11951. # FIXME: insert proper C++ library support
  11952. ld_shlibs_CXX=no
  11953. ;;
  11954. lcc*)
  11955. # Lucid
  11956. # FIXME: insert proper C++ library support
  11957. ld_shlibs_CXX=no
  11958. ;;
  11959. *)
  11960. # FIXME: insert proper C++ library support
  11961. ld_shlibs_CXX=no
  11962. ;;
  11963. esac
  11964. ;;
  11965. solaris*)
  11966. case $cc_basename in
  11967. CC* | sunCC*)
  11968. # Sun C++ 4.2, 5.x and Centerline C++
  11969. archive_cmds_need_lc_CXX=yes
  11970. no_undefined_flag_CXX=' -zdefs'
  11971. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11972. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11973. $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'
  11974. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11975. hardcode_shlibpath_var_CXX=no
  11976. case $host_os in
  11977. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11978. *)
  11979. # The compiler driver will combine and reorder linker options,
  11980. # but understands `-z linker_flag'.
  11981. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11982. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11983. ;;
  11984. esac
  11985. link_all_deplibs_CXX=yes
  11986. output_verbose_link_cmd='func_echo_all'
  11987. # Archives containing C++ object files must be created using
  11988. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11989. # necessary to make sure instantiated templates are included
  11990. # in the archive.
  11991. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11992. ;;
  11993. gcx*)
  11994. # Green Hills C++ Compiler
  11995. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11996. # The C++ compiler must be used to create the archive.
  11997. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11998. ;;
  11999. *)
  12000. # GNU C++ compiler with Solaris linker
  12001. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12002. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12003. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12004. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12005. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12006. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12007. # Commands to make compiler produce verbose output that lists
  12008. # what "hidden" libraries, object files and flags are used when
  12009. # linking a shared library.
  12010. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12011. else
  12012. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12013. # platform.
  12014. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12015. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12016. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12017. # Commands to make compiler produce verbose output that lists
  12018. # what "hidden" libraries, object files and flags are used when
  12019. # linking a shared library.
  12020. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12021. fi
  12022. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12023. case $host_os in
  12024. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12025. *)
  12026. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12027. ;;
  12028. esac
  12029. fi
  12030. ;;
  12031. esac
  12032. ;;
  12033. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12034. no_undefined_flag_CXX='${wl}-z,text'
  12035. archive_cmds_need_lc_CXX=no
  12036. hardcode_shlibpath_var_CXX=no
  12037. runpath_var='LD_RUN_PATH'
  12038. case $cc_basename in
  12039. CC*)
  12040. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12041. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12042. ;;
  12043. *)
  12044. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12045. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12046. ;;
  12047. esac
  12048. ;;
  12049. sysv5* | sco3.2v5* | sco5v6*)
  12050. # Note: We can NOT use -z defs as we might desire, because we do not
  12051. # link with -lc, and that would cause any symbols used from libc to
  12052. # always be unresolved, which means just about no library would
  12053. # ever link correctly. If we're not using GNU ld we use -z text
  12054. # though, which does catch some bad symbols but isn't as heavy-handed
  12055. # as -z defs.
  12056. no_undefined_flag_CXX='${wl}-z,text'
  12057. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12058. archive_cmds_need_lc_CXX=no
  12059. hardcode_shlibpath_var_CXX=no
  12060. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12061. hardcode_libdir_separator_CXX=':'
  12062. link_all_deplibs_CXX=yes
  12063. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12064. runpath_var='LD_RUN_PATH'
  12065. case $cc_basename in
  12066. CC*)
  12067. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12068. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12069. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12070. '"$old_archive_cmds_CXX"
  12071. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12072. '"$reload_cmds_CXX"
  12073. ;;
  12074. *)
  12075. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12076. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12077. ;;
  12078. esac
  12079. ;;
  12080. tandem*)
  12081. case $cc_basename in
  12082. NCC*)
  12083. # NonStop-UX NCC 3.20
  12084. # FIXME: insert proper C++ library support
  12085. ld_shlibs_CXX=no
  12086. ;;
  12087. *)
  12088. # FIXME: insert proper C++ library support
  12089. ld_shlibs_CXX=no
  12090. ;;
  12091. esac
  12092. ;;
  12093. vxworks*)
  12094. # FIXME: insert proper C++ library support
  12095. ld_shlibs_CXX=no
  12096. ;;
  12097. *)
  12098. # FIXME: insert proper C++ library support
  12099. ld_shlibs_CXX=no
  12100. ;;
  12101. esac
  12102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12103. $as_echo "$ld_shlibs_CXX" >&6; }
  12104. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12105. GCC_CXX="$GXX"
  12106. LD_CXX="$LD"
  12107. ## CAVEAT EMPTOR:
  12108. ## There is no encapsulation within the following macros, do not change
  12109. ## the running order or otherwise move them around unless you know exactly
  12110. ## what you are doing...
  12111. # Dependencies to place before and after the object being linked:
  12112. predep_objects_CXX=
  12113. postdep_objects_CXX=
  12114. predeps_CXX=
  12115. postdeps_CXX=
  12116. compiler_lib_search_path_CXX=
  12117. cat > conftest.$ac_ext <<_LT_EOF
  12118. class Foo
  12119. {
  12120. public:
  12121. Foo (void) { a = 0; }
  12122. private:
  12123. int a;
  12124. };
  12125. _LT_EOF
  12126. _lt_libdeps_save_CFLAGS=$CFLAGS
  12127. case "$CC $CFLAGS " in #(
  12128. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12129. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12130. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12131. esac
  12132. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12133. (eval $ac_compile) 2>&5
  12134. ac_status=$?
  12135. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12136. test $ac_status = 0; }; then
  12137. # Parse the compiler output and extract the necessary
  12138. # objects, libraries and library flags.
  12139. # Sentinel used to keep track of whether or not we are before
  12140. # the conftest object file.
  12141. pre_test_object_deps_done=no
  12142. for p in `eval "$output_verbose_link_cmd"`; do
  12143. case ${prev}${p} in
  12144. -L* | -R* | -l*)
  12145. # Some compilers place space between "-{L,R}" and the path.
  12146. # Remove the space.
  12147. if test $p = "-L" ||
  12148. test $p = "-R"; then
  12149. prev=$p
  12150. continue
  12151. fi
  12152. # Expand the sysroot to ease extracting the directories later.
  12153. if test -z "$prev"; then
  12154. case $p in
  12155. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12156. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12157. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12158. esac
  12159. fi
  12160. case $p in
  12161. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12162. esac
  12163. if test "$pre_test_object_deps_done" = no; then
  12164. case ${prev} in
  12165. -L | -R)
  12166. # Internal compiler library paths should come after those
  12167. # provided the user. The postdeps already come after the
  12168. # user supplied libs so there is no need to process them.
  12169. if test -z "$compiler_lib_search_path_CXX"; then
  12170. compiler_lib_search_path_CXX="${prev}${p}"
  12171. else
  12172. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12173. fi
  12174. ;;
  12175. # The "-l" case would never come before the object being
  12176. # linked, so don't bother handling this case.
  12177. esac
  12178. else
  12179. if test -z "$postdeps_CXX"; then
  12180. postdeps_CXX="${prev}${p}"
  12181. else
  12182. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12183. fi
  12184. fi
  12185. prev=
  12186. ;;
  12187. *.lto.$objext) ;; # Ignore GCC LTO objects
  12188. *.$objext)
  12189. # This assumes that the test object file only shows up
  12190. # once in the compiler output.
  12191. if test "$p" = "conftest.$objext"; then
  12192. pre_test_object_deps_done=yes
  12193. continue
  12194. fi
  12195. if test "$pre_test_object_deps_done" = no; then
  12196. if test -z "$predep_objects_CXX"; then
  12197. predep_objects_CXX="$p"
  12198. else
  12199. predep_objects_CXX="$predep_objects_CXX $p"
  12200. fi
  12201. else
  12202. if test -z "$postdep_objects_CXX"; then
  12203. postdep_objects_CXX="$p"
  12204. else
  12205. postdep_objects_CXX="$postdep_objects_CXX $p"
  12206. fi
  12207. fi
  12208. ;;
  12209. *) ;; # Ignore the rest.
  12210. esac
  12211. done
  12212. # Clean up.
  12213. rm -f a.out a.exe
  12214. else
  12215. echo "libtool.m4: error: problem compiling CXX test program"
  12216. fi
  12217. $RM -f confest.$objext
  12218. CFLAGS=$_lt_libdeps_save_CFLAGS
  12219. # PORTME: override above test on systems where it is broken
  12220. case $host_os in
  12221. interix[3-9]*)
  12222. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12223. # hack all around it, let's just trust "g++" to DTRT.
  12224. predep_objects_CXX=
  12225. postdep_objects_CXX=
  12226. postdeps_CXX=
  12227. ;;
  12228. linux*)
  12229. case `$CC -V 2>&1 | sed 5q` in
  12230. *Sun\ C*)
  12231. # Sun C++ 5.9
  12232. # The more standards-conforming stlport4 library is
  12233. # incompatible with the Cstd library. Avoid specifying
  12234. # it if it's in CXXFLAGS. Ignore libCrun as
  12235. # -library=stlport4 depends on it.
  12236. case " $CXX $CXXFLAGS " in
  12237. *" -library=stlport4 "*)
  12238. solaris_use_stlport4=yes
  12239. ;;
  12240. esac
  12241. if test "$solaris_use_stlport4" != yes; then
  12242. postdeps_CXX='-library=Cstd -library=Crun'
  12243. fi
  12244. ;;
  12245. esac
  12246. ;;
  12247. solaris*)
  12248. case $cc_basename in
  12249. CC* | sunCC*)
  12250. # The more standards-conforming stlport4 library is
  12251. # incompatible with the Cstd library. Avoid specifying
  12252. # it if it's in CXXFLAGS. Ignore libCrun as
  12253. # -library=stlport4 depends on it.
  12254. case " $CXX $CXXFLAGS " in
  12255. *" -library=stlport4 "*)
  12256. solaris_use_stlport4=yes
  12257. ;;
  12258. esac
  12259. # Adding this requires a known-good setup of shared libraries for
  12260. # Sun compiler versions before 5.6, else PIC objects from an old
  12261. # archive will be linked into the output, leading to subtle bugs.
  12262. if test "$solaris_use_stlport4" != yes; then
  12263. postdeps_CXX='-library=Cstd -library=Crun'
  12264. fi
  12265. ;;
  12266. esac
  12267. ;;
  12268. esac
  12269. case " $postdeps_CXX " in
  12270. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12271. esac
  12272. compiler_lib_search_dirs_CXX=
  12273. if test -n "${compiler_lib_search_path_CXX}"; then
  12274. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12275. fi
  12276. lt_prog_compiler_wl_CXX=
  12277. lt_prog_compiler_pic_CXX=
  12278. lt_prog_compiler_static_CXX=
  12279. # C++ specific cases for pic, static, wl, etc.
  12280. if test "$GXX" = yes; then
  12281. lt_prog_compiler_wl_CXX='-Wl,'
  12282. lt_prog_compiler_static_CXX='-static'
  12283. case $host_os in
  12284. aix*)
  12285. # All AIX code is PIC.
  12286. if test "$host_cpu" = ia64; then
  12287. # AIX 5 now supports IA64 processor
  12288. lt_prog_compiler_static_CXX='-Bstatic'
  12289. fi
  12290. ;;
  12291. amigaos*)
  12292. case $host_cpu in
  12293. powerpc)
  12294. # see comment about AmigaOS4 .so support
  12295. lt_prog_compiler_pic_CXX='-fPIC'
  12296. ;;
  12297. m68k)
  12298. # FIXME: we need at least 68020 code to build shared libraries, but
  12299. # adding the `-m68020' flag to GCC prevents building anything better,
  12300. # like `-m68040'.
  12301. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12302. ;;
  12303. esac
  12304. ;;
  12305. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12306. # PIC is the default for these OSes.
  12307. ;;
  12308. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12309. # This hack is so that the source file can tell whether it is being
  12310. # built for inclusion in a dll (and should export symbols for example).
  12311. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12312. # (--disable-auto-import) libraries
  12313. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12314. ;;
  12315. darwin* | rhapsody*)
  12316. # PIC is the default on this platform
  12317. # Common symbols not allowed in MH_DYLIB files
  12318. lt_prog_compiler_pic_CXX='-fno-common'
  12319. ;;
  12320. *djgpp*)
  12321. # DJGPP does not support shared libraries at all
  12322. lt_prog_compiler_pic_CXX=
  12323. ;;
  12324. haiku*)
  12325. # PIC is the default for Haiku.
  12326. # The "-static" flag exists, but is broken.
  12327. lt_prog_compiler_static_CXX=
  12328. ;;
  12329. interix[3-9]*)
  12330. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12331. # Instead, we relocate shared libraries at runtime.
  12332. ;;
  12333. sysv4*MP*)
  12334. if test -d /usr/nec; then
  12335. lt_prog_compiler_pic_CXX=-Kconform_pic
  12336. fi
  12337. ;;
  12338. hpux*)
  12339. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12340. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12341. # sets the default TLS model and affects inlining.
  12342. case $host_cpu in
  12343. hppa*64*)
  12344. ;;
  12345. *)
  12346. lt_prog_compiler_pic_CXX='-fPIC'
  12347. ;;
  12348. esac
  12349. ;;
  12350. *qnx* | *nto*)
  12351. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12352. # it will coredump.
  12353. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12354. ;;
  12355. *)
  12356. lt_prog_compiler_pic_CXX='-fPIC'
  12357. ;;
  12358. esac
  12359. else
  12360. case $host_os in
  12361. aix[4-9]*)
  12362. # All AIX code is PIC.
  12363. if test "$host_cpu" = ia64; then
  12364. # AIX 5 now supports IA64 processor
  12365. lt_prog_compiler_static_CXX='-Bstatic'
  12366. else
  12367. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12368. fi
  12369. ;;
  12370. chorus*)
  12371. case $cc_basename in
  12372. cxch68*)
  12373. # Green Hills C++ Compiler
  12374. # _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"
  12375. ;;
  12376. esac
  12377. ;;
  12378. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12379. # This hack is so that the source file can tell whether it is being
  12380. # built for inclusion in a dll (and should export symbols for example).
  12381. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12382. ;;
  12383. dgux*)
  12384. case $cc_basename in
  12385. ec++*)
  12386. lt_prog_compiler_pic_CXX='-KPIC'
  12387. ;;
  12388. ghcx*)
  12389. # Green Hills C++ Compiler
  12390. lt_prog_compiler_pic_CXX='-pic'
  12391. ;;
  12392. *)
  12393. ;;
  12394. esac
  12395. ;;
  12396. freebsd* | dragonfly*)
  12397. # FreeBSD uses GNU C++
  12398. ;;
  12399. hpux9* | hpux10* | hpux11*)
  12400. case $cc_basename in
  12401. CC*)
  12402. lt_prog_compiler_wl_CXX='-Wl,'
  12403. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12404. if test "$host_cpu" != ia64; then
  12405. lt_prog_compiler_pic_CXX='+Z'
  12406. fi
  12407. ;;
  12408. aCC*)
  12409. lt_prog_compiler_wl_CXX='-Wl,'
  12410. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12411. case $host_cpu in
  12412. hppa*64*|ia64*)
  12413. # +Z the default
  12414. ;;
  12415. *)
  12416. lt_prog_compiler_pic_CXX='+Z'
  12417. ;;
  12418. esac
  12419. ;;
  12420. *)
  12421. ;;
  12422. esac
  12423. ;;
  12424. interix*)
  12425. # This is c89, which is MS Visual C++ (no shared libs)
  12426. # Anyone wants to do a port?
  12427. ;;
  12428. irix5* | irix6* | nonstopux*)
  12429. case $cc_basename in
  12430. CC*)
  12431. lt_prog_compiler_wl_CXX='-Wl,'
  12432. lt_prog_compiler_static_CXX='-non_shared'
  12433. # CC pic flag -KPIC is the default.
  12434. ;;
  12435. *)
  12436. ;;
  12437. esac
  12438. ;;
  12439. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12440. case $cc_basename in
  12441. KCC*)
  12442. # KAI C++ Compiler
  12443. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12444. lt_prog_compiler_pic_CXX='-fPIC'
  12445. ;;
  12446. ecpc* )
  12447. # old Intel C++ for x86_64 which still supported -KPIC.
  12448. lt_prog_compiler_wl_CXX='-Wl,'
  12449. lt_prog_compiler_pic_CXX='-KPIC'
  12450. lt_prog_compiler_static_CXX='-static'
  12451. ;;
  12452. icpc* )
  12453. # Intel C++, used to be incompatible with GCC.
  12454. # ICC 10 doesn't accept -KPIC any more.
  12455. lt_prog_compiler_wl_CXX='-Wl,'
  12456. lt_prog_compiler_pic_CXX='-fPIC'
  12457. lt_prog_compiler_static_CXX='-static'
  12458. ;;
  12459. pgCC* | pgcpp*)
  12460. # Portland Group C++ compiler
  12461. lt_prog_compiler_wl_CXX='-Wl,'
  12462. lt_prog_compiler_pic_CXX='-fpic'
  12463. lt_prog_compiler_static_CXX='-Bstatic'
  12464. ;;
  12465. cxx*)
  12466. # Compaq C++
  12467. # Make sure the PIC flag is empty. It appears that all Alpha
  12468. # Linux and Compaq Tru64 Unix objects are PIC.
  12469. lt_prog_compiler_pic_CXX=
  12470. lt_prog_compiler_static_CXX='-non_shared'
  12471. ;;
  12472. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12473. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12474. lt_prog_compiler_wl_CXX='-Wl,'
  12475. lt_prog_compiler_pic_CXX='-qpic'
  12476. lt_prog_compiler_static_CXX='-qstaticlink'
  12477. ;;
  12478. *)
  12479. case `$CC -V 2>&1 | sed 5q` in
  12480. *Sun\ C*)
  12481. # Sun C++ 5.9
  12482. lt_prog_compiler_pic_CXX='-KPIC'
  12483. lt_prog_compiler_static_CXX='-Bstatic'
  12484. lt_prog_compiler_wl_CXX='-Qoption ld '
  12485. ;;
  12486. esac
  12487. ;;
  12488. esac
  12489. ;;
  12490. lynxos*)
  12491. ;;
  12492. m88k*)
  12493. ;;
  12494. mvs*)
  12495. case $cc_basename in
  12496. cxx*)
  12497. lt_prog_compiler_pic_CXX='-W c,exportall'
  12498. ;;
  12499. *)
  12500. ;;
  12501. esac
  12502. ;;
  12503. netbsd*)
  12504. ;;
  12505. *qnx* | *nto*)
  12506. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12507. # it will coredump.
  12508. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12509. ;;
  12510. osf3* | osf4* | osf5*)
  12511. case $cc_basename in
  12512. KCC*)
  12513. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12514. ;;
  12515. RCC*)
  12516. # Rational C++ 2.4.1
  12517. lt_prog_compiler_pic_CXX='-pic'
  12518. ;;
  12519. cxx*)
  12520. # Digital/Compaq C++
  12521. lt_prog_compiler_wl_CXX='-Wl,'
  12522. # Make sure the PIC flag is empty. It appears that all Alpha
  12523. # Linux and Compaq Tru64 Unix objects are PIC.
  12524. lt_prog_compiler_pic_CXX=
  12525. lt_prog_compiler_static_CXX='-non_shared'
  12526. ;;
  12527. *)
  12528. ;;
  12529. esac
  12530. ;;
  12531. psos*)
  12532. ;;
  12533. solaris*)
  12534. case $cc_basename in
  12535. CC* | sunCC*)
  12536. # Sun C++ 4.2, 5.x and Centerline C++
  12537. lt_prog_compiler_pic_CXX='-KPIC'
  12538. lt_prog_compiler_static_CXX='-Bstatic'
  12539. lt_prog_compiler_wl_CXX='-Qoption ld '
  12540. ;;
  12541. gcx*)
  12542. # Green Hills C++ Compiler
  12543. lt_prog_compiler_pic_CXX='-PIC'
  12544. ;;
  12545. *)
  12546. ;;
  12547. esac
  12548. ;;
  12549. sunos4*)
  12550. case $cc_basename in
  12551. CC*)
  12552. # Sun C++ 4.x
  12553. lt_prog_compiler_pic_CXX='-pic'
  12554. lt_prog_compiler_static_CXX='-Bstatic'
  12555. ;;
  12556. lcc*)
  12557. # Lucid
  12558. lt_prog_compiler_pic_CXX='-pic'
  12559. ;;
  12560. *)
  12561. ;;
  12562. esac
  12563. ;;
  12564. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12565. case $cc_basename in
  12566. CC*)
  12567. lt_prog_compiler_wl_CXX='-Wl,'
  12568. lt_prog_compiler_pic_CXX='-KPIC'
  12569. lt_prog_compiler_static_CXX='-Bstatic'
  12570. ;;
  12571. esac
  12572. ;;
  12573. tandem*)
  12574. case $cc_basename in
  12575. NCC*)
  12576. # NonStop-UX NCC 3.20
  12577. lt_prog_compiler_pic_CXX='-KPIC'
  12578. ;;
  12579. *)
  12580. ;;
  12581. esac
  12582. ;;
  12583. vxworks*)
  12584. ;;
  12585. *)
  12586. lt_prog_compiler_can_build_shared_CXX=no
  12587. ;;
  12588. esac
  12589. fi
  12590. case $host_os in
  12591. # For platforms which do not support PIC, -DPIC is meaningless:
  12592. *djgpp*)
  12593. lt_prog_compiler_pic_CXX=
  12594. ;;
  12595. *)
  12596. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12597. ;;
  12598. esac
  12599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12600. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12601. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12602. $as_echo_n "(cached) " >&6
  12603. else
  12604. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12605. fi
  12606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12607. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12608. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12609. #
  12610. # Check to make sure the PIC flag actually works.
  12611. #
  12612. if test -n "$lt_prog_compiler_pic_CXX"; then
  12613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12614. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12615. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12616. $as_echo_n "(cached) " >&6
  12617. else
  12618. lt_cv_prog_compiler_pic_works_CXX=no
  12619. ac_outfile=conftest.$ac_objext
  12620. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12621. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12622. # Insert the option either (1) after the last *FLAGS variable, or
  12623. # (2) before a word containing "conftest.", or (3) at the end.
  12624. # Note that $ac_compile itself does not contain backslashes and begins
  12625. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12626. # The option is referenced via a variable to avoid confusing sed.
  12627. lt_compile=`echo "$ac_compile" | $SED \
  12628. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12629. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12630. -e 's:$: $lt_compiler_flag:'`
  12631. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12632. (eval "$lt_compile" 2>conftest.err)
  12633. ac_status=$?
  12634. cat conftest.err >&5
  12635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12636. if (exit $ac_status) && test -s "$ac_outfile"; then
  12637. # The compiler can only warn and ignore the option if not recognized
  12638. # So say no if there are warnings other than the usual output.
  12639. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12640. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12641. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12642. lt_cv_prog_compiler_pic_works_CXX=yes
  12643. fi
  12644. fi
  12645. $RM conftest*
  12646. fi
  12647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12648. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12649. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12650. case $lt_prog_compiler_pic_CXX in
  12651. "" | " "*) ;;
  12652. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12653. esac
  12654. else
  12655. lt_prog_compiler_pic_CXX=
  12656. lt_prog_compiler_can_build_shared_CXX=no
  12657. fi
  12658. fi
  12659. #
  12660. # Check to make sure the static flag actually works.
  12661. #
  12662. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12664. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12665. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12666. $as_echo_n "(cached) " >&6
  12667. else
  12668. lt_cv_prog_compiler_static_works_CXX=no
  12669. save_LDFLAGS="$LDFLAGS"
  12670. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12671. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12672. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12673. # The linker can only warn and ignore the option if not recognized
  12674. # So say no if there are warnings
  12675. if test -s conftest.err; then
  12676. # Append any errors to the config.log.
  12677. cat conftest.err 1>&5
  12678. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12679. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12680. if diff conftest.exp conftest.er2 >/dev/null; then
  12681. lt_cv_prog_compiler_static_works_CXX=yes
  12682. fi
  12683. else
  12684. lt_cv_prog_compiler_static_works_CXX=yes
  12685. fi
  12686. fi
  12687. $RM -r conftest*
  12688. LDFLAGS="$save_LDFLAGS"
  12689. fi
  12690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12691. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12692. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12693. :
  12694. else
  12695. lt_prog_compiler_static_CXX=
  12696. fi
  12697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12698. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12699. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12700. $as_echo_n "(cached) " >&6
  12701. else
  12702. lt_cv_prog_compiler_c_o_CXX=no
  12703. $RM -r conftest 2>/dev/null
  12704. mkdir conftest
  12705. cd conftest
  12706. mkdir out
  12707. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12708. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12709. # Insert the option either (1) after the last *FLAGS variable, or
  12710. # (2) before a word containing "conftest.", or (3) at the end.
  12711. # Note that $ac_compile itself does not contain backslashes and begins
  12712. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12713. lt_compile=`echo "$ac_compile" | $SED \
  12714. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12715. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12716. -e 's:$: $lt_compiler_flag:'`
  12717. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12718. (eval "$lt_compile" 2>out/conftest.err)
  12719. ac_status=$?
  12720. cat out/conftest.err >&5
  12721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12722. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12723. then
  12724. # The compiler can only warn and ignore the option if not recognized
  12725. # So say no if there are warnings
  12726. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12727. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12728. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12729. lt_cv_prog_compiler_c_o_CXX=yes
  12730. fi
  12731. fi
  12732. chmod u+w . 2>&5
  12733. $RM conftest*
  12734. # SGI C++ compiler will create directory out/ii_files/ for
  12735. # template instantiation
  12736. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12737. $RM out/* && rmdir out
  12738. cd ..
  12739. $RM -r conftest
  12740. $RM conftest*
  12741. fi
  12742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12743. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12745. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12746. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12747. $as_echo_n "(cached) " >&6
  12748. else
  12749. lt_cv_prog_compiler_c_o_CXX=no
  12750. $RM -r conftest 2>/dev/null
  12751. mkdir conftest
  12752. cd conftest
  12753. mkdir out
  12754. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12755. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12756. # Insert the option either (1) after the last *FLAGS variable, or
  12757. # (2) before a word containing "conftest.", or (3) at the end.
  12758. # Note that $ac_compile itself does not contain backslashes and begins
  12759. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12760. lt_compile=`echo "$ac_compile" | $SED \
  12761. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12762. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12763. -e 's:$: $lt_compiler_flag:'`
  12764. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12765. (eval "$lt_compile" 2>out/conftest.err)
  12766. ac_status=$?
  12767. cat out/conftest.err >&5
  12768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12769. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12770. then
  12771. # The compiler can only warn and ignore the option if not recognized
  12772. # So say no if there are warnings
  12773. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12774. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12775. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12776. lt_cv_prog_compiler_c_o_CXX=yes
  12777. fi
  12778. fi
  12779. chmod u+w . 2>&5
  12780. $RM conftest*
  12781. # SGI C++ compiler will create directory out/ii_files/ for
  12782. # template instantiation
  12783. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12784. $RM out/* && rmdir out
  12785. cd ..
  12786. $RM -r conftest
  12787. $RM conftest*
  12788. fi
  12789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12790. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12791. hard_links="nottested"
  12792. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12793. # do not overwrite the value of need_locks provided by the user
  12794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12795. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12796. hard_links=yes
  12797. $RM conftest*
  12798. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12799. touch conftest.a
  12800. ln conftest.a conftest.b 2>&5 || hard_links=no
  12801. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12803. $as_echo "$hard_links" >&6; }
  12804. if test "$hard_links" = no; then
  12805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12806. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12807. need_locks=warn
  12808. fi
  12809. else
  12810. need_locks=no
  12811. fi
  12812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12813. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12814. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12815. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12816. case $host_os in
  12817. aix[4-9]*)
  12818. # If we're using GNU nm, then we don't want the "-C" option.
  12819. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12820. # Also, AIX nm treats weak defined symbols like other global defined
  12821. # symbols, whereas GNU nm marks them as "W".
  12822. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12823. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12824. else
  12825. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12826. fi
  12827. ;;
  12828. pw32*)
  12829. export_symbols_cmds_CXX="$ltdll_cmds"
  12830. ;;
  12831. cygwin* | mingw* | cegcc*)
  12832. case $cc_basename in
  12833. cl*)
  12834. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12835. ;;
  12836. *)
  12837. 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'
  12838. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12839. ;;
  12840. esac
  12841. ;;
  12842. *)
  12843. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12844. ;;
  12845. esac
  12846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12847. $as_echo "$ld_shlibs_CXX" >&6; }
  12848. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12849. with_gnu_ld_CXX=$with_gnu_ld
  12850. #
  12851. # Do we need to explicitly link libc?
  12852. #
  12853. case "x$archive_cmds_need_lc_CXX" in
  12854. x|xyes)
  12855. # Assume -lc should be added
  12856. archive_cmds_need_lc_CXX=yes
  12857. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12858. case $archive_cmds_CXX in
  12859. *'~'*)
  12860. # FIXME: we may have to deal with multi-command sequences.
  12861. ;;
  12862. '$CC '*)
  12863. # Test whether the compiler implicitly links with -lc since on some
  12864. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12865. # to ld, don't add -lc before -lgcc.
  12866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12867. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12868. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12869. $as_echo_n "(cached) " >&6
  12870. else
  12871. $RM conftest*
  12872. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12873. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12874. (eval $ac_compile) 2>&5
  12875. ac_status=$?
  12876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12877. test $ac_status = 0; } 2>conftest.err; then
  12878. soname=conftest
  12879. lib=conftest
  12880. libobjs=conftest.$ac_objext
  12881. deplibs=
  12882. wl=$lt_prog_compiler_wl_CXX
  12883. pic_flag=$lt_prog_compiler_pic_CXX
  12884. compiler_flags=-v
  12885. linker_flags=-v
  12886. verstring=
  12887. output_objdir=.
  12888. libname=conftest
  12889. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12890. allow_undefined_flag_CXX=
  12891. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12892. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12893. ac_status=$?
  12894. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12895. test $ac_status = 0; }
  12896. then
  12897. lt_cv_archive_cmds_need_lc_CXX=no
  12898. else
  12899. lt_cv_archive_cmds_need_lc_CXX=yes
  12900. fi
  12901. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12902. else
  12903. cat conftest.err 1>&5
  12904. fi
  12905. $RM conftest*
  12906. fi
  12907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12908. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12909. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12910. ;;
  12911. esac
  12912. fi
  12913. ;;
  12914. esac
  12915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12916. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12917. library_names_spec=
  12918. libname_spec='lib$name'
  12919. soname_spec=
  12920. shrext_cmds=".so"
  12921. postinstall_cmds=
  12922. postuninstall_cmds=
  12923. finish_cmds=
  12924. finish_eval=
  12925. shlibpath_var=
  12926. shlibpath_overrides_runpath=unknown
  12927. version_type=none
  12928. dynamic_linker="$host_os ld.so"
  12929. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12930. need_lib_prefix=unknown
  12931. hardcode_into_libs=no
  12932. # when you set need_version to no, make sure it does not cause -set_version
  12933. # flags to be left without arguments
  12934. need_version=unknown
  12935. case $host_os in
  12936. aix3*)
  12937. version_type=linux # correct to gnu/linux during the next big refactor
  12938. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12939. shlibpath_var=LIBPATH
  12940. # AIX 3 has no versioning support, so we append a major version to the name.
  12941. soname_spec='${libname}${release}${shared_ext}$major'
  12942. ;;
  12943. aix[4-9]*)
  12944. version_type=linux # correct to gnu/linux during the next big refactor
  12945. need_lib_prefix=no
  12946. need_version=no
  12947. hardcode_into_libs=yes
  12948. if test "$host_cpu" = ia64; then
  12949. # AIX 5 supports IA64
  12950. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12951. shlibpath_var=LD_LIBRARY_PATH
  12952. else
  12953. # With GCC up to 2.95.x, collect2 would create an import file
  12954. # for dependence libraries. The import file would start with
  12955. # the line `#! .'. This would cause the generated library to
  12956. # depend on `.', always an invalid library. This was fixed in
  12957. # development snapshots of GCC prior to 3.0.
  12958. case $host_os in
  12959. aix4 | aix4.[01] | aix4.[01].*)
  12960. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12961. echo ' yes '
  12962. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12963. :
  12964. else
  12965. can_build_shared=no
  12966. fi
  12967. ;;
  12968. esac
  12969. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12970. # soname into executable. Probably we can add versioning support to
  12971. # collect2, so additional links can be useful in future.
  12972. if test "$aix_use_runtimelinking" = yes; then
  12973. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12974. # instead of lib<name>.a to let people know that these are not
  12975. # typical AIX shared libraries.
  12976. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12977. else
  12978. # We preserve .a as extension for shared libraries through AIX4.2
  12979. # and later when we are not doing run time linking.
  12980. library_names_spec='${libname}${release}.a $libname.a'
  12981. soname_spec='${libname}${release}${shared_ext}$major'
  12982. fi
  12983. shlibpath_var=LIBPATH
  12984. fi
  12985. ;;
  12986. amigaos*)
  12987. case $host_cpu in
  12988. powerpc)
  12989. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12990. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12991. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12992. ;;
  12993. m68k)
  12994. library_names_spec='$libname.ixlibrary $libname.a'
  12995. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12996. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12997. ;;
  12998. esac
  12999. ;;
  13000. beos*)
  13001. library_names_spec='${libname}${shared_ext}'
  13002. dynamic_linker="$host_os ld.so"
  13003. shlibpath_var=LIBRARY_PATH
  13004. ;;
  13005. bsdi[45]*)
  13006. version_type=linux # correct to gnu/linux during the next big refactor
  13007. need_version=no
  13008. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13009. soname_spec='${libname}${release}${shared_ext}$major'
  13010. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13011. shlibpath_var=LD_LIBRARY_PATH
  13012. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13013. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13014. # the default ld.so.conf also contains /usr/contrib/lib and
  13015. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13016. # libtool to hard-code these into programs
  13017. ;;
  13018. cygwin* | mingw* | pw32* | cegcc*)
  13019. version_type=windows
  13020. shrext_cmds=".dll"
  13021. need_version=no
  13022. need_lib_prefix=no
  13023. case $GCC,$cc_basename in
  13024. yes,*)
  13025. # gcc
  13026. library_names_spec='$libname.dll.a'
  13027. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13028. postinstall_cmds='base_file=`basename \${file}`~
  13029. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13030. dldir=$destdir/`dirname \$dlpath`~
  13031. test -d \$dldir || mkdir -p \$dldir~
  13032. $install_prog $dir/$dlname \$dldir/$dlname~
  13033. chmod a+x \$dldir/$dlname~
  13034. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13035. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13036. fi'
  13037. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13038. dlpath=$dir/\$dldll~
  13039. $RM \$dlpath'
  13040. shlibpath_overrides_runpath=yes
  13041. case $host_os in
  13042. cygwin*)
  13043. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13044. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13045. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  13046. ;;
  13047. mingw* | cegcc*)
  13048. # MinGW DLLs use traditional 'lib' prefix
  13049. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13050. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  13051. ;;
  13052. pw32*)
  13053. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13054. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13055. ;;
  13056. esac
  13057. dynamic_linker='Win32 ld.exe'
  13058. ;;
  13059. *,cl*)
  13060. # Native MSVC
  13061. libname_spec='$name'
  13062. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13063. library_names_spec='${libname}.dll.lib'
  13064. case $build_os in
  13065. mingw*)
  13066. sys_lib_search_path_spec=
  13067. lt_save_ifs=$IFS
  13068. IFS=';'
  13069. for lt_path in $LIB
  13070. do
  13071. IFS=$lt_save_ifs
  13072. # Let DOS variable expansion print the short 8.3 style file name.
  13073. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13074. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13075. done
  13076. IFS=$lt_save_ifs
  13077. # Convert to MSYS style.
  13078. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13079. ;;
  13080. cygwin*)
  13081. # Convert to unix form, then to dos form, then back to unix form
  13082. # but this time dos style (no spaces!) so that the unix form looks
  13083. # like /cygdrive/c/PROGRA~1:/cygdr...
  13084. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13085. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13086. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13087. ;;
  13088. *)
  13089. sys_lib_search_path_spec="$LIB"
  13090. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13091. # It is most probably a Windows format PATH.
  13092. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13093. else
  13094. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13095. fi
  13096. # FIXME: find the short name or the path components, as spaces are
  13097. # common. (e.g. "Program Files" -> "PROGRA~1")
  13098. ;;
  13099. esac
  13100. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13101. postinstall_cmds='base_file=`basename \${file}`~
  13102. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13103. dldir=$destdir/`dirname \$dlpath`~
  13104. test -d \$dldir || mkdir -p \$dldir~
  13105. $install_prog $dir/$dlname \$dldir/$dlname'
  13106. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13107. dlpath=$dir/\$dldll~
  13108. $RM \$dlpath'
  13109. shlibpath_overrides_runpath=yes
  13110. dynamic_linker='Win32 link.exe'
  13111. ;;
  13112. *)
  13113. # Assume MSVC wrapper
  13114. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13115. dynamic_linker='Win32 ld.exe'
  13116. ;;
  13117. esac
  13118. # FIXME: first we should search . and the directory the executable is in
  13119. shlibpath_var=PATH
  13120. ;;
  13121. darwin* | rhapsody*)
  13122. dynamic_linker="$host_os dyld"
  13123. version_type=darwin
  13124. need_lib_prefix=no
  13125. need_version=no
  13126. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13127. soname_spec='${libname}${release}${major}$shared_ext'
  13128. shlibpath_overrides_runpath=yes
  13129. shlibpath_var=DYLD_LIBRARY_PATH
  13130. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13131. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13132. ;;
  13133. dgux*)
  13134. version_type=linux # correct to gnu/linux during the next big refactor
  13135. need_lib_prefix=no
  13136. need_version=no
  13137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13138. soname_spec='${libname}${release}${shared_ext}$major'
  13139. shlibpath_var=LD_LIBRARY_PATH
  13140. ;;
  13141. freebsd* | dragonfly*)
  13142. # DragonFly does not have aout. When/if they implement a new
  13143. # versioning mechanism, adjust this.
  13144. if test -x /usr/bin/objformat; then
  13145. objformat=`/usr/bin/objformat`
  13146. else
  13147. case $host_os in
  13148. freebsd[23].*) objformat=aout ;;
  13149. *) objformat=elf ;;
  13150. esac
  13151. fi
  13152. version_type=freebsd-$objformat
  13153. case $version_type in
  13154. freebsd-elf*)
  13155. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13156. need_version=no
  13157. need_lib_prefix=no
  13158. ;;
  13159. freebsd-*)
  13160. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13161. need_version=yes
  13162. ;;
  13163. esac
  13164. shlibpath_var=LD_LIBRARY_PATH
  13165. case $host_os in
  13166. freebsd2.*)
  13167. shlibpath_overrides_runpath=yes
  13168. ;;
  13169. freebsd3.[01]* | freebsdelf3.[01]*)
  13170. shlibpath_overrides_runpath=yes
  13171. hardcode_into_libs=yes
  13172. ;;
  13173. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13174. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13175. shlibpath_overrides_runpath=no
  13176. hardcode_into_libs=yes
  13177. ;;
  13178. *) # from 4.6 on, and DragonFly
  13179. shlibpath_overrides_runpath=yes
  13180. hardcode_into_libs=yes
  13181. ;;
  13182. esac
  13183. ;;
  13184. gnu*)
  13185. version_type=linux # correct to gnu/linux during the next big refactor
  13186. need_lib_prefix=no
  13187. need_version=no
  13188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13189. soname_spec='${libname}${release}${shared_ext}$major'
  13190. shlibpath_var=LD_LIBRARY_PATH
  13191. shlibpath_overrides_runpath=no
  13192. hardcode_into_libs=yes
  13193. ;;
  13194. haiku*)
  13195. version_type=linux # correct to gnu/linux during the next big refactor
  13196. need_lib_prefix=no
  13197. need_version=no
  13198. dynamic_linker="$host_os runtime_loader"
  13199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13200. soname_spec='${libname}${release}${shared_ext}$major'
  13201. shlibpath_var=LIBRARY_PATH
  13202. shlibpath_overrides_runpath=yes
  13203. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13204. hardcode_into_libs=yes
  13205. ;;
  13206. hpux9* | hpux10* | hpux11*)
  13207. # Give a soname corresponding to the major version so that dld.sl refuses to
  13208. # link against other versions.
  13209. version_type=sunos
  13210. need_lib_prefix=no
  13211. need_version=no
  13212. case $host_cpu in
  13213. ia64*)
  13214. shrext_cmds='.so'
  13215. hardcode_into_libs=yes
  13216. dynamic_linker="$host_os dld.so"
  13217. shlibpath_var=LD_LIBRARY_PATH
  13218. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13220. soname_spec='${libname}${release}${shared_ext}$major'
  13221. if test "X$HPUX_IA64_MODE" = X32; then
  13222. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13223. else
  13224. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13225. fi
  13226. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13227. ;;
  13228. hppa*64*)
  13229. shrext_cmds='.sl'
  13230. hardcode_into_libs=yes
  13231. dynamic_linker="$host_os dld.sl"
  13232. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13233. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13234. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13235. soname_spec='${libname}${release}${shared_ext}$major'
  13236. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13237. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13238. ;;
  13239. *)
  13240. shrext_cmds='.sl'
  13241. dynamic_linker="$host_os dld.sl"
  13242. shlibpath_var=SHLIB_PATH
  13243. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13244. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13245. soname_spec='${libname}${release}${shared_ext}$major'
  13246. ;;
  13247. esac
  13248. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13249. postinstall_cmds='chmod 555 $lib'
  13250. # or fails outright, so override atomically:
  13251. install_override_mode=555
  13252. ;;
  13253. interix[3-9]*)
  13254. version_type=linux # correct to gnu/linux during the next big refactor
  13255. need_lib_prefix=no
  13256. need_version=no
  13257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13258. soname_spec='${libname}${release}${shared_ext}$major'
  13259. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13260. shlibpath_var=LD_LIBRARY_PATH
  13261. shlibpath_overrides_runpath=no
  13262. hardcode_into_libs=yes
  13263. ;;
  13264. irix5* | irix6* | nonstopux*)
  13265. case $host_os in
  13266. nonstopux*) version_type=nonstopux ;;
  13267. *)
  13268. if test "$lt_cv_prog_gnu_ld" = yes; then
  13269. version_type=linux # correct to gnu/linux during the next big refactor
  13270. else
  13271. version_type=irix
  13272. fi ;;
  13273. esac
  13274. need_lib_prefix=no
  13275. need_version=no
  13276. soname_spec='${libname}${release}${shared_ext}$major'
  13277. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13278. case $host_os in
  13279. irix5* | nonstopux*)
  13280. libsuff= shlibsuff=
  13281. ;;
  13282. *)
  13283. case $LD in # libtool.m4 will add one of these switches to LD
  13284. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13285. libsuff= shlibsuff= libmagic=32-bit;;
  13286. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13287. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13288. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13289. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13290. *) libsuff= shlibsuff= libmagic=never-match;;
  13291. esac
  13292. ;;
  13293. esac
  13294. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13295. shlibpath_overrides_runpath=no
  13296. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13297. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13298. hardcode_into_libs=yes
  13299. ;;
  13300. # No shared lib support for Linux oldld, aout, or coff.
  13301. linux*oldld* | linux*aout* | linux*coff*)
  13302. dynamic_linker=no
  13303. ;;
  13304. # This must be glibc/ELF.
  13305. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13306. version_type=linux # correct to gnu/linux during the next big refactor
  13307. need_lib_prefix=no
  13308. need_version=no
  13309. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13310. soname_spec='${libname}${release}${shared_ext}$major'
  13311. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13312. shlibpath_var=LD_LIBRARY_PATH
  13313. shlibpath_overrides_runpath=no
  13314. # Some binutils ld are patched to set DT_RUNPATH
  13315. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13316. $as_echo_n "(cached) " >&6
  13317. else
  13318. lt_cv_shlibpath_overrides_runpath=no
  13319. save_LDFLAGS=$LDFLAGS
  13320. save_libdir=$libdir
  13321. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13322. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13324. /* end confdefs.h. */
  13325. int
  13326. main ()
  13327. {
  13328. ;
  13329. return 0;
  13330. }
  13331. _ACEOF
  13332. if ac_fn_cxx_try_link "$LINENO"; then :
  13333. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13334. lt_cv_shlibpath_overrides_runpath=yes
  13335. fi
  13336. fi
  13337. rm -f core conftest.err conftest.$ac_objext \
  13338. conftest$ac_exeext conftest.$ac_ext
  13339. LDFLAGS=$save_LDFLAGS
  13340. libdir=$save_libdir
  13341. fi
  13342. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13343. # This implies no fast_install, which is unacceptable.
  13344. # Some rework will be needed to allow for fast_install
  13345. # before this can be enabled.
  13346. hardcode_into_libs=yes
  13347. # Append ld.so.conf contents to the search path
  13348. if test -f /etc/ld.so.conf; then
  13349. 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' ' '`
  13350. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13351. fi
  13352. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13353. # powerpc, because MkLinux only supported shared libraries with the
  13354. # GNU dynamic linker. Since this was broken with cross compilers,
  13355. # most powerpc-linux boxes support dynamic linking these days and
  13356. # people can always --disable-shared, the test was removed, and we
  13357. # assume the GNU/Linux dynamic linker is in use.
  13358. dynamic_linker='GNU/Linux ld.so'
  13359. ;;
  13360. netbsd*)
  13361. version_type=sunos
  13362. need_lib_prefix=no
  13363. need_version=no
  13364. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13366. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13367. dynamic_linker='NetBSD (a.out) ld.so'
  13368. else
  13369. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13370. soname_spec='${libname}${release}${shared_ext}$major'
  13371. dynamic_linker='NetBSD ld.elf_so'
  13372. fi
  13373. shlibpath_var=LD_LIBRARY_PATH
  13374. shlibpath_overrides_runpath=yes
  13375. hardcode_into_libs=yes
  13376. ;;
  13377. newsos6)
  13378. version_type=linux # correct to gnu/linux during the next big refactor
  13379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13380. shlibpath_var=LD_LIBRARY_PATH
  13381. shlibpath_overrides_runpath=yes
  13382. ;;
  13383. *nto* | *qnx*)
  13384. version_type=qnx
  13385. need_lib_prefix=no
  13386. need_version=no
  13387. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13388. soname_spec='${libname}${release}${shared_ext}$major'
  13389. shlibpath_var=LD_LIBRARY_PATH
  13390. shlibpath_overrides_runpath=no
  13391. hardcode_into_libs=yes
  13392. dynamic_linker='ldqnx.so'
  13393. ;;
  13394. openbsd*)
  13395. version_type=sunos
  13396. sys_lib_dlsearch_path_spec="/usr/lib"
  13397. need_lib_prefix=no
  13398. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13399. case $host_os in
  13400. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13401. *) need_version=no ;;
  13402. esac
  13403. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13404. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13405. shlibpath_var=LD_LIBRARY_PATH
  13406. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13407. case $host_os in
  13408. openbsd2.[89] | openbsd2.[89].*)
  13409. shlibpath_overrides_runpath=no
  13410. ;;
  13411. *)
  13412. shlibpath_overrides_runpath=yes
  13413. ;;
  13414. esac
  13415. else
  13416. shlibpath_overrides_runpath=yes
  13417. fi
  13418. ;;
  13419. os2*)
  13420. libname_spec='$name'
  13421. shrext_cmds=".dll"
  13422. need_lib_prefix=no
  13423. library_names_spec='$libname${shared_ext} $libname.a'
  13424. dynamic_linker='OS/2 ld.exe'
  13425. shlibpath_var=LIBPATH
  13426. ;;
  13427. osf3* | osf4* | osf5*)
  13428. version_type=osf
  13429. need_lib_prefix=no
  13430. need_version=no
  13431. soname_spec='${libname}${release}${shared_ext}$major'
  13432. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13433. shlibpath_var=LD_LIBRARY_PATH
  13434. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13435. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13436. ;;
  13437. rdos*)
  13438. dynamic_linker=no
  13439. ;;
  13440. solaris*)
  13441. version_type=linux # correct to gnu/linux during the next big refactor
  13442. need_lib_prefix=no
  13443. need_version=no
  13444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13445. soname_spec='${libname}${release}${shared_ext}$major'
  13446. shlibpath_var=LD_LIBRARY_PATH
  13447. shlibpath_overrides_runpath=yes
  13448. hardcode_into_libs=yes
  13449. # ldd complains unless libraries are executable
  13450. postinstall_cmds='chmod +x $lib'
  13451. ;;
  13452. sunos4*)
  13453. version_type=sunos
  13454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13455. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13456. shlibpath_var=LD_LIBRARY_PATH
  13457. shlibpath_overrides_runpath=yes
  13458. if test "$with_gnu_ld" = yes; then
  13459. need_lib_prefix=no
  13460. fi
  13461. need_version=yes
  13462. ;;
  13463. sysv4 | sysv4.3*)
  13464. version_type=linux # correct to gnu/linux during the next big refactor
  13465. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13466. soname_spec='${libname}${release}${shared_ext}$major'
  13467. shlibpath_var=LD_LIBRARY_PATH
  13468. case $host_vendor in
  13469. sni)
  13470. shlibpath_overrides_runpath=no
  13471. need_lib_prefix=no
  13472. runpath_var=LD_RUN_PATH
  13473. ;;
  13474. siemens)
  13475. need_lib_prefix=no
  13476. ;;
  13477. motorola)
  13478. need_lib_prefix=no
  13479. need_version=no
  13480. shlibpath_overrides_runpath=no
  13481. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13482. ;;
  13483. esac
  13484. ;;
  13485. sysv4*MP*)
  13486. if test -d /usr/nec ;then
  13487. version_type=linux # correct to gnu/linux during the next big refactor
  13488. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13489. soname_spec='$libname${shared_ext}.$major'
  13490. shlibpath_var=LD_LIBRARY_PATH
  13491. fi
  13492. ;;
  13493. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13494. version_type=freebsd-elf
  13495. need_lib_prefix=no
  13496. need_version=no
  13497. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13498. soname_spec='${libname}${release}${shared_ext}$major'
  13499. shlibpath_var=LD_LIBRARY_PATH
  13500. shlibpath_overrides_runpath=yes
  13501. hardcode_into_libs=yes
  13502. if test "$with_gnu_ld" = yes; then
  13503. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13504. else
  13505. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13506. case $host_os in
  13507. sco3.2v5*)
  13508. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13509. ;;
  13510. esac
  13511. fi
  13512. sys_lib_dlsearch_path_spec='/usr/lib'
  13513. ;;
  13514. tpf*)
  13515. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13516. version_type=linux # correct to gnu/linux during the next big refactor
  13517. need_lib_prefix=no
  13518. need_version=no
  13519. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13520. shlibpath_var=LD_LIBRARY_PATH
  13521. shlibpath_overrides_runpath=no
  13522. hardcode_into_libs=yes
  13523. ;;
  13524. uts4*)
  13525. version_type=linux # correct to gnu/linux during the next big refactor
  13526. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13527. soname_spec='${libname}${release}${shared_ext}$major'
  13528. shlibpath_var=LD_LIBRARY_PATH
  13529. ;;
  13530. *)
  13531. dynamic_linker=no
  13532. ;;
  13533. esac
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13535. $as_echo "$dynamic_linker" >&6; }
  13536. test "$dynamic_linker" = no && can_build_shared=no
  13537. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13538. if test "$GCC" = yes; then
  13539. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13540. fi
  13541. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13542. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13543. fi
  13544. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13545. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13546. fi
  13547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13548. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13549. hardcode_action_CXX=
  13550. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13551. test -n "$runpath_var_CXX" ||
  13552. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13553. # We can hardcode non-existent directories.
  13554. if test "$hardcode_direct_CXX" != no &&
  13555. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13556. # have to relink, otherwise we might link with an installed library
  13557. # when we should be linking with a yet-to-be-installed one
  13558. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13559. test "$hardcode_minus_L_CXX" != no; then
  13560. # Linking always hardcodes the temporary library directory.
  13561. hardcode_action_CXX=relink
  13562. else
  13563. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13564. hardcode_action_CXX=immediate
  13565. fi
  13566. else
  13567. # We cannot hardcode anything, or else we can only hardcode existing
  13568. # directories.
  13569. hardcode_action_CXX=unsupported
  13570. fi
  13571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13572. $as_echo "$hardcode_action_CXX" >&6; }
  13573. if test "$hardcode_action_CXX" = relink ||
  13574. test "$inherit_rpath_CXX" = yes; then
  13575. # Fast installation is not supported
  13576. enable_fast_install=no
  13577. elif test "$shlibpath_overrides_runpath" = yes ||
  13578. test "$enable_shared" = no; then
  13579. # Fast installation is not necessary
  13580. enable_fast_install=needless
  13581. fi
  13582. fi # test -n "$compiler"
  13583. CC=$lt_save_CC
  13584. CFLAGS=$lt_save_CFLAGS
  13585. LDCXX=$LD
  13586. LD=$lt_save_LD
  13587. GCC=$lt_save_GCC
  13588. with_gnu_ld=$lt_save_with_gnu_ld
  13589. lt_cv_path_LDCXX=$lt_cv_path_LD
  13590. lt_cv_path_LD=$lt_save_path_LD
  13591. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13592. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13593. fi # test "$_lt_caught_CXX_error" != yes
  13594. ac_ext=c
  13595. ac_cpp='$CPP $CPPFLAGS'
  13596. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13597. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13598. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13599. # Find a good install program. We prefer a C program (faster),
  13600. # so one script is as good as another. But avoid the broken or
  13601. # incompatible versions:
  13602. # SysV /etc/install, /usr/sbin/install
  13603. # SunOS /usr/etc/install
  13604. # IRIX /sbin/install
  13605. # AIX /bin/install
  13606. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13607. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13608. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13609. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13610. # OS/2's system install, which has a completely different semantic
  13611. # ./install, which can be erroneously created by make from ./install.sh.
  13612. # Reject install programs that cannot install multiple files.
  13613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13614. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13615. if test -z "$INSTALL"; then
  13616. if ${ac_cv_path_install+:} false; then :
  13617. $as_echo_n "(cached) " >&6
  13618. else
  13619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13620. for as_dir in $PATH
  13621. do
  13622. IFS=$as_save_IFS
  13623. test -z "$as_dir" && as_dir=.
  13624. # Account for people who put trailing slashes in PATH elements.
  13625. case $as_dir/ in #((
  13626. ./ | .// | /[cC]/* | \
  13627. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13628. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13629. /usr/ucb/* ) ;;
  13630. *)
  13631. # OSF1 and SCO ODT 3.0 have their own names for install.
  13632. # Don't use installbsd from OSF since it installs stuff as root
  13633. # by default.
  13634. for ac_prog in ginstall scoinst install; do
  13635. for ac_exec_ext in '' $ac_executable_extensions; do
  13636. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13637. if test $ac_prog = install &&
  13638. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13639. # AIX install. It has an incompatible calling convention.
  13640. :
  13641. elif test $ac_prog = install &&
  13642. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13643. # program-specific install script used by HP pwplus--don't use.
  13644. :
  13645. else
  13646. rm -rf conftest.one conftest.two conftest.dir
  13647. echo one > conftest.one
  13648. echo two > conftest.two
  13649. mkdir conftest.dir
  13650. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13651. test -s conftest.one && test -s conftest.two &&
  13652. test -s conftest.dir/conftest.one &&
  13653. test -s conftest.dir/conftest.two
  13654. then
  13655. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13656. break 3
  13657. fi
  13658. fi
  13659. fi
  13660. done
  13661. done
  13662. ;;
  13663. esac
  13664. done
  13665. IFS=$as_save_IFS
  13666. rm -rf conftest.one conftest.two conftest.dir
  13667. fi
  13668. if test "${ac_cv_path_install+set}" = set; then
  13669. INSTALL=$ac_cv_path_install
  13670. else
  13671. # As a last resort, use the slow shell script. Don't cache a
  13672. # value for INSTALL within a source directory, because that will
  13673. # break other packages using the cache if that directory is
  13674. # removed, or if the value is a relative name.
  13675. INSTALL=$ac_install_sh
  13676. fi
  13677. fi
  13678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13679. $as_echo "$INSTALL" >&6; }
  13680. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13681. # It thinks the first close brace ends the variable substitution.
  13682. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13683. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13684. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13686. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13687. set x ${MAKE-make}
  13688. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13689. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13690. $as_echo_n "(cached) " >&6
  13691. else
  13692. cat >conftest.make <<\_ACEOF
  13693. SHELL = /bin/sh
  13694. all:
  13695. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13696. _ACEOF
  13697. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13698. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13699. *@@@%%%=?*=@@@%%%*)
  13700. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13701. *)
  13702. eval ac_cv_prog_make_${ac_make}_set=no;;
  13703. esac
  13704. rm -f conftest.make
  13705. fi
  13706. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13708. $as_echo "yes" >&6; }
  13709. SET_MAKE=
  13710. else
  13711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13712. $as_echo "no" >&6; }
  13713. SET_MAKE="MAKE=${MAKE-make}"
  13714. fi
  13715. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13716. if test -n "$ac_tool_prefix"; then
  13717. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13718. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13720. $as_echo_n "checking for $ac_word... " >&6; }
  13721. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13722. $as_echo_n "(cached) " >&6
  13723. else
  13724. case $PKG_CONFIG in
  13725. [\\/]* | ?:[\\/]*)
  13726. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13727. ;;
  13728. *)
  13729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13730. for as_dir in $PATH
  13731. do
  13732. IFS=$as_save_IFS
  13733. test -z "$as_dir" && as_dir=.
  13734. for ac_exec_ext in '' $ac_executable_extensions; do
  13735. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13736. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13738. break 2
  13739. fi
  13740. done
  13741. done
  13742. IFS=$as_save_IFS
  13743. ;;
  13744. esac
  13745. fi
  13746. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13747. if test -n "$PKG_CONFIG"; then
  13748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13749. $as_echo "$PKG_CONFIG" >&6; }
  13750. else
  13751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13752. $as_echo "no" >&6; }
  13753. fi
  13754. fi
  13755. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13756. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13757. # Extract the first word of "pkg-config", so it can be a program name with args.
  13758. set dummy pkg-config; ac_word=$2
  13759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13760. $as_echo_n "checking for $ac_word... " >&6; }
  13761. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13762. $as_echo_n "(cached) " >&6
  13763. else
  13764. case $ac_pt_PKG_CONFIG in
  13765. [\\/]* | ?:[\\/]*)
  13766. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13767. ;;
  13768. *)
  13769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13770. for as_dir in $PATH
  13771. do
  13772. IFS=$as_save_IFS
  13773. test -z "$as_dir" && as_dir=.
  13774. for ac_exec_ext in '' $ac_executable_extensions; do
  13775. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13776. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13778. break 2
  13779. fi
  13780. done
  13781. done
  13782. IFS=$as_save_IFS
  13783. ;;
  13784. esac
  13785. fi
  13786. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13787. if test -n "$ac_pt_PKG_CONFIG"; then
  13788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13789. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13790. else
  13791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13792. $as_echo "no" >&6; }
  13793. fi
  13794. if test "x$ac_pt_PKG_CONFIG" = x; then
  13795. PKG_CONFIG=""
  13796. else
  13797. case $cross_compiling:$ac_tool_warned in
  13798. yes:)
  13799. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13800. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13801. ac_tool_warned=yes ;;
  13802. esac
  13803. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13804. fi
  13805. else
  13806. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13807. fi
  13808. fi
  13809. if test -n "$PKG_CONFIG"; then
  13810. _pkg_min_version=0.9.0
  13811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13812. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13813. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13815. $as_echo "yes" >&6; }
  13816. else
  13817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13818. $as_echo "no" >&6; }
  13819. PKG_CONFIG=""
  13820. fi
  13821. fi
  13822. case "$host" in
  13823. *-*-mingw32*)
  13824. # Except on msys, where make can't handle full pathnames (bug 1972)
  13825. ;;
  13826. *)
  13827. srcdir=`cd $srcdir && pwd`
  13828. ;;
  13829. esac
  13830. INCLUDE="-I$srcdir/include"
  13831. case "$host" in
  13832. *-*-nto-qnx*)
  13833. ;;
  13834. *)
  13835. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  13836. ;;
  13837. esac
  13838. if test x$srcdir != x.; then
  13839. INCLUDE="-Iinclude $INCLUDE"
  13840. elif test -d .hg; then
  13841. as_fn_error $? "
  13842. *** When building from Mercurial you should configure and build in a
  13843. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13844. " "$LINENO" 5
  13845. fi
  13846. BASE_CFLAGS=""
  13847. BASE_LDFLAGS=""
  13848. case "$host" in
  13849. *-*-cygwin*)
  13850. # We build SDL on cygwin without the UNIX emulation layer
  13851. save_CFLAGS="$CFLAGS"
  13852. have_no_cygwin=no
  13853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13854. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13855. CFLAGS="$save_CFLAGS -mno-cygwin"
  13856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13857. /* end confdefs.h. */
  13858. int
  13859. main ()
  13860. {
  13861. ;
  13862. return 0;
  13863. }
  13864. _ACEOF
  13865. if ac_fn_c_try_compile "$LINENO"; then :
  13866. have_no_cygwin=yes
  13867. fi
  13868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13870. $as_echo "$have_no_cygwin" >&6; }
  13871. CFLAGS="$save_CFLAGS"
  13872. if test x$have_no_cygwin = xyes; then
  13873. BASE_CFLAGS="-mno-cygwin"
  13874. BASE_LDFLAGS="-mno-cygwin"
  13875. fi
  13876. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13877. ;;
  13878. esac
  13879. # Uncomment the following line if you want to force SDL and applications
  13880. # built with it to be compiled for a particular architecture.
  13881. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13882. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13883. # The default optimization for SDL is -O3 (Bug #31)
  13884. if test "x$orig_CFLAGS" = x; then
  13885. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13886. fi
  13887. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13888. BUILD_LDFLAGS="$LDFLAGS"
  13889. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13890. ## These are common directories to find software packages
  13891. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13892. # if test -d $path/include; then
  13893. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13894. # fi
  13895. # if test -d $path/lib; then
  13896. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13897. # fi
  13898. #done
  13899. SDL_CFLAGS="$BASE_CFLAGS"
  13900. SDL_LIBS="-lSDL2"
  13901. if test "x$BASE_LDFLAGS" != x; then
  13902. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13903. fi
  13904. if test "x$EXTRA_CFLAGS" != x; then
  13905. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13906. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13907. fi
  13908. if test "x$EXTRA_LDFLAGS" != x; then
  13909. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13910. fi
  13911. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13912. find_lib()
  13913. {
  13914. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13915. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13916. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13917. if test "$cross_compiling" = yes; then
  13918. host_lib_path=""
  13919. else
  13920. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13921. fi
  13922. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13923. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13924. if test x$lib != x; then
  13925. echo $lib
  13926. return
  13927. fi
  13928. done
  13929. # Try again, this time allowing more than one version digit after the .so
  13930. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13931. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13932. if test x$lib != x; then
  13933. echo $lib
  13934. return
  13935. fi
  13936. done
  13937. }
  13938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13939. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13940. if ${ac_cv_c_const+:} false; then :
  13941. $as_echo_n "(cached) " >&6
  13942. else
  13943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13944. /* end confdefs.h. */
  13945. int
  13946. main ()
  13947. {
  13948. #ifndef __cplusplus
  13949. /* Ultrix mips cc rejects this sort of thing. */
  13950. typedef int charset[2];
  13951. const charset cs = { 0, 0 };
  13952. /* SunOS 4.1.1 cc rejects this. */
  13953. char const *const *pcpcc;
  13954. char **ppc;
  13955. /* NEC SVR4.0.2 mips cc rejects this. */
  13956. struct point {int x, y;};
  13957. static struct point const zero = {0,0};
  13958. /* AIX XL C 1.02.0.0 rejects this.
  13959. It does not let you subtract one const X* pointer from another in
  13960. an arm of an if-expression whose if-part is not a constant
  13961. expression */
  13962. const char *g = "string";
  13963. pcpcc = &g + (g ? g-g : 0);
  13964. /* HPUX 7.0 cc rejects these. */
  13965. ++pcpcc;
  13966. ppc = (char**) pcpcc;
  13967. pcpcc = (char const *const *) ppc;
  13968. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13969. char tx;
  13970. char *t = &tx;
  13971. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13972. *t++ = 0;
  13973. if (s) return 0;
  13974. }
  13975. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13976. int x[] = {25, 17};
  13977. const int *foo = &x[0];
  13978. ++foo;
  13979. }
  13980. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13981. typedef const int *iptr;
  13982. iptr p = 0;
  13983. ++p;
  13984. }
  13985. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13986. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13987. struct s { int j; const int *ap[3]; } bx;
  13988. struct s *b = &bx; b->j = 5;
  13989. }
  13990. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13991. const int foo = 10;
  13992. if (!foo) return 0;
  13993. }
  13994. return !cs[0] && !zero.x;
  13995. #endif
  13996. ;
  13997. return 0;
  13998. }
  13999. _ACEOF
  14000. if ac_fn_c_try_compile "$LINENO"; then :
  14001. ac_cv_c_const=yes
  14002. else
  14003. ac_cv_c_const=no
  14004. fi
  14005. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14006. fi
  14007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14008. $as_echo "$ac_cv_c_const" >&6; }
  14009. if test $ac_cv_c_const = no; then
  14010. $as_echo "#define const /**/" >>confdefs.h
  14011. fi
  14012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14013. $as_echo_n "checking for inline... " >&6; }
  14014. if ${ac_cv_c_inline+:} false; then :
  14015. $as_echo_n "(cached) " >&6
  14016. else
  14017. ac_cv_c_inline=no
  14018. for ac_kw in inline __inline__ __inline; do
  14019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14020. /* end confdefs.h. */
  14021. #ifndef __cplusplus
  14022. typedef int foo_t;
  14023. static $ac_kw foo_t static_foo () {return 0; }
  14024. $ac_kw foo_t foo () {return 0; }
  14025. #endif
  14026. _ACEOF
  14027. if ac_fn_c_try_compile "$LINENO"; then :
  14028. ac_cv_c_inline=$ac_kw
  14029. fi
  14030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14031. test "$ac_cv_c_inline" != no && break
  14032. done
  14033. fi
  14034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14035. $as_echo "$ac_cv_c_inline" >&6; }
  14036. case $ac_cv_c_inline in
  14037. inline | yes) ;;
  14038. *)
  14039. case $ac_cv_c_inline in
  14040. no) ac_val=;;
  14041. *) ac_val=$ac_cv_c_inline;;
  14042. esac
  14043. cat >>confdefs.h <<_ACEOF
  14044. #ifndef __cplusplus
  14045. #define inline $ac_val
  14046. #endif
  14047. _ACEOF
  14048. ;;
  14049. esac
  14050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14051. $as_echo_n "checking for working volatile... " >&6; }
  14052. if ${ac_cv_c_volatile+:} false; then :
  14053. $as_echo_n "(cached) " >&6
  14054. else
  14055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14056. /* end confdefs.h. */
  14057. int
  14058. main ()
  14059. {
  14060. volatile int x;
  14061. int * volatile y = (int *) 0;
  14062. return !x && !y;
  14063. ;
  14064. return 0;
  14065. }
  14066. _ACEOF
  14067. if ac_fn_c_try_compile "$LINENO"; then :
  14068. ac_cv_c_volatile=yes
  14069. else
  14070. ac_cv_c_volatile=no
  14071. fi
  14072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14073. fi
  14074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14075. $as_echo "$ac_cv_c_volatile" >&6; }
  14076. if test $ac_cv_c_volatile = no; then
  14077. $as_echo "#define volatile /**/" >>confdefs.h
  14078. fi
  14079. # Check whether --enable-assertions was given.
  14080. if test "${enable_assertions+set}" = set; then :
  14081. enableval=$enable_assertions;
  14082. else
  14083. enable_assertions=auto
  14084. fi
  14085. case "$enable_assertions" in
  14086. auto) # Use optimization settings to determine assertion level
  14087. ;;
  14088. disabled)
  14089. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14090. ;;
  14091. release)
  14092. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14093. ;;
  14094. enabled)
  14095. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14096. ;;
  14097. paranoid)
  14098. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14099. ;;
  14100. *)
  14101. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14102. ;;
  14103. esac
  14104. # Check whether --enable-dependency-tracking was given.
  14105. if test "${enable_dependency_tracking+set}" = set; then :
  14106. enableval=$enable_dependency_tracking;
  14107. else
  14108. enable_dependency_tracking=yes
  14109. fi
  14110. if test x$enable_dependency_tracking = xyes; then
  14111. have_gcc_mmd_mt=no
  14112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14113. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14115. /* end confdefs.h. */
  14116. #if !defined(__GNUC__) || __GNUC__ < 3
  14117. #error Dependency tracking requires GCC 3.0 or newer
  14118. #endif
  14119. int
  14120. main ()
  14121. {
  14122. ;
  14123. return 0;
  14124. }
  14125. _ACEOF
  14126. if ac_fn_c_try_compile "$LINENO"; then :
  14127. have_gcc_mmd_mt=yes
  14128. fi
  14129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14131. $as_echo "$have_gcc_mmd_mt" >&6; }
  14132. if test x$have_gcc_mmd_mt = xyes; then
  14133. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14134. fi
  14135. fi
  14136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14137. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14138. have_no_undefined=no
  14139. case "$host" in
  14140. *-*-openbsd*)
  14141. ;;
  14142. *)
  14143. save_LDFLAGS="$LDFLAGS"
  14144. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14146. /* end confdefs.h. */
  14147. int
  14148. main ()
  14149. {
  14150. ;
  14151. return 0;
  14152. }
  14153. _ACEOF
  14154. if ac_fn_c_try_link "$LINENO"; then :
  14155. have_no_undefined=yes
  14156. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  14157. fi
  14158. rm -f core conftest.err conftest.$ac_objext \
  14159. conftest$ac_exeext conftest.$ac_ext
  14160. LDFLAGS="$save_LDFLAGS"
  14161. ;;
  14162. esac
  14163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14164. $as_echo "$have_no_undefined" >&6; }
  14165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14166. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14167. have_dynamicbase=no
  14168. case "$host" in
  14169. *)
  14170. save_LDFLAGS="$LDFLAGS"
  14171. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14173. /* end confdefs.h. */
  14174. int
  14175. main ()
  14176. {
  14177. ;
  14178. return 0;
  14179. }
  14180. _ACEOF
  14181. if ac_fn_c_try_link "$LINENO"; then :
  14182. have_dynamicbase=yes
  14183. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14184. fi
  14185. rm -f core conftest.err conftest.$ac_objext \
  14186. conftest$ac_exeext conftest.$ac_ext
  14187. LDFLAGS="$save_LDFLAGS"
  14188. ;;
  14189. esac
  14190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14191. $as_echo "$have_dynamicbase" >&6; }
  14192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14193. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14194. have_nxcompat=no
  14195. case "$host" in
  14196. *)
  14197. save_LDFLAGS="$LDFLAGS"
  14198. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14200. /* end confdefs.h. */
  14201. int
  14202. main ()
  14203. {
  14204. ;
  14205. return 0;
  14206. }
  14207. _ACEOF
  14208. if ac_fn_c_try_link "$LINENO"; then :
  14209. have_nxcompat=yes
  14210. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14211. fi
  14212. rm -f core conftest.err conftest.$ac_objext \
  14213. conftest$ac_exeext conftest.$ac_ext
  14214. LDFLAGS="$save_LDFLAGS"
  14215. ;;
  14216. esac
  14217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14218. $as_echo "$have_nxcompat" >&6; }
  14219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14220. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14221. have_high_entropy_va=no
  14222. case "$host" in
  14223. *)
  14224. save_LDFLAGS="$LDFLAGS"
  14225. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14227. /* end confdefs.h. */
  14228. int
  14229. main ()
  14230. {
  14231. ;
  14232. return 0;
  14233. }
  14234. _ACEOF
  14235. if ac_fn_c_try_link "$LINENO"; then :
  14236. have_high_entropy_va=yes
  14237. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14238. fi
  14239. rm -f core conftest.err conftest.$ac_objext \
  14240. conftest$ac_exeext conftest.$ac_ext
  14241. LDFLAGS="$save_LDFLAGS"
  14242. ;;
  14243. esac
  14244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14245. $as_echo "$have_high_entropy_va" >&6; }
  14246. # Check whether --enable-libc was given.
  14247. if test "${enable_libc+set}" = set; then :
  14248. enableval=$enable_libc;
  14249. else
  14250. enable_libc=yes
  14251. fi
  14252. if test x$enable_libc = xyes; then
  14253. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14255. $as_echo_n "checking for ANSI C header files... " >&6; }
  14256. if ${ac_cv_header_stdc+:} false; then :
  14257. $as_echo_n "(cached) " >&6
  14258. else
  14259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14260. /* end confdefs.h. */
  14261. #include <stdlib.h>
  14262. #include <stdarg.h>
  14263. #include <string.h>
  14264. #include <float.h>
  14265. int
  14266. main ()
  14267. {
  14268. ;
  14269. return 0;
  14270. }
  14271. _ACEOF
  14272. if ac_fn_c_try_compile "$LINENO"; then :
  14273. ac_cv_header_stdc=yes
  14274. else
  14275. ac_cv_header_stdc=no
  14276. fi
  14277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14278. if test $ac_cv_header_stdc = yes; then
  14279. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14281. /* end confdefs.h. */
  14282. #include <string.h>
  14283. _ACEOF
  14284. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14285. $EGREP "memchr" >/dev/null 2>&1; then :
  14286. else
  14287. ac_cv_header_stdc=no
  14288. fi
  14289. rm -f conftest*
  14290. fi
  14291. if test $ac_cv_header_stdc = yes; then
  14292. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14294. /* end confdefs.h. */
  14295. #include <stdlib.h>
  14296. _ACEOF
  14297. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14298. $EGREP "free" >/dev/null 2>&1; then :
  14299. else
  14300. ac_cv_header_stdc=no
  14301. fi
  14302. rm -f conftest*
  14303. fi
  14304. if test $ac_cv_header_stdc = yes; then
  14305. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14306. if test "$cross_compiling" = yes; then :
  14307. :
  14308. else
  14309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14310. /* end confdefs.h. */
  14311. #include <ctype.h>
  14312. #include <stdlib.h>
  14313. #if ((' ' & 0x0FF) == 0x020)
  14314. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14315. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14316. #else
  14317. # define ISLOWER(c) \
  14318. (('a' <= (c) && (c) <= 'i') \
  14319. || ('j' <= (c) && (c) <= 'r') \
  14320. || ('s' <= (c) && (c) <= 'z'))
  14321. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14322. #endif
  14323. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14324. int
  14325. main ()
  14326. {
  14327. int i;
  14328. for (i = 0; i < 256; i++)
  14329. if (XOR (islower (i), ISLOWER (i))
  14330. || toupper (i) != TOUPPER (i))
  14331. return 2;
  14332. return 0;
  14333. }
  14334. _ACEOF
  14335. if ac_fn_c_try_run "$LINENO"; then :
  14336. else
  14337. ac_cv_header_stdc=no
  14338. fi
  14339. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14340. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14341. fi
  14342. fi
  14343. fi
  14344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14345. $as_echo "$ac_cv_header_stdc" >&6; }
  14346. if test $ac_cv_header_stdc = yes; then
  14347. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14348. fi
  14349. 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
  14350. do :
  14351. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14352. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14353. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14354. cat >>confdefs.h <<_ACEOF
  14355. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14356. _ACEOF
  14357. fi
  14358. done
  14359. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14360. if test "x$ac_cv_type_size_t" = xyes; then :
  14361. else
  14362. cat >>confdefs.h <<_ACEOF
  14363. #define size_t unsigned int
  14364. _ACEOF
  14365. fi
  14366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14367. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14368. if ${ac_cv_define_M_PI+:} false; then :
  14369. $as_echo_n "(cached) " >&6
  14370. else
  14371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14372. /* end confdefs.h. */
  14373. #include <math.h>
  14374. #ifdef M_PI
  14375. YES_IS_DEFINED
  14376. #endif
  14377. _ACEOF
  14378. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14379. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14380. ac_cv_define_M_PI=yes
  14381. else
  14382. ac_cv_define_M_PI=no
  14383. fi
  14384. rm -f conftest*
  14385. fi
  14386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14387. $as_echo "$ac_cv_define_M_PI" >&6; }
  14388. if test "$ac_cv_define_M_PI" = "yes" ; then
  14389. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14390. fi
  14391. case "$host" in
  14392. *-*-cygwin* | *-*-mingw32*)
  14393. ;;
  14394. *)
  14395. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14396. # for constant arguments. Useless!
  14397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14398. $as_echo_n "checking for working alloca.h... " >&6; }
  14399. if ${ac_cv_working_alloca_h+:} false; then :
  14400. $as_echo_n "(cached) " >&6
  14401. else
  14402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14403. /* end confdefs.h. */
  14404. #include <alloca.h>
  14405. int
  14406. main ()
  14407. {
  14408. char *p = (char *) alloca (2 * sizeof (int));
  14409. if (p) return 0;
  14410. ;
  14411. return 0;
  14412. }
  14413. _ACEOF
  14414. if ac_fn_c_try_link "$LINENO"; then :
  14415. ac_cv_working_alloca_h=yes
  14416. else
  14417. ac_cv_working_alloca_h=no
  14418. fi
  14419. rm -f core conftest.err conftest.$ac_objext \
  14420. conftest$ac_exeext conftest.$ac_ext
  14421. fi
  14422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14423. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14424. if test $ac_cv_working_alloca_h = yes; then
  14425. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14426. fi
  14427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14428. $as_echo_n "checking for alloca... " >&6; }
  14429. if ${ac_cv_func_alloca_works+:} false; then :
  14430. $as_echo_n "(cached) " >&6
  14431. else
  14432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14433. /* end confdefs.h. */
  14434. #ifdef __GNUC__
  14435. # define alloca __builtin_alloca
  14436. #else
  14437. # ifdef _MSC_VER
  14438. # include <malloc.h>
  14439. # define alloca _alloca
  14440. # else
  14441. # ifdef HAVE_ALLOCA_H
  14442. # include <alloca.h>
  14443. # else
  14444. # ifdef _AIX
  14445. #pragma alloca
  14446. # else
  14447. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14448. void *alloca (size_t);
  14449. # endif
  14450. # endif
  14451. # endif
  14452. # endif
  14453. #endif
  14454. int
  14455. main ()
  14456. {
  14457. char *p = (char *) alloca (1);
  14458. if (p) return 0;
  14459. ;
  14460. return 0;
  14461. }
  14462. _ACEOF
  14463. if ac_fn_c_try_link "$LINENO"; then :
  14464. ac_cv_func_alloca_works=yes
  14465. else
  14466. ac_cv_func_alloca_works=no
  14467. fi
  14468. rm -f core conftest.err conftest.$ac_objext \
  14469. conftest$ac_exeext conftest.$ac_ext
  14470. fi
  14471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14472. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14473. if test $ac_cv_func_alloca_works = yes; then
  14474. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14475. else
  14476. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14477. # that cause trouble. Some versions do not even contain alloca or
  14478. # contain a buggy version. If you still want to use their alloca,
  14479. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14480. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14481. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14483. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14484. if ${ac_cv_os_cray+:} false; then :
  14485. $as_echo_n "(cached) " >&6
  14486. else
  14487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14488. /* end confdefs.h. */
  14489. #if defined CRAY && ! defined CRAY2
  14490. webecray
  14491. #else
  14492. wenotbecray
  14493. #endif
  14494. _ACEOF
  14495. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14496. $EGREP "webecray" >/dev/null 2>&1; then :
  14497. ac_cv_os_cray=yes
  14498. else
  14499. ac_cv_os_cray=no
  14500. fi
  14501. rm -f conftest*
  14502. fi
  14503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14504. $as_echo "$ac_cv_os_cray" >&6; }
  14505. if test $ac_cv_os_cray = yes; then
  14506. for ac_func in _getb67 GETB67 getb67; do
  14507. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14508. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14509. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14510. cat >>confdefs.h <<_ACEOF
  14511. #define CRAY_STACKSEG_END $ac_func
  14512. _ACEOF
  14513. break
  14514. fi
  14515. done
  14516. fi
  14517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14518. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14519. if ${ac_cv_c_stack_direction+:} false; then :
  14520. $as_echo_n "(cached) " >&6
  14521. else
  14522. if test "$cross_compiling" = yes; then :
  14523. ac_cv_c_stack_direction=0
  14524. else
  14525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14526. /* end confdefs.h. */
  14527. $ac_includes_default
  14528. int
  14529. find_stack_direction (int *addr, int depth)
  14530. {
  14531. int dir, dummy = 0;
  14532. if (! addr)
  14533. addr = &dummy;
  14534. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14535. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14536. return dir + dummy;
  14537. }
  14538. int
  14539. main (int argc, char **argv)
  14540. {
  14541. return find_stack_direction (0, argc + !argv + 20) < 0;
  14542. }
  14543. _ACEOF
  14544. if ac_fn_c_try_run "$LINENO"; then :
  14545. ac_cv_c_stack_direction=1
  14546. else
  14547. ac_cv_c_stack_direction=-1
  14548. fi
  14549. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14550. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14551. fi
  14552. fi
  14553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14554. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14555. cat >>confdefs.h <<_ACEOF
  14556. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14557. _ACEOF
  14558. fi
  14559. ;;
  14560. esac
  14561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14562. $as_echo_n "checking for working memcmp... " >&6; }
  14563. if ${ac_cv_func_memcmp_working+:} false; then :
  14564. $as_echo_n "(cached) " >&6
  14565. else
  14566. if test "$cross_compiling" = yes; then :
  14567. ac_cv_func_memcmp_working=no
  14568. else
  14569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14570. /* end confdefs.h. */
  14571. $ac_includes_default
  14572. int
  14573. main ()
  14574. {
  14575. /* Some versions of memcmp are not 8-bit clean. */
  14576. char c0 = '\100', c1 = '\200', c2 = '\201';
  14577. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14578. return 1;
  14579. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14580. or more and with at least one buffer not starting on a 4-byte boundary.
  14581. William Lewis provided this test program. */
  14582. {
  14583. char foo[21];
  14584. char bar[21];
  14585. int i;
  14586. for (i = 0; i < 4; i++)
  14587. {
  14588. char *a = foo + i;
  14589. char *b = bar + i;
  14590. strcpy (a, "--------01111111");
  14591. strcpy (b, "--------10000000");
  14592. if (memcmp (a, b, 16) >= 0)
  14593. return 1;
  14594. }
  14595. return 0;
  14596. }
  14597. ;
  14598. return 0;
  14599. }
  14600. _ACEOF
  14601. if ac_fn_c_try_run "$LINENO"; then :
  14602. ac_cv_func_memcmp_working=yes
  14603. else
  14604. ac_cv_func_memcmp_working=no
  14605. fi
  14606. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14607. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14608. fi
  14609. fi
  14610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14611. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14612. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14613. *" memcmp.$ac_objext "* ) ;;
  14614. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14615. ;;
  14616. esac
  14617. if test x$ac_cv_func_memcmp_working = xyes; then
  14618. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14619. fi
  14620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14621. $as_echo_n "checking for working strtod... " >&6; }
  14622. if ${ac_cv_func_strtod+:} false; then :
  14623. $as_echo_n "(cached) " >&6
  14624. else
  14625. if test "$cross_compiling" = yes; then :
  14626. ac_cv_func_strtod=no
  14627. else
  14628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14629. /* end confdefs.h. */
  14630. $ac_includes_default
  14631. #ifndef strtod
  14632. double strtod ();
  14633. #endif
  14634. int
  14635. main()
  14636. {
  14637. {
  14638. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14639. char *string = " +69";
  14640. char *term;
  14641. double value;
  14642. value = strtod (string, &term);
  14643. if (value != 69 || term != (string + 4))
  14644. return 1;
  14645. }
  14646. {
  14647. /* Under Solaris 2.4, strtod returns the wrong value for the
  14648. terminating character under some conditions. */
  14649. char *string = "NaN";
  14650. char *term;
  14651. strtod (string, &term);
  14652. if (term != string && *(term - 1) == 0)
  14653. return 1;
  14654. }
  14655. return 0;
  14656. }
  14657. _ACEOF
  14658. if ac_fn_c_try_run "$LINENO"; then :
  14659. ac_cv_func_strtod=yes
  14660. else
  14661. ac_cv_func_strtod=no
  14662. fi
  14663. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14664. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14665. fi
  14666. fi
  14667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14668. $as_echo "$ac_cv_func_strtod" >&6; }
  14669. if test $ac_cv_func_strtod = no; then
  14670. case " $LIBOBJS " in
  14671. *" strtod.$ac_objext "* ) ;;
  14672. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14673. ;;
  14674. esac
  14675. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14676. if test "x$ac_cv_func_pow" = xyes; then :
  14677. fi
  14678. if test $ac_cv_func_pow = no; then
  14679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14680. $as_echo_n "checking for pow in -lm... " >&6; }
  14681. if ${ac_cv_lib_m_pow+:} false; then :
  14682. $as_echo_n "(cached) " >&6
  14683. else
  14684. ac_check_lib_save_LIBS=$LIBS
  14685. LIBS="-lm $LIBS"
  14686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14687. /* end confdefs.h. */
  14688. /* Override any GCC internal prototype to avoid an error.
  14689. Use char because int might match the return type of a GCC
  14690. builtin and then its argument prototype would still apply. */
  14691. #ifdef __cplusplus
  14692. extern "C"
  14693. #endif
  14694. char pow ();
  14695. int
  14696. main ()
  14697. {
  14698. return pow ();
  14699. ;
  14700. return 0;
  14701. }
  14702. _ACEOF
  14703. if ac_fn_c_try_link "$LINENO"; then :
  14704. ac_cv_lib_m_pow=yes
  14705. else
  14706. ac_cv_lib_m_pow=no
  14707. fi
  14708. rm -f core conftest.err conftest.$ac_objext \
  14709. conftest$ac_exeext conftest.$ac_ext
  14710. LIBS=$ac_check_lib_save_LIBS
  14711. fi
  14712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14713. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14714. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14715. POW_LIB=-lm
  14716. else
  14717. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14718. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14719. fi
  14720. fi
  14721. fi
  14722. if test x$ac_cv_func_strtod = xyes; then
  14723. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14724. fi
  14725. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14726. if test "x$ac_cv_func_mprotect" = xyes; then :
  14727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14728. /* end confdefs.h. */
  14729. #include <sys/types.h>
  14730. #include <sys/mman.h>
  14731. int
  14732. main ()
  14733. {
  14734. ;
  14735. return 0;
  14736. }
  14737. _ACEOF
  14738. if ac_fn_c_try_compile "$LINENO"; then :
  14739. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14740. fi
  14741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14742. fi
  14743. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat wcsdup wcsstr wcscmp wcsncmp strlen strlcpy strlcat _strrev _strupr _strlwr 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 poll _Exit
  14744. do :
  14745. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14746. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14747. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14748. cat >>confdefs.h <<_ACEOF
  14749. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14750. _ACEOF
  14751. fi
  14752. done
  14753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14754. $as_echo_n "checking for pow in -lm... " >&6; }
  14755. if ${ac_cv_lib_m_pow+:} false; then :
  14756. $as_echo_n "(cached) " >&6
  14757. else
  14758. ac_check_lib_save_LIBS=$LIBS
  14759. LIBS="-lm $LIBS"
  14760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14761. /* end confdefs.h. */
  14762. /* Override any GCC internal prototype to avoid an error.
  14763. Use char because int might match the return type of a GCC
  14764. builtin and then its argument prototype would still apply. */
  14765. #ifdef __cplusplus
  14766. extern "C"
  14767. #endif
  14768. char pow ();
  14769. int
  14770. main ()
  14771. {
  14772. return pow ();
  14773. ;
  14774. return 0;
  14775. }
  14776. _ACEOF
  14777. if ac_fn_c_try_link "$LINENO"; then :
  14778. ac_cv_lib_m_pow=yes
  14779. else
  14780. ac_cv_lib_m_pow=no
  14781. fi
  14782. rm -f core conftest.err conftest.$ac_objext \
  14783. conftest$ac_exeext conftest.$ac_ext
  14784. LIBS=$ac_check_lib_save_LIBS
  14785. fi
  14786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14787. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14788. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14789. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14790. fi
  14791. 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 pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14792. do :
  14793. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14794. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14795. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14796. cat >>confdefs.h <<_ACEOF
  14797. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14798. _ACEOF
  14799. fi
  14800. done
  14801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14802. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14803. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14804. $as_echo_n "(cached) " >&6
  14805. else
  14806. ac_check_lib_save_LIBS=$LIBS
  14807. LIBS="-liconv $LIBS"
  14808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14809. /* end confdefs.h. */
  14810. /* Override any GCC internal prototype to avoid an error.
  14811. Use char because int might match the return type of a GCC
  14812. builtin and then its argument prototype would still apply. */
  14813. #ifdef __cplusplus
  14814. extern "C"
  14815. #endif
  14816. char iconv_open ();
  14817. int
  14818. main ()
  14819. {
  14820. return iconv_open ();
  14821. ;
  14822. return 0;
  14823. }
  14824. _ACEOF
  14825. if ac_fn_c_try_link "$LINENO"; then :
  14826. ac_cv_lib_iconv_iconv_open=yes
  14827. else
  14828. ac_cv_lib_iconv_iconv_open=no
  14829. fi
  14830. rm -f core conftest.err conftest.$ac_objext \
  14831. conftest$ac_exeext conftest.$ac_ext
  14832. LIBS=$ac_check_lib_save_LIBS
  14833. fi
  14834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14835. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14836. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14837. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14838. fi
  14839. for ac_func in iconv
  14840. do :
  14841. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14842. if test "x$ac_cv_func_iconv" = xyes; then :
  14843. cat >>confdefs.h <<_ACEOF
  14844. #define HAVE_ICONV 1
  14845. _ACEOF
  14846. fi
  14847. done
  14848. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14849. "
  14850. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14851. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14852. fi
  14853. for ac_header in libunwind.h
  14854. do :
  14855. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14856. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14857. cat >>confdefs.h <<_ACEOF
  14858. #define HAVE_LIBUNWIND_H 1
  14859. _ACEOF
  14860. fi
  14861. done
  14862. fi
  14863. # Check whether --enable-gcc-atomics was given.
  14864. if test "${enable_gcc_atomics+set}" = set; then :
  14865. enableval=$enable_gcc_atomics;
  14866. else
  14867. enable_gcc_atomics=yes
  14868. fi
  14869. if test x$enable_gcc_atomics = xyes; then
  14870. have_gcc_atomics=no
  14871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14872. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14874. /* end confdefs.h. */
  14875. int
  14876. main ()
  14877. {
  14878. int a;
  14879. void *x, *y, *z;
  14880. __sync_lock_test_and_set(&a, 4);
  14881. __sync_lock_test_and_set(&x, y);
  14882. __sync_fetch_and_add(&a, 1);
  14883. __sync_bool_compare_and_swap(&a, 5, 10);
  14884. __sync_bool_compare_and_swap(&x, y, z);
  14885. ;
  14886. return 0;
  14887. }
  14888. _ACEOF
  14889. if ac_fn_c_try_link "$LINENO"; then :
  14890. have_gcc_atomics=yes
  14891. fi
  14892. rm -f core conftest.err conftest.$ac_objext \
  14893. conftest$ac_exeext conftest.$ac_ext
  14894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14895. $as_echo "$have_gcc_atomics" >&6; }
  14896. if test x$have_gcc_atomics = xyes; then
  14897. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14898. else
  14899. # See if we have the minimum operation needed for GCC atomics
  14900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14901. /* end confdefs.h. */
  14902. int
  14903. main ()
  14904. {
  14905. int a;
  14906. __sync_lock_test_and_set(&a, 1);
  14907. __sync_lock_release(&a);
  14908. ;
  14909. return 0;
  14910. }
  14911. _ACEOF
  14912. if ac_fn_c_try_link "$LINENO"; then :
  14913. have_gcc_sync_lock_test_and_set=yes
  14914. fi
  14915. rm -f core conftest.err conftest.$ac_objext \
  14916. conftest$ac_exeext conftest.$ac_ext
  14917. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14918. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14919. fi
  14920. fi
  14921. fi
  14922. # Standard C sources
  14923. SOURCES="$SOURCES $srcdir/src/*.c"
  14924. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14925. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14926. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14927. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14928. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14929. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14930. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14931. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14932. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14933. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14934. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14935. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14936. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14937. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14938. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14939. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14940. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14941. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14942. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14943. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  14944. # Check whether --enable-atomic was given.
  14945. if test "${enable_atomic+set}" = set; then :
  14946. enableval=$enable_atomic;
  14947. else
  14948. enable_atomic=yes
  14949. fi
  14950. if test x$enable_atomic != xyes; then
  14951. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14952. else
  14953. SUMMARY_modules="${SUMMARY_modules} atomic"
  14954. fi
  14955. # Check whether --enable-audio was given.
  14956. if test "${enable_audio+set}" = set; then :
  14957. enableval=$enable_audio;
  14958. else
  14959. enable_audio=yes
  14960. fi
  14961. if test x$enable_audio != xyes; then
  14962. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14963. else
  14964. SUMMARY_modules="${SUMMARY_modules} audio"
  14965. fi
  14966. # Check whether --enable-video was given.
  14967. if test "${enable_video+set}" = set; then :
  14968. enableval=$enable_video;
  14969. else
  14970. enable_video=yes
  14971. fi
  14972. if test x$enable_video != xyes; then
  14973. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14974. else
  14975. SUMMARY_modules="${SUMMARY_modules} video"
  14976. fi
  14977. # Check whether --enable-render was given.
  14978. if test "${enable_render+set}" = set; then :
  14979. enableval=$enable_render;
  14980. else
  14981. enable_render=yes
  14982. fi
  14983. if test x$enable_render != xyes; then
  14984. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14985. else
  14986. SUMMARY_modules="${SUMMARY_modules} render"
  14987. fi
  14988. # Check whether --enable-events was given.
  14989. if test "${enable_events+set}" = set; then :
  14990. enableval=$enable_events;
  14991. else
  14992. enable_events=yes
  14993. fi
  14994. if test x$enable_events != xyes; then
  14995. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14996. else
  14997. SUMMARY_modules="${SUMMARY_modules} events"
  14998. fi
  14999. # Check whether --enable-joystick was given.
  15000. if test "${enable_joystick+set}" = set; then :
  15001. enableval=$enable_joystick;
  15002. else
  15003. enable_joystick=yes
  15004. fi
  15005. if test x$enable_joystick != xyes; then
  15006. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15007. else
  15008. SUMMARY_modules="${SUMMARY_modules} joystick"
  15009. fi
  15010. # Check whether --enable-haptic was given.
  15011. if test "${enable_haptic+set}" = set; then :
  15012. enableval=$enable_haptic;
  15013. else
  15014. enable_haptic=yes
  15015. fi
  15016. if test x$enable_haptic != xyes; then
  15017. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15018. else
  15019. SUMMARY_modules="${SUMMARY_modules} haptic"
  15020. fi
  15021. # Check whether --enable-sensor was given.
  15022. if test "${enable_sensor+set}" = set; then :
  15023. enableval=$enable_sensor;
  15024. else
  15025. enable_sensor=yes
  15026. fi
  15027. if test x$enable_sensor != xyes; then
  15028. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15029. else
  15030. SUMMARY_modules="${SUMMARY_modules} sensor"
  15031. fi
  15032. # Check whether --enable-power was given.
  15033. if test "${enable_power+set}" = set; then :
  15034. enableval=$enable_power;
  15035. else
  15036. enable_power=yes
  15037. fi
  15038. if test x$enable_power != xyes; then
  15039. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15040. else
  15041. SUMMARY_modules="${SUMMARY_modules} power"
  15042. fi
  15043. # Check whether --enable-filesystem was given.
  15044. if test "${enable_filesystem+set}" = set; then :
  15045. enableval=$enable_filesystem;
  15046. else
  15047. enable_filesystem=yes
  15048. fi
  15049. if test x$enable_filesystem != xyes; then
  15050. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15051. else
  15052. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15053. fi
  15054. # Check whether --enable-threads was given.
  15055. if test "${enable_threads+set}" = set; then :
  15056. enableval=$enable_threads;
  15057. else
  15058. enable_threads=yes
  15059. fi
  15060. if test x$enable_threads != xyes; then
  15061. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15062. else
  15063. SUMMARY_modules="${SUMMARY_modules} threads"
  15064. fi
  15065. # Check whether --enable-timers was given.
  15066. if test "${enable_timers+set}" = set; then :
  15067. enableval=$enable_timers;
  15068. else
  15069. enable_timers=yes
  15070. fi
  15071. if test x$enable_timers != xyes; then
  15072. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15073. else
  15074. SUMMARY_modules="${SUMMARY_modules} timers"
  15075. fi
  15076. # Check whether --enable-file was given.
  15077. if test "${enable_file+set}" = set; then :
  15078. enableval=$enable_file;
  15079. else
  15080. enable_file=yes
  15081. fi
  15082. if test x$enable_file != xyes; then
  15083. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15084. else
  15085. SUMMARY_modules="${SUMMARY_modules} file"
  15086. fi
  15087. # Check whether --enable-loadso was given.
  15088. if test "${enable_loadso+set}" = set; then :
  15089. enableval=$enable_loadso;
  15090. else
  15091. enable_loadso=yes
  15092. fi
  15093. if test x$enable_loadso != xyes; then
  15094. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15095. else
  15096. SUMMARY_modules="${SUMMARY_modules} loadso"
  15097. fi
  15098. # Check whether --enable-cpuinfo was given.
  15099. if test "${enable_cpuinfo+set}" = set; then :
  15100. enableval=$enable_cpuinfo;
  15101. else
  15102. enable_cpuinfo=yes
  15103. fi
  15104. if test x$enable_cpuinfo != xyes; then
  15105. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15106. else
  15107. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15108. fi
  15109. # Check whether --enable-assembly was given.
  15110. if test "${enable_assembly+set}" = set; then :
  15111. enableval=$enable_assembly;
  15112. else
  15113. enable_assembly=yes
  15114. fi
  15115. if test x$enable_assembly = xyes; then
  15116. SUMMARY_modules="${SUMMARY_modules} assembly"
  15117. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15118. # Make sure that we don't generate floating point code that would
  15119. # cause illegal instruction exceptions on older processors
  15120. case "$host" in
  15121. *-*-darwin*)
  15122. # Don't need to worry about Apple hardware, it's all SSE capable
  15123. default_ssemath=yes
  15124. ;;
  15125. *64-*-*)
  15126. # x86 64-bit architectures all have SSE instructions
  15127. default_ssemath=yes
  15128. ;;
  15129. *)
  15130. default_ssemath=no
  15131. ;;
  15132. esac
  15133. # Check whether --enable-ssemath was given.
  15134. if test "${enable_ssemath+set}" = set; then :
  15135. enableval=$enable_ssemath;
  15136. else
  15137. enable_ssemath=$default_ssemath
  15138. fi
  15139. if test x$enable_ssemath = xno; then
  15140. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15141. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15142. fi
  15143. fi
  15144. # Check whether --enable-mmx was given.
  15145. if test "${enable_mmx+set}" = set; then :
  15146. enableval=$enable_mmx;
  15147. else
  15148. enable_mmx=yes
  15149. fi
  15150. if test x$enable_mmx = xyes; then
  15151. save_CFLAGS="$CFLAGS"
  15152. have_gcc_mmx=no
  15153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15154. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15155. mmx_CFLAGS="-mmmx"
  15156. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15158. /* end confdefs.h. */
  15159. #ifdef __MINGW32__
  15160. #include <_mingw.h>
  15161. #ifdef __MINGW64_VERSION_MAJOR
  15162. #include <intrin.h>
  15163. #else
  15164. #include <mmintrin.h>
  15165. #endif
  15166. #else
  15167. #include <mmintrin.h>
  15168. #endif
  15169. #ifndef __MMX__
  15170. #error Assembler CPP flag not enabled
  15171. #endif
  15172. int
  15173. main ()
  15174. {
  15175. ;
  15176. return 0;
  15177. }
  15178. _ACEOF
  15179. if ac_fn_c_try_compile "$LINENO"; then :
  15180. have_gcc_mmx=yes
  15181. fi
  15182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15184. $as_echo "$have_gcc_mmx" >&6; }
  15185. CFLAGS="$save_CFLAGS"
  15186. if test x$have_gcc_mmx = xyes; then
  15187. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15188. SUMMARY_math="${SUMMARY_math} mmx"
  15189. fi
  15190. fi
  15191. # Check whether --enable-3dnow was given.
  15192. if test "${enable_3dnow+set}" = set; then :
  15193. enableval=$enable_3dnow;
  15194. else
  15195. enable_3dnow=yes
  15196. fi
  15197. if test x$enable_3dnow = xyes; then
  15198. save_CFLAGS="$CFLAGS"
  15199. have_gcc_3dnow=no
  15200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15201. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15202. amd3dnow_CFLAGS="-m3dnow"
  15203. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15205. /* end confdefs.h. */
  15206. #include <mm3dnow.h>
  15207. #ifndef __3dNOW__
  15208. #error Assembler CPP flag not enabled
  15209. #endif
  15210. int
  15211. main ()
  15212. {
  15213. void *p = 0;
  15214. _m_prefetch(p);
  15215. ;
  15216. return 0;
  15217. }
  15218. _ACEOF
  15219. if ac_fn_c_try_link "$LINENO"; then :
  15220. have_gcc_3dnow=yes
  15221. fi
  15222. rm -f core conftest.err conftest.$ac_objext \
  15223. conftest$ac_exeext conftest.$ac_ext
  15224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15225. $as_echo "$have_gcc_3dnow" >&6; }
  15226. CFLAGS="$save_CFLAGS"
  15227. if test x$have_gcc_3dnow = xyes; then
  15228. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15229. SUMMARY_math="${SUMMARY_math} 3dnow"
  15230. fi
  15231. fi
  15232. # Check whether --enable-sse was given.
  15233. if test "${enable_sse+set}" = set; then :
  15234. enableval=$enable_sse;
  15235. else
  15236. enable_sse=yes
  15237. fi
  15238. if test x$enable_sse = xyes; then
  15239. save_CFLAGS="$CFLAGS"
  15240. have_gcc_sse=no
  15241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15242. $as_echo_n "checking for GCC -msse option... " >&6; }
  15243. sse_CFLAGS="-msse"
  15244. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15246. /* end confdefs.h. */
  15247. #ifdef __MINGW32__
  15248. #include <_mingw.h>
  15249. #ifdef __MINGW64_VERSION_MAJOR
  15250. #include <intrin.h>
  15251. #else
  15252. #include <xmmintrin.h>
  15253. #endif
  15254. #else
  15255. #include <xmmintrin.h>
  15256. #endif
  15257. #ifndef __SSE__
  15258. #error Assembler CPP flag not enabled
  15259. #endif
  15260. int
  15261. main ()
  15262. {
  15263. ;
  15264. return 0;
  15265. }
  15266. _ACEOF
  15267. if ac_fn_c_try_compile "$LINENO"; then :
  15268. have_gcc_sse=yes
  15269. fi
  15270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15272. $as_echo "$have_gcc_sse" >&6; }
  15273. CFLAGS="$save_CFLAGS"
  15274. if test x$have_gcc_sse = xyes; then
  15275. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15276. SUMMARY_math="${SUMMARY_math} sse"
  15277. fi
  15278. fi
  15279. # Check whether --enable-sse2 was given.
  15280. if test "${enable_sse2+set}" = set; then :
  15281. enableval=$enable_sse2;
  15282. else
  15283. enable_sse2=$default_ssemath
  15284. fi
  15285. if test x$enable_sse2 = xyes; then
  15286. save_CFLAGS="$CFLAGS"
  15287. have_gcc_sse2=no
  15288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15289. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15290. sse2_CFLAGS="-msse2"
  15291. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15293. /* end confdefs.h. */
  15294. #ifdef __MINGW32__
  15295. #include <_mingw.h>
  15296. #ifdef __MINGW64_VERSION_MAJOR
  15297. #include <intrin.h>
  15298. #else
  15299. #include <emmintrin.h>
  15300. #endif
  15301. #else
  15302. #include <emmintrin.h>
  15303. #endif
  15304. #ifndef __SSE2__
  15305. #error Assembler CPP flag not enabled
  15306. #endif
  15307. int
  15308. main ()
  15309. {
  15310. ;
  15311. return 0;
  15312. }
  15313. _ACEOF
  15314. if ac_fn_c_try_compile "$LINENO"; then :
  15315. have_gcc_sse2=yes
  15316. fi
  15317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15319. $as_echo "$have_gcc_sse2" >&6; }
  15320. CFLAGS="$save_CFLAGS"
  15321. if test x$have_gcc_sse2 = xyes; then
  15322. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15323. SUMMARY_math="${SUMMARY_math} sse2"
  15324. fi
  15325. fi
  15326. # Check whether --enable-sse3 was given.
  15327. if test "${enable_sse3+set}" = set; then :
  15328. enableval=$enable_sse3;
  15329. else
  15330. enable_sse3=$default_ssemath
  15331. fi
  15332. if test x$enable_sse3 = xyes; then
  15333. save_CFLAGS="$CFLAGS"
  15334. have_gcc_sse3=no
  15335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15336. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15337. sse3_CFLAGS="-msse3"
  15338. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15340. /* end confdefs.h. */
  15341. #ifdef __MINGW32__
  15342. #include <_mingw.h>
  15343. #ifdef __MINGW64_VERSION_MAJOR
  15344. #include <intrin.h>
  15345. #else
  15346. #include <pmmintrin.h>
  15347. #endif
  15348. #else
  15349. #include <pmmintrin.h>
  15350. #endif
  15351. #ifndef __SSE2__
  15352. #error Assembler CPP flag not enabled
  15353. #endif
  15354. int
  15355. main ()
  15356. {
  15357. ;
  15358. return 0;
  15359. }
  15360. _ACEOF
  15361. if ac_fn_c_try_compile "$LINENO"; then :
  15362. have_gcc_sse3=yes
  15363. fi
  15364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15366. $as_echo "$have_gcc_sse3" >&6; }
  15367. CFLAGS="$save_CFLAGS"
  15368. if test x$have_gcc_sse3 = xyes; then
  15369. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15370. SUMMARY_math="${SUMMARY_math} sse3"
  15371. fi
  15372. fi
  15373. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15374. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15375. have_immintrin_h_hdr=yes
  15376. else
  15377. have_immintrin_h_hdr=no
  15378. fi
  15379. if test x$have_immintrin_h_hdr = xyes; then
  15380. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15381. fi
  15382. # Check whether --enable-altivec was given.
  15383. if test "${enable_altivec+set}" = set; then :
  15384. enableval=$enable_altivec;
  15385. else
  15386. enable_altivec=yes
  15387. fi
  15388. if test x$enable_altivec = xyes; then
  15389. save_CFLAGS="$CFLAGS"
  15390. have_gcc_altivec=no
  15391. have_altivec_h_hdr=no
  15392. altivec_CFLAGS="-maltivec"
  15393. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15395. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15397. /* end confdefs.h. */
  15398. #include <altivec.h>
  15399. vector unsigned int vzero() {
  15400. return vec_splat_u32(0);
  15401. }
  15402. int
  15403. main ()
  15404. {
  15405. ;
  15406. return 0;
  15407. }
  15408. _ACEOF
  15409. if ac_fn_c_try_compile "$LINENO"; then :
  15410. have_gcc_altivec=yes
  15411. have_altivec_h_hdr=yes
  15412. fi
  15413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15415. $as_echo "$have_gcc_altivec" >&6; }
  15416. if test x$have_gcc_altivec = xno; then
  15417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15418. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15420. /* end confdefs.h. */
  15421. vector unsigned int vzero() {
  15422. return vec_splat_u32(0);
  15423. }
  15424. int
  15425. main ()
  15426. {
  15427. ;
  15428. return 0;
  15429. }
  15430. _ACEOF
  15431. if ac_fn_c_try_compile "$LINENO"; then :
  15432. have_gcc_altivec=yes
  15433. fi
  15434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15436. $as_echo "$have_gcc_altivec" >&6; }
  15437. fi
  15438. if test x$have_gcc_altivec = xno; then
  15439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15440. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15441. altivec_CFLAGS="-faltivec"
  15442. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15444. /* end confdefs.h. */
  15445. #include <altivec.h>
  15446. vector unsigned int vzero() {
  15447. return vec_splat_u32(0);
  15448. }
  15449. int
  15450. main ()
  15451. {
  15452. ;
  15453. return 0;
  15454. }
  15455. _ACEOF
  15456. if ac_fn_c_try_compile "$LINENO"; then :
  15457. have_gcc_altivec=yes
  15458. have_altivec_h_hdr=yes
  15459. fi
  15460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15462. $as_echo "$have_gcc_altivec" >&6; }
  15463. fi
  15464. if test x$have_gcc_altivec = xno; then
  15465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15466. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15468. /* end confdefs.h. */
  15469. vector unsigned int vzero() {
  15470. return vec_splat_u32(0);
  15471. }
  15472. int
  15473. main ()
  15474. {
  15475. ;
  15476. return 0;
  15477. }
  15478. _ACEOF
  15479. if ac_fn_c_try_compile "$LINENO"; then :
  15480. have_gcc_altivec=yes
  15481. fi
  15482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15484. $as_echo "$have_gcc_altivec" >&6; }
  15485. fi
  15486. CFLAGS="$save_CFLAGS"
  15487. if test x$have_gcc_altivec = xyes; then
  15488. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15489. if test x$have_altivec_h_hdr = xyes; then
  15490. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15491. fi
  15492. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15493. SUMMARY_math="${SUMMARY_math} altivec"
  15494. fi
  15495. fi
  15496. fi
  15497. CheckOSS()
  15498. {
  15499. # Check whether --enable-oss was given.
  15500. if test "${enable_oss+set}" = set; then :
  15501. enableval=$enable_oss;
  15502. else
  15503. enable_oss=maybe
  15504. fi
  15505. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15506. # use sndio instead. So on there, we default to disabled. You can force
  15507. # it on if you really want, though.
  15508. if test x$enable_oss = xmaybe; then
  15509. enable_oss=yes
  15510. case "$host" in
  15511. *-*-openbsd*)
  15512. enable_oss=no;;
  15513. esac
  15514. fi
  15515. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15517. $as_echo_n "checking for OSS audio support... " >&6; }
  15518. have_oss=no
  15519. if test x$have_oss != xyes; then
  15520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15521. /* end confdefs.h. */
  15522. #include <sys/soundcard.h>
  15523. int
  15524. main ()
  15525. {
  15526. int arg = SNDCTL_DSP_SETFRAGMENT;
  15527. ;
  15528. return 0;
  15529. }
  15530. _ACEOF
  15531. if ac_fn_c_try_compile "$LINENO"; then :
  15532. have_oss=yes
  15533. fi
  15534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15535. fi
  15536. if test x$have_oss != xyes; then
  15537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15538. /* end confdefs.h. */
  15539. #include <soundcard.h>
  15540. int
  15541. main ()
  15542. {
  15543. int arg = SNDCTL_DSP_SETFRAGMENT;
  15544. ;
  15545. return 0;
  15546. }
  15547. _ACEOF
  15548. if ac_fn_c_try_compile "$LINENO"; then :
  15549. have_oss=yes
  15550. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15551. fi
  15552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15553. fi
  15554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15555. $as_echo "$have_oss" >&6; }
  15556. if test x$have_oss = xyes; then
  15557. SUMMARY_audio="${SUMMARY_audio} oss"
  15558. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15559. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15560. have_audio=yes
  15561. # We may need to link with ossaudio emulation library
  15562. case "$host" in
  15563. *-*-openbsd*|*-*-netbsd*)
  15564. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15565. esac
  15566. fi
  15567. fi
  15568. }
  15569. CheckALSA()
  15570. {
  15571. # Check whether --enable-alsa was given.
  15572. if test "${enable_alsa+set}" = set; then :
  15573. enableval=$enable_alsa;
  15574. else
  15575. enable_alsa=yes
  15576. fi
  15577. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15578. alsa_save_CFLAGS="$CFLAGS"
  15579. alsa_save_LDFLAGS="$LDFLAGS"
  15580. alsa_save_LIBS="$LIBS"
  15581. alsa_found=yes
  15582. # Check whether --with-alsa-prefix was given.
  15583. if test "${with_alsa_prefix+set}" = set; then :
  15584. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15585. else
  15586. alsa_prefix=""
  15587. fi
  15588. # Check whether --with-alsa-inc-prefix was given.
  15589. if test "${with_alsa_inc_prefix+set}" = set; then :
  15590. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15591. else
  15592. alsa_inc_prefix=""
  15593. fi
  15594. # Check whether --enable-alsatest was given.
  15595. if test "${enable_alsatest+set}" = set; then :
  15596. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15597. else
  15598. enable_alsatest=yes
  15599. fi
  15600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15601. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15602. if test "$alsa_inc_prefix" != "" ; then
  15603. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15604. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15605. fi
  15606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15607. $as_echo "$ALSA_CFLAGS" >&6; }
  15608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15609. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15610. if test "$alsa_prefix" != "" ; then
  15611. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15612. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15613. fi
  15614. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15615. LIBS=`echo $LIBS | sed 's/-lm//'`
  15616. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15617. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15618. LIBS=`echo $LIBS | sed 's/ //'`
  15619. LIBS="$ALSA_LIBS $LIBS"
  15620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15621. $as_echo "$ALSA_LIBS" >&6; }
  15622. min_alsa_version=1.0.11
  15623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15624. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15625. no_alsa=""
  15626. alsa_min_major_version=`echo $min_alsa_version | \
  15627. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15628. alsa_min_minor_version=`echo $min_alsa_version | \
  15629. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15630. alsa_min_micro_version=`echo $min_alsa_version | \
  15631. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15632. ac_ext=c
  15633. ac_cpp='$CPP $CPPFLAGS'
  15634. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15635. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15636. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15638. /* end confdefs.h. */
  15639. #include <alsa/asoundlib.h>
  15640. int
  15641. main ()
  15642. {
  15643. /* ensure backward compatibility */
  15644. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15645. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15646. #endif
  15647. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15648. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15649. #endif
  15650. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15651. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15652. #endif
  15653. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15654. exit(0);
  15655. # else
  15656. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15657. # error not present
  15658. # endif
  15659. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15660. exit(0);
  15661. # else
  15662. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15663. # error not present
  15664. # endif
  15665. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15666. # error not present
  15667. # endif
  15668. # endif
  15669. # endif
  15670. exit(0);
  15671. ;
  15672. return 0;
  15673. }
  15674. _ACEOF
  15675. if ac_fn_c_try_compile "$LINENO"; then :
  15676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15677. $as_echo "found." >&6; }
  15678. else
  15679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15680. $as_echo "not present." >&6; }
  15681. alsa_found=no
  15682. fi
  15683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15684. ac_ext=c
  15685. ac_cpp='$CPP $CPPFLAGS'
  15686. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15687. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15688. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15689. if test "x$enable_alsatest" = "xyes"; then
  15690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15691. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15692. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15693. $as_echo_n "(cached) " >&6
  15694. else
  15695. ac_check_lib_save_LIBS=$LIBS
  15696. LIBS="-lasound $LIBS"
  15697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15698. /* end confdefs.h. */
  15699. /* Override any GCC internal prototype to avoid an error.
  15700. Use char because int might match the return type of a GCC
  15701. builtin and then its argument prototype would still apply. */
  15702. #ifdef __cplusplus
  15703. extern "C"
  15704. #endif
  15705. char snd_ctl_open ();
  15706. int
  15707. main ()
  15708. {
  15709. return snd_ctl_open ();
  15710. ;
  15711. return 0;
  15712. }
  15713. _ACEOF
  15714. if ac_fn_c_try_link "$LINENO"; then :
  15715. ac_cv_lib_asound_snd_ctl_open=yes
  15716. else
  15717. ac_cv_lib_asound_snd_ctl_open=no
  15718. fi
  15719. rm -f core conftest.err conftest.$ac_objext \
  15720. conftest$ac_exeext conftest.$ac_ext
  15721. LIBS=$ac_check_lib_save_LIBS
  15722. fi
  15723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15724. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15725. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15726. cat >>confdefs.h <<_ACEOF
  15727. #define HAVE_LIBASOUND 1
  15728. _ACEOF
  15729. LIBS="-lasound $LIBS"
  15730. else
  15731. alsa_found=no
  15732. fi
  15733. fi
  15734. if test "x$alsa_found" = "xyes" ; then
  15735. have_alsa=yes
  15736. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15737. LIBS=`echo $LIBS | sed 's/ //'`
  15738. LIBS="-lasound $LIBS"
  15739. fi
  15740. if test "x$alsa_found" = "xno" ; then
  15741. have_alsa=no
  15742. CFLAGS="$alsa_save_CFLAGS"
  15743. LDFLAGS="$alsa_save_LDFLAGS"
  15744. LIBS="$alsa_save_LIBS"
  15745. ALSA_CFLAGS=""
  15746. ALSA_LIBS=""
  15747. fi
  15748. # Restore all flags from before the ALSA detection runs
  15749. CFLAGS="$alsa_save_CFLAGS"
  15750. LDFLAGS="$alsa_save_LDFLAGS"
  15751. LIBS="$alsa_save_LIBS"
  15752. if test x$have_alsa = xyes; then
  15753. # Check whether --enable-alsa-shared was given.
  15754. if test "${enable_alsa_shared+set}" = set; then :
  15755. enableval=$enable_alsa_shared;
  15756. else
  15757. enable_alsa_shared=yes
  15758. fi
  15759. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15760. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15761. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15762. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15763. if test x$have_loadso != xyes && \
  15764. test x$enable_alsa_shared = xyes; then
  15765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15766. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15767. fi
  15768. if test x$have_loadso = xyes && \
  15769. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15770. echo "-- dynamic libasound -> $alsa_lib"
  15771. cat >>confdefs.h <<_ACEOF
  15772. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15773. _ACEOF
  15774. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15775. else
  15776. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15777. SUMMARY_audio="${SUMMARY_audio} alsa"
  15778. fi
  15779. have_audio=yes
  15780. fi
  15781. fi
  15782. }
  15783. CheckJACK()
  15784. {
  15785. # Check whether --enable-jack was given.
  15786. if test "${enable_jack+set}" = set; then :
  15787. enableval=$enable_jack;
  15788. else
  15789. enable_jack=yes
  15790. fi
  15791. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15792. pkg_failed=no
  15793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
  15794. $as_echo_n "checking for JACK... " >&6; }
  15795. if test -n "$JACK_CFLAGS"; then
  15796. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15797. elif test -n "$PKG_CONFIG"; then
  15798. if test -n "$PKG_CONFIG" && \
  15799. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15800. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15801. ac_status=$?
  15802. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15803. test $ac_status = 0; }; then
  15804. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15805. else
  15806. pkg_failed=yes
  15807. fi
  15808. else
  15809. pkg_failed=untried
  15810. fi
  15811. if test -n "$JACK_LIBS"; then
  15812. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15813. elif test -n "$PKG_CONFIG"; then
  15814. if test -n "$PKG_CONFIG" && \
  15815. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15816. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15817. ac_status=$?
  15818. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15819. test $ac_status = 0; }; then
  15820. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15821. else
  15822. pkg_failed=yes
  15823. fi
  15824. else
  15825. pkg_failed=untried
  15826. fi
  15827. if test $pkg_failed = yes; then
  15828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15829. $as_echo "no" >&6; }
  15830. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15831. _pkg_short_errors_supported=yes
  15832. else
  15833. _pkg_short_errors_supported=no
  15834. fi
  15835. if test $_pkg_short_errors_supported = yes; then
  15836. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.125" 2>&1`
  15837. else
  15838. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.125" 2>&1`
  15839. fi
  15840. # Put the nasty error message in config.log where it belongs
  15841. echo "$JACK_PKG_ERRORS" >&5
  15842. audio_jack=no
  15843. elif test $pkg_failed = untried; then
  15844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15845. $as_echo "no" >&6; }
  15846. audio_jack=no
  15847. else
  15848. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15849. JACK_LIBS=$pkg_cv_JACK_LIBS
  15850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15851. $as_echo "yes" >&6; }
  15852. audio_jack=yes
  15853. fi
  15854. if test x$audio_jack = xyes; then
  15855. # Check whether --enable-jack-shared was given.
  15856. if test "${enable_jack_shared+set}" = set; then :
  15857. enableval=$enable_jack_shared;
  15858. else
  15859. enable_jack_shared=yes
  15860. fi
  15861. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15862. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15863. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15864. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15865. if test x$have_loadso != xyes && \
  15866. test x$enable_jack_shared = xyes; then
  15867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15868. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15869. fi
  15870. if test x$have_loadso = xyes && \
  15871. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15872. echo "-- dynamic libjack -> $jack_lib"
  15873. cat >>confdefs.h <<_ACEOF
  15874. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15875. _ACEOF
  15876. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15877. case "$host" in
  15878. # On Solaris, jack must be linked deferred explicitly
  15879. # to prevent undefined symbol failures.
  15880. *-*-solaris*)
  15881. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15882. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15883. esac
  15884. else
  15885. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15886. SUMMARY_audio="${SUMMARY_audio} jack"
  15887. fi
  15888. have_audio=yes
  15889. fi
  15890. fi
  15891. }
  15892. CheckESD()
  15893. {
  15894. # Check whether --enable-esd was given.
  15895. if test "${enable_esd+set}" = set; then :
  15896. enableval=$enable_esd;
  15897. else
  15898. enable_esd=yes
  15899. fi
  15900. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15901. # Check whether --with-esd-prefix was given.
  15902. if test "${with_esd_prefix+set}" = set; then :
  15903. withval=$with_esd_prefix; esd_prefix="$withval"
  15904. else
  15905. esd_prefix=""
  15906. fi
  15907. # Check whether --with-esd-exec-prefix was given.
  15908. if test "${with_esd_exec_prefix+set}" = set; then :
  15909. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15910. else
  15911. esd_exec_prefix=""
  15912. fi
  15913. # Check whether --enable-esdtest was given.
  15914. if test "${enable_esdtest+set}" = set; then :
  15915. enableval=$enable_esdtest;
  15916. else
  15917. enable_esdtest=yes
  15918. fi
  15919. if test x$esd_exec_prefix != x ; then
  15920. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15921. if test x${ESD_CONFIG+set} != xset ; then
  15922. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15923. fi
  15924. fi
  15925. if test x$esd_prefix != x ; then
  15926. esd_args="$esd_args --prefix=$esd_prefix"
  15927. if test x${ESD_CONFIG+set} != xset ; then
  15928. ESD_CONFIG=$esd_prefix/bin/esd-config
  15929. fi
  15930. fi
  15931. # Extract the first word of "esd-config", so it can be a program name with args.
  15932. set dummy esd-config; ac_word=$2
  15933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15934. $as_echo_n "checking for $ac_word... " >&6; }
  15935. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15936. $as_echo_n "(cached) " >&6
  15937. else
  15938. case $ESD_CONFIG in
  15939. [\\/]* | ?:[\\/]*)
  15940. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15941. ;;
  15942. *)
  15943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15944. for as_dir in $PATH
  15945. do
  15946. IFS=$as_save_IFS
  15947. test -z "$as_dir" && as_dir=.
  15948. for ac_exec_ext in '' $ac_executable_extensions; do
  15949. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15950. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15951. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15952. break 2
  15953. fi
  15954. done
  15955. done
  15956. IFS=$as_save_IFS
  15957. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15958. ;;
  15959. esac
  15960. fi
  15961. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15962. if test -n "$ESD_CONFIG"; then
  15963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15964. $as_echo "$ESD_CONFIG" >&6; }
  15965. else
  15966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15967. $as_echo "no" >&6; }
  15968. fi
  15969. min_esd_version=0.2.8
  15970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15971. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15972. no_esd=""
  15973. if test "$ESD_CONFIG" = "no" ; then
  15974. no_esd=yes
  15975. else
  15976. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15977. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15978. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15979. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15980. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15981. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15982. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15983. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15984. if test "x$enable_esdtest" = "xyes" ; then
  15985. ac_save_CFLAGS="$CFLAGS"
  15986. ac_save_LIBS="$LIBS"
  15987. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15988. LIBS="$LIBS $ESD_LIBS"
  15989. rm -f conf.esdtest
  15990. if test "$cross_compiling" = yes; then :
  15991. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15992. else
  15993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15994. /* end confdefs.h. */
  15995. #include <stdio.h>
  15996. #include <stdlib.h>
  15997. #include <string.h>
  15998. #include <esd.h>
  15999. char*
  16000. my_strdup (char *str)
  16001. {
  16002. char *new_str;
  16003. if (str)
  16004. {
  16005. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  16006. strcpy (new_str, str);
  16007. }
  16008. else
  16009. new_str = NULL;
  16010. return new_str;
  16011. }
  16012. int main ()
  16013. {
  16014. int major, minor, micro;
  16015. char *tmp_version;
  16016. system ("touch conf.esdtest");
  16017. /* HP/UX 9 (%@#!) writes to sscanf strings */
  16018. tmp_version = my_strdup("$min_esd_version");
  16019. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  16020. printf("%s, bad version string\n", "$min_esd_version");
  16021. exit(1);
  16022. }
  16023. if (($esd_major_version > major) ||
  16024. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16025. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16026. {
  16027. return 0;
  16028. }
  16029. else
  16030. {
  16031. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16032. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16033. printf("*** best to upgrade to the required version.\n");
  16034. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16035. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16036. printf("*** config.cache before re-running configure\n");
  16037. return 1;
  16038. }
  16039. }
  16040. _ACEOF
  16041. if ac_fn_c_try_run "$LINENO"; then :
  16042. else
  16043. no_esd=yes
  16044. fi
  16045. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16046. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16047. fi
  16048. CFLAGS="$ac_save_CFLAGS"
  16049. LIBS="$ac_save_LIBS"
  16050. fi
  16051. fi
  16052. if test "x$no_esd" = x ; then
  16053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16054. $as_echo "yes" >&6; }
  16055. have_esd=yes
  16056. else
  16057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16058. $as_echo "no" >&6; }
  16059. if test "$ESD_CONFIG" = "no" ; then
  16060. echo "*** The esd-config script installed by ESD could not be found"
  16061. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16062. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16063. echo "*** full path to esd-config."
  16064. else
  16065. if test -f conf.esdtest ; then
  16066. :
  16067. else
  16068. echo "*** Could not run ESD test program, checking why..."
  16069. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16070. LIBS="$LIBS $ESD_LIBS"
  16071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16072. /* end confdefs.h. */
  16073. #include <stdio.h>
  16074. #include <esd.h>
  16075. int
  16076. main ()
  16077. {
  16078. return 0;
  16079. ;
  16080. return 0;
  16081. }
  16082. _ACEOF
  16083. if ac_fn_c_try_link "$LINENO"; then :
  16084. echo "*** The test program compiled, but did not run. This usually means"
  16085. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16086. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16087. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16088. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16089. echo "*** is required on your system"
  16090. echo "***"
  16091. echo "*** If you have an old version installed, it is best to remove it, although"
  16092. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16093. else
  16094. echo "*** The test program failed to compile or link. See the file config.log for the"
  16095. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16096. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16097. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16098. fi
  16099. rm -f core conftest.err conftest.$ac_objext \
  16100. conftest$ac_exeext conftest.$ac_ext
  16101. CFLAGS="$ac_save_CFLAGS"
  16102. LIBS="$ac_save_LIBS"
  16103. fi
  16104. fi
  16105. ESD_CFLAGS=""
  16106. ESD_LIBS=""
  16107. have_esd=no
  16108. fi
  16109. rm -f conf.esdtest
  16110. if test x$have_esd = xyes; then
  16111. # Check whether --enable-esd-shared was given.
  16112. if test "${enable_esd_shared+set}" = set; then :
  16113. enableval=$enable_esd_shared;
  16114. else
  16115. enable_esd_shared=yes
  16116. fi
  16117. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16118. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16119. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16120. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16121. if test x$have_loadso != xyes && \
  16122. test x$enable_esd_shared = xyes; then
  16123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16124. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16125. fi
  16126. if test x$have_loadso = xyes && \
  16127. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16128. echo "-- dynamic libesd -> $esd_lib"
  16129. cat >>confdefs.h <<_ACEOF
  16130. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16131. _ACEOF
  16132. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16133. else
  16134. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16135. SUMMARY_audio="${SUMMARY_audio} esd"
  16136. fi
  16137. have_audio=yes
  16138. fi
  16139. fi
  16140. }
  16141. CheckPulseAudio()
  16142. {
  16143. # Check whether --enable-pulseaudio was given.
  16144. if test "${enable_pulseaudio+set}" = set; then :
  16145. enableval=$enable_pulseaudio;
  16146. else
  16147. enable_pulseaudio=yes
  16148. fi
  16149. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16150. pkg_failed=no
  16151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
  16152. $as_echo_n "checking for PULSEAUDIO... " >&6; }
  16153. if test -n "$PULSEAUDIO_CFLAGS"; then
  16154. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16155. elif test -n "$PKG_CONFIG"; then
  16156. if test -n "$PKG_CONFIG" && \
  16157. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16158. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16159. ac_status=$?
  16160. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16161. test $ac_status = 0; }; then
  16162. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16163. else
  16164. pkg_failed=yes
  16165. fi
  16166. else
  16167. pkg_failed=untried
  16168. fi
  16169. if test -n "$PULSEAUDIO_LIBS"; then
  16170. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16171. elif test -n "$PKG_CONFIG"; then
  16172. if test -n "$PKG_CONFIG" && \
  16173. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16174. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16175. ac_status=$?
  16176. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16177. test $ac_status = 0; }; then
  16178. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16179. else
  16180. pkg_failed=yes
  16181. fi
  16182. else
  16183. pkg_failed=untried
  16184. fi
  16185. if test $pkg_failed = yes; then
  16186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16187. $as_echo "no" >&6; }
  16188. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16189. _pkg_short_errors_supported=yes
  16190. else
  16191. _pkg_short_errors_supported=no
  16192. fi
  16193. if test $_pkg_short_errors_supported = yes; then
  16194. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple >= 0.9" 2>&1`
  16195. else
  16196. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple >= 0.9" 2>&1`
  16197. fi
  16198. # Put the nasty error message in config.log where it belongs
  16199. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16200. audio_pulseaudio=no
  16201. elif test $pkg_failed = untried; then
  16202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16203. $as_echo "no" >&6; }
  16204. audio_pulseaudio=no
  16205. else
  16206. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16207. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16209. $as_echo "yes" >&6; }
  16210. audio_pulseaudio=yes
  16211. fi
  16212. if test x$audio_pulseaudio = xyes; then
  16213. # Check whether --enable-pulseaudio-shared was given.
  16214. if test "${enable_pulseaudio_shared+set}" = set; then :
  16215. enableval=$enable_pulseaudio_shared;
  16216. else
  16217. enable_pulseaudio_shared=yes
  16218. fi
  16219. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16220. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16221. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16222. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16223. if test x$have_loadso != xyes && \
  16224. test x$enable_pulseaudio_shared = xyes; then
  16225. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16226. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16227. fi
  16228. if test x$have_loadso = xyes && \
  16229. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16230. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16231. cat >>confdefs.h <<_ACEOF
  16232. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16233. _ACEOF
  16234. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16235. case "$host" in
  16236. # On Solaris, pulseaudio must be linked deferred explicitly
  16237. # to prevent undefined symbol failures.
  16238. *-*-solaris*)
  16239. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16240. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16241. esac
  16242. else
  16243. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16244. SUMMARY_audio="${SUMMARY_audio} pulse"
  16245. fi
  16246. have_audio=yes
  16247. fi
  16248. fi
  16249. }
  16250. CheckARTSC()
  16251. {
  16252. # Check whether --enable-arts was given.
  16253. if test "${enable_arts+set}" = set; then :
  16254. enableval=$enable_arts;
  16255. else
  16256. enable_arts=yes
  16257. fi
  16258. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16259. # Extract the first word of "artsc-config", so it can be a program name with args.
  16260. set dummy artsc-config; ac_word=$2
  16261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16262. $as_echo_n "checking for $ac_word... " >&6; }
  16263. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16264. $as_echo_n "(cached) " >&6
  16265. else
  16266. case $ARTSCONFIG in
  16267. [\\/]* | ?:[\\/]*)
  16268. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16269. ;;
  16270. *)
  16271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16272. for as_dir in $PATH
  16273. do
  16274. IFS=$as_save_IFS
  16275. test -z "$as_dir" && as_dir=.
  16276. for ac_exec_ext in '' $ac_executable_extensions; do
  16277. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16278. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16279. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16280. break 2
  16281. fi
  16282. done
  16283. done
  16284. IFS=$as_save_IFS
  16285. ;;
  16286. esac
  16287. fi
  16288. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16289. if test -n "$ARTSCONFIG"; then
  16290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16291. $as_echo "$ARTSCONFIG" >&6; }
  16292. else
  16293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16294. $as_echo "no" >&6; }
  16295. fi
  16296. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16297. : # arts isn't installed
  16298. else
  16299. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16300. ARTS_LIBS=`$ARTSCONFIG --libs`
  16301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16302. $as_echo_n "checking for aRts development environment... " >&6; }
  16303. audio_arts=no
  16304. save_CFLAGS="$CFLAGS"
  16305. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16307. /* end confdefs.h. */
  16308. #include <artsc.h>
  16309. int
  16310. main ()
  16311. {
  16312. arts_stream_t stream;
  16313. ;
  16314. return 0;
  16315. }
  16316. _ACEOF
  16317. if ac_fn_c_try_compile "$LINENO"; then :
  16318. audio_arts=yes
  16319. fi
  16320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16321. CFLAGS="$save_CFLAGS"
  16322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16323. $as_echo "$audio_arts" >&6; }
  16324. if test x$audio_arts = xyes; then
  16325. # Check whether --enable-arts-shared was given.
  16326. if test "${enable_arts_shared+set}" = set; then :
  16327. enableval=$enable_arts_shared;
  16328. else
  16329. enable_arts_shared=yes
  16330. fi
  16331. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16332. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16333. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16334. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16335. if test x$have_loadso != xyes && \
  16336. test x$enable_arts_shared = xyes; then
  16337. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16338. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16339. fi
  16340. if test x$have_loadso = xyes && \
  16341. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16342. echo "-- dynamic libartsc -> $arts_lib"
  16343. cat >>confdefs.h <<_ACEOF
  16344. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16345. _ACEOF
  16346. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16347. else
  16348. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16349. SUMMARY_audio="${SUMMARY_audio} arts"
  16350. fi
  16351. have_audio=yes
  16352. fi
  16353. fi
  16354. fi
  16355. }
  16356. CheckNAS()
  16357. {
  16358. # Check whether --enable-nas was given.
  16359. if test "${enable_nas+set}" = set; then :
  16360. enableval=$enable_nas;
  16361. else
  16362. enable_nas=yes
  16363. fi
  16364. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16365. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16366. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16367. have_nas_hdr=yes
  16368. fi
  16369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16370. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16371. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16372. $as_echo_n "(cached) " >&6
  16373. else
  16374. ac_check_lib_save_LIBS=$LIBS
  16375. LIBS="-laudio $LIBS"
  16376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16377. /* end confdefs.h. */
  16378. /* Override any GCC internal prototype to avoid an error.
  16379. Use char because int might match the return type of a GCC
  16380. builtin and then its argument prototype would still apply. */
  16381. #ifdef __cplusplus
  16382. extern "C"
  16383. #endif
  16384. char AuOpenServer ();
  16385. int
  16386. main ()
  16387. {
  16388. return AuOpenServer ();
  16389. ;
  16390. return 0;
  16391. }
  16392. _ACEOF
  16393. if ac_fn_c_try_link "$LINENO"; then :
  16394. ac_cv_lib_audio_AuOpenServer=yes
  16395. else
  16396. ac_cv_lib_audio_AuOpenServer=no
  16397. fi
  16398. rm -f core conftest.err conftest.$ac_objext \
  16399. conftest$ac_exeext conftest.$ac_ext
  16400. LIBS=$ac_check_lib_save_LIBS
  16401. fi
  16402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16403. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16404. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16405. have_nas_lib=yes
  16406. fi
  16407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16408. $as_echo_n "checking for NAS audio support... " >&6; }
  16409. have_nas=no
  16410. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16411. have_nas=yes
  16412. NAS_LIBS="-laudio"
  16413. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16414. have_nas=yes
  16415. NAS_CFLAGS="-I/usr/X11R6/include/"
  16416. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16417. fi
  16418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16419. $as_echo "$have_nas" >&6; }
  16420. if test x$have_nas = xyes; then
  16421. # Check whether --enable-nas-shared was given.
  16422. if test "${enable_nas_shared+set}" = set; then :
  16423. enableval=$enable_nas_shared;
  16424. else
  16425. enable_nas_shared=yes
  16426. fi
  16427. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16428. if test x$have_loadso != xyes && \
  16429. test x$enable_nas_shared = xyes; then
  16430. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16431. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16432. fi
  16433. if test x$have_loadso = xyes && \
  16434. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16435. echo "-- dynamic libaudio -> $nas_lib"
  16436. cat >>confdefs.h <<_ACEOF
  16437. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16438. _ACEOF
  16439. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16440. else
  16441. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16442. SUMMARY_audio="${SUMMARY_audio} nas"
  16443. fi
  16444. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16445. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16446. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16447. have_audio=yes
  16448. fi
  16449. fi
  16450. }
  16451. CheckSNDIO()
  16452. {
  16453. # Check whether --enable-sndio was given.
  16454. if test "${enable_sndio+set}" = set; then :
  16455. enableval=$enable_sndio;
  16456. else
  16457. enable_sndio=yes
  16458. fi
  16459. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16460. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16461. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16462. have_sndio_hdr=yes
  16463. fi
  16464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16465. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16466. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16467. $as_echo_n "(cached) " >&6
  16468. else
  16469. ac_check_lib_save_LIBS=$LIBS
  16470. LIBS="-lsndio $LIBS"
  16471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16472. /* end confdefs.h. */
  16473. /* Override any GCC internal prototype to avoid an error.
  16474. Use char because int might match the return type of a GCC
  16475. builtin and then its argument prototype would still apply. */
  16476. #ifdef __cplusplus
  16477. extern "C"
  16478. #endif
  16479. char sio_open ();
  16480. int
  16481. main ()
  16482. {
  16483. return sio_open ();
  16484. ;
  16485. return 0;
  16486. }
  16487. _ACEOF
  16488. if ac_fn_c_try_link "$LINENO"; then :
  16489. ac_cv_lib_sndio_sio_open=yes
  16490. else
  16491. ac_cv_lib_sndio_sio_open=no
  16492. fi
  16493. rm -f core conftest.err conftest.$ac_objext \
  16494. conftest$ac_exeext conftest.$ac_ext
  16495. LIBS=$ac_check_lib_save_LIBS
  16496. fi
  16497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16498. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16499. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16500. have_sndio_lib=yes
  16501. fi
  16502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16503. $as_echo_n "checking for sndio audio support... " >&6; }
  16504. have_sndio=no
  16505. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16506. have_sndio=yes
  16507. SNDIO_LIBS="-lsndio"
  16508. fi
  16509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16510. $as_echo "$have_sndio" >&6; }
  16511. if test x$have_sndio = xyes; then
  16512. # Check whether --enable-sndio-shared was given.
  16513. if test "${enable_sndio_shared+set}" = set; then :
  16514. enableval=$enable_sndio_shared;
  16515. else
  16516. enable_sndio_shared=yes
  16517. fi
  16518. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16519. if test x$have_loadso != xyes && \
  16520. test x$enable_sndio_shared = xyes; then
  16521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16522. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16523. fi
  16524. if test x$have_loadso = xyes && \
  16525. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16526. echo "-- dynamic libsndio -> $sndio_lib"
  16527. cat >>confdefs.h <<_ACEOF
  16528. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16529. _ACEOF
  16530. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16531. else
  16532. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16533. SUMMARY_audio="${SUMMARY_audio} sndio"
  16534. fi
  16535. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16536. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16537. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16538. have_audio=yes
  16539. fi
  16540. fi
  16541. }
  16542. CheckFusionSound()
  16543. {
  16544. # Check whether --enable-fusionsound was given.
  16545. if test "${enable_fusionsound+set}" = set; then :
  16546. enableval=$enable_fusionsound;
  16547. else
  16548. enable_fusionsound=no
  16549. fi
  16550. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16551. pkg_failed=no
  16552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSIONSOUND" >&5
  16553. $as_echo_n "checking for FUSIONSOUND... " >&6; }
  16554. if test -n "$FUSIONSOUND_CFLAGS"; then
  16555. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16556. elif test -n "$PKG_CONFIG"; then
  16557. if test -n "$PKG_CONFIG" && \
  16558. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16559. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16560. ac_status=$?
  16561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16562. test $ac_status = 0; }; then
  16563. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16564. else
  16565. pkg_failed=yes
  16566. fi
  16567. else
  16568. pkg_failed=untried
  16569. fi
  16570. if test -n "$FUSIONSOUND_LIBS"; then
  16571. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16572. elif test -n "$PKG_CONFIG"; then
  16573. if test -n "$PKG_CONFIG" && \
  16574. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16575. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16576. ac_status=$?
  16577. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16578. test $ac_status = 0; }; then
  16579. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16580. else
  16581. pkg_failed=yes
  16582. fi
  16583. else
  16584. pkg_failed=untried
  16585. fi
  16586. if test $pkg_failed = yes; then
  16587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16588. $as_echo "no" >&6; }
  16589. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16590. _pkg_short_errors_supported=yes
  16591. else
  16592. _pkg_short_errors_supported=no
  16593. fi
  16594. if test $_pkg_short_errors_supported = yes; then
  16595. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fusionsound >= 1.1.1" 2>&1`
  16596. else
  16597. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "fusionsound >= 1.1.1" 2>&1`
  16598. fi
  16599. # Put the nasty error message in config.log where it belongs
  16600. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16601. fusionsound=no
  16602. elif test $pkg_failed = untried; then
  16603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16604. $as_echo "no" >&6; }
  16605. fusionsound=no
  16606. else
  16607. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16608. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16610. $as_echo "yes" >&6; }
  16611. fusionsound=yes
  16612. fi
  16613. if test x$fusionsound = xyes; then
  16614. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16615. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16616. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16617. # Check whether --enable-fusionsound-shared was given.
  16618. if test "${enable_fusionsound_shared+set}" = set; then :
  16619. enableval=$enable_fusionsound_shared;
  16620. else
  16621. enable_fusionsound_shared=yes
  16622. fi
  16623. fusionsound_shared=no
  16624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16625. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16626. if test x$have_loadso != xyes && \
  16627. test x$enable_fusionsound_shared = xyes; then
  16628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16629. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16630. fi
  16631. if test x$have_loadso = xyes && \
  16632. test x$enable_fusionsound_shared = xyes; then
  16633. cat >>confdefs.h <<_ACEOF
  16634. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16635. _ACEOF
  16636. fusionsound_shared=yes
  16637. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16638. else
  16639. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16640. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16641. fi
  16642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16643. $as_echo "$fusionsound_shared" >&6; }
  16644. have_audio=yes
  16645. fi
  16646. fi
  16647. }
  16648. CheckDiskAudio()
  16649. {
  16650. # Check whether --enable-diskaudio was given.
  16651. if test "${enable_diskaudio+set}" = set; then :
  16652. enableval=$enable_diskaudio;
  16653. else
  16654. enable_diskaudio=yes
  16655. fi
  16656. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16657. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16658. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16659. SUMMARY_audio="${SUMMARY_audio} disk"
  16660. fi
  16661. }
  16662. CheckDummyAudio()
  16663. {
  16664. # Check whether --enable-dummyaudio was given.
  16665. if test "${enable_dummyaudio+set}" = set; then :
  16666. enableval=$enable_dummyaudio;
  16667. else
  16668. enable_dummyaudio=yes
  16669. fi
  16670. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16671. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16672. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16673. SUMMARY_audio="${SUMMARY_audio} dummy"
  16674. fi
  16675. }
  16676. CheckLibSampleRate()
  16677. {
  16678. # Check whether --enable-libsamplerate was given.
  16679. if test "${enable_libsamplerate+set}" = set; then :
  16680. enableval=$enable_libsamplerate;
  16681. else
  16682. enable_libsamplerate=yes
  16683. fi
  16684. if test x$enable_libsamplerate = xyes; then
  16685. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16686. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16687. have_samplerate_h_hdr=yes
  16688. else
  16689. have_samplerate_h_hdr=no
  16690. fi
  16691. if test x$have_samplerate_h_hdr = xyes; then
  16692. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16693. # Check whether --enable-libsamplerate-shared was given.
  16694. if test "${enable_libsamplerate_shared+set}" = set; then :
  16695. enableval=$enable_libsamplerate_shared;
  16696. else
  16697. enable_libsamplerate_shared=yes
  16698. fi
  16699. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16700. if test x$have_loadso != xyes && \
  16701. test x$enable_libsamplerate_shared = xyes; then
  16702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16703. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16704. fi
  16705. if test x$have_loadso = xyes && \
  16706. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16707. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16708. cat >>confdefs.h <<_ACEOF
  16709. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16710. _ACEOF
  16711. else
  16712. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16713. fi
  16714. fi
  16715. fi
  16716. }
  16717. CheckARM()
  16718. {
  16719. # Check whether --enable-arm-simd was given.
  16720. if test "${enable_arm_simd+set}" = set; then :
  16721. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16722. else
  16723. enable_arm_simd=no
  16724. fi
  16725. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16726. save_CFLAGS="$CFLAGS"
  16727. have_arm_simd=no
  16728. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16730. $as_echo_n "checking for ARM SIMD... " >&6; }
  16731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16732. /* end confdefs.h. */
  16733. .text
  16734. .arch armv6
  16735. .object_arch armv4
  16736. .arm
  16737. .altmacro
  16738. #ifndef __ARM_EABI__
  16739. #error EABI is required (to be sure that calling conventions are compatible)
  16740. #endif
  16741. pld [r0]
  16742. uqadd8 r0, r0, r0
  16743. _ACEOF
  16744. if ac_fn_c_try_compile "$LINENO"; then :
  16745. have_arm_simd=yes
  16746. fi
  16747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16749. $as_echo "$have_arm_simd" >&6; }
  16750. CFLAGS="$save_CFLAGS"
  16751. if test x$have_arm_simd = xyes; then
  16752. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16753. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16754. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16755. fi
  16756. fi
  16757. }
  16758. CheckNEON()
  16759. {
  16760. # Check whether --enable-arm-neon was given.
  16761. if test "${enable_arm_neon+set}" = set; then :
  16762. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16763. else
  16764. enable_arm_neon=no
  16765. fi
  16766. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16767. save_CFLAGS="$CFLAGS"
  16768. have_arm_neon=no
  16769. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16771. $as_echo_n "checking for ARM NEON... " >&6; }
  16772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16773. /* end confdefs.h. */
  16774. .text
  16775. .fpu neon
  16776. .arch armv7a
  16777. .object_arch armv4
  16778. .eabi_attribute 10, 0
  16779. .arm
  16780. .altmacro
  16781. #ifndef __ARM_EABI__
  16782. #error EABI is required (to be sure that calling conventions are compatible)
  16783. #endif
  16784. pld [r0]
  16785. vmovn.u16 d0, q0
  16786. _ACEOF
  16787. if ac_fn_c_try_compile "$LINENO"; then :
  16788. have_arm_neon=yes
  16789. fi
  16790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16792. $as_echo "$have_arm_neon" >&6; }
  16793. CFLAGS="$save_CFLAGS"
  16794. if test x$have_arm_neon = xyes; then
  16795. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16796. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16797. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16798. fi
  16799. fi
  16800. }
  16801. CheckVisibilityHidden()
  16802. {
  16803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16804. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16805. have_gcc_fvisibility=no
  16806. visibility_CFLAGS="-fvisibility=hidden"
  16807. save_CFLAGS="$CFLAGS"
  16808. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16810. /* end confdefs.h. */
  16811. #if !defined(__GNUC__) || __GNUC__ < 4
  16812. #error SDL only uses visibility attributes in GCC 4 or newer
  16813. #endif
  16814. int
  16815. main ()
  16816. {
  16817. ;
  16818. return 0;
  16819. }
  16820. _ACEOF
  16821. if ac_fn_c_try_compile "$LINENO"; then :
  16822. have_gcc_fvisibility=yes
  16823. fi
  16824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16826. $as_echo "$have_gcc_fvisibility" >&6; }
  16827. CFLAGS="$save_CFLAGS"
  16828. if test x$have_gcc_fvisibility = xyes; then
  16829. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16830. fi
  16831. }
  16832. CheckNoStrictAliasing()
  16833. {
  16834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16835. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16836. have_gcc_no_strict_aliasing=no
  16837. save_CFLAGS="$CFLAGS"
  16838. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16840. /* end confdefs.h. */
  16841. int x = 0;
  16842. int
  16843. main ()
  16844. {
  16845. ;
  16846. return 0;
  16847. }
  16848. _ACEOF
  16849. if ac_fn_c_try_compile "$LINENO"; then :
  16850. have_gcc_no_strict_aliasing=yes
  16851. fi
  16852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  16854. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  16855. CFLAGS="$save_CFLAGS"
  16856. if test x$have_gcc_no_strict_aliasing = xyes; then
  16857. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  16858. fi
  16859. }
  16860. CheckStackBoundary()
  16861. {
  16862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16863. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16864. have_gcc_preferred_stack_boundary=no
  16865. save_CFLAGS="$CFLAGS"
  16866. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16868. /* end confdefs.h. */
  16869. int x = 0;
  16870. int
  16871. main ()
  16872. {
  16873. ;
  16874. return 0;
  16875. }
  16876. _ACEOF
  16877. if ac_fn_c_try_compile "$LINENO"; then :
  16878. have_gcc_preferred_stack_boundary=yes
  16879. fi
  16880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16882. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16883. CFLAGS="$save_CFLAGS"
  16884. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16885. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16886. fi
  16887. }
  16888. CheckDeclarationAfterStatement()
  16889. {
  16890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16891. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16892. have_gcc_declaration_after_statement=no
  16893. save_CFLAGS="$CFLAGS"
  16894. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16896. /* end confdefs.h. */
  16897. int x = 0;
  16898. int
  16899. main ()
  16900. {
  16901. ;
  16902. return 0;
  16903. }
  16904. _ACEOF
  16905. if ac_fn_c_try_compile "$LINENO"; then :
  16906. have_gcc_declaration_after_statement=yes
  16907. fi
  16908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16910. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16911. CFLAGS="$save_CFLAGS"
  16912. if test x$have_gcc_declaration_after_statement = xyes; then
  16913. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16914. fi
  16915. }
  16916. CheckWarnAll()
  16917. {
  16918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16919. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16920. have_gcc_Wall=no
  16921. save_CFLAGS="$CFLAGS"
  16922. CFLAGS="$save_CFLAGS -Wall"
  16923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16924. /* end confdefs.h. */
  16925. int x = 0;
  16926. int
  16927. main ()
  16928. {
  16929. ;
  16930. return 0;
  16931. }
  16932. _ACEOF
  16933. if ac_fn_c_try_compile "$LINENO"; then :
  16934. have_gcc_Wall=yes
  16935. fi
  16936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16938. $as_echo "$have_gcc_Wall" >&6; }
  16939. CFLAGS="$save_CFLAGS"
  16940. if test x$have_gcc_Wall = xyes; then
  16941. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16943. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16944. need_gcc_Wno_multichar=no
  16945. case "$host" in
  16946. *-*-haiku*)
  16947. need_gcc_Wno_multichar=yes
  16948. ;;
  16949. esac
  16950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16951. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16952. if test x$need_gcc_Wno_multichar = xyes; then
  16953. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16954. fi
  16955. fi
  16956. }
  16957. CheckWayland()
  16958. {
  16959. # Check whether --enable-video-wayland was given.
  16960. if test "${enable_video_wayland+set}" = set; then :
  16961. enableval=$enable_video_wayland;
  16962. else
  16963. enable_video_wayland=yes
  16964. fi
  16965. # Check whether --enable-video-wayland-qt-touch was given.
  16966. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16967. enableval=$enable_video_wayland_qt_touch;
  16968. else
  16969. enable_video_wayland_qt_touch=yes
  16970. fi
  16971. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16973. $as_echo_n "checking for Wayland support... " >&6; }
  16974. video_wayland=no
  16975. if test x$video_opengl_egl = xyes && \
  16976. test x$video_opengles_v2 = xyes; then
  16977. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl xkbcommon ; then
  16978. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16979. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16980. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16981. video_wayland=yes
  16982. fi
  16983. fi
  16984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16985. $as_echo "$video_wayland" >&6; }
  16986. if test x$video_wayland = xyes; then
  16987. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16988. if test x$enable_video_wayland_qt_touch = xyes; then
  16989. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16990. fi
  16991. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16992. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16993. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16994. # Check whether --enable-wayland-shared was given.
  16995. if test "${enable_wayland_shared+set}" = set; then :
  16996. enableval=$enable_wayland_shared;
  16997. else
  16998. enable_wayland_shared=maybe
  16999. fi
  17000. case "$host" in
  17001. *)
  17002. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17003. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17004. if test x$wayland_egl_lib = x; then
  17005. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17006. fi
  17007. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17008. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17009. ;;
  17010. esac
  17011. if test x$enable_wayland_shared = xmaybe; then
  17012. enable_wayland_shared=yes
  17013. fi
  17014. if test x$have_loadso != xyes && \
  17015. test x$enable_wayland_shared = xyes; then
  17016. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17017. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17018. enable_wayland_shared=no
  17019. fi
  17020. if test x$have_loadso = xyes && \
  17021. test x$enable_wayland_shared = xyes && \
  17022. test x$wayland_client_lib != x && \
  17023. test x$wayland_egl_lib != x && \
  17024. test x$wayland_cursor_lib != x && \
  17025. test x$xkbcommon_lib != x; then
  17026. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17027. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17028. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17029. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17030. cat >>confdefs.h <<_ACEOF
  17031. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17032. _ACEOF
  17033. cat >>confdefs.h <<_ACEOF
  17034. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17035. _ACEOF
  17036. cat >>confdefs.h <<_ACEOF
  17037. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17038. _ACEOF
  17039. cat >>confdefs.h <<_ACEOF
  17040. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17041. _ACEOF
  17042. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17043. else
  17044. enable_wayland_shared=no
  17045. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17046. SUMMARY_video="${SUMMARY_video} wayland"
  17047. fi
  17048. have_video=yes
  17049. fi
  17050. fi
  17051. }
  17052. CheckNativeClient()
  17053. {
  17054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17055. /* end confdefs.h. */
  17056. #if !defined(__native_client__)
  17057. #error "NO NACL"
  17058. #endif
  17059. int
  17060. main ()
  17061. {
  17062. ;
  17063. return 0;
  17064. }
  17065. _ACEOF
  17066. if ac_fn_c_try_compile "$LINENO"; then :
  17067. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17068. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17069. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17070. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17071. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17072. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17073. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17074. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17075. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17076. SUMMARY_audio="${SUMMARY_audio} nacl"
  17077. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17078. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17079. fi
  17080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17081. }
  17082. CheckRPI()
  17083. {
  17084. # Check whether --enable-video-rpi was given.
  17085. if test "${enable_video_rpi+set}" = set; then :
  17086. enableval=$enable_video_rpi;
  17087. else
  17088. enable_video_rpi=yes
  17089. fi
  17090. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17091. pkg_failed=no
  17092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPI" >&5
  17093. $as_echo_n "checking for RPI... " >&6; }
  17094. if test -n "$RPI_CFLAGS"; then
  17095. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17096. elif test -n "$PKG_CONFIG"; then
  17097. if test -n "$PKG_CONFIG" && \
  17098. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17099. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17100. ac_status=$?
  17101. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17102. test $ac_status = 0; }; then
  17103. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17104. else
  17105. pkg_failed=yes
  17106. fi
  17107. else
  17108. pkg_failed=untried
  17109. fi
  17110. if test -n "$RPI_LIBS"; then
  17111. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17112. elif test -n "$PKG_CONFIG"; then
  17113. if test -n "$PKG_CONFIG" && \
  17114. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17115. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17116. ac_status=$?
  17117. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17118. test $ac_status = 0; }; then
  17119. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17120. else
  17121. pkg_failed=yes
  17122. fi
  17123. else
  17124. pkg_failed=untried
  17125. fi
  17126. if test $pkg_failed = yes; then
  17127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17128. $as_echo "no" >&6; }
  17129. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17130. _pkg_short_errors_supported=yes
  17131. else
  17132. _pkg_short_errors_supported=no
  17133. fi
  17134. if test $_pkg_short_errors_supported = yes; then
  17135. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "bcm_host brcmegl" 2>&1`
  17136. else
  17137. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors "bcm_host brcmegl" 2>&1`
  17138. fi
  17139. # Put the nasty error message in config.log where it belongs
  17140. echo "$RPI_PKG_ERRORS" >&5
  17141. video_rpi=no
  17142. elif test $pkg_failed = untried; then
  17143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17144. $as_echo "no" >&6; }
  17145. video_rpi=no
  17146. else
  17147. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17148. RPI_LIBS=$pkg_cv_RPI_LIBS
  17149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17150. $as_echo "yes" >&6; }
  17151. video_rpi=yes
  17152. fi
  17153. if test x$video_rpi = xno; then
  17154. if test x$ARCH = xnetbsd; then
  17155. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17156. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17157. else
  17158. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17159. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17160. fi
  17161. fi
  17162. # Save the original compiler flags and libraries
  17163. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17164. # Add the Raspberry Pi compiler flags and libraries
  17165. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17167. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17168. have_video_rpi=no
  17169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17170. /* end confdefs.h. */
  17171. #include <bcm_host.h>
  17172. int
  17173. main ()
  17174. {
  17175. bcm_host_init();
  17176. ;
  17177. return 0;
  17178. }
  17179. _ACEOF
  17180. if ac_fn_c_try_link "$LINENO"; then :
  17181. have_video_rpi=yes
  17182. fi
  17183. rm -f core conftest.err conftest.$ac_objext \
  17184. conftest$ac_exeext conftest.$ac_ext
  17185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17186. $as_echo "$have_video_rpi" >&6; }
  17187. # Restore the compiler flags and libraries
  17188. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17189. if test x$have_video_rpi = xyes; then
  17190. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17191. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17192. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17193. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17194. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17195. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17196. SUMMARY_video="${SUMMARY_video} rpi"
  17197. fi
  17198. fi
  17199. }
  17200. CheckX11()
  17201. {
  17202. # Check whether --enable-video-x11 was given.
  17203. if test "${enable_video_x11+set}" = set; then :
  17204. enableval=$enable_video_x11;
  17205. else
  17206. enable_video_x11=yes
  17207. fi
  17208. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17209. case "$host" in
  17210. *-*-darwin*)
  17211. # This isn't necessary for X11, but fixes GLX detection
  17212. if test "x$x_includes" = xNONE && \
  17213. test "x$x_libraries" = xNONE && \
  17214. test -d /opt/X11/include && \
  17215. test -d /opt/X11/lib; then
  17216. x_includes="/opt/X11/include"
  17217. x_libraries="/opt/X11/lib"
  17218. fi
  17219. ;;
  17220. esac
  17221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17222. $as_echo_n "checking for X... " >&6; }
  17223. # Check whether --with-x was given.
  17224. if test "${with_x+set}" = set; then :
  17225. withval=$with_x;
  17226. fi
  17227. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17228. if test "x$with_x" = xno; then
  17229. # The user explicitly disabled X.
  17230. have_x=disabled
  17231. else
  17232. case $x_includes,$x_libraries in #(
  17233. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17234. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17235. $as_echo_n "(cached) " >&6
  17236. else
  17237. # One or both of the vars are not set, and there is no cached value.
  17238. ac_x_includes=no ac_x_libraries=no
  17239. rm -f -r conftest.dir
  17240. if mkdir conftest.dir; then
  17241. cd conftest.dir
  17242. cat >Imakefile <<'_ACEOF'
  17243. incroot:
  17244. @echo incroot='${INCROOT}'
  17245. usrlibdir:
  17246. @echo usrlibdir='${USRLIBDIR}'
  17247. libdir:
  17248. @echo libdir='${LIBDIR}'
  17249. _ACEOF
  17250. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17251. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17252. for ac_var in incroot usrlibdir libdir; do
  17253. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17254. done
  17255. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17256. for ac_extension in a so sl dylib la dll; do
  17257. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17258. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17259. ac_im_usrlibdir=$ac_im_libdir; break
  17260. fi
  17261. done
  17262. # Screen out bogus values from the imake configuration. They are
  17263. # bogus both because they are the default anyway, and because
  17264. # using them would break gcc on systems where it needs fixed includes.
  17265. case $ac_im_incroot in
  17266. /usr/include) ac_x_includes= ;;
  17267. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17268. esac
  17269. case $ac_im_usrlibdir in
  17270. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17271. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17272. esac
  17273. fi
  17274. cd ..
  17275. rm -f -r conftest.dir
  17276. fi
  17277. # Standard set of common directories for X headers.
  17278. # Check X11 before X11Rn because it is often a symlink to the current release.
  17279. ac_x_header_dirs='
  17280. /usr/X11/include
  17281. /usr/X11R7/include
  17282. /usr/X11R6/include
  17283. /usr/X11R5/include
  17284. /usr/X11R4/include
  17285. /usr/include/X11
  17286. /usr/include/X11R7
  17287. /usr/include/X11R6
  17288. /usr/include/X11R5
  17289. /usr/include/X11R4
  17290. /usr/local/X11/include
  17291. /usr/local/X11R7/include
  17292. /usr/local/X11R6/include
  17293. /usr/local/X11R5/include
  17294. /usr/local/X11R4/include
  17295. /usr/local/include/X11
  17296. /usr/local/include/X11R7
  17297. /usr/local/include/X11R6
  17298. /usr/local/include/X11R5
  17299. /usr/local/include/X11R4
  17300. /usr/X386/include
  17301. /usr/x386/include
  17302. /usr/XFree86/include/X11
  17303. /usr/include
  17304. /usr/local/include
  17305. /usr/unsupported/include
  17306. /usr/athena/include
  17307. /usr/local/x11r5/include
  17308. /usr/lpp/Xamples/include
  17309. /usr/openwin/include
  17310. /usr/openwin/share/include'
  17311. if test "$ac_x_includes" = no; then
  17312. # Guess where to find include files, by looking for Xlib.h.
  17313. # First, try using that file with no special directory specified.
  17314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17315. /* end confdefs.h. */
  17316. #include <X11/Xlib.h>
  17317. _ACEOF
  17318. if ac_fn_c_try_cpp "$LINENO"; then :
  17319. # We can compile using X headers with no special include directory.
  17320. ac_x_includes=
  17321. else
  17322. for ac_dir in $ac_x_header_dirs; do
  17323. if test -r "$ac_dir/X11/Xlib.h"; then
  17324. ac_x_includes=$ac_dir
  17325. break
  17326. fi
  17327. done
  17328. fi
  17329. rm -f conftest.err conftest.i conftest.$ac_ext
  17330. fi # $ac_x_includes = no
  17331. if test "$ac_x_libraries" = no; then
  17332. # Check for the libraries.
  17333. # See if we find them without any special options.
  17334. # Don't add to $LIBS permanently.
  17335. ac_save_LIBS=$LIBS
  17336. LIBS="-lX11 $LIBS"
  17337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17338. /* end confdefs.h. */
  17339. #include <X11/Xlib.h>
  17340. int
  17341. main ()
  17342. {
  17343. XrmInitialize ()
  17344. ;
  17345. return 0;
  17346. }
  17347. _ACEOF
  17348. if ac_fn_c_try_link "$LINENO"; then :
  17349. LIBS=$ac_save_LIBS
  17350. # We can link X programs with no special library path.
  17351. ac_x_libraries=
  17352. else
  17353. LIBS=$ac_save_LIBS
  17354. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17355. do
  17356. # Don't even attempt the hair of trying to link an X program!
  17357. for ac_extension in a so sl dylib la dll; do
  17358. if test -r "$ac_dir/libX11.$ac_extension"; then
  17359. ac_x_libraries=$ac_dir
  17360. break 2
  17361. fi
  17362. done
  17363. done
  17364. fi
  17365. rm -f core conftest.err conftest.$ac_objext \
  17366. conftest$ac_exeext conftest.$ac_ext
  17367. fi # $ac_x_libraries = no
  17368. case $ac_x_includes,$ac_x_libraries in #(
  17369. no,* | *,no | *\'*)
  17370. # Didn't find X, or a directory has "'" in its name.
  17371. ac_cv_have_x="have_x=no";; #(
  17372. *)
  17373. # Record where we found X for the cache.
  17374. ac_cv_have_x="have_x=yes\
  17375. ac_x_includes='$ac_x_includes'\
  17376. ac_x_libraries='$ac_x_libraries'"
  17377. esac
  17378. fi
  17379. ;; #(
  17380. *) have_x=yes;;
  17381. esac
  17382. eval "$ac_cv_have_x"
  17383. fi # $with_x != no
  17384. if test "$have_x" != yes; then
  17385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17386. $as_echo "$have_x" >&6; }
  17387. no_x=yes
  17388. else
  17389. # If each of the values was on the command line, it overrides each guess.
  17390. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17391. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17392. # Update the cache value to reflect the command line values.
  17393. ac_cv_have_x="have_x=yes\
  17394. ac_x_includes='$x_includes'\
  17395. ac_x_libraries='$x_libraries'"
  17396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17397. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17398. fi
  17399. if test "$no_x" = yes; then
  17400. # Not all programs may use this symbol, but it does not hurt to define it.
  17401. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17402. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17403. else
  17404. if test -n "$x_includes"; then
  17405. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17406. fi
  17407. # It would also be nice to do this for all -L options, not just this one.
  17408. if test -n "$x_libraries"; then
  17409. X_LIBS="$X_LIBS -L$x_libraries"
  17410. # For Solaris; some versions of Sun CC require a space after -R and
  17411. # others require no space. Words are not sufficient . . . .
  17412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17413. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17414. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17415. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17416. ac_c_werror_flag=yes
  17417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17418. /* end confdefs.h. */
  17419. int
  17420. main ()
  17421. {
  17422. ;
  17423. return 0;
  17424. }
  17425. _ACEOF
  17426. if ac_fn_c_try_link "$LINENO"; then :
  17427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17428. $as_echo "no" >&6; }
  17429. X_LIBS="$X_LIBS -R$x_libraries"
  17430. else
  17431. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17433. /* end confdefs.h. */
  17434. int
  17435. main ()
  17436. {
  17437. ;
  17438. return 0;
  17439. }
  17440. _ACEOF
  17441. if ac_fn_c_try_link "$LINENO"; then :
  17442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17443. $as_echo "yes" >&6; }
  17444. X_LIBS="$X_LIBS -R $x_libraries"
  17445. else
  17446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17447. $as_echo "neither works" >&6; }
  17448. fi
  17449. rm -f core conftest.err conftest.$ac_objext \
  17450. conftest$ac_exeext conftest.$ac_ext
  17451. fi
  17452. rm -f core conftest.err conftest.$ac_objext \
  17453. conftest$ac_exeext conftest.$ac_ext
  17454. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17455. LIBS=$ac_xsave_LIBS
  17456. fi
  17457. # Check for system-dependent libraries X programs must link with.
  17458. # Do this before checking for the system-independent R6 libraries
  17459. # (-lICE), since we may need -lsocket or whatever for X linking.
  17460. if test "$ISC" = yes; then
  17461. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17462. else
  17463. # Martyn Johnson says this is needed for Ultrix, if the X
  17464. # libraries were built with DECnet support. And Karl Berry says
  17465. # the Alpha needs dnet_stub (dnet does not exist).
  17466. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17468. /* end confdefs.h. */
  17469. /* Override any GCC internal prototype to avoid an error.
  17470. Use char because int might match the return type of a GCC
  17471. builtin and then its argument prototype would still apply. */
  17472. #ifdef __cplusplus
  17473. extern "C"
  17474. #endif
  17475. char XOpenDisplay ();
  17476. int
  17477. main ()
  17478. {
  17479. return XOpenDisplay ();
  17480. ;
  17481. return 0;
  17482. }
  17483. _ACEOF
  17484. if ac_fn_c_try_link "$LINENO"; then :
  17485. else
  17486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17487. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17488. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17489. $as_echo_n "(cached) " >&6
  17490. else
  17491. ac_check_lib_save_LIBS=$LIBS
  17492. LIBS="-ldnet $LIBS"
  17493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17494. /* end confdefs.h. */
  17495. /* Override any GCC internal prototype to avoid an error.
  17496. Use char because int might match the return type of a GCC
  17497. builtin and then its argument prototype would still apply. */
  17498. #ifdef __cplusplus
  17499. extern "C"
  17500. #endif
  17501. char dnet_ntoa ();
  17502. int
  17503. main ()
  17504. {
  17505. return dnet_ntoa ();
  17506. ;
  17507. return 0;
  17508. }
  17509. _ACEOF
  17510. if ac_fn_c_try_link "$LINENO"; then :
  17511. ac_cv_lib_dnet_dnet_ntoa=yes
  17512. else
  17513. ac_cv_lib_dnet_dnet_ntoa=no
  17514. fi
  17515. rm -f core conftest.err conftest.$ac_objext \
  17516. conftest$ac_exeext conftest.$ac_ext
  17517. LIBS=$ac_check_lib_save_LIBS
  17518. fi
  17519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17520. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17521. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17522. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17523. fi
  17524. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17526. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17527. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17528. $as_echo_n "(cached) " >&6
  17529. else
  17530. ac_check_lib_save_LIBS=$LIBS
  17531. LIBS="-ldnet_stub $LIBS"
  17532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17533. /* end confdefs.h. */
  17534. /* Override any GCC internal prototype to avoid an error.
  17535. Use char because int might match the return type of a GCC
  17536. builtin and then its argument prototype would still apply. */
  17537. #ifdef __cplusplus
  17538. extern "C"
  17539. #endif
  17540. char dnet_ntoa ();
  17541. int
  17542. main ()
  17543. {
  17544. return dnet_ntoa ();
  17545. ;
  17546. return 0;
  17547. }
  17548. _ACEOF
  17549. if ac_fn_c_try_link "$LINENO"; then :
  17550. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17551. else
  17552. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17553. fi
  17554. rm -f core conftest.err conftest.$ac_objext \
  17555. conftest$ac_exeext conftest.$ac_ext
  17556. LIBS=$ac_check_lib_save_LIBS
  17557. fi
  17558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17559. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17560. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17561. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17562. fi
  17563. fi
  17564. fi
  17565. rm -f core conftest.err conftest.$ac_objext \
  17566. conftest$ac_exeext conftest.$ac_ext
  17567. LIBS="$ac_xsave_LIBS"
  17568. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17569. # to get the SysV transport functions.
  17570. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17571. # needs -lnsl.
  17572. # The nsl library prevents programs from opening the X display
  17573. # on Irix 5.2, according to T.E. Dickey.
  17574. # The functions gethostbyname, getservbyname, and inet_addr are
  17575. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17576. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17577. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17578. fi
  17579. if test $ac_cv_func_gethostbyname = no; then
  17580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17581. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17582. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17583. $as_echo_n "(cached) " >&6
  17584. else
  17585. ac_check_lib_save_LIBS=$LIBS
  17586. LIBS="-lnsl $LIBS"
  17587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17588. /* end confdefs.h. */
  17589. /* Override any GCC internal prototype to avoid an error.
  17590. Use char because int might match the return type of a GCC
  17591. builtin and then its argument prototype would still apply. */
  17592. #ifdef __cplusplus
  17593. extern "C"
  17594. #endif
  17595. char gethostbyname ();
  17596. int
  17597. main ()
  17598. {
  17599. return gethostbyname ();
  17600. ;
  17601. return 0;
  17602. }
  17603. _ACEOF
  17604. if ac_fn_c_try_link "$LINENO"; then :
  17605. ac_cv_lib_nsl_gethostbyname=yes
  17606. else
  17607. ac_cv_lib_nsl_gethostbyname=no
  17608. fi
  17609. rm -f core conftest.err conftest.$ac_objext \
  17610. conftest$ac_exeext conftest.$ac_ext
  17611. LIBS=$ac_check_lib_save_LIBS
  17612. fi
  17613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17614. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17615. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17616. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17617. fi
  17618. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17620. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17621. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17622. $as_echo_n "(cached) " >&6
  17623. else
  17624. ac_check_lib_save_LIBS=$LIBS
  17625. LIBS="-lbsd $LIBS"
  17626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17627. /* end confdefs.h. */
  17628. /* Override any GCC internal prototype to avoid an error.
  17629. Use char because int might match the return type of a GCC
  17630. builtin and then its argument prototype would still apply. */
  17631. #ifdef __cplusplus
  17632. extern "C"
  17633. #endif
  17634. char gethostbyname ();
  17635. int
  17636. main ()
  17637. {
  17638. return gethostbyname ();
  17639. ;
  17640. return 0;
  17641. }
  17642. _ACEOF
  17643. if ac_fn_c_try_link "$LINENO"; then :
  17644. ac_cv_lib_bsd_gethostbyname=yes
  17645. else
  17646. ac_cv_lib_bsd_gethostbyname=no
  17647. fi
  17648. rm -f core conftest.err conftest.$ac_objext \
  17649. conftest$ac_exeext conftest.$ac_ext
  17650. LIBS=$ac_check_lib_save_LIBS
  17651. fi
  17652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17653. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17654. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17655. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17656. fi
  17657. fi
  17658. fi
  17659. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17660. # socket/setsockopt and other routines are undefined under SCO ODT
  17661. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17662. # on later versions), says Simon Leinen: it contains gethostby*
  17663. # variants that don't use the name server (or something). -lsocket
  17664. # must be given before -lnsl if both are needed. We assume that
  17665. # if connect needs -lnsl, so does gethostbyname.
  17666. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17667. if test "x$ac_cv_func_connect" = xyes; then :
  17668. fi
  17669. if test $ac_cv_func_connect = no; then
  17670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17671. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17672. if ${ac_cv_lib_socket_connect+:} false; then :
  17673. $as_echo_n "(cached) " >&6
  17674. else
  17675. ac_check_lib_save_LIBS=$LIBS
  17676. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17678. /* end confdefs.h. */
  17679. /* Override any GCC internal prototype to avoid an error.
  17680. Use char because int might match the return type of a GCC
  17681. builtin and then its argument prototype would still apply. */
  17682. #ifdef __cplusplus
  17683. extern "C"
  17684. #endif
  17685. char connect ();
  17686. int
  17687. main ()
  17688. {
  17689. return connect ();
  17690. ;
  17691. return 0;
  17692. }
  17693. _ACEOF
  17694. if ac_fn_c_try_link "$LINENO"; then :
  17695. ac_cv_lib_socket_connect=yes
  17696. else
  17697. ac_cv_lib_socket_connect=no
  17698. fi
  17699. rm -f core conftest.err conftest.$ac_objext \
  17700. conftest$ac_exeext conftest.$ac_ext
  17701. LIBS=$ac_check_lib_save_LIBS
  17702. fi
  17703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17704. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17705. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17706. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17707. fi
  17708. fi
  17709. # Guillermo Gomez says -lposix is necessary on A/UX.
  17710. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17711. if test "x$ac_cv_func_remove" = xyes; then :
  17712. fi
  17713. if test $ac_cv_func_remove = no; then
  17714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17715. $as_echo_n "checking for remove in -lposix... " >&6; }
  17716. if ${ac_cv_lib_posix_remove+:} false; then :
  17717. $as_echo_n "(cached) " >&6
  17718. else
  17719. ac_check_lib_save_LIBS=$LIBS
  17720. LIBS="-lposix $LIBS"
  17721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17722. /* end confdefs.h. */
  17723. /* Override any GCC internal prototype to avoid an error.
  17724. Use char because int might match the return type of a GCC
  17725. builtin and then its argument prototype would still apply. */
  17726. #ifdef __cplusplus
  17727. extern "C"
  17728. #endif
  17729. char remove ();
  17730. int
  17731. main ()
  17732. {
  17733. return remove ();
  17734. ;
  17735. return 0;
  17736. }
  17737. _ACEOF
  17738. if ac_fn_c_try_link "$LINENO"; then :
  17739. ac_cv_lib_posix_remove=yes
  17740. else
  17741. ac_cv_lib_posix_remove=no
  17742. fi
  17743. rm -f core conftest.err conftest.$ac_objext \
  17744. conftest$ac_exeext conftest.$ac_ext
  17745. LIBS=$ac_check_lib_save_LIBS
  17746. fi
  17747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17748. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17749. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17750. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17751. fi
  17752. fi
  17753. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17754. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17755. if test "x$ac_cv_func_shmat" = xyes; then :
  17756. fi
  17757. if test $ac_cv_func_shmat = no; then
  17758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17759. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17760. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17761. $as_echo_n "(cached) " >&6
  17762. else
  17763. ac_check_lib_save_LIBS=$LIBS
  17764. LIBS="-lipc $LIBS"
  17765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17766. /* end confdefs.h. */
  17767. /* Override any GCC internal prototype to avoid an error.
  17768. Use char because int might match the return type of a GCC
  17769. builtin and then its argument prototype would still apply. */
  17770. #ifdef __cplusplus
  17771. extern "C"
  17772. #endif
  17773. char shmat ();
  17774. int
  17775. main ()
  17776. {
  17777. return shmat ();
  17778. ;
  17779. return 0;
  17780. }
  17781. _ACEOF
  17782. if ac_fn_c_try_link "$LINENO"; then :
  17783. ac_cv_lib_ipc_shmat=yes
  17784. else
  17785. ac_cv_lib_ipc_shmat=no
  17786. fi
  17787. rm -f core conftest.err conftest.$ac_objext \
  17788. conftest$ac_exeext conftest.$ac_ext
  17789. LIBS=$ac_check_lib_save_LIBS
  17790. fi
  17791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17792. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17793. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17794. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17795. fi
  17796. fi
  17797. fi
  17798. # Check for libraries that X11R6 Xt/Xaw programs need.
  17799. ac_save_LDFLAGS=$LDFLAGS
  17800. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17801. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17802. # check for ICE first), but we must link in the order -lSM -lICE or
  17803. # we get undefined symbols. So assume we have SM if we have ICE.
  17804. # These have to be linked with before -lX11, unlike the other
  17805. # libraries we check for below, so use a different variable.
  17806. # John Interrante, Karl Berry
  17807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17808. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17809. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17810. $as_echo_n "(cached) " >&6
  17811. else
  17812. ac_check_lib_save_LIBS=$LIBS
  17813. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17815. /* end confdefs.h. */
  17816. /* Override any GCC internal prototype to avoid an error.
  17817. Use char because int might match the return type of a GCC
  17818. builtin and then its argument prototype would still apply. */
  17819. #ifdef __cplusplus
  17820. extern "C"
  17821. #endif
  17822. char IceConnectionNumber ();
  17823. int
  17824. main ()
  17825. {
  17826. return IceConnectionNumber ();
  17827. ;
  17828. return 0;
  17829. }
  17830. _ACEOF
  17831. if ac_fn_c_try_link "$LINENO"; then :
  17832. ac_cv_lib_ICE_IceConnectionNumber=yes
  17833. else
  17834. ac_cv_lib_ICE_IceConnectionNumber=no
  17835. fi
  17836. rm -f core conftest.err conftest.$ac_objext \
  17837. conftest$ac_exeext conftest.$ac_ext
  17838. LIBS=$ac_check_lib_save_LIBS
  17839. fi
  17840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17841. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17842. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17843. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17844. fi
  17845. LDFLAGS=$ac_save_LDFLAGS
  17846. fi
  17847. if test x$have_x = xyes; then
  17848. # Check whether --enable-x11-shared was given.
  17849. if test "${enable_x11_shared+set}" = set; then :
  17850. enableval=$enable_x11_shared;
  17851. else
  17852. enable_x11_shared=maybe
  17853. fi
  17854. case "$host" in
  17855. *-*-darwin*)
  17856. # Apple now puts this in /opt/X11
  17857. x11_lib='/opt/X11/lib/libX11.6.dylib'
  17858. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  17859. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  17860. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  17861. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  17862. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  17863. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  17864. xss_lib='/opt/X11/lib/libXss.1.dylib'
  17865. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  17866. ;;
  17867. *-*-openbsd*)
  17868. x11_lib='libX11.so'
  17869. x11ext_lib='libXext.so'
  17870. xcursor_lib='libXcursor.so'
  17871. xinerama_lib='libXinerama.so'
  17872. xinput_lib='libXi.so'
  17873. xrandr_lib='libXrandr.so'
  17874. xrender_lib='libXrender.so'
  17875. xss_lib='libXss.so'
  17876. xvidmode_lib='libXxf86vm.so'
  17877. ;;
  17878. *)
  17879. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17880. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17881. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17882. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17883. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17884. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17885. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17886. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17887. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17888. ;;
  17889. esac
  17890. if test x$ac_cv_func_shmat != xyes; then
  17891. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17892. fi
  17893. CFLAGS="$CFLAGS $X_CFLAGS"
  17894. LDFLAGS="$LDFLAGS $X_LIBS"
  17895. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17896. #include <X11/Xproto.h>
  17897. "
  17898. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17899. have_xext_h_hdr=yes
  17900. else
  17901. have_xext_h_hdr=no
  17902. fi
  17903. if test x$have_xext_h_hdr != xyes; then
  17904. as_fn_error $? "
  17905. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17906. " "$LINENO" 5
  17907. fi
  17908. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17909. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17910. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17911. # Needed so SDL applications can include SDL_syswm.h
  17912. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17913. if test x$enable_x11_shared = xmaybe; then
  17914. enable_x11_shared=yes
  17915. fi
  17916. if test x$have_loadso != xyes && \
  17917. test x$enable_x11_shared = xyes; then
  17918. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17919. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17920. enable_x11_shared=no
  17921. fi
  17922. if test x$have_loadso = xyes && \
  17923. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17924. echo "-- dynamic libX11 -> $x11_lib"
  17925. echo "-- dynamic libX11ext -> $x11ext_lib"
  17926. cat >>confdefs.h <<_ACEOF
  17927. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17928. _ACEOF
  17929. cat >>confdefs.h <<_ACEOF
  17930. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17931. _ACEOF
  17932. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17933. else
  17934. enable_x11_shared=no
  17935. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17936. SUMMARY_video="${SUMMARY_video} x11"
  17937. fi
  17938. have_video=yes
  17939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17940. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17941. have_const_param_XextAddDisplay=no
  17942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17943. /* end confdefs.h. */
  17944. #include <X11/Xlib.h>
  17945. #include <X11/Xproto.h>
  17946. #include <X11/extensions/Xext.h>
  17947. #include <X11/extensions/extutil.h>
  17948. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17949. int
  17950. main ()
  17951. {
  17952. ;
  17953. return 0;
  17954. }
  17955. _ACEOF
  17956. if ac_fn_c_try_compile "$LINENO"; then :
  17957. have_const_param_XextAddDisplay=yes
  17958. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17959. fi
  17960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17962. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17964. $as_echo_n "checking for XGenericEvent... " >&6; }
  17965. have_XGenericEvent=no
  17966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17967. /* end confdefs.h. */
  17968. #include <X11/Xlib.h>
  17969. int
  17970. main ()
  17971. {
  17972. Display *display;
  17973. XEvent event;
  17974. XGenericEventCookie *cookie = &event.xcookie;
  17975. XNextEvent(display, &event);
  17976. XGetEventData(display, cookie);
  17977. XFreeEventData(display, cookie);
  17978. ;
  17979. return 0;
  17980. }
  17981. _ACEOF
  17982. if ac_fn_c_try_compile "$LINENO"; then :
  17983. have_XGenericEvent=yes
  17984. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17985. fi
  17986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17988. $as_echo "$have_XGenericEvent" >&6; }
  17989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17990. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17991. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17992. $as_echo_n "(cached) " >&6
  17993. else
  17994. ac_check_lib_save_LIBS=$LIBS
  17995. LIBS="-lX11 $LIBS"
  17996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17997. /* end confdefs.h. */
  17998. /* Override any GCC internal prototype to avoid an error.
  17999. Use char because int might match the return type of a GCC
  18000. builtin and then its argument prototype would still apply. */
  18001. #ifdef __cplusplus
  18002. extern "C"
  18003. #endif
  18004. char XkbKeycodeToKeysym ();
  18005. int
  18006. main ()
  18007. {
  18008. return XkbKeycodeToKeysym ();
  18009. ;
  18010. return 0;
  18011. }
  18012. _ACEOF
  18013. if ac_fn_c_try_link "$LINENO"; then :
  18014. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18015. else
  18016. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18017. fi
  18018. rm -f core conftest.err conftest.$ac_objext \
  18019. conftest$ac_exeext conftest.$ac_ext
  18020. LIBS=$ac_check_lib_save_LIBS
  18021. fi
  18022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18023. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18024. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18025. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18026. fi
  18027. # Check whether --enable-video-x11-xcursor was given.
  18028. if test "${enable_video_x11_xcursor+set}" = set; then :
  18029. enableval=$enable_video_x11_xcursor;
  18030. else
  18031. enable_video_x11_xcursor=yes
  18032. fi
  18033. if test x$enable_video_x11_xcursor = xyes; then
  18034. definitely_enable_video_x11_xcursor=no
  18035. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18036. "
  18037. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18038. have_xcursor_h_hdr=yes
  18039. else
  18040. have_xcursor_h_hdr=no
  18041. fi
  18042. if test x$have_xcursor_h_hdr = xyes; then
  18043. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18044. echo "-- dynamic libXcursor -> $xcursor_lib"
  18045. cat >>confdefs.h <<_ACEOF
  18046. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18047. _ACEOF
  18048. definitely_enable_video_x11_xcursor=yes
  18049. else
  18050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18051. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18052. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18053. $as_echo_n "(cached) " >&6
  18054. else
  18055. ac_check_lib_save_LIBS=$LIBS
  18056. LIBS="-lXcursor $LIBS"
  18057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18058. /* end confdefs.h. */
  18059. /* Override any GCC internal prototype to avoid an error.
  18060. Use char because int might match the return type of a GCC
  18061. builtin and then its argument prototype would still apply. */
  18062. #ifdef __cplusplus
  18063. extern "C"
  18064. #endif
  18065. char XcursorImageCreate ();
  18066. int
  18067. main ()
  18068. {
  18069. return XcursorImageCreate ();
  18070. ;
  18071. return 0;
  18072. }
  18073. _ACEOF
  18074. if ac_fn_c_try_link "$LINENO"; then :
  18075. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18076. else
  18077. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18078. fi
  18079. rm -f core conftest.err conftest.$ac_objext \
  18080. conftest$ac_exeext conftest.$ac_ext
  18081. LIBS=$ac_check_lib_save_LIBS
  18082. fi
  18083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18084. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18085. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18086. have_xcursor_lib=yes
  18087. fi
  18088. if test x$have_xcursor_lib = xyes ; then
  18089. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18090. definitely_enable_video_x11_xcursor=yes
  18091. fi
  18092. fi
  18093. fi
  18094. fi
  18095. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18096. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18097. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18098. fi
  18099. # Check whether --enable-video-x11-xdbe was given.
  18100. if test "${enable_video_x11_xdbe+set}" = set; then :
  18101. enableval=$enable_video_x11_xdbe;
  18102. else
  18103. enable_video_x11_xdbe=yes
  18104. fi
  18105. if test x$enable_video_x11_xdbe = xyes; then
  18106. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18107. "
  18108. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18109. have_dbe_h_hdr=yes
  18110. else
  18111. have_dbe_h_hdr=no
  18112. fi
  18113. if test x$have_dbe_h_hdr = xyes; then
  18114. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18115. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18116. fi
  18117. fi
  18118. # Check whether --enable-video-x11-xinerama was given.
  18119. if test "${enable_video_x11_xinerama+set}" = set; then :
  18120. enableval=$enable_video_x11_xinerama;
  18121. else
  18122. enable_video_x11_xinerama=yes
  18123. fi
  18124. if test x$enable_video_x11_xinerama = xyes; then
  18125. definitely_enable_video_x11_xinerama=no
  18126. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18127. "
  18128. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18129. have_xinerama_h_hdr=yes
  18130. else
  18131. have_xinerama_h_hdr=no
  18132. fi
  18133. if test x$have_xinerama_h_hdr = xyes; then
  18134. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18135. echo "-- dynamic libXinerama -> $xinerama_lib"
  18136. cat >>confdefs.h <<_ACEOF
  18137. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18138. _ACEOF
  18139. definitely_enable_video_x11_xinerama=yes
  18140. else
  18141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18142. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18143. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18144. $as_echo_n "(cached) " >&6
  18145. else
  18146. ac_check_lib_save_LIBS=$LIBS
  18147. LIBS="-lXinerama $LIBS"
  18148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18149. /* end confdefs.h. */
  18150. /* Override any GCC internal prototype to avoid an error.
  18151. Use char because int might match the return type of a GCC
  18152. builtin and then its argument prototype would still apply. */
  18153. #ifdef __cplusplus
  18154. extern "C"
  18155. #endif
  18156. char XineramaQueryExtension ();
  18157. int
  18158. main ()
  18159. {
  18160. return XineramaQueryExtension ();
  18161. ;
  18162. return 0;
  18163. }
  18164. _ACEOF
  18165. if ac_fn_c_try_link "$LINENO"; then :
  18166. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18167. else
  18168. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18169. fi
  18170. rm -f core conftest.err conftest.$ac_objext \
  18171. conftest$ac_exeext conftest.$ac_ext
  18172. LIBS=$ac_check_lib_save_LIBS
  18173. fi
  18174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18175. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18176. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18177. have_xinerama_lib=yes
  18178. fi
  18179. if test x$have_xinerama_lib = xyes ; then
  18180. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18181. definitely_enable_video_x11_xinerama=yes
  18182. fi
  18183. fi
  18184. fi
  18185. fi
  18186. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18187. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18188. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18189. fi
  18190. # Check whether --enable-video-x11-xinput was given.
  18191. if test "${enable_video_x11_xinput+set}" = set; then :
  18192. enableval=$enable_video_x11_xinput;
  18193. else
  18194. enable_video_x11_xinput=yes
  18195. fi
  18196. if test x$enable_video_x11_xinput = xyes; then
  18197. definitely_enable_video_x11_xinput=no
  18198. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18199. "
  18200. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18201. have_xinput_h_hdr=yes
  18202. else
  18203. have_xinput_h_hdr=no
  18204. fi
  18205. if test x$have_xinput_h_hdr = xyes; then
  18206. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18207. echo "-- dynamic libXi -> $xinput_lib"
  18208. cat >>confdefs.h <<_ACEOF
  18209. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18210. _ACEOF
  18211. definitely_enable_video_x11_xinput=yes
  18212. else
  18213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18214. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18215. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18216. $as_echo_n "(cached) " >&6
  18217. else
  18218. ac_check_lib_save_LIBS=$LIBS
  18219. LIBS="-lXi $LIBS"
  18220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18221. /* end confdefs.h. */
  18222. /* Override any GCC internal prototype to avoid an error.
  18223. Use char because int might match the return type of a GCC
  18224. builtin and then its argument prototype would still apply. */
  18225. #ifdef __cplusplus
  18226. extern "C"
  18227. #endif
  18228. char XOpenDevice ();
  18229. int
  18230. main ()
  18231. {
  18232. return XOpenDevice ();
  18233. ;
  18234. return 0;
  18235. }
  18236. _ACEOF
  18237. if ac_fn_c_try_link "$LINENO"; then :
  18238. ac_cv_lib_Xi_XOpenDevice=yes
  18239. else
  18240. ac_cv_lib_Xi_XOpenDevice=no
  18241. fi
  18242. rm -f core conftest.err conftest.$ac_objext \
  18243. conftest$ac_exeext conftest.$ac_ext
  18244. LIBS=$ac_check_lib_save_LIBS
  18245. fi
  18246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18247. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18248. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18249. have_xinput_lib=yes
  18250. fi
  18251. if test x$have_xinput_lib = xyes ; then
  18252. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18253. definitely_enable_video_x11_xinput=yes
  18254. fi
  18255. fi
  18256. fi
  18257. fi
  18258. if test x$definitely_enable_video_x11_xinput = xyes; then
  18259. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18260. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18262. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18263. have_xinput2_multitouch=no
  18264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18265. /* end confdefs.h. */
  18266. #include <X11/Xlib.h>
  18267. #include <X11/Xproto.h>
  18268. #include <X11/extensions/XInput2.h>
  18269. int
  18270. main ()
  18271. {
  18272. int event_type = XI_TouchBegin;
  18273. XITouchClassInfo *t;
  18274. ;
  18275. return 0;
  18276. }
  18277. _ACEOF
  18278. if ac_fn_c_try_compile "$LINENO"; then :
  18279. have_xinput2_multitouch=yes
  18280. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18281. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18282. fi
  18283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18285. $as_echo "$have_xinput2_multitouch" >&6; }
  18286. fi
  18287. # Check whether --enable-video-x11-xrandr was given.
  18288. if test "${enable_video_x11_xrandr+set}" = set; then :
  18289. enableval=$enable_video_x11_xrandr;
  18290. else
  18291. enable_video_x11_xrandr=yes
  18292. fi
  18293. if test x$enable_video_x11_xrandr = xyes; then
  18294. definitely_enable_video_x11_xrandr=no
  18295. have_xrandr_h_hdr=no
  18296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18297. /* end confdefs.h. */
  18298. #include <X11/Xlib.h>
  18299. #include <X11/extensions/Xrandr.h>
  18300. int
  18301. main ()
  18302. {
  18303. XRRScreenResources *res = NULL;
  18304. ;
  18305. return 0;
  18306. }
  18307. _ACEOF
  18308. if ac_fn_c_try_compile "$LINENO"; then :
  18309. have_xrandr_h_hdr=yes
  18310. fi
  18311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18312. if test x$have_xrandr_h_hdr = xyes; then
  18313. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18314. echo "-- dynamic libXrandr -> $xrandr_lib"
  18315. cat >>confdefs.h <<_ACEOF
  18316. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18317. _ACEOF
  18318. definitely_enable_video_x11_xrandr=yes
  18319. else
  18320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18321. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18322. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18323. $as_echo_n "(cached) " >&6
  18324. else
  18325. ac_check_lib_save_LIBS=$LIBS
  18326. LIBS="-lXrandr $LIBS"
  18327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18328. /* end confdefs.h. */
  18329. /* Override any GCC internal prototype to avoid an error.
  18330. Use char because int might match the return type of a GCC
  18331. builtin and then its argument prototype would still apply. */
  18332. #ifdef __cplusplus
  18333. extern "C"
  18334. #endif
  18335. char XRRQueryExtension ();
  18336. int
  18337. main ()
  18338. {
  18339. return XRRQueryExtension ();
  18340. ;
  18341. return 0;
  18342. }
  18343. _ACEOF
  18344. if ac_fn_c_try_link "$LINENO"; then :
  18345. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18346. else
  18347. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18348. fi
  18349. rm -f core conftest.err conftest.$ac_objext \
  18350. conftest$ac_exeext conftest.$ac_ext
  18351. LIBS=$ac_check_lib_save_LIBS
  18352. fi
  18353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18354. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18355. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18356. have_xrandr_lib=yes
  18357. fi
  18358. if test x$have_xrandr_lib = xyes ; then
  18359. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18360. definitely_enable_video_x11_xrandr=yes
  18361. fi
  18362. fi
  18363. fi
  18364. fi
  18365. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18366. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18367. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18368. fi
  18369. # Check whether --enable-video-x11-scrnsaver was given.
  18370. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18371. enableval=$enable_video_x11_scrnsaver;
  18372. else
  18373. enable_video_x11_scrnsaver=yes
  18374. fi
  18375. if test x$enable_video_x11_scrnsaver = xyes; then
  18376. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18377. "
  18378. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18379. have_scrnsaver_h_hdr=yes
  18380. else
  18381. have_scrnsaver_h_hdr=no
  18382. fi
  18383. if test x$have_scrnsaver_h_hdr = xyes; then
  18384. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18385. echo "-- dynamic libXss -> $xss_lib"
  18386. cat >>confdefs.h <<_ACEOF
  18387. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18388. _ACEOF
  18389. definitely_enable_video_x11_scrnsaver=yes
  18390. else
  18391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18392. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18393. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18394. $as_echo_n "(cached) " >&6
  18395. else
  18396. ac_check_lib_save_LIBS=$LIBS
  18397. LIBS="-lXss $LIBS"
  18398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18399. /* end confdefs.h. */
  18400. /* Override any GCC internal prototype to avoid an error.
  18401. Use char because int might match the return type of a GCC
  18402. builtin and then its argument prototype would still apply. */
  18403. #ifdef __cplusplus
  18404. extern "C"
  18405. #endif
  18406. char XScreenSaverSuspend ();
  18407. int
  18408. main ()
  18409. {
  18410. return XScreenSaverSuspend ();
  18411. ;
  18412. return 0;
  18413. }
  18414. _ACEOF
  18415. if ac_fn_c_try_link "$LINENO"; then :
  18416. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18417. else
  18418. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18419. fi
  18420. rm -f core conftest.err conftest.$ac_objext \
  18421. conftest$ac_exeext conftest.$ac_ext
  18422. LIBS=$ac_check_lib_save_LIBS
  18423. fi
  18424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18425. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18426. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18427. have_xss_lib=yes
  18428. fi
  18429. if test x$have_xss_lib = xyes ; then
  18430. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18431. definitely_enable_video_x11_scrnsaver=yes
  18432. fi
  18433. fi
  18434. fi
  18435. fi
  18436. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18437. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18438. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18439. fi
  18440. # Check whether --enable-video-x11-xshape was given.
  18441. if test "${enable_video_x11_xshape+set}" = set; then :
  18442. enableval=$enable_video_x11_xshape;
  18443. else
  18444. enable_video_x11_xshape=yes
  18445. fi
  18446. if test x$enable_video_x11_xshape = xyes; then
  18447. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18448. "
  18449. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18450. have_shape_h_hdr=yes
  18451. else
  18452. have_shape_h_hdr=no
  18453. fi
  18454. if test x$have_shape_h_hdr = xyes; then
  18455. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18456. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18457. fi
  18458. fi
  18459. # Check whether --enable-video-x11-vm was given.
  18460. if test "${enable_video_x11_vm+set}" = set; then :
  18461. enableval=$enable_video_x11_vm;
  18462. else
  18463. enable_video_x11_vm=yes
  18464. fi
  18465. if test x$enable_video_x11_vm = xyes; then
  18466. definitely_enable_video_x11_vm=no
  18467. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18468. "
  18469. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18470. have_vm_h_hdr=yes
  18471. else
  18472. have_vm_h_hdr=no
  18473. fi
  18474. if test x$have_vm_h_hdr = xyes; then
  18475. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18476. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18477. cat >>confdefs.h <<_ACEOF
  18478. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18479. _ACEOF
  18480. definitely_enable_video_x11_vm=yes
  18481. else
  18482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18483. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18484. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18485. $as_echo_n "(cached) " >&6
  18486. else
  18487. ac_check_lib_save_LIBS=$LIBS
  18488. LIBS="-lXxf86vm $LIBS"
  18489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18490. /* end confdefs.h. */
  18491. /* Override any GCC internal prototype to avoid an error.
  18492. Use char because int might match the return type of a GCC
  18493. builtin and then its argument prototype would still apply. */
  18494. #ifdef __cplusplus
  18495. extern "C"
  18496. #endif
  18497. char XF86VidModeQueryVersion ();
  18498. int
  18499. main ()
  18500. {
  18501. return XF86VidModeQueryVersion ();
  18502. ;
  18503. return 0;
  18504. }
  18505. _ACEOF
  18506. if ac_fn_c_try_link "$LINENO"; then :
  18507. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18508. else
  18509. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18510. fi
  18511. rm -f core conftest.err conftest.$ac_objext \
  18512. conftest$ac_exeext conftest.$ac_ext
  18513. LIBS=$ac_check_lib_save_LIBS
  18514. fi
  18515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18516. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18517. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18518. have_vm_lib=yes
  18519. fi
  18520. if test x$have_vm_lib = xyes ; then
  18521. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18522. definitely_enable_video_x11_vm=yes
  18523. fi
  18524. fi
  18525. fi
  18526. fi
  18527. if test x$definitely_enable_video_x11_vm = xyes; then
  18528. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18529. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18530. fi
  18531. fi
  18532. else
  18533. # Prevent Mesa from including X11 headers
  18534. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18535. fi
  18536. }
  18537. CheckVivanteVideo()
  18538. {
  18539. # Check whether --enable-video-vivante was given.
  18540. if test "${enable_video_vivante+set}" = set; then :
  18541. enableval=$enable_video_vivante;
  18542. else
  18543. enable_video_vivante=yes
  18544. fi
  18545. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18547. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18548. have_vivante_vdk=no
  18549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18550. /* end confdefs.h. */
  18551. #define LINUX
  18552. #define EGL_API_FB
  18553. #include <gc_vdk.h>
  18554. int
  18555. main ()
  18556. {
  18557. ;
  18558. return 0;
  18559. }
  18560. _ACEOF
  18561. if ac_fn_c_try_compile "$LINENO"; then :
  18562. have_vivante_vdk=yes
  18563. fi
  18564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18566. $as_echo "$have_vivante_vdk" >&6; }
  18567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18568. $as_echo_n "checking for Vivante FB API... " >&6; }
  18569. have_vivante_egl=no
  18570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18571. /* end confdefs.h. */
  18572. #define LINUX
  18573. #define EGL_API_FB
  18574. #include <EGL/eglvivante.h>
  18575. int
  18576. main ()
  18577. {
  18578. ;
  18579. return 0;
  18580. }
  18581. _ACEOF
  18582. if ac_fn_c_try_compile "$LINENO"; then :
  18583. have_vivante_egl=yes
  18584. fi
  18585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18587. $as_echo "$have_vivante_egl" >&6; }
  18588. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18589. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18590. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18591. if test x$have_vivante_vdk = xyes; then
  18592. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18593. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18594. fi
  18595. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18596. SUMMARY_video="${SUMMARY_video} vivante"
  18597. have_video=yes
  18598. fi
  18599. fi
  18600. }
  18601. CheckHaikuVideo()
  18602. {
  18603. if test x$enable_video = xyes; then
  18604. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18605. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18606. have_video=yes
  18607. SUMMARY_video="${SUMMARY_video} haiku"
  18608. fi
  18609. }
  18610. CheckCOCOA()
  18611. {
  18612. # Check whether --enable-video-cocoa was given.
  18613. if test "${enable_video_cocoa+set}" = set; then :
  18614. enableval=$enable_video_cocoa;
  18615. else
  18616. enable_video_cocoa=yes
  18617. fi
  18618. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18619. save_CFLAGS="$CFLAGS"
  18620. CFLAGS="$CFLAGS -x objective-c"
  18621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18622. $as_echo_n "checking for Cocoa framework... " >&6; }
  18623. have_cocoa=no
  18624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18625. /* end confdefs.h. */
  18626. #import <Cocoa/Cocoa.h>
  18627. int
  18628. main ()
  18629. {
  18630. ;
  18631. return 0;
  18632. }
  18633. _ACEOF
  18634. if ac_fn_c_try_compile "$LINENO"; then :
  18635. have_cocoa=yes
  18636. fi
  18637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18639. $as_echo "$have_cocoa" >&6; }
  18640. CFLAGS="$save_CFLAGS"
  18641. if test x$have_cocoa = xyes; then
  18642. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18643. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18644. SUMMARY_video="${SUMMARY_video} cocoa"
  18645. have_video=yes
  18646. fi
  18647. fi
  18648. }
  18649. CheckMETAL()
  18650. {
  18651. # Check whether --enable-video-metal was given.
  18652. if test "${enable_video_metal+set}" = set; then :
  18653. enableval=$enable_video_metal;
  18654. else
  18655. enable_video_metal=yes
  18656. fi
  18657. # Check whether --enable-render-metal was given.
  18658. if test "${enable_render_metal+set}" = set; then :
  18659. enableval=$enable_render_metal;
  18660. else
  18661. enable_render_metal=yes
  18662. fi
  18663. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18664. save_CFLAGS="$CFLAGS"
  18665. CFLAGS="$CFLAGS -x objective-c"
  18666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18667. $as_echo_n "checking for Metal framework... " >&6; }
  18668. have_metal=no
  18669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18670. /* end confdefs.h. */
  18671. #import <Cocoa/Cocoa.h>
  18672. #import <Metal/Metal.h>
  18673. #import <QuartzCore/CAMetalLayer.h>
  18674. #if TARGET_CPU_X86
  18675. #error Metal doesn't work on this configuration
  18676. #endif
  18677. int
  18678. main ()
  18679. {
  18680. ;
  18681. return 0;
  18682. }
  18683. _ACEOF
  18684. if ac_fn_c_try_compile "$LINENO"; then :
  18685. have_metal=yes
  18686. fi
  18687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18688. CFLAGS="$save_CFLAGS"
  18689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18690. $as_echo "$have_metal" >&6; }
  18691. if test x$have_metal = xyes; then
  18692. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18693. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18694. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18695. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18696. fi
  18697. SUMMARY_video="${SUMMARY_video} metal"
  18698. else
  18699. enable_video_metal=no
  18700. enable_render_metal=no
  18701. fi
  18702. fi
  18703. }
  18704. CheckDirectFB()
  18705. {
  18706. # Check whether --enable-video-directfb was given.
  18707. if test "${enable_video_directfb+set}" = set; then :
  18708. enableval=$enable_video_directfb;
  18709. else
  18710. enable_video_directfb=no
  18711. fi
  18712. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18713. pkg_failed=no
  18714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5
  18715. $as_echo_n "checking for DIRECTFB... " >&6; }
  18716. if test -n "$DIRECTFB_CFLAGS"; then
  18717. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18718. elif test -n "$PKG_CONFIG"; then
  18719. if test -n "$PKG_CONFIG" && \
  18720. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18721. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18722. ac_status=$?
  18723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18724. test $ac_status = 0; }; then
  18725. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18726. else
  18727. pkg_failed=yes
  18728. fi
  18729. else
  18730. pkg_failed=untried
  18731. fi
  18732. if test -n "$DIRECTFB_LIBS"; then
  18733. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18734. elif test -n "$PKG_CONFIG"; then
  18735. if test -n "$PKG_CONFIG" && \
  18736. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18737. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18738. ac_status=$?
  18739. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18740. test $ac_status = 0; }; then
  18741. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18742. else
  18743. pkg_failed=yes
  18744. fi
  18745. else
  18746. pkg_failed=untried
  18747. fi
  18748. if test $pkg_failed = yes; then
  18749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18750. $as_echo "no" >&6; }
  18751. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18752. _pkg_short_errors_supported=yes
  18753. else
  18754. _pkg_short_errors_supported=no
  18755. fi
  18756. if test $_pkg_short_errors_supported = yes; then
  18757. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 1.0.0" 2>&1`
  18758. else
  18759. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 1.0.0" 2>&1`
  18760. fi
  18761. # Put the nasty error message in config.log where it belongs
  18762. echo "$DIRECTFB_PKG_ERRORS" >&5
  18763. video_directfb=no
  18764. elif test $pkg_failed = untried; then
  18765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18766. $as_echo "no" >&6; }
  18767. video_directfb=no
  18768. else
  18769. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18770. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18772. $as_echo "yes" >&6; }
  18773. video_directfb=yes
  18774. fi
  18775. if test x$video_directfb = xyes; then
  18776. # SuSE 11.1 installs directfb-config without directfb-devel
  18777. save_CPPFLAGS="$CPPFLAGS"
  18778. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18779. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18780. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18781. have_directfb_hdr=yes
  18782. else
  18783. have_directfb_hdr=no
  18784. fi
  18785. CPPFLAGS="$save_CPPFLAGS"
  18786. video_directfb=$have_directfb_hdr
  18787. fi
  18788. if test x$video_directfb = xyes; then
  18789. # Check whether --enable-directfb-shared was given.
  18790. if test "${enable_directfb_shared+set}" = set; then :
  18791. enableval=$enable_directfb_shared;
  18792. else
  18793. enable_directfb_shared=yes
  18794. fi
  18795. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18796. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18797. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18798. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18800. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18801. directfb_shared=no
  18802. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18803. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18805. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18806. if test x$have_loadso != xyes && \
  18807. test x$enable_directfb_shared = xyes; then
  18808. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18809. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18810. fi
  18811. if test x$have_loadso = xyes && \
  18812. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18813. directfb_shared=yes
  18814. echo "-- $directfb_lib_spec -> $directfb_lib"
  18815. cat >>confdefs.h <<_ACEOF
  18816. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18817. _ACEOF
  18818. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18819. else
  18820. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18821. SUMMARY_video="${SUMMARY_video} directfb"
  18822. fi
  18823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18824. $as_echo "$directfb_shared" >&6; }
  18825. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18826. have_video=yes
  18827. fi
  18828. fi
  18829. }
  18830. CheckKMSDRM()
  18831. {
  18832. # Check whether --enable-video-kmsdrm was given.
  18833. if test "${enable_video_kmsdrm+set}" = set; then :
  18834. enableval=$enable_video_kmsdrm;
  18835. else
  18836. enable_video_kmsdrm=no
  18837. fi
  18838. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18839. video_kmsdrm=no
  18840. pkg_failed=no
  18841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
  18842. $as_echo_n "checking for LIBDRM... " >&6; }
  18843. if test -n "$LIBDRM_CFLAGS"; then
  18844. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  18845. elif test -n "$PKG_CONFIG"; then
  18846. if test -n "$PKG_CONFIG" && \
  18847. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18848. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18849. ac_status=$?
  18850. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18851. test $ac_status = 0; }; then
  18852. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.46" 2>/dev/null`
  18853. else
  18854. pkg_failed=yes
  18855. fi
  18856. else
  18857. pkg_failed=untried
  18858. fi
  18859. if test -n "$LIBDRM_LIBS"; then
  18860. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  18861. elif test -n "$PKG_CONFIG"; then
  18862. if test -n "$PKG_CONFIG" && \
  18863. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18864. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18865. ac_status=$?
  18866. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18867. test $ac_status = 0; }; then
  18868. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.46" 2>/dev/null`
  18869. else
  18870. pkg_failed=yes
  18871. fi
  18872. else
  18873. pkg_failed=untried
  18874. fi
  18875. if test $pkg_failed = yes; then
  18876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18877. $as_echo "no" >&6; }
  18878. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18879. _pkg_short_errors_supported=yes
  18880. else
  18881. _pkg_short_errors_supported=no
  18882. fi
  18883. if test $_pkg_short_errors_supported = yes; then
  18884. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.4.46" 2>&1`
  18885. else
  18886. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.4.46" 2>&1`
  18887. fi
  18888. # Put the nasty error message in config.log where it belongs
  18889. echo "$LIBDRM_PKG_ERRORS" >&5
  18890. libdrm_avail=no
  18891. elif test $pkg_failed = untried; then
  18892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18893. $as_echo "no" >&6; }
  18894. libdrm_avail=no
  18895. else
  18896. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  18897. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  18898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18899. $as_echo "yes" >&6; }
  18900. libdrm_avail=yes
  18901. fi
  18902. pkg_failed=no
  18903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGBM" >&5
  18904. $as_echo_n "checking for LIBGBM... " >&6; }
  18905. if test -n "$LIBGBM_CFLAGS"; then
  18906. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  18907. elif test -n "$PKG_CONFIG"; then
  18908. if test -n "$PKG_CONFIG" && \
  18909. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18910. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18911. ac_status=$?
  18912. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18913. test $ac_status = 0; }; then
  18914. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 9.0.0" 2>/dev/null`
  18915. else
  18916. pkg_failed=yes
  18917. fi
  18918. else
  18919. pkg_failed=untried
  18920. fi
  18921. if test -n "$LIBGBM_LIBS"; then
  18922. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  18923. elif test -n "$PKG_CONFIG"; then
  18924. if test -n "$PKG_CONFIG" && \
  18925. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18926. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18927. ac_status=$?
  18928. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18929. test $ac_status = 0; }; then
  18930. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 9.0.0" 2>/dev/null`
  18931. else
  18932. pkg_failed=yes
  18933. fi
  18934. else
  18935. pkg_failed=untried
  18936. fi
  18937. if test $pkg_failed = yes; then
  18938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18939. $as_echo "no" >&6; }
  18940. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18941. _pkg_short_errors_supported=yes
  18942. else
  18943. _pkg_short_errors_supported=no
  18944. fi
  18945. if test $_pkg_short_errors_supported = yes; then
  18946. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gbm >= 9.0.0" 2>&1`
  18947. else
  18948. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors "gbm >= 9.0.0" 2>&1`
  18949. fi
  18950. # Put the nasty error message in config.log where it belongs
  18951. echo "$LIBGBM_PKG_ERRORS" >&5
  18952. libgbm_avail=no
  18953. elif test $pkg_failed = untried; then
  18954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18955. $as_echo "no" >&6; }
  18956. libgbm_avail=no
  18957. else
  18958. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  18959. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  18960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18961. $as_echo "yes" >&6; }
  18962. libgbm_avail=yes
  18963. fi
  18964. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18965. video_kmsdrm=yes
  18966. fi
  18967. if test x$video_kmsdrm = xyes; then
  18968. # Check whether --enable-kmsdrm-shared was given.
  18969. if test "${enable_kmsdrm_shared+set}" = set; then :
  18970. enableval=$enable_kmsdrm_shared;
  18971. else
  18972. enable_kmsdrm_shared=yes
  18973. fi
  18974. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18975. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18976. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18978. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18979. kmsdrm_shared=no
  18980. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18981. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18982. if test x$have_loadso != xyes && \
  18983. test x$enable_kmsdrm_shared = xyes; then
  18984. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18985. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18986. fi
  18987. if test x$have_loadso = xyes && \
  18988. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18989. kmsdrm_shared=yes
  18990. cat >>confdefs.h <<_ACEOF
  18991. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18992. _ACEOF
  18993. cat >>confdefs.h <<_ACEOF
  18994. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18995. _ACEOF
  18996. cat >>confdefs.h <<_ACEOF
  18997. #define HAVE_KMSDRM_SHARED "TRUE"
  18998. _ACEOF
  18999. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19000. else
  19001. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19002. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19003. fi
  19004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19005. $as_echo "$kmsdrm_shared" >&6; }
  19006. have_video=yes
  19007. fi
  19008. fi
  19009. }
  19010. CheckDummyVideo()
  19011. {
  19012. # Check whether --enable-video-dummy was given.
  19013. if test "${enable_video_dummy+set}" = set; then :
  19014. enableval=$enable_video_dummy;
  19015. else
  19016. enable_video_dummy=yes
  19017. fi
  19018. if test x$enable_video_dummy = xyes; then
  19019. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19020. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19021. have_video=yes
  19022. SUMMARY_video="${SUMMARY_video} dummy"
  19023. fi
  19024. }
  19025. CheckQNXVideo()
  19026. {
  19027. if test x$enable_video = xyes; then
  19028. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19029. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19030. have_video=yes
  19031. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19032. SUMMARY_video="${SUMMARY_video} qnx"
  19033. fi
  19034. }
  19035. CheckQNXAudio()
  19036. {
  19037. if test x$enable_audio = xyes; then
  19038. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19039. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19040. have_audio=yes
  19041. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19042. SUMMARY_audio="${SUMMARY_audio} qsa"
  19043. fi
  19044. }
  19045. # Check whether --enable-video-opengl was given.
  19046. if test "${enable_video_opengl+set}" = set; then :
  19047. enableval=$enable_video_opengl;
  19048. else
  19049. enable_video_opengl=yes
  19050. fi
  19051. CheckOpenGLX11()
  19052. {
  19053. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  19055. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  19056. video_opengl=no
  19057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19058. /* end confdefs.h. */
  19059. #include <GL/gl.h>
  19060. #include <GL/glx.h>
  19061. int
  19062. main ()
  19063. {
  19064. ;
  19065. return 0;
  19066. }
  19067. _ACEOF
  19068. if ac_fn_c_try_compile "$LINENO"; then :
  19069. video_opengl=yes
  19070. fi
  19071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19073. $as_echo "$video_opengl" >&6; }
  19074. if test x$video_opengl = xyes; then
  19075. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19076. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19077. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19078. SUMMARY_video="${SUMMARY_video} opengl"
  19079. fi
  19080. fi
  19081. }
  19082. # Check whether --enable-video-opengles was given.
  19083. if test "${enable_video_opengles+set}" = set; then :
  19084. enableval=$enable_video_opengles;
  19085. else
  19086. enable_video_opengles=yes
  19087. fi
  19088. # Check whether --enable-video-opengles1 was given.
  19089. if test "${enable_video_opengles1+set}" = set; then :
  19090. enableval=$enable_video_opengles1;
  19091. else
  19092. enable_video_opengles1=yes
  19093. fi
  19094. # Check whether --enable-video-opengles2 was given.
  19095. if test "${enable_video_opengles2+set}" = set; then :
  19096. enableval=$enable_video_opengles2;
  19097. else
  19098. enable_video_opengles2=yes
  19099. fi
  19100. CheckOpenGLESX11()
  19101. {
  19102. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19104. $as_echo_n "checking for EGL support... " >&6; }
  19105. video_opengl_egl=no
  19106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19107. /* end confdefs.h. */
  19108. #define LINUX
  19109. #define EGL_API_FB
  19110. #define MESA_EGL_NO_X11_HEADERS
  19111. #include <EGL/egl.h>
  19112. #include <EGL/eglext.h>
  19113. int
  19114. main ()
  19115. {
  19116. ;
  19117. return 0;
  19118. }
  19119. _ACEOF
  19120. if ac_fn_c_try_compile "$LINENO"; then :
  19121. video_opengl_egl=yes
  19122. fi
  19123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19125. $as_echo "$video_opengl_egl" >&6; }
  19126. if test x$video_opengl_egl = xyes; then
  19127. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19128. fi
  19129. if test x$enable_video_opengles1 = xyes; then
  19130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19131. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19132. video_opengles_v1=no
  19133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19134. /* end confdefs.h. */
  19135. #include <GLES/gl.h>
  19136. #include <GLES/glext.h>
  19137. int
  19138. main ()
  19139. {
  19140. ;
  19141. return 0;
  19142. }
  19143. _ACEOF
  19144. if ac_fn_c_try_compile "$LINENO"; then :
  19145. video_opengles_v1=yes
  19146. fi
  19147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19149. $as_echo "$video_opengles_v1" >&6; }
  19150. if test x$video_opengles_v1 = xyes; then
  19151. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19152. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19153. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19154. fi
  19155. fi
  19156. if test x$enable_video_opengles2 = xyes; then
  19157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19158. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19159. video_opengles_v2=no
  19160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19161. /* end confdefs.h. */
  19162. #include <GLES2/gl2.h>
  19163. #include <GLES2/gl2ext.h>
  19164. int
  19165. main ()
  19166. {
  19167. ;
  19168. return 0;
  19169. }
  19170. _ACEOF
  19171. if ac_fn_c_try_compile "$LINENO"; then :
  19172. video_opengles_v2=yes
  19173. fi
  19174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19176. $as_echo "$video_opengles_v2" >&6; }
  19177. if test x$video_opengles_v2 = xyes; then
  19178. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19179. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19180. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19181. fi
  19182. fi
  19183. fi
  19184. }
  19185. CheckWINDOWSGL()
  19186. {
  19187. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19188. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19189. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19190. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19191. SUMMARY_video="${SUMMARY_video} opengl"
  19192. fi
  19193. }
  19194. CheckWINDOWSGLES()
  19195. {
  19196. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19198. $as_echo_n "checking for EGL support... " >&6; }
  19199. video_opengl_egl=no
  19200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19201. /* end confdefs.h. */
  19202. #include <EGL/egl.h>
  19203. int
  19204. main ()
  19205. {
  19206. ;
  19207. return 0;
  19208. }
  19209. _ACEOF
  19210. if ac_fn_c_try_compile "$LINENO"; then :
  19211. video_opengl_egl=yes
  19212. fi
  19213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19215. $as_echo "$video_opengl_egl" >&6; }
  19216. if test x$video_opengl_egl = xyes; then
  19217. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19218. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19219. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19220. fi
  19221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19222. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19223. video_opengles_v2=no
  19224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19225. /* end confdefs.h. */
  19226. #include <GLES2/gl2.h>
  19227. #include <GLES2/gl2ext.h>
  19228. int
  19229. main ()
  19230. {
  19231. ;
  19232. return 0;
  19233. }
  19234. _ACEOF
  19235. if ac_fn_c_try_compile "$LINENO"; then :
  19236. video_opengles_v2=yes
  19237. fi
  19238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19240. $as_echo "$video_opengles_v2" >&6; }
  19241. if test x$video_opengles_v2 = xyes; then
  19242. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19243. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19244. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19245. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19246. fi
  19247. fi
  19248. }
  19249. CheckHaikuGL()
  19250. {
  19251. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19252. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19253. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19254. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19255. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19256. SUMMARY_video="${SUMMARY_video} opengl"
  19257. fi
  19258. }
  19259. CheckMacGL()
  19260. {
  19261. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19262. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19263. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19264. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19265. SUMMARY_video="${SUMMARY_video} opengl"
  19266. fi
  19267. }
  19268. CheckMacGLES()
  19269. {
  19270. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19271. video_opengl_egl=yes
  19272. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19273. video_opengles_v2=yes
  19274. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19275. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19276. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19277. fi
  19278. }
  19279. CheckEmscriptenGLES()
  19280. {
  19281. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19283. $as_echo_n "checking for EGL support... " >&6; }
  19284. video_opengl_egl=no
  19285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19286. /* end confdefs.h. */
  19287. #include <EGL/egl.h>
  19288. int
  19289. main ()
  19290. {
  19291. ;
  19292. return 0;
  19293. }
  19294. _ACEOF
  19295. if ac_fn_c_try_compile "$LINENO"; then :
  19296. video_opengl_egl=yes
  19297. fi
  19298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19300. $as_echo "$video_opengl_egl" >&6; }
  19301. if test x$video_opengl_egl = xyes; then
  19302. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19303. fi
  19304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19305. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19306. video_opengles_v2=no
  19307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19308. /* end confdefs.h. */
  19309. #include <GLES2/gl2.h>
  19310. #include <GLES2/gl2ext.h>
  19311. int
  19312. main ()
  19313. {
  19314. ;
  19315. return 0;
  19316. }
  19317. _ACEOF
  19318. if ac_fn_c_try_compile "$LINENO"; then :
  19319. video_opengles_v2=yes
  19320. fi
  19321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19323. $as_echo "$video_opengles_v2" >&6; }
  19324. if test x$video_opengles_v2 = xyes; then
  19325. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19326. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19327. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19328. fi
  19329. fi
  19330. }
  19331. # Check whether --enable-video-vulkan was given.
  19332. if test "${enable_video_vulkan+set}" = set; then :
  19333. enableval=$enable_video_vulkan;
  19334. else
  19335. enable_video_vulkan=yes
  19336. fi
  19337. CheckVulkan()
  19338. {
  19339. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19340. case "$host" in
  19341. *-*-android*)
  19342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19343. /* end confdefs.h. */
  19344. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19345. #error Vulkan doesn't work on this configuration
  19346. #endif
  19347. int
  19348. main ()
  19349. {
  19350. ;
  19351. return 0;
  19352. }
  19353. _ACEOF
  19354. if ac_fn_c_try_compile "$LINENO"; then :
  19355. else
  19356. enable_video_vulkan=no
  19357. fi
  19358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19359. ;;
  19360. *-*-darwin*)
  19361. save_CFLAGS="$CFLAGS"
  19362. CFLAGS="$CFLAGS -x objective-c"
  19363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19364. /* end confdefs.h. */
  19365. #include <Cocoa/Cocoa.h>
  19366. #include <Metal/Metal.h>
  19367. #include <QuartzCore/CAMetalLayer.h>
  19368. #if TARGET_CPU_X86
  19369. #error Vulkan doesn't work on this configuration
  19370. #endif
  19371. int
  19372. main ()
  19373. {
  19374. ;
  19375. return 0;
  19376. }
  19377. _ACEOF
  19378. if ac_fn_c_try_compile "$LINENO"; then :
  19379. else
  19380. enable_video_vulkan=no
  19381. fi
  19382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19383. CFLAGS="$save_CFLAGS"
  19384. ;;
  19385. *)
  19386. ;;
  19387. esac
  19388. if test x$enable_video_vulkan = xno; then
  19389. # For reasons I am totally unable to see, I get an undefined macro error if
  19390. # I put this in the AC_TRY_COMPILE.
  19391. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19392. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19393. fi
  19394. fi
  19395. if test x$enable_video_vulkan = xyes; then
  19396. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19397. SUMMARY_video="${SUMMARY_video} vulkan"
  19398. fi
  19399. }
  19400. CheckInputEvents()
  19401. {
  19402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19403. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19404. use_input_events=no
  19405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19406. /* end confdefs.h. */
  19407. #include <linux/input.h>
  19408. int
  19409. main ()
  19410. {
  19411. #ifndef EVIOCGNAME
  19412. #error EVIOCGNAME() ioctl not available
  19413. #endif
  19414. ;
  19415. return 0;
  19416. }
  19417. _ACEOF
  19418. if ac_fn_c_try_compile "$LINENO"; then :
  19419. use_input_events=yes
  19420. fi
  19421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19423. $as_echo "$use_input_events" >&6; }
  19424. if test x$use_input_events = xyes; then
  19425. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19426. SUMMARY_input="${SUMMARY_input} linuxev"
  19427. fi
  19428. }
  19429. CheckInputKD()
  19430. {
  19431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19432. $as_echo_n "checking for Linux kd.h... " >&6; }
  19433. use_input_kd=no
  19434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19435. /* end confdefs.h. */
  19436. #include <linux/kd.h>
  19437. #include <linux/keyboard.h>
  19438. int
  19439. main ()
  19440. {
  19441. struct kbentry kbe;
  19442. kbe.kb_table = KG_CTRL;
  19443. ioctl(0, KDGKBENT, &kbe);
  19444. ;
  19445. return 0;
  19446. }
  19447. _ACEOF
  19448. if ac_fn_c_try_compile "$LINENO"; then :
  19449. use_input_kd=yes
  19450. fi
  19451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19453. $as_echo "$use_input_kd" >&6; }
  19454. if test x$use_input_kd = xyes; then
  19455. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19456. SUMMARY_input="${SUMMARY_input} linuxkd"
  19457. fi
  19458. }
  19459. CheckLibUDev()
  19460. {
  19461. # Check whether --enable-libudev was given.
  19462. if test "${enable_libudev+set}" = set; then :
  19463. enableval=$enable_libudev;
  19464. else
  19465. enable_libudev=yes
  19466. fi
  19467. if test x$enable_libudev = xyes; then
  19468. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19469. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19470. have_libudev_h_hdr=yes
  19471. else
  19472. have_libudev_h_hdr=no
  19473. fi
  19474. if test x$have_libudev_h_hdr = xyes; then
  19475. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19476. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19477. if test x$udev_lib != x; then
  19478. echo "-- dynamic udev -> $udev_lib"
  19479. cat >>confdefs.h <<_ACEOF
  19480. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19481. _ACEOF
  19482. fi
  19483. fi
  19484. fi
  19485. }
  19486. CheckDBus()
  19487. {
  19488. # Check whether --enable-dbus was given.
  19489. if test "${enable_dbus+set}" = set; then :
  19490. enableval=$enable_dbus;
  19491. else
  19492. enable_dbus=yes
  19493. fi
  19494. if test x$enable_dbus = xyes; then
  19495. pkg_failed=no
  19496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
  19497. $as_echo_n "checking for DBUS... " >&6; }
  19498. if test -n "$DBUS_CFLAGS"; then
  19499. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19500. elif test -n "$PKG_CONFIG"; then
  19501. if test -n "$PKG_CONFIG" && \
  19502. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19503. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19504. ac_status=$?
  19505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19506. test $ac_status = 0; }; then
  19507. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19508. else
  19509. pkg_failed=yes
  19510. fi
  19511. else
  19512. pkg_failed=untried
  19513. fi
  19514. if test -n "$DBUS_LIBS"; then
  19515. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19516. elif test -n "$PKG_CONFIG"; then
  19517. if test -n "$PKG_CONFIG" && \
  19518. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19519. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19520. ac_status=$?
  19521. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19522. test $ac_status = 0; }; then
  19523. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19524. else
  19525. pkg_failed=yes
  19526. fi
  19527. else
  19528. pkg_failed=untried
  19529. fi
  19530. if test $pkg_failed = yes; then
  19531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19532. $as_echo "no" >&6; }
  19533. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19534. _pkg_short_errors_supported=yes
  19535. else
  19536. _pkg_short_errors_supported=no
  19537. fi
  19538. if test $_pkg_short_errors_supported = yes; then
  19539. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1`
  19540. else
  19541. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1`
  19542. fi
  19543. # Put the nasty error message in config.log where it belongs
  19544. echo "$DBUS_PKG_ERRORS" >&5
  19545. have_dbus=no
  19546. elif test $pkg_failed = untried; then
  19547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19548. $as_echo "no" >&6; }
  19549. have_dbus=no
  19550. else
  19551. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19552. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19554. $as_echo "yes" >&6; }
  19555. have_dbus=yes
  19556. fi
  19557. save_CFLAGS="$CFLAGS"
  19558. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19559. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19560. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19561. have_dbus_dbus_h_hdr=yes
  19562. else
  19563. have_dbus_dbus_h_hdr=no
  19564. fi
  19565. CFLAGS="$save_CFLAGS"
  19566. if test x$have_dbus_dbus_h_hdr = xyes; then
  19567. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19568. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19569. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19570. fi
  19571. fi
  19572. }
  19573. CheckIME()
  19574. {
  19575. # Check whether --enable-ime was given.
  19576. if test "${enable_ime+set}" = set; then :
  19577. enableval=$enable_ime;
  19578. else
  19579. enable_ime=yes
  19580. fi
  19581. if test x$enable_ime = xyes; then
  19582. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19583. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19584. fi
  19585. }
  19586. CheckIBus()
  19587. {
  19588. # Check whether --enable-ibus was given.
  19589. if test "${enable_ibus+set}" = set; then :
  19590. enableval=$enable_ibus;
  19591. else
  19592. enable_ibus=yes
  19593. fi
  19594. if test x$enable_ibus = xyes; then
  19595. pkg_failed=no
  19596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
  19597. $as_echo_n "checking for IBUS... " >&6; }
  19598. if test -n "$IBUS_CFLAGS"; then
  19599. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19600. elif test -n "$PKG_CONFIG"; then
  19601. if test -n "$PKG_CONFIG" && \
  19602. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19603. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19604. ac_status=$?
  19605. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19606. test $ac_status = 0; }; then
  19607. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19608. else
  19609. pkg_failed=yes
  19610. fi
  19611. else
  19612. pkg_failed=untried
  19613. fi
  19614. if test -n "$IBUS_LIBS"; then
  19615. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19616. elif test -n "$PKG_CONFIG"; then
  19617. if test -n "$PKG_CONFIG" && \
  19618. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19619. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19620. ac_status=$?
  19621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19622. test $ac_status = 0; }; then
  19623. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19624. else
  19625. pkg_failed=yes
  19626. fi
  19627. else
  19628. pkg_failed=untried
  19629. fi
  19630. if test $pkg_failed = yes; then
  19631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19632. $as_echo "no" >&6; }
  19633. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19634. _pkg_short_errors_supported=yes
  19635. else
  19636. _pkg_short_errors_supported=no
  19637. fi
  19638. if test $_pkg_short_errors_supported = yes; then
  19639. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0" 2>&1`
  19640. else
  19641. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0" 2>&1`
  19642. fi
  19643. # Put the nasty error message in config.log where it belongs
  19644. echo "$IBUS_PKG_ERRORS" >&5
  19645. have_ibus=no
  19646. elif test $pkg_failed = untried; then
  19647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19648. $as_echo "no" >&6; }
  19649. have_ibus=no
  19650. else
  19651. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  19652. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  19653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19654. $as_echo "yes" >&6; }
  19655. have_ibus=yes
  19656. fi
  19657. save_CFLAGS="$CFLAGS"
  19658. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19659. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19660. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19661. have_ibus_ibus_h_hdr=yes
  19662. else
  19663. have_ibus_ibus_h_hdr=no
  19664. fi
  19665. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19666. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19667. have_inotify_inotify_h_hdr=yes
  19668. else
  19669. have_inotify_inotify_h_hdr=no
  19670. fi
  19671. CFLAGS="$save_CFLAGS"
  19672. if test x$have_ibus_ibus_h_hdr = xyes; then
  19673. if test x$enable_ime != xyes; then
  19674. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19675. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19676. have_ibus_ibus_h_hdr=no
  19677. elif test x$enable_dbus != xyes; then
  19678. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19679. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19680. have_ibus_ibus_h_hdr=no
  19681. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19682. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19683. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19684. have_ibus_ibus_h_hdr=no
  19685. else
  19686. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19687. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19688. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19689. fi
  19690. fi
  19691. fi
  19692. }
  19693. CheckFcitx()
  19694. {
  19695. # Check whether --enable-fcitx was given.
  19696. if test "${enable_fcitx+set}" = set; then :
  19697. enableval=$enable_fcitx;
  19698. else
  19699. enable_fcitx=yes
  19700. fi
  19701. if test x$enable_fcitx = xyes; then
  19702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  19703. $as_echo_n "checking for fcitx support... " >&6; }
  19704. have_fcitx=no
  19705. if test x$enable_ime != xyes; then
  19706. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19707. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19708. elif test x$have_dbus_dbus_h_hdr != xyes; then
  19709. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19710. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19711. else
  19712. have_fcitx=yes
  19713. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  19714. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19715. fi
  19716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  19717. $as_echo "$have_fcitx" >&6; }
  19718. fi
  19719. }
  19720. CheckTslib()
  19721. {
  19722. # Check whether --enable-input-tslib was given.
  19723. if test "${enable_input_tslib+set}" = set; then :
  19724. enableval=$enable_input_tslib;
  19725. else
  19726. enable_input_tslib=yes
  19727. fi
  19728. if test x$enable_input_tslib = xyes; then
  19729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19730. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19731. enable_input_tslib=no
  19732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19733. /* end confdefs.h. */
  19734. #include "tslib.h"
  19735. int
  19736. main ()
  19737. {
  19738. ;
  19739. return 0;
  19740. }
  19741. _ACEOF
  19742. if ac_fn_c_try_compile "$LINENO"; then :
  19743. enable_input_tslib=yes
  19744. fi
  19745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19747. $as_echo "$enable_input_tslib" >&6; }
  19748. if test x$enable_input_tslib = xyes; then
  19749. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19750. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19751. SUMMARY_input="${SUMMARY_input} ts"
  19752. fi
  19753. fi
  19754. }
  19755. CheckPTHREAD()
  19756. {
  19757. # Check whether --enable-pthreads was given.
  19758. if test "${enable_pthreads+set}" = set; then :
  19759. enableval=$enable_pthreads;
  19760. else
  19761. enable_pthreads=yes
  19762. fi
  19763. # Check whether --enable-pthread-sem was given.
  19764. if test "${enable_pthread_sem+set}" = set; then :
  19765. enableval=$enable_pthread_sem;
  19766. else
  19767. enable_pthread_sem=yes
  19768. fi
  19769. case "$host" in
  19770. *-*-android*)
  19771. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19772. pthread_lib=""
  19773. ;;
  19774. *-*-linux*|*-*-uclinux*)
  19775. pthread_cflags="-D_REENTRANT"
  19776. pthread_lib="-lpthread"
  19777. ;;
  19778. *-*-bsdi*)
  19779. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19780. pthread_lib=""
  19781. ;;
  19782. *-*-darwin*)
  19783. pthread_cflags="-D_THREAD_SAFE"
  19784. # causes Carbon.p complaints?
  19785. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19786. ;;
  19787. *-*-freebsd*|*-*-dragonfly*)
  19788. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19789. pthread_lib="-pthread"
  19790. ;;
  19791. *-*-netbsd*)
  19792. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19793. pthread_lib="-lpthread"
  19794. ;;
  19795. *-*-openbsd*)
  19796. pthread_cflags="-D_REENTRANT"
  19797. pthread_lib="-pthread"
  19798. ;;
  19799. *-*-solaris2.9)
  19800. # From Solaris 9+, posix4's preferred name is rt.
  19801. pthread_cflags="-D_REENTRANT"
  19802. pthread_lib="-lpthread -lrt"
  19803. ;;
  19804. *-*-solaris2.10)
  19805. # Solaris 10+ merged pthread into libc.
  19806. pthread_cflags="-D_REENTRANT"
  19807. pthread_lib="-lrt"
  19808. ;;
  19809. *-*-solaris*)
  19810. # Solaris 11+ merged rt into libc.
  19811. pthread_cflags="-D_REENTRANT"
  19812. pthread_lib=""
  19813. ;;
  19814. *-*-sysv5*)
  19815. pthread_cflags="-D_REENTRANT -Kthread"
  19816. pthread_lib=""
  19817. ;;
  19818. *-*-aix*)
  19819. pthread_cflags="-D_REENTRANT -mthreads"
  19820. pthread_lib="-lpthread"
  19821. ;;
  19822. *-*-hpux11*)
  19823. pthread_cflags="-D_REENTRANT"
  19824. pthread_lib="-L/usr/lib -lpthread"
  19825. ;;
  19826. *-*-haiku*)
  19827. pthread_cflags="-D_REENTRANT"
  19828. pthread_lib=""
  19829. ;;
  19830. *-*-nto*)
  19831. pthread_cflags="-D_REENTRANT"
  19832. pthread_lib=""
  19833. ;;
  19834. *)
  19835. pthread_cflags="-D_REENTRANT"
  19836. pthread_lib="-lpthread"
  19837. ;;
  19838. esac
  19839. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19840. # Save the original compiler flags and libraries
  19841. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19842. # Add the pthread compiler flags and libraries
  19843. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19844. # Check to see if we have pthread support on this system
  19845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19846. $as_echo_n "checking for pthreads... " >&6; }
  19847. use_pthreads=no
  19848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19849. /* end confdefs.h. */
  19850. #include <pthread.h>
  19851. int
  19852. main ()
  19853. {
  19854. pthread_attr_t type;
  19855. pthread_attr_init(&type);
  19856. ;
  19857. return 0;
  19858. }
  19859. _ACEOF
  19860. if ac_fn_c_try_link "$LINENO"; then :
  19861. use_pthreads=yes
  19862. fi
  19863. rm -f core conftest.err conftest.$ac_objext \
  19864. conftest$ac_exeext conftest.$ac_ext
  19865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19866. $as_echo "$use_pthreads" >&6; }
  19867. # Restore the compiler flags and libraries
  19868. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19869. # Do futher testing if we have pthread support...
  19870. if test x$use_pthreads = xyes; then
  19871. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19872. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19873. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19874. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19875. # Save the original compiler flags and libraries
  19876. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19877. # Add the pthread compiler flags and libraries
  19878. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19879. # Check to see if recursive mutexes are available
  19880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19881. $as_echo_n "checking for recursive mutexes... " >&6; }
  19882. has_recursive_mutexes=no
  19883. if test x$has_recursive_mutexes = xno; then
  19884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19885. /* end confdefs.h. */
  19886. #define _GNU_SOURCE 1
  19887. #include <pthread.h>
  19888. int
  19889. main ()
  19890. {
  19891. pthread_mutexattr_t attr;
  19892. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19893. ;
  19894. return 0;
  19895. }
  19896. _ACEOF
  19897. if ac_fn_c_try_link "$LINENO"; then :
  19898. has_recursive_mutexes=yes
  19899. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19900. fi
  19901. rm -f core conftest.err conftest.$ac_objext \
  19902. conftest$ac_exeext conftest.$ac_ext
  19903. fi
  19904. if test x$has_recursive_mutexes = xno; then
  19905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19906. /* end confdefs.h. */
  19907. #define _GNU_SOURCE 1
  19908. #include <pthread.h>
  19909. int
  19910. main ()
  19911. {
  19912. pthread_mutexattr_t attr;
  19913. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19914. ;
  19915. return 0;
  19916. }
  19917. _ACEOF
  19918. if ac_fn_c_try_link "$LINENO"; then :
  19919. has_recursive_mutexes=yes
  19920. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19921. fi
  19922. rm -f core conftest.err conftest.$ac_objext \
  19923. conftest$ac_exeext conftest.$ac_ext
  19924. fi
  19925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19926. $as_echo "$has_recursive_mutexes" >&6; }
  19927. # Check to see if pthread semaphore support is missing
  19928. if test x$enable_pthread_sem = xyes; then
  19929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19930. $as_echo_n "checking for pthread semaphores... " >&6; }
  19931. have_pthread_sem=no
  19932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19933. /* end confdefs.h. */
  19934. #include <pthread.h>
  19935. #include <semaphore.h>
  19936. int
  19937. main ()
  19938. {
  19939. ;
  19940. return 0;
  19941. }
  19942. _ACEOF
  19943. if ac_fn_c_try_compile "$LINENO"; then :
  19944. have_pthread_sem=yes
  19945. fi
  19946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19948. $as_echo "$have_pthread_sem" >&6; }
  19949. fi
  19950. if test x$have_pthread_sem = xyes; then
  19951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19952. $as_echo_n "checking for sem_timedwait... " >&6; }
  19953. have_sem_timedwait=no
  19954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19955. /* end confdefs.h. */
  19956. #include <pthread.h>
  19957. #include <semaphore.h>
  19958. int
  19959. main ()
  19960. {
  19961. sem_timedwait(NULL, NULL);
  19962. ;
  19963. return 0;
  19964. }
  19965. _ACEOF
  19966. if ac_fn_c_try_link "$LINENO"; then :
  19967. have_sem_timedwait=yes
  19968. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19969. fi
  19970. rm -f core conftest.err conftest.$ac_objext \
  19971. conftest$ac_exeext conftest.$ac_ext
  19972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19973. $as_echo "$have_sem_timedwait" >&6; }
  19974. fi
  19975. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19976. "
  19977. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19978. have_pthread_np_h=yes
  19979. else
  19980. have_pthread_np_h=no
  19981. fi
  19982. if test x$have_pthread_np_h = xyes; then
  19983. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19984. fi
  19985. # Check to see if pthread naming is available
  19986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19987. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19989. /* end confdefs.h. */
  19990. /* Override any GCC internal prototype to avoid an error.
  19991. Use char because int might match the return type of a GCC
  19992. builtin and then its argument prototype would still apply. */
  19993. #ifdef __cplusplus
  19994. extern "C"
  19995. #endif
  19996. char pthread_setname_np ();
  19997. int
  19998. main ()
  19999. {
  20000. return pthread_setname_np ();
  20001. ;
  20002. return 0;
  20003. }
  20004. _ACEOF
  20005. if ac_fn_c_try_link "$LINENO"; then :
  20006. has_pthread_setname_np=yes
  20007. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20008. else
  20009. has_pthread_setname_np=no
  20010. fi
  20011. rm -f core conftest.err conftest.$ac_objext \
  20012. conftest$ac_exeext conftest.$ac_ext
  20013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20014. $as_echo "$has_pthread_setname_np" >&6; }
  20015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20016. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20018. /* end confdefs.h. */
  20019. /* Override any GCC internal prototype to avoid an error.
  20020. Use char because int might match the return type of a GCC
  20021. builtin and then its argument prototype would still apply. */
  20022. #ifdef __cplusplus
  20023. extern "C"
  20024. #endif
  20025. char pthread_set_name_np ();
  20026. int
  20027. main ()
  20028. {
  20029. return pthread_set_name_np ();
  20030. ;
  20031. return 0;
  20032. }
  20033. _ACEOF
  20034. if ac_fn_c_try_link "$LINENO"; then :
  20035. has_pthread_set_name_np=yes
  20036. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20037. else
  20038. has_pthread_set_name_np=no
  20039. fi
  20040. rm -f core conftest.err conftest.$ac_objext \
  20041. conftest$ac_exeext conftest.$ac_ext
  20042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20043. $as_echo "$has_pthread_set_name_np" >&6; }
  20044. # Restore the compiler flags and libraries
  20045. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20046. # Basic thread creation functions
  20047. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20048. # Semaphores
  20049. # We can fake these with mutexes and condition variables if necessary
  20050. if test x$have_pthread_sem = xyes; then
  20051. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20052. else
  20053. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20054. fi
  20055. # Mutexes
  20056. # We can fake these with semaphores if necessary
  20057. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20058. # Condition variables
  20059. # We can fake these with semaphores and mutexes if necessary
  20060. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20061. # Thread local storage
  20062. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20063. have_threads=yes
  20064. fi
  20065. fi
  20066. }
  20067. CheckWINDOWS()
  20068. {
  20069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20070. $as_echo_n "checking Windows compiler... " >&6; }
  20071. have_win32_gcc=no
  20072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20073. /* end confdefs.h. */
  20074. #include <windows.h>
  20075. int
  20076. main ()
  20077. {
  20078. ;
  20079. return 0;
  20080. }
  20081. _ACEOF
  20082. if ac_fn_c_try_compile "$LINENO"; then :
  20083. have_win32_gcc=yes
  20084. fi
  20085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20087. $as_echo "$have_win32_gcc" >&6; }
  20088. if test x$have_win32_gcc != xyes; then
  20089. as_fn_error $? "
  20090. *** Your compiler ($CC) does not produce Windows executables!
  20091. " "$LINENO" 5
  20092. fi
  20093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20094. $as_echo_n "checking Windows CE... " >&6; }
  20095. have_wince=no
  20096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20097. /* end confdefs.h. */
  20098. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20099. #error This is not Windows CE
  20100. #endif
  20101. int
  20102. main ()
  20103. {
  20104. ;
  20105. return 0;
  20106. }
  20107. _ACEOF
  20108. if ac_fn_c_try_compile "$LINENO"; then :
  20109. have_wince=yes
  20110. as_fn_error $? "
  20111. *** Sorry, Windows CE is no longer supported.
  20112. " "$LINENO" 5
  20113. fi
  20114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20116. $as_echo "$have_wince" >&6; }
  20117. # This fixes Windows stack alignment with newer GCC
  20118. CheckStackBoundary
  20119. }
  20120. CheckDIRECTX()
  20121. {
  20122. # Check whether --enable-directx was given.
  20123. if test "${enable_directx+set}" = set; then :
  20124. enableval=$enable_directx;
  20125. else
  20126. enable_directx=yes
  20127. fi
  20128. if test x$enable_directx = xyes; then
  20129. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20130. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20131. have_d3d=yes
  20132. fi
  20133. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20134. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20135. have_d3d11=yes
  20136. fi
  20137. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20138. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20139. have_ddraw=yes
  20140. fi
  20141. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20142. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20143. have_dsound=yes
  20144. fi
  20145. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20146. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20147. have_dinput=yes
  20148. fi
  20149. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20150. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20151. have_dxgi=yes
  20152. fi
  20153. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20154. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20155. have_xinput=yes
  20156. fi
  20157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20158. /* end confdefs.h. */
  20159. #include <windows.h>
  20160. #include <xinput.h>
  20161. XINPUT_GAMEPAD_EX x1;
  20162. int
  20163. main ()
  20164. {
  20165. ;
  20166. return 0;
  20167. }
  20168. _ACEOF
  20169. if ac_fn_c_try_compile "$LINENO"; then :
  20170. have_xinput_gamepadex=yes
  20171. fi
  20172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20174. /* end confdefs.h. */
  20175. #include <windows.h>
  20176. #include <xinput.h>
  20177. XINPUT_STATE_EX s1;
  20178. int
  20179. main ()
  20180. {
  20181. ;
  20182. return 0;
  20183. }
  20184. _ACEOF
  20185. if ac_fn_c_try_compile "$LINENO"; then :
  20186. have_xinput_stateex=yes
  20187. fi
  20188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20189. if test x$have_ddraw = xyes; then
  20190. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20191. fi
  20192. if test x$have_dinput = xyes; then
  20193. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20194. fi
  20195. if test x$have_dsound = xyes; then
  20196. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20197. fi
  20198. if test x$have_dxgi = xyes; then
  20199. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20200. fi
  20201. if test x$have_xinput = xyes; then
  20202. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20203. fi
  20204. if test x$have_xinput_gamepadex = xyes; then
  20205. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20206. fi
  20207. if test x$have_xinput_stateex = xyes; then
  20208. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20209. fi
  20210. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20211. # FIXME: ...so force it off for now.
  20212. case "$host" in
  20213. *-*-cygwin*)
  20214. have_dinput=false
  20215. ;;
  20216. esac
  20217. fi
  20218. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20219. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20220. have_wasapi=yes
  20221. fi
  20222. if test x$have_wasapi = xyes; then
  20223. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20224. fi
  20225. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20226. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20227. else
  20228. have_wasapi=no
  20229. fi
  20230. if test x$have_wasapi = xyes; then
  20231. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20232. fi
  20233. # Check whether --enable-wasapi was given.
  20234. if test "${enable_wasapi+set}" = set; then :
  20235. enableval=$enable_wasapi;
  20236. else
  20237. enable_wasapi=yes
  20238. fi
  20239. }
  20240. CheckDLOPEN()
  20241. {
  20242. # Check whether --enable-sdl-dlopen was given.
  20243. if test "${enable_sdl_dlopen+set}" = set; then :
  20244. enableval=$enable_sdl_dlopen;
  20245. else
  20246. enable_sdl_dlopen=yes
  20247. fi
  20248. if test x$enable_sdl_dlopen = xyes; then
  20249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20250. $as_echo_n "checking for dlopen... " >&6; }
  20251. have_dlopen=no
  20252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20253. /* end confdefs.h. */
  20254. #include <dlfcn.h>
  20255. int
  20256. main ()
  20257. {
  20258. void *handle = dlopen("", RTLD_NOW);
  20259. const char *loaderror = (char *) dlerror();
  20260. ;
  20261. return 0;
  20262. }
  20263. _ACEOF
  20264. if ac_fn_c_try_compile "$LINENO"; then :
  20265. have_dlopen=yes
  20266. fi
  20267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20269. $as_echo "$have_dlopen" >&6; }
  20270. if test x$have_dlopen = xyes; then
  20271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20272. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20273. if ${ac_cv_lib_c_dlopen+:} false; then :
  20274. $as_echo_n "(cached) " >&6
  20275. else
  20276. ac_check_lib_save_LIBS=$LIBS
  20277. LIBS="-lc $LIBS"
  20278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20279. /* end confdefs.h. */
  20280. /* Override any GCC internal prototype to avoid an error.
  20281. Use char because int might match the return type of a GCC
  20282. builtin and then its argument prototype would still apply. */
  20283. #ifdef __cplusplus
  20284. extern "C"
  20285. #endif
  20286. char dlopen ();
  20287. int
  20288. main ()
  20289. {
  20290. return dlopen ();
  20291. ;
  20292. return 0;
  20293. }
  20294. _ACEOF
  20295. if ac_fn_c_try_link "$LINENO"; then :
  20296. ac_cv_lib_c_dlopen=yes
  20297. else
  20298. ac_cv_lib_c_dlopen=no
  20299. fi
  20300. rm -f core conftest.err conftest.$ac_objext \
  20301. conftest$ac_exeext conftest.$ac_ext
  20302. LIBS=$ac_check_lib_save_LIBS
  20303. fi
  20304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20305. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20306. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20307. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20308. else
  20309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20310. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20311. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20312. $as_echo_n "(cached) " >&6
  20313. else
  20314. ac_check_lib_save_LIBS=$LIBS
  20315. LIBS="-ldl $LIBS"
  20316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20317. /* end confdefs.h. */
  20318. /* Override any GCC internal prototype to avoid an error.
  20319. Use char because int might match the return type of a GCC
  20320. builtin and then its argument prototype would still apply. */
  20321. #ifdef __cplusplus
  20322. extern "C"
  20323. #endif
  20324. char dlopen ();
  20325. int
  20326. main ()
  20327. {
  20328. return dlopen ();
  20329. ;
  20330. return 0;
  20331. }
  20332. _ACEOF
  20333. if ac_fn_c_try_link "$LINENO"; then :
  20334. ac_cv_lib_dl_dlopen=yes
  20335. else
  20336. ac_cv_lib_dl_dlopen=no
  20337. fi
  20338. rm -f core conftest.err conftest.$ac_objext \
  20339. conftest$ac_exeext conftest.$ac_ext
  20340. LIBS=$ac_check_lib_save_LIBS
  20341. fi
  20342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20343. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20344. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20345. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20346. else
  20347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20348. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20349. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20350. $as_echo_n "(cached) " >&6
  20351. else
  20352. ac_check_lib_save_LIBS=$LIBS
  20353. LIBS="-lltdl $LIBS"
  20354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20355. /* end confdefs.h. */
  20356. /* Override any GCC internal prototype to avoid an error.
  20357. Use char because int might match the return type of a GCC
  20358. builtin and then its argument prototype would still apply. */
  20359. #ifdef __cplusplus
  20360. extern "C"
  20361. #endif
  20362. char dlopen ();
  20363. int
  20364. main ()
  20365. {
  20366. return dlopen ();
  20367. ;
  20368. return 0;
  20369. }
  20370. _ACEOF
  20371. if ac_fn_c_try_link "$LINENO"; then :
  20372. ac_cv_lib_ltdl_dlopen=yes
  20373. else
  20374. ac_cv_lib_ltdl_dlopen=no
  20375. fi
  20376. rm -f core conftest.err conftest.$ac_objext \
  20377. conftest$ac_exeext conftest.$ac_ext
  20378. LIBS=$ac_check_lib_save_LIBS
  20379. fi
  20380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20381. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20382. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20383. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20384. fi
  20385. fi
  20386. fi
  20387. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20388. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20389. have_loadso=yes
  20390. fi
  20391. fi
  20392. }
  20393. CheckUSBHID()
  20394. {
  20395. case "$host" in
  20396. *-*-*bsd*)
  20397. if test x$enable_joystick = xyes; then
  20398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20399. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20400. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20401. $as_echo_n "(cached) " >&6
  20402. else
  20403. ac_check_lib_save_LIBS=$LIBS
  20404. LIBS="-lusbhid $LIBS"
  20405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20406. /* end confdefs.h. */
  20407. /* Override any GCC internal prototype to avoid an error.
  20408. Use char because int might match the return type of a GCC
  20409. builtin and then its argument prototype would still apply. */
  20410. #ifdef __cplusplus
  20411. extern "C"
  20412. #endif
  20413. char hid_init ();
  20414. int
  20415. main ()
  20416. {
  20417. return hid_init ();
  20418. ;
  20419. return 0;
  20420. }
  20421. _ACEOF
  20422. if ac_fn_c_try_link "$LINENO"; then :
  20423. ac_cv_lib_usbhid_hid_init=yes
  20424. else
  20425. ac_cv_lib_usbhid_hid_init=no
  20426. fi
  20427. rm -f core conftest.err conftest.$ac_objext \
  20428. conftest$ac_exeext conftest.$ac_ext
  20429. LIBS=$ac_check_lib_save_LIBS
  20430. fi
  20431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20432. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20433. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20434. have_libusbhid=yes
  20435. fi
  20436. if test x$have_libusbhid = xyes; then
  20437. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20438. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20439. USB_CFLAGS="-DHAVE_USBHID_H"
  20440. fi
  20441. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20442. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20443. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20444. fi
  20445. USB_LIBS="$USB_LIBS -lusbhid"
  20446. else
  20447. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20448. if test "x$ac_cv_header_usb_h" = xyes; then :
  20449. USB_CFLAGS="-DHAVE_USB_H"
  20450. fi
  20451. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20452. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20453. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20454. fi
  20455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20456. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20457. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20458. $as_echo_n "(cached) " >&6
  20459. else
  20460. ac_check_lib_save_LIBS=$LIBS
  20461. LIBS="-lusb $LIBS"
  20462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20463. /* end confdefs.h. */
  20464. /* Override any GCC internal prototype to avoid an error.
  20465. Use char because int might match the return type of a GCC
  20466. builtin and then its argument prototype would still apply. */
  20467. #ifdef __cplusplus
  20468. extern "C"
  20469. #endif
  20470. char hid_init ();
  20471. int
  20472. main ()
  20473. {
  20474. return hid_init ();
  20475. ;
  20476. return 0;
  20477. }
  20478. _ACEOF
  20479. if ac_fn_c_try_link "$LINENO"; then :
  20480. ac_cv_lib_usb_hid_init=yes
  20481. else
  20482. ac_cv_lib_usb_hid_init=no
  20483. fi
  20484. rm -f core conftest.err conftest.$ac_objext \
  20485. conftest$ac_exeext conftest.$ac_ext
  20486. LIBS=$ac_check_lib_save_LIBS
  20487. fi
  20488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20489. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20490. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20491. USB_LIBS="$USB_LIBS -lusb"
  20492. fi
  20493. fi
  20494. save_CFLAGS="$CFLAGS"
  20495. CFLAGS="$CFLAGS $USB_CFLAGS"
  20496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20497. $as_echo_n "checking for usbhid... " >&6; }
  20498. have_usbhid=no
  20499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20500. /* end confdefs.h. */
  20501. #include <sys/types.h>
  20502. #if defined(HAVE_USB_H)
  20503. #include <usb.h>
  20504. #endif
  20505. #ifdef __DragonFly__
  20506. # include <bus/usb/usb.h>
  20507. # include <bus/usb/usbhid.h>
  20508. #else
  20509. # include <dev/usb/usb.h>
  20510. # include <dev/usb/usbhid.h>
  20511. #endif
  20512. #if defined(HAVE_USBHID_H)
  20513. #include <usbhid.h>
  20514. #elif defined(HAVE_LIBUSB_H)
  20515. #include <libusb.h>
  20516. #elif defined(HAVE_LIBUSBHID_H)
  20517. #include <libusbhid.h>
  20518. #endif
  20519. int
  20520. main ()
  20521. {
  20522. struct report_desc *repdesc;
  20523. struct usb_ctl_report *repbuf;
  20524. hid_kind_t hidkind;
  20525. ;
  20526. return 0;
  20527. }
  20528. _ACEOF
  20529. if ac_fn_c_try_compile "$LINENO"; then :
  20530. have_usbhid=yes
  20531. fi
  20532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20534. $as_echo "$have_usbhid" >&6; }
  20535. if test x$have_usbhid = xyes; then
  20536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20537. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20538. have_usbhid_ucr_data=no
  20539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20540. /* end confdefs.h. */
  20541. #include <sys/types.h>
  20542. #if defined(HAVE_USB_H)
  20543. #include <usb.h>
  20544. #endif
  20545. #ifdef __DragonFly__
  20546. # include <bus/usb/usb.h>
  20547. # include <bus/usb/usbhid.h>
  20548. #else
  20549. # include <dev/usb/usb.h>
  20550. # include <dev/usb/usbhid.h>
  20551. #endif
  20552. #if defined(HAVE_USBHID_H)
  20553. #include <usbhid.h>
  20554. #elif defined(HAVE_LIBUSB_H)
  20555. #include <libusb.h>
  20556. #elif defined(HAVE_LIBUSBHID_H)
  20557. #include <libusbhid.h>
  20558. #endif
  20559. int
  20560. main ()
  20561. {
  20562. struct usb_ctl_report buf;
  20563. if (buf.ucr_data) { }
  20564. ;
  20565. return 0;
  20566. }
  20567. _ACEOF
  20568. if ac_fn_c_try_compile "$LINENO"; then :
  20569. have_usbhid_ucr_data=yes
  20570. fi
  20571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20572. if test x$have_usbhid_ucr_data = xyes; then
  20573. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20574. fi
  20575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20576. $as_echo "$have_usbhid_ucr_data" >&6; }
  20577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20578. $as_echo_n "checking for new usbhid API... " >&6; }
  20579. have_usbhid_new=no
  20580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20581. /* end confdefs.h. */
  20582. #include <sys/types.h>
  20583. #if defined(HAVE_USB_H)
  20584. #include <usb.h>
  20585. #endif
  20586. #ifdef __DragonFly__
  20587. #include <bus/usb/usb.h>
  20588. #include <bus/usb/usbhid.h>
  20589. #else
  20590. #include <dev/usb/usb.h>
  20591. #include <dev/usb/usbhid.h>
  20592. #endif
  20593. #if defined(HAVE_USBHID_H)
  20594. #include <usbhid.h>
  20595. #elif defined(HAVE_LIBUSB_H)
  20596. #include <libusb.h>
  20597. #elif defined(HAVE_LIBUSBHID_H)
  20598. #include <libusbhid.h>
  20599. #endif
  20600. int
  20601. main ()
  20602. {
  20603. report_desc_t d;
  20604. hid_start_parse(d, 1, 1);
  20605. ;
  20606. return 0;
  20607. }
  20608. _ACEOF
  20609. if ac_fn_c_try_compile "$LINENO"; then :
  20610. have_usbhid_new=yes
  20611. fi
  20612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20613. if test x$have_usbhid_new = xyes; then
  20614. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20615. fi
  20616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20617. $as_echo "$have_usbhid_new" >&6; }
  20618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20619. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20620. have_machine_joystick=no
  20621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20622. /* end confdefs.h. */
  20623. #include <machine/joystick.h>
  20624. int
  20625. main ()
  20626. {
  20627. struct joystick t;
  20628. ;
  20629. return 0;
  20630. }
  20631. _ACEOF
  20632. if ac_fn_c_try_compile "$LINENO"; then :
  20633. have_machine_joystick=yes
  20634. fi
  20635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20636. if test x$have_machine_joystick = xyes; then
  20637. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20638. fi
  20639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20640. $as_echo "$have_machine_joystick" >&6; }
  20641. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20642. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20643. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20644. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20645. have_joystick=yes
  20646. fi
  20647. CFLAGS="$save_CFLAGS"
  20648. fi
  20649. ;;
  20650. esac
  20651. }
  20652. CheckHIDAPI()
  20653. {
  20654. # The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
  20655. # so we'll just use libusb when it's available.
  20656. case "$host" in
  20657. # libusb does not support iOS
  20658. *-ios-* )
  20659. skiplibusb=yes
  20660. ;;
  20661. # On the other hand, *BSD specifically uses libusb only
  20662. *-*-*bsd* )
  20663. onlylibusb=yes
  20664. ;;
  20665. # RAWINPUT is only available on Win32, but can be enabled if HIDAPI is
  20666. *-*-cygwin* | *-*-mingw32*)
  20667. userawinput=yes
  20668. ;;
  20669. esac
  20670. # Check whether --enable-hidapi was given.
  20671. if test "${enable_hidapi+set}" = set; then :
  20672. enableval=$enable_hidapi;
  20673. else
  20674. enable_hidapi=no
  20675. fi
  20676. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20677. if test x$skiplibusb = xyes; then
  20678. hidapi_support=yes
  20679. else
  20680. pkg_failed=no
  20681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
  20682. $as_echo_n "checking for LIBUSB... " >&6; }
  20683. if test -n "$LIBUSB_CFLAGS"; then
  20684. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  20685. elif test -n "$PKG_CONFIG"; then
  20686. if test -n "$PKG_CONFIG" && \
  20687. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20688. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20689. ac_status=$?
  20690. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20691. test $ac_status = 0; }; then
  20692. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  20693. else
  20694. pkg_failed=yes
  20695. fi
  20696. else
  20697. pkg_failed=untried
  20698. fi
  20699. if test -n "$LIBUSB_LIBS"; then
  20700. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  20701. elif test -n "$PKG_CONFIG"; then
  20702. if test -n "$PKG_CONFIG" && \
  20703. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20704. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20705. ac_status=$?
  20706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20707. test $ac_status = 0; }; then
  20708. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  20709. else
  20710. pkg_failed=yes
  20711. fi
  20712. else
  20713. pkg_failed=untried
  20714. fi
  20715. if test $pkg_failed = yes; then
  20716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20717. $as_echo "no" >&6; }
  20718. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20719. _pkg_short_errors_supported=yes
  20720. else
  20721. _pkg_short_errors_supported=no
  20722. fi
  20723. if test $_pkg_short_errors_supported = yes; then
  20724. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
  20725. else
  20726. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
  20727. fi
  20728. # Put the nasty error message in config.log where it belongs
  20729. echo "$LIBUSB_PKG_ERRORS" >&5
  20730. have_libusb=no
  20731. elif test $pkg_failed = untried; then
  20732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20733. $as_echo "no" >&6; }
  20734. have_libusb=no
  20735. else
  20736. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  20737. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  20738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20739. $as_echo "yes" >&6; }
  20740. have_libusb=yes
  20741. fi
  20742. save_CFLAGS="$CFLAGS"
  20743. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20744. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20745. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20746. have_libusb_h=yes
  20747. fi
  20748. CFLAGS="$save_CFLAGS"
  20749. if test x$have_libusb_h = xyes; then
  20750. hidapi_support=yes
  20751. elif test x$onlylibusb = xyes; then
  20752. hidapi_support=no
  20753. else
  20754. hidapi_support=yes
  20755. fi
  20756. fi
  20757. if test x$hidapi_support = xyes; then
  20758. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20759. if test x$userawinput = xyes; then
  20760. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  20761. fi
  20762. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20763. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20764. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  20765. if test x$have_libusb_h = xyes; then
  20766. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20767. if test x$onlylibusb = xyes; then
  20768. SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
  20769. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  20770. else
  20771. if test x$have_loadso != xyes; then
  20772. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  20773. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  20774. fi
  20775. # libusb is loaded dynamically, so don't add it to LDFLAGS
  20776. libusb_lib=""
  20777. case "$host" in
  20778. *-*-darwin* )
  20779. libusb_lib="libusb-1.0.0.dylib"
  20780. ;;
  20781. *-*-cygwin* | *-*-mingw32* )
  20782. libusb_lib="libusb-1.0.dll"
  20783. ;;
  20784. esac
  20785. if test x$libusb_lib = x; then
  20786. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20787. fi
  20788. cat >>confdefs.h <<_ACEOF
  20789. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  20790. _ACEOF
  20791. fi
  20792. fi
  20793. fi
  20794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20795. $as_echo_n "checking for hidapi support... " >&6; }
  20796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20797. $as_echo "$hidapi_support" >&6; }
  20798. fi
  20799. }
  20800. CheckClockGettime()
  20801. {
  20802. # Check whether --enable-clock_gettime was given.
  20803. if test "${enable_clock_gettime+set}" = set; then :
  20804. enableval=$enable_clock_gettime;
  20805. else
  20806. enable_clock_gettime=yes
  20807. fi
  20808. if test x$enable_clock_gettime = xyes; then
  20809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20810. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20811. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20812. $as_echo_n "(cached) " >&6
  20813. else
  20814. ac_check_lib_save_LIBS=$LIBS
  20815. LIBS="-lrt $LIBS"
  20816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20817. /* end confdefs.h. */
  20818. /* Override any GCC internal prototype to avoid an error.
  20819. Use char because int might match the return type of a GCC
  20820. builtin and then its argument prototype would still apply. */
  20821. #ifdef __cplusplus
  20822. extern "C"
  20823. #endif
  20824. char clock_gettime ();
  20825. int
  20826. main ()
  20827. {
  20828. return clock_gettime ();
  20829. ;
  20830. return 0;
  20831. }
  20832. _ACEOF
  20833. if ac_fn_c_try_link "$LINENO"; then :
  20834. ac_cv_lib_rt_clock_gettime=yes
  20835. else
  20836. ac_cv_lib_rt_clock_gettime=no
  20837. fi
  20838. rm -f core conftest.err conftest.$ac_objext \
  20839. conftest$ac_exeext conftest.$ac_ext
  20840. LIBS=$ac_check_lib_save_LIBS
  20841. fi
  20842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20843. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20844. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20845. have_clock_gettime=yes
  20846. fi
  20847. if test x$have_clock_gettime = xyes; then
  20848. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20849. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20850. else
  20851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20852. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20853. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20854. $as_echo_n "(cached) " >&6
  20855. else
  20856. ac_check_lib_save_LIBS=$LIBS
  20857. LIBS="-lc $LIBS"
  20858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20859. /* end confdefs.h. */
  20860. /* Override any GCC internal prototype to avoid an error.
  20861. Use char because int might match the return type of a GCC
  20862. builtin and then its argument prototype would still apply. */
  20863. #ifdef __cplusplus
  20864. extern "C"
  20865. #endif
  20866. char clock_gettime ();
  20867. int
  20868. main ()
  20869. {
  20870. return clock_gettime ();
  20871. ;
  20872. return 0;
  20873. }
  20874. _ACEOF
  20875. if ac_fn_c_try_link "$LINENO"; then :
  20876. ac_cv_lib_c_clock_gettime=yes
  20877. else
  20878. ac_cv_lib_c_clock_gettime=no
  20879. fi
  20880. rm -f core conftest.err conftest.$ac_objext \
  20881. conftest$ac_exeext conftest.$ac_ext
  20882. LIBS=$ac_check_lib_save_LIBS
  20883. fi
  20884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20885. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20886. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20887. have_clock_gettime=yes
  20888. fi
  20889. if test x$have_clock_gettime = xyes; then
  20890. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20891. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20892. fi
  20893. fi
  20894. fi
  20895. }
  20896. CheckLinuxVersion()
  20897. {
  20898. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20899. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20900. have_linux_version_h=yes
  20901. fi
  20902. if test x$have_linux_version_h = xyes; then
  20903. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20904. fi
  20905. }
  20906. CheckRPATH()
  20907. {
  20908. # Check whether --enable-rpath was given.
  20909. if test "${enable_rpath+set}" = set; then :
  20910. enableval=$enable_rpath;
  20911. else
  20912. enable_rpath=yes
  20913. fi
  20914. }
  20915. CheckEventSignals()
  20916. {
  20917. # Check whether --enable-backgrounding-signal was given.
  20918. if test "${enable_backgrounding_signal+set}" = set; then :
  20919. enableval=$enable_backgrounding_signal;
  20920. else
  20921. enable_backgrounding_signal=no
  20922. fi
  20923. if test x$enable_backgrounding_signal != xno; then
  20924. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  20925. fi
  20926. # Check whether --enable-foregrounding-signal was given.
  20927. if test "${enable_foregrounding_signal+set}" = set; then :
  20928. enableval=$enable_foregrounding_signal;
  20929. else
  20930. enable_foregrounding_signal=no
  20931. fi
  20932. if test x$enable_foregrounding_signal != xno; then
  20933. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  20934. fi
  20935. }
  20936. CheckVirtualJoystick()
  20937. {
  20938. # Check whether --enable-joystick-virtual was given.
  20939. if test "${enable_joystick_virtual+set}" = set; then :
  20940. enableval=$enable_joystick_virtual;
  20941. else
  20942. enable_joystick_virtual=yes
  20943. fi
  20944. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  20945. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  20946. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  20947. have_joystick_virtual=yes
  20948. fi
  20949. }
  20950. CheckWarnAll
  20951. CheckNoStrictAliasing
  20952. CheckEventSignals
  20953. have_locale=no
  20954. case "$host" in
  20955. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20956. case "$host" in
  20957. *-*-android*)
  20958. # Android
  20959. ARCH=android
  20960. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20961. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20962. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20963. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20964. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20965. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20966. if test x$enable_video = xyes; then
  20967. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20968. # FIXME: confdefs? Not AC_DEFINE?
  20969. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20970. SUMMARY_video="${SUMMARY_video} android"
  20971. fi
  20972. ;;
  20973. *-*-linux*) ARCH=linux ;;
  20974. *-*-uclinux*) ARCH=linux ;;
  20975. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20976. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20977. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20978. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20979. *-*-bsdi*) ARCH=bsdi ;;
  20980. *-*-freebsd*) ARCH=freebsd ;;
  20981. *-*-dragonfly*) ARCH=freebsd ;;
  20982. *-*-netbsd*) ARCH=netbsd ;;
  20983. *-*-openbsd*) ARCH=openbsd ;;
  20984. *-*-sysv5*) ARCH=sysv5 ;;
  20985. *-*-solaris*) ARCH=solaris ;;
  20986. *-*-hpux*) ARCH=hpux ;;
  20987. *-*-aix*) ARCH=aix ;;
  20988. *-*-minix*) ARCH=minix ;;
  20989. *-*-nto*) ARCH=nto
  20990. CheckQNXVideo
  20991. ;;
  20992. esac
  20993. CheckVisibilityHidden
  20994. CheckDeclarationAfterStatement
  20995. CheckDummyVideo
  20996. CheckDiskAudio
  20997. CheckDummyAudio
  20998. CheckDLOPEN
  20999. CheckARM
  21000. CheckNEON
  21001. CheckOSS
  21002. CheckALSA
  21003. CheckPulseAudio
  21004. CheckJACK
  21005. CheckARTSC
  21006. CheckESD
  21007. CheckNAS
  21008. CheckSNDIO
  21009. CheckFusionSound
  21010. CheckLibSampleRate
  21011. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21012. CheckRPI
  21013. CheckX11
  21014. CheckDirectFB
  21015. CheckKMSDRM
  21016. CheckOpenGLX11
  21017. CheckOpenGLESX11
  21018. CheckVulkan
  21019. CheckWayland
  21020. CheckInputEvents
  21021. CheckLibUDev
  21022. CheckDBus
  21023. CheckIME
  21024. CheckIBus
  21025. CheckFcitx
  21026. case $ARCH in
  21027. linux)
  21028. CheckInputKD
  21029. ;;
  21030. esac
  21031. CheckTslib
  21032. CheckUSBHID
  21033. CheckHIDAPI
  21034. CheckPTHREAD
  21035. CheckClockGettime
  21036. CheckLinuxVersion
  21037. CheckRPATH
  21038. CheckVivanteVideo
  21039. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  21040. have_locale=yes
  21041. # Set up files for the audio library
  21042. if test x$enable_audio = xyes; then
  21043. case $ARCH in
  21044. sysv5|solaris|hpux)
  21045. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21046. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21047. SUMMARY_audio="${SUMMARY_audio} sun"
  21048. have_audio=yes
  21049. ;;
  21050. netbsd) # Don't use this on OpenBSD, it's busted.
  21051. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21052. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21053. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21054. have_audio=yes
  21055. ;;
  21056. aix)
  21057. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21058. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21059. SUMMARY_audio="${SUMMARY_audio} paudio"
  21060. have_audio=yes
  21061. ;;
  21062. android)
  21063. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21064. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21065. SUMMARY_audio="${SUMMARY_audio} android"
  21066. have_audio=yes
  21067. ;;
  21068. nto)
  21069. CheckQNXAudio
  21070. ;;
  21071. esac
  21072. fi
  21073. # Set up files for the joystick library
  21074. if test x$enable_joystick = xyes; then
  21075. case $ARCH in
  21076. linux)
  21077. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21078. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21079. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21080. have_joystick=yes
  21081. ;;
  21082. android)
  21083. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21084. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21085. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21086. have_joystick=yes
  21087. ;;
  21088. esac
  21089. fi
  21090. # Set up files for the haptic library
  21091. if test x$enable_haptic = xyes; then
  21092. case $ARCH in
  21093. linux)
  21094. if test x$use_input_events = xyes; then
  21095. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21096. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21097. have_haptic=yes
  21098. fi
  21099. ;;
  21100. android)
  21101. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21102. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21103. have_haptic=yes
  21104. ;;
  21105. esac
  21106. fi
  21107. # Set up files for the sensor library
  21108. if test x$enable_sensor = xyes; then
  21109. case $ARCH in
  21110. android)
  21111. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21112. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21113. have_sensor=yes
  21114. ;;
  21115. esac
  21116. fi
  21117. # Set up files for the power library
  21118. if test x$enable_power = xyes; then
  21119. case $ARCH in
  21120. linux)
  21121. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21122. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21123. have_power=yes
  21124. ;;
  21125. android)
  21126. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21127. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21128. have_power=yes
  21129. ;;
  21130. esac
  21131. fi
  21132. # Set up files for the filesystem library
  21133. if test x$enable_filesystem = xyes; then
  21134. case $ARCH in
  21135. android)
  21136. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21137. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21138. have_filesystem=yes
  21139. ;;
  21140. *)
  21141. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21142. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21143. have_filesystem=yes
  21144. ;;
  21145. esac
  21146. fi
  21147. # Set up files for the timer library
  21148. if test x$enable_timers = xyes; then
  21149. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21150. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21151. have_timers=yes
  21152. fi
  21153. # Set up files for udev hotplugging support
  21154. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21155. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21156. fi
  21157. # Set up files for evdev input
  21158. if test x$use_input_events = xyes; then
  21159. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  21160. fi
  21161. # Set up other core UNIX files
  21162. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21163. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21164. ;;
  21165. *-*-cygwin* | *-*-mingw32*)
  21166. ARCH=win32
  21167. if test "$build" != "$host"; then # cross-compiling
  21168. # Default cross-compile location
  21169. ac_default_prefix=/usr/local/cross-tools/$host
  21170. else
  21171. # Look for the location of the tools and install there
  21172. if test "$BUILD_PREFIX" != ""; then
  21173. ac_default_prefix=$BUILD_PREFIX
  21174. fi
  21175. fi
  21176. CheckDeclarationAfterStatement
  21177. CheckDummyVideo
  21178. CheckDiskAudio
  21179. CheckDummyAudio
  21180. CheckWINDOWS
  21181. CheckWINDOWSGL
  21182. CheckWINDOWSGLES
  21183. CheckVulkan
  21184. CheckDIRECTX
  21185. CheckHIDAPI
  21186. # Set up the core platform files
  21187. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21188. # Use the Windows locale APIs.
  21189. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  21190. have_locale=yes
  21191. # Set up files for the video library
  21192. if test x$enable_video = xyes; then
  21193. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21194. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21195. have_video=yes
  21196. # Check whether --enable-render-d3d was given.
  21197. if test "${enable_render_d3d+set}" = set; then :
  21198. enableval=$enable_render_d3d;
  21199. else
  21200. enable_render_d3d=yes
  21201. fi
  21202. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21203. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21204. SUMMARY_video="${SUMMARY_video} d3d9"
  21205. fi
  21206. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21207. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21208. SUMMARY_video="${SUMMARY_video} d3d11"
  21209. fi
  21210. fi
  21211. # Set up files for the audio library
  21212. if test x$enable_audio = xyes; then
  21213. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21214. SUMMARY_audio="${SUMMARY_audio} winmm"
  21215. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21216. if test x$have_dsound = xyes; then
  21217. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21218. SUMMARY_audio="${SUMMARY_audio} directsound"
  21219. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21220. fi
  21221. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21222. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21223. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21224. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21225. fi
  21226. have_audio=yes
  21227. fi
  21228. # Set up files for the joystick library
  21229. if test x$enable_joystick = xyes; then
  21230. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21231. if test x$have_xinput = xyes; then
  21232. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21233. fi
  21234. if test x$have_dinput = xyes; then
  21235. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21236. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21237. fi
  21238. else
  21239. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21240. fi
  21241. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21242. have_joystick=yes
  21243. fi
  21244. if test x$enable_haptic = xyes; then
  21245. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21246. if test x$have_xinput = xyes; then
  21247. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21248. fi
  21249. if test x$have_dinput = xyes; then
  21250. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21251. fi
  21252. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21253. have_haptic=yes
  21254. fi
  21255. fi
  21256. # Set up files for the sensor library
  21257. if test x$enable_sensor = xyes; then
  21258. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  21259. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  21260. have_sensor=yes
  21261. fi
  21262. # Set up files for the power library
  21263. if test x$enable_power = xyes; then
  21264. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21265. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21266. have_power=yes
  21267. fi
  21268. # Set up files for the filesystem library
  21269. if test x$enable_filesystem = xyes; then
  21270. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21271. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21272. have_filesystem=yes
  21273. fi
  21274. # Set up files for the thread library
  21275. if test x$enable_threads = xyes; then
  21276. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21277. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21278. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21279. have_threads=yes
  21280. fi
  21281. # Set up files for the timer library
  21282. if test x$enable_timers = xyes; then
  21283. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21284. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21285. have_timers=yes
  21286. fi
  21287. # Set up files for the shared object loading library
  21288. if test x$enable_loadso = xyes; then
  21289. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21290. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21291. have_loadso=yes
  21292. fi
  21293. # Set up the system libraries we need
  21294. if test -f /lib/w32api/libuuid.a; then
  21295. LIBUUID=/lib/w32api/libuuid.a
  21296. else
  21297. LIBUUID=-luuid
  21298. fi
  21299. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  21300. # The Windows platform requires special setup
  21301. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21302. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21303. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21304. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21305. # Check to see if this is a mingw or cygwin build
  21306. have_mingw32=
  21307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21308. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21309. if ${ac_cv_lib_mingw32_main+:} false; then :
  21310. $as_echo_n "(cached) " >&6
  21311. else
  21312. ac_check_lib_save_LIBS=$LIBS
  21313. LIBS="-lmingw32 $LIBS"
  21314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21315. /* end confdefs.h. */
  21316. int
  21317. main ()
  21318. {
  21319. return main ();
  21320. ;
  21321. return 0;
  21322. }
  21323. _ACEOF
  21324. if ac_fn_c_try_link "$LINENO"; then :
  21325. ac_cv_lib_mingw32_main=yes
  21326. else
  21327. ac_cv_lib_mingw32_main=no
  21328. fi
  21329. rm -f core conftest.err conftest.$ac_objext \
  21330. conftest$ac_exeext conftest.$ac_ext
  21331. LIBS=$ac_check_lib_save_LIBS
  21332. fi
  21333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21334. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21335. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21336. have_mingw32=yes
  21337. fi
  21338. if test x$have_mingw32 = xyes; then
  21339. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21340. else
  21341. SDL_LIBS="-lcygwin $SDL_LIBS"
  21342. fi
  21343. ;;
  21344. *-*-beos*)
  21345. as_fn_error $? "
  21346. *** BeOS support has been removed as of SDL 2.0.2.
  21347. " "$LINENO" 5
  21348. ;;
  21349. *-*-haiku*)
  21350. ARCH=haiku
  21351. ac_default_prefix=/boot/system
  21352. CheckDummyVideo
  21353. CheckDiskAudio
  21354. CheckDummyAudio
  21355. CheckDLOPEN
  21356. CheckHaikuVideo
  21357. CheckHaikuGL
  21358. CheckPTHREAD
  21359. # Set up files for the audio library
  21360. if test x$enable_audio = xyes; then
  21361. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21362. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21363. SUMMARY_audio="${SUMMARY_audio} haiku"
  21364. have_audio=yes
  21365. fi
  21366. # Set up files for the joystick library
  21367. if test x$enable_joystick = xyes; then
  21368. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21369. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21370. have_joystick=yes
  21371. fi
  21372. # Set up files for the timer library
  21373. if test x$enable_timers = xyes; then
  21374. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21375. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21376. have_timers=yes
  21377. fi
  21378. # Set up files for the system power library
  21379. if test x$enable_power = xyes; then
  21380. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21381. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21382. have_power=yes
  21383. fi
  21384. # Set up files for the system filesystem library
  21385. if test x$enable_filesystem = xyes; then
  21386. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21387. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21388. have_filesystem=yes
  21389. fi
  21390. # Set up files for the locale library
  21391. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  21392. have_locale=yes
  21393. # The Haiku platform requires special setup.
  21394. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21395. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21396. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  21397. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  21398. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  21399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  21400. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  21401. if eval \${$as_ac_File+:} false; then :
  21402. $as_echo_n "(cached) " >&6
  21403. else
  21404. test "$cross_compiling" = yes &&
  21405. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  21406. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  21407. eval "$as_ac_File=yes"
  21408. else
  21409. eval "$as_ac_File=no"
  21410. fi
  21411. fi
  21412. eval ac_res=\$$as_ac_File
  21413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21414. $as_echo "$ac_res" >&6; }
  21415. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  21416. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  21417. else
  21418. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  21419. fi
  21420. ;;
  21421. *-ios-*)
  21422. ARCH=ios
  21423. CheckVisibilityHidden
  21424. CheckDeclarationAfterStatement
  21425. CheckDummyVideo
  21426. CheckDiskAudio
  21427. CheckDummyAudio
  21428. CheckDLOPEN
  21429. CheckMETAL
  21430. CheckVulkan
  21431. CheckPTHREAD
  21432. # Set up files for the locale library
  21433. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21434. have_locale=yes
  21435. # Set up files for the audio library
  21436. if test x$enable_audio = xyes; then
  21437. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21438. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21439. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21440. have_audio=yes
  21441. fi
  21442. # Set up files for the joystick library
  21443. if test x$enable_joystick = xyes; then
  21444. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21445. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21446. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21447. have_joystick=yes
  21448. else
  21449. # Need this code for accelerometer as joystick support
  21450. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21451. fi
  21452. # Set up files for the haptic library
  21453. #if test x$enable_haptic = xyes; then
  21454. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21455. # have_haptic=yes
  21456. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21457. #fi
  21458. # Set up files for the sensor library
  21459. if test x$enable_sensor = xyes; then
  21460. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21461. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21462. have_sensor=yes
  21463. fi
  21464. # Set up files for the power library
  21465. if test x$enable_power = xyes; then
  21466. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21467. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21468. have_power=yes
  21469. fi
  21470. # Set up files for the filesystem library
  21471. if test x$enable_filesystem = xyes; then
  21472. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21473. have_filesystem=yes
  21474. fi
  21475. # Set up additional files for the file library
  21476. if test x$enable_file = xyes; then
  21477. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21478. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21479. fi
  21480. # Set up files for the timer library
  21481. if test x$enable_timers = xyes; then
  21482. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21483. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21484. have_timers=yes
  21485. fi
  21486. # Set up other core UNIX files
  21487. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21488. # The iOS platform requires special setup.
  21489. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21490. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21491. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21492. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21493. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21494. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21495. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21496. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21497. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21498. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21499. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21500. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21501. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21502. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21503. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21504. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21505. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21506. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21507. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21508. fi
  21509. ;;
  21510. *-*-darwin* )
  21511. # This could be either full "Mac OS X", or plain "Darwin" which is
  21512. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21513. # Next line is broken, and a few files below require Mac OS X (full)
  21514. ARCH=macosx
  21515. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21516. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21517. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21518. CheckVisibilityHidden
  21519. CheckDeclarationAfterStatement
  21520. CheckDummyVideo
  21521. CheckDiskAudio
  21522. CheckDummyAudio
  21523. CheckDLOPEN
  21524. CheckCOCOA
  21525. CheckMETAL
  21526. CheckX11
  21527. CheckMacGL
  21528. CheckMacGLES
  21529. CheckOpenGLX11
  21530. CheckVulkan
  21531. CheckPTHREAD
  21532. CheckHIDAPI
  21533. # Set up files for the locale library
  21534. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21535. have_locale=yes
  21536. # Set up files for the audio library
  21537. if test x$enable_audio = xyes; then
  21538. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21539. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21540. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21541. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21542. have_audio=yes
  21543. fi
  21544. # Set up files for the joystick library
  21545. if test x$enable_joystick = xyes; then
  21546. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21547. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21548. have_joystick=yes
  21549. fi
  21550. # Set up files for the haptic library
  21551. if test x$enable_haptic = xyes; then
  21552. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21553. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21554. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21555. have_haptic=yes
  21556. fi
  21557. # Set up files for the power library
  21558. if test x$enable_power = xyes; then
  21559. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21560. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21561. have_power=yes
  21562. fi
  21563. # Set up files for the filesystem library
  21564. if test x$enable_filesystem = xyes; then
  21565. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21566. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21567. have_filesystem=yes
  21568. fi
  21569. # Set up files for the timer library
  21570. if test x$enable_timers = xyes; then
  21571. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21572. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21573. have_timers=yes
  21574. fi
  21575. # Set up additional files for the file library
  21576. if test x$enable_file = xyes; then
  21577. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21578. fi
  21579. # Set up other core UNIX files
  21580. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21581. # The Mac OS X platform requires special setup.
  21582. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21583. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21584. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21585. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21586. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21587. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21588. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21589. fi
  21590. ;;
  21591. *-nacl|*-pnacl)
  21592. ARCH=nacl
  21593. CheckNativeClient
  21594. CheckDummyAudio
  21595. CheckDummyVideo
  21596. CheckInputEvents
  21597. CheckPTHREAD
  21598. # Set up files for the timer library
  21599. if test x$enable_timers = xyes; then
  21600. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21601. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21602. have_timers=yes
  21603. fi
  21604. if test x$enable_filesystem = xyes; then
  21605. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21606. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21607. have_filesystem=yes
  21608. fi
  21609. ;;
  21610. *-*-emscripten* )
  21611. if test x$enable_video = xyes; then
  21612. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21613. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21614. have_video=yes
  21615. SUMMARY_video="${SUMMARY_video} emscripten"
  21616. fi
  21617. if test x$enable_audio = xyes; then
  21618. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21619. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21620. have_audio=yes
  21621. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21622. fi
  21623. CheckVisibilityHidden
  21624. CheckDeclarationAfterStatement
  21625. CheckDummyVideo
  21626. CheckDiskAudio
  21627. CheckDummyAudio
  21628. CheckDLOPEN
  21629. CheckClockGettime
  21630. CheckEmscriptenGLES
  21631. # Set up files for the power library
  21632. if test x$enable_power = xyes; then
  21633. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21634. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21635. have_power=yes
  21636. fi
  21637. # Set up files for the power library
  21638. if test x$enable_joystick = xyes; then
  21639. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21640. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21641. have_joystick=yes
  21642. fi
  21643. # Set up files for the filesystem library
  21644. if test x$enable_filesystem = xyes; then
  21645. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21646. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21647. have_filesystem=yes
  21648. fi
  21649. # Set up files for the timer library
  21650. if test x$enable_timers = xyes; then
  21651. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21652. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21653. have_timers=yes
  21654. fi
  21655. # Set up files for the locale library
  21656. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  21657. have_locale=yes
  21658. ;;
  21659. *-*-riscos*)
  21660. ARCH=riscos
  21661. CheckVisibilityHidden
  21662. CheckDeclarationAfterStatement
  21663. CheckDummyVideo
  21664. CheckDiskAudio
  21665. CheckDummyAudio
  21666. CheckDLOPEN
  21667. CheckOSS
  21668. CheckPTHREAD
  21669. CheckClockGettime
  21670. # Set up files for the timer library
  21671. if test x$enable_timers = xyes; then
  21672. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21673. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21674. have_timers=yes
  21675. fi
  21676. ;;
  21677. *)
  21678. as_fn_error $? "
  21679. *** Unsupported host: Please add to configure.ac
  21680. " "$LINENO" 5
  21681. ;;
  21682. esac
  21683. CheckVirtualJoystick
  21684. # Check whether to install sdl2-config
  21685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  21686. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  21687. # Check whether --enable-sdl2-config was given.
  21688. if test "${enable_sdl2_config+set}" = set; then :
  21689. enableval=$enable_sdl2_config; case "${enableval}" in
  21690. yes) enable_sdl2_config="TRUE" ;;
  21691. no) enable_sdl2_config="FALSE" ;;
  21692. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  21693. esac
  21694. else
  21695. enable_sdl2_config="TRUE"
  21696. fi
  21697. if test "$enable_sdl2_config" = "TRUE"; then
  21698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21699. $as_echo "yes" >&6; }
  21700. else
  21701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21702. $as_echo "no" >&6; }
  21703. fi
  21704. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  21705. # Verify that we have all the platform specific files we need
  21706. if test x$have_locale != xyes; then
  21707. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  21708. fi
  21709. if test x$have_joystick != xyes; then
  21710. if test x$enable_joystick = xyes; then
  21711. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21712. fi
  21713. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21714. fi
  21715. if test x$have_haptic != xyes; then
  21716. if test x$enable_haptic = xyes; then
  21717. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21718. fi
  21719. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21720. fi
  21721. if test x$have_sensor != xyes; then
  21722. if test x$enable_sensor = xyes; then
  21723. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21724. fi
  21725. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21726. fi
  21727. if test x$have_threads != xyes; then
  21728. if test x$enable_threads = xyes; then
  21729. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21730. fi
  21731. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21732. fi
  21733. if test x$have_timers != xyes; then
  21734. if test x$enable_timers = xyes; then
  21735. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21736. fi
  21737. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21738. fi
  21739. if test x$have_filesystem != xyes; then
  21740. if test x$enable_filesystem = xyes; then
  21741. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21742. fi
  21743. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21744. fi
  21745. if test x$have_loadso != xyes; then
  21746. if test x$enable_loadso = xyes; then
  21747. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21748. fi
  21749. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21750. fi
  21751. if test x$SDLMAIN_SOURCES = x; then
  21752. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21753. fi
  21754. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21755. if test x$video_wayland = xyes; then
  21756. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21757. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
  21758. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
  21759. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21760. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21761. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21762. echo ;\
  21763. echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21764. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21765. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21766. echo ;\
  21767. echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21768. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21769. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21770. echo ;\
  21771. echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21772. echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21773. done ;\
  21774. echo ;\
  21775. for s in $WAYLAND_SOURCES ; do echo -n "\$s:" ; for p in $WAYLAND_PROTOCOLS ; do echo -n " \\$(gen)/\$p-client-protocol.h" ; done ; echo ; done ; echo`
  21776. fi
  21777. OBJECTS=`echo $SOURCES`
  21778. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21779. for EXT in asm cc m c S; do
  21780. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21781. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21782. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  21783. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21784. done
  21785. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21786. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21787. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21788. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  21789. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21790. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  21791. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  21792. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21793. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21794. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21795. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21796. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21797. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21798. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21799. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21800. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21801. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21802. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21803. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21804. # Set runtime shared library paths as needed
  21805. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  21806. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21807. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21809. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21810. have_enable_new_dtags=no
  21811. save_LDFLAGS="$LDFLAGS"
  21812. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21814. /* end confdefs.h. */
  21815. int
  21816. main ()
  21817. {
  21818. ;
  21819. return 0;
  21820. }
  21821. _ACEOF
  21822. if ac_fn_c_try_link "$LINENO"; then :
  21823. have_enable_new_dtags=yes
  21824. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21825. fi
  21826. rm -f core conftest.err conftest.$ac_objext \
  21827. conftest$ac_exeext conftest.$ac_ext
  21828. LDFLAGS="$save_LDFLAGS"
  21829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21830. $as_echo "$have_enable_new_dtags" >&6; }
  21831. fi
  21832. if test $ARCH = solaris; then
  21833. SDL_RLD_FLAGS="-R\${libdir}"
  21834. fi
  21835. else
  21836. SDL_RLD_FLAGS=""
  21837. fi
  21838. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  21839. if test x$enable_shared = xyes; then
  21840. PKG_CONFIG_LIBS_PRIV="
  21841. Libs.private:"
  21842. ENABLE_SHARED_TRUE=
  21843. ENABLE_SHARED_FALSE="#"
  21844. else
  21845. PKG_CONFIG_LIBS_PRIV=
  21846. ENABLE_SHARED_TRUE="#"
  21847. ENABLE_SHARED_FALSE=
  21848. fi
  21849. if test x$enable_static = xyes; then
  21850. ENABLE_STATIC_TRUE=
  21851. ENABLE_STATIC_FALSE="#"
  21852. else
  21853. ENABLE_STATIC_TRUE="#"
  21854. ENABLE_STATIC_FALSE=
  21855. fi
  21856. cat >Makefile.rules <<__EOF__
  21857. # Build rules for objects
  21858. -include \$(OBJECTS:.lo=.d)
  21859. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21860. $srcdir/src/SDL.c: update-revision
  21861. $DEPENDS
  21862. $VERSION_DEPENDS
  21863. $SDLMAIN_DEPENDS
  21864. $SDLTEST_DEPENDS
  21865. $WAYLAND_PROTOCOLS_DEPENDS
  21866. __EOF__
  21867. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  21868. ac_config_commands="$ac_config_commands sdl2_config"
  21869. SUMMARY="SDL2 Configure Summary:\n"
  21870. if test x$enable_shared = xyes; then
  21871. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21872. fi
  21873. if test x$enable_static = xyes; then
  21874. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21875. fi
  21876. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21877. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21878. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21879. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21880. if test x$have_x = xyes; then
  21881. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21882. fi
  21883. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21884. if test x$have_joystick_virtual = xyes; then
  21885. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  21886. else
  21887. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  21888. fi
  21889. if test x$have_samplerate_h_hdr = xyes; then
  21890. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21891. else
  21892. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21893. fi
  21894. if test x$have_libudev_h_hdr = xyes; then
  21895. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21896. else
  21897. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21898. fi
  21899. if test x$have_dbus_dbus_h_hdr = xyes; then
  21900. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21901. else
  21902. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21903. fi
  21904. if test x$enable_ime = xyes; then
  21905. SUMMARY="${SUMMARY}Using ime : YES\n"
  21906. else
  21907. SUMMARY="${SUMMARY}Using ime : NO\n"
  21908. fi
  21909. if test x$have_ibus_ibus_h_hdr = xyes; then
  21910. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21911. else
  21912. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21913. fi
  21914. if test x$have_fcitx = xyes; then
  21915. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21916. else
  21917. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21918. fi
  21919. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  21920. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  21921. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  21922. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  21923. SUMMARY="${SUMMARY}configure script with:\n"
  21924. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  21925. fi
  21926. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  21927. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  21928. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  21929. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  21930. SUMMARY="${SUMMARY}configure script with:\n"
  21931. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  21932. fi
  21933. ac_config_commands="$ac_config_commands summary"
  21934. cat >confcache <<\_ACEOF
  21935. # This file is a shell script that caches the results of configure
  21936. # tests run on this system so they can be shared between configure
  21937. # scripts and configure runs, see configure's option --config-cache.
  21938. # It is not useful on other systems. If it contains results you don't
  21939. # want to keep, you may remove or edit it.
  21940. #
  21941. # config.status only pays attention to the cache file if you give it
  21942. # the --recheck option to rerun configure.
  21943. #
  21944. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21945. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21946. # following values.
  21947. _ACEOF
  21948. # The following way of writing the cache mishandles newlines in values,
  21949. # but we know of no workaround that is simple, portable, and efficient.
  21950. # So, we kill variables containing newlines.
  21951. # Ultrix sh set writes to stderr and can't be redirected directly,
  21952. # and sets the high bit in the cache file unless we assign to the vars.
  21953. (
  21954. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21955. eval ac_val=\$$ac_var
  21956. case $ac_val in #(
  21957. *${as_nl}*)
  21958. case $ac_var in #(
  21959. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21960. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21961. esac
  21962. case $ac_var in #(
  21963. _ | IFS | as_nl) ;; #(
  21964. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21965. *) { eval $ac_var=; unset $ac_var;} ;;
  21966. esac ;;
  21967. esac
  21968. done
  21969. (set) 2>&1 |
  21970. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21971. *${as_nl}ac_space=\ *)
  21972. # `set' does not quote correctly, so add quotes: double-quote
  21973. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21974. sed -n \
  21975. "s/'/'\\\\''/g;
  21976. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21977. ;; #(
  21978. *)
  21979. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21980. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21981. ;;
  21982. esac |
  21983. sort
  21984. ) |
  21985. sed '
  21986. /^ac_cv_env_/b end
  21987. t clear
  21988. :clear
  21989. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21990. t end
  21991. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21992. :end' >>confcache
  21993. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21994. if test -w "$cache_file"; then
  21995. if test "x$cache_file" != "x/dev/null"; then
  21996. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21997. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21998. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21999. cat confcache >"$cache_file"
  22000. else
  22001. case $cache_file in #(
  22002. */* | ?:*)
  22003. mv -f confcache "$cache_file"$$ &&
  22004. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22005. *)
  22006. mv -f confcache "$cache_file" ;;
  22007. esac
  22008. fi
  22009. fi
  22010. else
  22011. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22012. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22013. fi
  22014. fi
  22015. rm -f confcache
  22016. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22017. # Let make expand exec_prefix.
  22018. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22019. DEFS=-DHAVE_CONFIG_H
  22020. ac_libobjs=
  22021. ac_ltlibobjs=
  22022. U=
  22023. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22024. # 1. Remove the extension, and $U if already installed.
  22025. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22026. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22027. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22028. # will be set to the directory where LIBOBJS objects are built.
  22029. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22030. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22031. done
  22032. LIBOBJS=$ac_libobjs
  22033. LTLIBOBJS=$ac_ltlibobjs
  22034. : "${CONFIG_STATUS=./config.status}"
  22035. ac_write_fail=0
  22036. ac_clean_files_save=$ac_clean_files
  22037. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22038. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22039. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22040. as_write_fail=0
  22041. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22042. #! $SHELL
  22043. # Generated by $as_me.
  22044. # Run this file to recreate the current configuration.
  22045. # Compiler output produced by configure, useful for debugging
  22046. # configure, is in config.log if it exists.
  22047. debug=false
  22048. ac_cs_recheck=false
  22049. ac_cs_silent=false
  22050. SHELL=\${CONFIG_SHELL-$SHELL}
  22051. export SHELL
  22052. _ASEOF
  22053. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22054. ## -------------------- ##
  22055. ## M4sh Initialization. ##
  22056. ## -------------------- ##
  22057. # Be more Bourne compatible
  22058. DUALCASE=1; export DUALCASE # for MKS sh
  22059. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22060. emulate sh
  22061. NULLCMD=:
  22062. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22063. # is contrary to our usage. Disable this feature.
  22064. alias -g '${1+"$@"}'='"$@"'
  22065. setopt NO_GLOB_SUBST
  22066. else
  22067. case `(set -o) 2>/dev/null` in #(
  22068. *posix*) :
  22069. set -o posix ;; #(
  22070. *) :
  22071. ;;
  22072. esac
  22073. fi
  22074. as_nl='
  22075. '
  22076. export as_nl
  22077. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22078. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22079. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22080. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22081. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22082. # but without wasting forks for bash or zsh.
  22083. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22084. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22085. as_echo='print -r --'
  22086. as_echo_n='print -rn --'
  22087. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22088. as_echo='printf %s\n'
  22089. as_echo_n='printf %s'
  22090. else
  22091. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22092. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22093. as_echo_n='/usr/ucb/echo -n'
  22094. else
  22095. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22096. as_echo_n_body='eval
  22097. arg=$1;
  22098. case $arg in #(
  22099. *"$as_nl"*)
  22100. expr "X$arg" : "X\\(.*\\)$as_nl";
  22101. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22102. esac;
  22103. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22104. '
  22105. export as_echo_n_body
  22106. as_echo_n='sh -c $as_echo_n_body as_echo'
  22107. fi
  22108. export as_echo_body
  22109. as_echo='sh -c $as_echo_body as_echo'
  22110. fi
  22111. # The user is always right.
  22112. if test "${PATH_SEPARATOR+set}" != set; then
  22113. PATH_SEPARATOR=:
  22114. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22115. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22116. PATH_SEPARATOR=';'
  22117. }
  22118. fi
  22119. # IFS
  22120. # We need space, tab and new line, in precisely that order. Quoting is
  22121. # there to prevent editors from complaining about space-tab.
  22122. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22123. # splitting by setting IFS to empty value.)
  22124. IFS=" "" $as_nl"
  22125. # Find who we are. Look in the path if we contain no directory separator.
  22126. as_myself=
  22127. case $0 in #((
  22128. *[\\/]* ) as_myself=$0 ;;
  22129. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22130. for as_dir in $PATH
  22131. do
  22132. IFS=$as_save_IFS
  22133. test -z "$as_dir" && as_dir=.
  22134. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22135. done
  22136. IFS=$as_save_IFS
  22137. ;;
  22138. esac
  22139. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22140. # in which case we are not to be found in the path.
  22141. if test "x$as_myself" = x; then
  22142. as_myself=$0
  22143. fi
  22144. if test ! -f "$as_myself"; then
  22145. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22146. exit 1
  22147. fi
  22148. # Unset variables that we do not need and which cause bugs (e.g. in
  22149. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22150. # suppresses any "Segmentation fault" message there. '((' could
  22151. # trigger a bug in pdksh 5.2.14.
  22152. for as_var in BASH_ENV ENV MAIL MAILPATH
  22153. do eval test x\${$as_var+set} = xset \
  22154. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22155. done
  22156. PS1='$ '
  22157. PS2='> '
  22158. PS4='+ '
  22159. # NLS nuisances.
  22160. LC_ALL=C
  22161. export LC_ALL
  22162. LANGUAGE=C
  22163. export LANGUAGE
  22164. # CDPATH.
  22165. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22166. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22167. # ----------------------------------------
  22168. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22169. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22170. # script with STATUS, using 1 if that was 0.
  22171. as_fn_error ()
  22172. {
  22173. as_status=$1; test $as_status -eq 0 && as_status=1
  22174. if test "$4"; then
  22175. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22176. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22177. fi
  22178. $as_echo "$as_me: error: $2" >&2
  22179. as_fn_exit $as_status
  22180. } # as_fn_error
  22181. # as_fn_set_status STATUS
  22182. # -----------------------
  22183. # Set $? to STATUS, without forking.
  22184. as_fn_set_status ()
  22185. {
  22186. return $1
  22187. } # as_fn_set_status
  22188. # as_fn_exit STATUS
  22189. # -----------------
  22190. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22191. as_fn_exit ()
  22192. {
  22193. set +e
  22194. as_fn_set_status $1
  22195. exit $1
  22196. } # as_fn_exit
  22197. # as_fn_unset VAR
  22198. # ---------------
  22199. # Portably unset VAR.
  22200. as_fn_unset ()
  22201. {
  22202. { eval $1=; unset $1;}
  22203. }
  22204. as_unset=as_fn_unset
  22205. # as_fn_append VAR VALUE
  22206. # ----------------------
  22207. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22208. # advantage of any shell optimizations that allow amortized linear growth over
  22209. # repeated appends, instead of the typical quadratic growth present in naive
  22210. # implementations.
  22211. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22212. eval 'as_fn_append ()
  22213. {
  22214. eval $1+=\$2
  22215. }'
  22216. else
  22217. as_fn_append ()
  22218. {
  22219. eval $1=\$$1\$2
  22220. }
  22221. fi # as_fn_append
  22222. # as_fn_arith ARG...
  22223. # ------------------
  22224. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22225. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22226. # must be portable across $(()) and expr.
  22227. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22228. eval 'as_fn_arith ()
  22229. {
  22230. as_val=$(( $* ))
  22231. }'
  22232. else
  22233. as_fn_arith ()
  22234. {
  22235. as_val=`expr "$@" || test $? -eq 1`
  22236. }
  22237. fi # as_fn_arith
  22238. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22239. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22240. as_expr=expr
  22241. else
  22242. as_expr=false
  22243. fi
  22244. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22245. as_basename=basename
  22246. else
  22247. as_basename=false
  22248. fi
  22249. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22250. as_dirname=dirname
  22251. else
  22252. as_dirname=false
  22253. fi
  22254. as_me=`$as_basename -- "$0" ||
  22255. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22256. X"$0" : 'X\(//\)$' \| \
  22257. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22258. $as_echo X/"$0" |
  22259. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22260. s//\1/
  22261. q
  22262. }
  22263. /^X\/\(\/\/\)$/{
  22264. s//\1/
  22265. q
  22266. }
  22267. /^X\/\(\/\).*/{
  22268. s//\1/
  22269. q
  22270. }
  22271. s/.*/./; q'`
  22272. # Avoid depending upon Character Ranges.
  22273. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22274. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22275. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22276. as_cr_digits='0123456789'
  22277. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22278. ECHO_C= ECHO_N= ECHO_T=
  22279. case `echo -n x` in #(((((
  22280. -n*)
  22281. case `echo 'xy\c'` in
  22282. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22283. xy) ECHO_C='\c';;
  22284. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22285. ECHO_T=' ';;
  22286. esac;;
  22287. *)
  22288. ECHO_N='-n';;
  22289. esac
  22290. rm -f conf$$ conf$$.exe conf$$.file
  22291. if test -d conf$$.dir; then
  22292. rm -f conf$$.dir/conf$$.file
  22293. else
  22294. rm -f conf$$.dir
  22295. mkdir conf$$.dir 2>/dev/null
  22296. fi
  22297. if (echo >conf$$.file) 2>/dev/null; then
  22298. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22299. as_ln_s='ln -s'
  22300. # ... but there are two gotchas:
  22301. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22302. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22303. # In both cases, we have to default to `cp -pR'.
  22304. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22305. as_ln_s='cp -pR'
  22306. elif ln conf$$.file conf$$ 2>/dev/null; then
  22307. as_ln_s=ln
  22308. else
  22309. as_ln_s='cp -pR'
  22310. fi
  22311. else
  22312. as_ln_s='cp -pR'
  22313. fi
  22314. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22315. rmdir conf$$.dir 2>/dev/null
  22316. # as_fn_mkdir_p
  22317. # -------------
  22318. # Create "$as_dir" as a directory, including parents if necessary.
  22319. as_fn_mkdir_p ()
  22320. {
  22321. case $as_dir in #(
  22322. -*) as_dir=./$as_dir;;
  22323. esac
  22324. test -d "$as_dir" || eval $as_mkdir_p || {
  22325. as_dirs=
  22326. while :; do
  22327. case $as_dir in #(
  22328. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22329. *) as_qdir=$as_dir;;
  22330. esac
  22331. as_dirs="'$as_qdir' $as_dirs"
  22332. as_dir=`$as_dirname -- "$as_dir" ||
  22333. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22334. X"$as_dir" : 'X\(//\)[^/]' \| \
  22335. X"$as_dir" : 'X\(//\)$' \| \
  22336. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22337. $as_echo X"$as_dir" |
  22338. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22339. s//\1/
  22340. q
  22341. }
  22342. /^X\(\/\/\)[^/].*/{
  22343. s//\1/
  22344. q
  22345. }
  22346. /^X\(\/\/\)$/{
  22347. s//\1/
  22348. q
  22349. }
  22350. /^X\(\/\).*/{
  22351. s//\1/
  22352. q
  22353. }
  22354. s/.*/./; q'`
  22355. test -d "$as_dir" && break
  22356. done
  22357. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22358. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22359. } # as_fn_mkdir_p
  22360. if mkdir -p . 2>/dev/null; then
  22361. as_mkdir_p='mkdir -p "$as_dir"'
  22362. else
  22363. test -d ./-p && rmdir ./-p
  22364. as_mkdir_p=false
  22365. fi
  22366. # as_fn_executable_p FILE
  22367. # -----------------------
  22368. # Test if FILE is an executable regular file.
  22369. as_fn_executable_p ()
  22370. {
  22371. test -f "$1" && test -x "$1"
  22372. } # as_fn_executable_p
  22373. as_test_x='test -x'
  22374. as_executable_p=as_fn_executable_p
  22375. # Sed expression to map a string onto a valid CPP name.
  22376. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22377. # Sed expression to map a string onto a valid variable name.
  22378. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22379. exec 6>&1
  22380. ## ----------------------------------- ##
  22381. ## Main body of $CONFIG_STATUS script. ##
  22382. ## ----------------------------------- ##
  22383. _ASEOF
  22384. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22385. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22386. # Save the log message, to keep $0 and so on meaningful, and to
  22387. # report actual input values of CONFIG_FILES etc. instead of their
  22388. # values after options handling.
  22389. ac_log="
  22390. This file was extended by $as_me, which was
  22391. generated by GNU Autoconf 2.69. Invocation command line was
  22392. CONFIG_FILES = $CONFIG_FILES
  22393. CONFIG_HEADERS = $CONFIG_HEADERS
  22394. CONFIG_LINKS = $CONFIG_LINKS
  22395. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22396. $ $0 $@
  22397. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22398. "
  22399. _ACEOF
  22400. case $ac_config_files in *"
  22401. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22402. esac
  22403. case $ac_config_headers in *"
  22404. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22405. esac
  22406. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22407. # Files that config.status was made for.
  22408. config_files="$ac_config_files"
  22409. config_headers="$ac_config_headers"
  22410. config_commands="$ac_config_commands"
  22411. _ACEOF
  22412. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22413. ac_cs_usage="\
  22414. \`$as_me' instantiates files and other configuration actions
  22415. from templates according to the current configuration. Unless the files
  22416. and actions are specified as TAGs, all are instantiated by default.
  22417. Usage: $0 [OPTION]... [TAG]...
  22418. -h, --help print this help, then exit
  22419. -V, --version print version number and configuration settings, then exit
  22420. --config print configuration, then exit
  22421. -q, --quiet, --silent
  22422. do not print progress messages
  22423. -d, --debug don't remove temporary files
  22424. --recheck update $as_me by reconfiguring in the same conditions
  22425. --file=FILE[:TEMPLATE]
  22426. instantiate the configuration file FILE
  22427. --header=FILE[:TEMPLATE]
  22428. instantiate the configuration header FILE
  22429. Configuration files:
  22430. $config_files
  22431. Configuration headers:
  22432. $config_headers
  22433. Configuration commands:
  22434. $config_commands
  22435. Report bugs to the package provider."
  22436. _ACEOF
  22437. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22438. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22439. ac_cs_version="\\
  22440. config.status
  22441. configured by $0, generated by GNU Autoconf 2.69,
  22442. with options \\"\$ac_cs_config\\"
  22443. Copyright (C) 2012 Free Software Foundation, Inc.
  22444. This config.status script is free software; the Free Software Foundation
  22445. gives unlimited permission to copy, distribute and modify it."
  22446. ac_pwd='$ac_pwd'
  22447. srcdir='$srcdir'
  22448. INSTALL='$INSTALL'
  22449. AWK='$AWK'
  22450. test -n "\$AWK" || AWK=awk
  22451. _ACEOF
  22452. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22453. # The default lists apply if the user does not specify any file.
  22454. ac_need_defaults=:
  22455. while test $# != 0
  22456. do
  22457. case $1 in
  22458. --*=?*)
  22459. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22460. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22461. ac_shift=:
  22462. ;;
  22463. --*=)
  22464. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22465. ac_optarg=
  22466. ac_shift=:
  22467. ;;
  22468. *)
  22469. ac_option=$1
  22470. ac_optarg=$2
  22471. ac_shift=shift
  22472. ;;
  22473. esac
  22474. case $ac_option in
  22475. # Handling of the options.
  22476. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22477. ac_cs_recheck=: ;;
  22478. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22479. $as_echo "$ac_cs_version"; exit ;;
  22480. --config | --confi | --conf | --con | --co | --c )
  22481. $as_echo "$ac_cs_config"; exit ;;
  22482. --debug | --debu | --deb | --de | --d | -d )
  22483. debug=: ;;
  22484. --file | --fil | --fi | --f )
  22485. $ac_shift
  22486. case $ac_optarg in
  22487. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22488. '') as_fn_error $? "missing file argument" ;;
  22489. esac
  22490. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22491. ac_need_defaults=false;;
  22492. --header | --heade | --head | --hea )
  22493. $ac_shift
  22494. case $ac_optarg in
  22495. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22496. esac
  22497. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22498. ac_need_defaults=false;;
  22499. --he | --h)
  22500. # Conflict between --help and --header
  22501. as_fn_error $? "ambiguous option: \`$1'
  22502. Try \`$0 --help' for more information.";;
  22503. --help | --hel | -h )
  22504. $as_echo "$ac_cs_usage"; exit ;;
  22505. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22506. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22507. ac_cs_silent=: ;;
  22508. # This is an error.
  22509. -*) as_fn_error $? "unrecognized option: \`$1'
  22510. Try \`$0 --help' for more information." ;;
  22511. *) as_fn_append ac_config_targets " $1"
  22512. ac_need_defaults=false ;;
  22513. esac
  22514. shift
  22515. done
  22516. ac_configure_extra_args=
  22517. if $ac_cs_silent; then
  22518. exec 6>/dev/null
  22519. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22520. fi
  22521. _ACEOF
  22522. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22523. if \$ac_cs_recheck; then
  22524. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22525. shift
  22526. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22527. CONFIG_SHELL='$SHELL'
  22528. export CONFIG_SHELL
  22529. exec "\$@"
  22530. fi
  22531. _ACEOF
  22532. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22533. exec 5>>config.log
  22534. {
  22535. echo
  22536. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22537. ## Running $as_me. ##
  22538. _ASBOX
  22539. $as_echo "$ac_log"
  22540. } >&5
  22541. _ACEOF
  22542. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22543. #
  22544. # INIT-COMMANDS
  22545. #
  22546. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22547. # if CDPATH is set.
  22548. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22549. sed_quote_subst='$sed_quote_subst'
  22550. double_quote_subst='$double_quote_subst'
  22551. delay_variable_subst='$delay_variable_subst'
  22552. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22553. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22554. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22555. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22556. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22557. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22558. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22559. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22560. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22561. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22562. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22563. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22564. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22565. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22566. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22567. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22568. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22569. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22570. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22571. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22572. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22573. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22574. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22575. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22576. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22577. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22578. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22579. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22580. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22581. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22582. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22583. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22584. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22585. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22586. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22587. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22588. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22589. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22590. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22591. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22592. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22593. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22594. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22595. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22596. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22597. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22598. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22599. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22600. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22601. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22602. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22603. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22604. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22605. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22606. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22607. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22608. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22609. 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"`'
  22610. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22611. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22612. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22613. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22614. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22615. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22616. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22617. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22618. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22619. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22620. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22621. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22622. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22623. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22624. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22625. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22626. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22627. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22628. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22629. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22630. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22631. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22632. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22633. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22634. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22635. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22636. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22637. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22638. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22639. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22640. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22641. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22642. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22643. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22644. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22645. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22646. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22647. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22648. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22649. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22650. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22651. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22652. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22653. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22654. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22655. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22656. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22657. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22658. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22659. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22660. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22661. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22662. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22663. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22664. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22665. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22666. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22667. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22668. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22669. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22670. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22671. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22672. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22673. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22674. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22675. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22676. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22677. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22678. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22679. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22680. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22681. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22682. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22683. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22684. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22685. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22686. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22687. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22688. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22689. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  22690. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22691. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  22692. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22693. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22694. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22695. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22696. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22697. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  22698. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22699. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  22700. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22701. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  22702. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22703. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  22704. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22705. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  22706. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22707. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  22708. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22709. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  22710. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22711. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  22712. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22713. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  22714. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22715. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22716. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22717. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22718. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22719. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  22720. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22721. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22722. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22723. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22724. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22725. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22726. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22727. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22728. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22729. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22730. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22731. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22732. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22733. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  22734. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22735. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  22736. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22737. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  22738. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22739. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22740. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22741. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  22742. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22743. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  22744. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22745. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  22746. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22747. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  22748. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22749. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  22750. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22751. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  22752. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22753. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  22754. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22755. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  22756. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22757. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  22758. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22759. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22760. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22761. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  22762. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22763. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  22764. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22765. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22766. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22767. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22768. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22769. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  22770. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22771. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  22772. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22773. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  22774. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22775. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  22776. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22777. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  22778. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22779. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  22780. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22781. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  22782. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22783. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  22784. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22785. LTCC='$LTCC'
  22786. LTCFLAGS='$LTCFLAGS'
  22787. compiler='$compiler_DEFAULT'
  22788. # A function that is used when there is no print builtin or printf.
  22789. func_fallback_echo ()
  22790. {
  22791. eval 'cat <<_LTECHO_EOF
  22792. \$1
  22793. _LTECHO_EOF'
  22794. }
  22795. # Quote evaled strings.
  22796. for var in AS \
  22797. DLLTOOL \
  22798. OBJDUMP \
  22799. SHELL \
  22800. ECHO \
  22801. PATH_SEPARATOR \
  22802. SED \
  22803. GREP \
  22804. EGREP \
  22805. FGREP \
  22806. LD \
  22807. NM \
  22808. LN_S \
  22809. lt_SP2NL \
  22810. lt_NL2SP \
  22811. reload_flag \
  22812. deplibs_check_method \
  22813. file_magic_cmd \
  22814. file_magic_glob \
  22815. want_nocaseglob \
  22816. sharedlib_from_linklib_cmd \
  22817. AR \
  22818. AR_FLAGS \
  22819. archiver_list_spec \
  22820. STRIP \
  22821. RANLIB \
  22822. CC \
  22823. CFLAGS \
  22824. compiler \
  22825. lt_cv_sys_global_symbol_pipe \
  22826. lt_cv_sys_global_symbol_to_cdecl \
  22827. lt_cv_sys_global_symbol_to_c_name_address \
  22828. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22829. nm_file_list_spec \
  22830. lt_prog_compiler_no_builtin_flag \
  22831. lt_prog_compiler_pic \
  22832. lt_prog_compiler_wl \
  22833. lt_prog_compiler_static \
  22834. lt_cv_prog_compiler_c_o \
  22835. need_locks \
  22836. MANIFEST_TOOL \
  22837. DSYMUTIL \
  22838. NMEDIT \
  22839. LIPO \
  22840. OTOOL \
  22841. OTOOL64 \
  22842. shrext_cmds \
  22843. export_dynamic_flag_spec \
  22844. whole_archive_flag_spec \
  22845. compiler_needs_object \
  22846. with_gnu_ld \
  22847. allow_undefined_flag \
  22848. no_undefined_flag \
  22849. hardcode_libdir_flag_spec \
  22850. hardcode_libdir_separator \
  22851. exclude_expsyms \
  22852. include_expsyms \
  22853. file_list_spec \
  22854. variables_saved_for_relink \
  22855. libname_spec \
  22856. library_names_spec \
  22857. soname_spec \
  22858. install_override_mode \
  22859. finish_eval \
  22860. old_striplib \
  22861. striplib \
  22862. compiler_lib_search_dirs \
  22863. predep_objects \
  22864. postdep_objects \
  22865. predeps \
  22866. postdeps \
  22867. compiler_lib_search_path \
  22868. LD_RC \
  22869. LD_CXX \
  22870. reload_flag_RC \
  22871. reload_flag_CXX \
  22872. compiler_RC \
  22873. compiler_CXX \
  22874. lt_prog_compiler_no_builtin_flag_RC \
  22875. lt_prog_compiler_no_builtin_flag_CXX \
  22876. lt_prog_compiler_pic_RC \
  22877. lt_prog_compiler_pic_CXX \
  22878. lt_prog_compiler_wl_RC \
  22879. lt_prog_compiler_wl_CXX \
  22880. lt_prog_compiler_static_RC \
  22881. lt_prog_compiler_static_CXX \
  22882. lt_cv_prog_compiler_c_o_RC \
  22883. lt_cv_prog_compiler_c_o_CXX \
  22884. export_dynamic_flag_spec_RC \
  22885. export_dynamic_flag_spec_CXX \
  22886. whole_archive_flag_spec_RC \
  22887. whole_archive_flag_spec_CXX \
  22888. compiler_needs_object_RC \
  22889. compiler_needs_object_CXX \
  22890. with_gnu_ld_RC \
  22891. with_gnu_ld_CXX \
  22892. allow_undefined_flag_RC \
  22893. allow_undefined_flag_CXX \
  22894. no_undefined_flag_RC \
  22895. no_undefined_flag_CXX \
  22896. hardcode_libdir_flag_spec_RC \
  22897. hardcode_libdir_flag_spec_CXX \
  22898. hardcode_libdir_separator_RC \
  22899. hardcode_libdir_separator_CXX \
  22900. exclude_expsyms_RC \
  22901. exclude_expsyms_CXX \
  22902. include_expsyms_RC \
  22903. include_expsyms_CXX \
  22904. file_list_spec_RC \
  22905. file_list_spec_CXX \
  22906. compiler_lib_search_dirs_RC \
  22907. compiler_lib_search_dirs_CXX \
  22908. predep_objects_RC \
  22909. predep_objects_CXX \
  22910. postdep_objects_RC \
  22911. postdep_objects_CXX \
  22912. predeps_RC \
  22913. predeps_CXX \
  22914. postdeps_RC \
  22915. postdeps_CXX \
  22916. compiler_lib_search_path_RC \
  22917. compiler_lib_search_path_CXX; do
  22918. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22919. *[\\\\\\\`\\"\\\$]*)
  22920. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22921. ;;
  22922. *)
  22923. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22924. ;;
  22925. esac
  22926. done
  22927. # Double-quote double-evaled strings.
  22928. for var in reload_cmds \
  22929. old_postinstall_cmds \
  22930. old_postuninstall_cmds \
  22931. old_archive_cmds \
  22932. extract_expsyms_cmds \
  22933. old_archive_from_new_cmds \
  22934. old_archive_from_expsyms_cmds \
  22935. archive_cmds \
  22936. archive_expsym_cmds \
  22937. module_cmds \
  22938. module_expsym_cmds \
  22939. export_symbols_cmds \
  22940. prelink_cmds \
  22941. postlink_cmds \
  22942. postinstall_cmds \
  22943. postuninstall_cmds \
  22944. finish_cmds \
  22945. sys_lib_search_path_spec \
  22946. sys_lib_dlsearch_path_spec \
  22947. reload_cmds_RC \
  22948. reload_cmds_CXX \
  22949. old_archive_cmds_RC \
  22950. old_archive_cmds_CXX \
  22951. old_archive_from_new_cmds_RC \
  22952. old_archive_from_new_cmds_CXX \
  22953. old_archive_from_expsyms_cmds_RC \
  22954. old_archive_from_expsyms_cmds_CXX \
  22955. archive_cmds_RC \
  22956. archive_cmds_CXX \
  22957. archive_expsym_cmds_RC \
  22958. archive_expsym_cmds_CXX \
  22959. module_cmds_RC \
  22960. module_cmds_CXX \
  22961. module_expsym_cmds_RC \
  22962. module_expsym_cmds_CXX \
  22963. export_symbols_cmds_RC \
  22964. export_symbols_cmds_CXX \
  22965. prelink_cmds_RC \
  22966. prelink_cmds_CXX \
  22967. postlink_cmds_RC \
  22968. postlink_cmds_CXX; do
  22969. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22970. *[\\\\\\\`\\"\\\$]*)
  22971. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22972. ;;
  22973. *)
  22974. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22975. ;;
  22976. esac
  22977. done
  22978. ac_aux_dir='$ac_aux_dir'
  22979. xsi_shell='$xsi_shell'
  22980. lt_shell_append='$lt_shell_append'
  22981. # See if we are running on zsh, and set the options which allow our
  22982. # commands through without removal of \ escapes INIT.
  22983. if test -n "\${ZSH_VERSION+set}" ; then
  22984. setopt NO_GLOB_SUBST
  22985. fi
  22986. PACKAGE='$PACKAGE'
  22987. VERSION='$VERSION'
  22988. TIMESTAMP='$TIMESTAMP'
  22989. RM='$RM'
  22990. ofile='$ofile'
  22991. SUMMARY="$SUMMARY"
  22992. _ACEOF
  22993. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22994. # Handling of arguments.
  22995. for ac_config_target in $ac_config_targets
  22996. do
  22997. case $ac_config_target in
  22998. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22999. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23000. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  23001. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  23002. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  23003. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  23004. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  23005. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  23006. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  23007. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  23008. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23009. esac
  23010. done
  23011. # If the user did not use the arguments to specify the items to instantiate,
  23012. # then the envvar interface is used. Set only those that are not.
  23013. # We use the long form for the default assignment because of an extremely
  23014. # bizarre bug on SunOS 4.1.3.
  23015. if $ac_need_defaults; then
  23016. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23017. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23018. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23019. fi
  23020. # Have a temporary directory for convenience. Make it in the build tree
  23021. # simply because there is no reason against having it here, and in addition,
  23022. # creating and moving files from /tmp can sometimes cause problems.
  23023. # Hook for its removal unless debugging.
  23024. # Note that there is a small window in which the directory will not be cleaned:
  23025. # after its creation but before its name has been assigned to `$tmp'.
  23026. $debug ||
  23027. {
  23028. tmp= ac_tmp=
  23029. trap 'exit_status=$?
  23030. : "${ac_tmp:=$tmp}"
  23031. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23032. ' 0
  23033. trap 'as_fn_exit 1' 1 2 13 15
  23034. }
  23035. # Create a (secure) tmp directory for tmp files.
  23036. {
  23037. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23038. test -d "$tmp"
  23039. } ||
  23040. {
  23041. tmp=./conf$$-$RANDOM
  23042. (umask 077 && mkdir "$tmp")
  23043. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23044. ac_tmp=$tmp
  23045. # Set up the scripts for CONFIG_FILES section.
  23046. # No need to generate them if there are no CONFIG_FILES.
  23047. # This happens for instance with `./config.status config.h'.
  23048. if test -n "$CONFIG_FILES"; then
  23049. ac_cr=`echo X | tr X '\015'`
  23050. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23051. # But we know of no other shell where ac_cr would be empty at this
  23052. # point, so we can use a bashism as a fallback.
  23053. if test "x$ac_cr" = x; then
  23054. eval ac_cr=\$\'\\r\'
  23055. fi
  23056. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23057. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23058. ac_cs_awk_cr='\\r'
  23059. else
  23060. ac_cs_awk_cr=$ac_cr
  23061. fi
  23062. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23063. _ACEOF
  23064. {
  23065. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23066. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23067. echo "_ACEOF"
  23068. } >conf$$subs.sh ||
  23069. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23070. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23071. ac_delim='%!_!# '
  23072. for ac_last_try in false false false false false :; do
  23073. . ./conf$$subs.sh ||
  23074. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23075. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23076. if test $ac_delim_n = $ac_delim_num; then
  23077. break
  23078. elif $ac_last_try; then
  23079. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23080. else
  23081. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23082. fi
  23083. done
  23084. rm -f conf$$subs.sh
  23085. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23086. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23087. _ACEOF
  23088. sed -n '
  23089. h
  23090. s/^/S["/; s/!.*/"]=/
  23091. p
  23092. g
  23093. s/^[^!]*!//
  23094. :repl
  23095. t repl
  23096. s/'"$ac_delim"'$//
  23097. t delim
  23098. :nl
  23099. h
  23100. s/\(.\{148\}\)..*/\1/
  23101. t more1
  23102. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23103. p
  23104. n
  23105. b repl
  23106. :more1
  23107. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23108. p
  23109. g
  23110. s/.\{148\}//
  23111. t nl
  23112. :delim
  23113. h
  23114. s/\(.\{148\}\)..*/\1/
  23115. t more2
  23116. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23117. p
  23118. b
  23119. :more2
  23120. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23121. p
  23122. g
  23123. s/.\{148\}//
  23124. t delim
  23125. ' <conf$$subs.awk | sed '
  23126. /^[^""]/{
  23127. N
  23128. s/\n//
  23129. }
  23130. ' >>$CONFIG_STATUS || ac_write_fail=1
  23131. rm -f conf$$subs.awk
  23132. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23133. _ACAWK
  23134. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23135. for (key in S) S_is_set[key] = 1
  23136. FS = ""
  23137. }
  23138. {
  23139. line = $ 0
  23140. nfields = split(line, field, "@")
  23141. substed = 0
  23142. len = length(field[1])
  23143. for (i = 2; i < nfields; i++) {
  23144. key = field[i]
  23145. keylen = length(key)
  23146. if (S_is_set[key]) {
  23147. value = S[key]
  23148. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23149. len += length(value) + length(field[++i])
  23150. substed = 1
  23151. } else
  23152. len += 1 + keylen
  23153. }
  23154. print line
  23155. }
  23156. _ACAWK
  23157. _ACEOF
  23158. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23159. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23160. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23161. else
  23162. cat
  23163. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23164. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23165. _ACEOF
  23166. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23167. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23168. # trailing colons and then remove the whole line if VPATH becomes empty
  23169. # (actually we leave an empty line to preserve line numbers).
  23170. if test "x$srcdir" = x.; then
  23171. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23172. h
  23173. s///
  23174. s/^/:/
  23175. s/[ ]*$/:/
  23176. s/:\$(srcdir):/:/g
  23177. s/:\${srcdir}:/:/g
  23178. s/:@srcdir@:/:/g
  23179. s/^:*//
  23180. s/:*$//
  23181. x
  23182. s/\(=[ ]*\).*/\1/
  23183. G
  23184. s/\n//
  23185. s/^[^=]*=[ ]*$//
  23186. }'
  23187. fi
  23188. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23189. fi # test -n "$CONFIG_FILES"
  23190. # Set up the scripts for CONFIG_HEADERS section.
  23191. # No need to generate them if there are no CONFIG_HEADERS.
  23192. # This happens for instance with `./config.status Makefile'.
  23193. if test -n "$CONFIG_HEADERS"; then
  23194. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23195. BEGIN {
  23196. _ACEOF
  23197. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23198. # here-document in config.status, that substitutes the proper values into
  23199. # config.h.in to produce config.h.
  23200. # Create a delimiter string that does not exist in confdefs.h, to ease
  23201. # handling of long lines.
  23202. ac_delim='%!_!# '
  23203. for ac_last_try in false false :; do
  23204. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23205. if test -z "$ac_tt"; then
  23206. break
  23207. elif $ac_last_try; then
  23208. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23209. else
  23210. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23211. fi
  23212. done
  23213. # For the awk script, D is an array of macro values keyed by name,
  23214. # likewise P contains macro parameters if any. Preserve backslash
  23215. # newline sequences.
  23216. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23217. sed -n '
  23218. s/.\{148\}/&'"$ac_delim"'/g
  23219. t rset
  23220. :rset
  23221. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23222. t def
  23223. d
  23224. :def
  23225. s/\\$//
  23226. t bsnl
  23227. s/["\\]/\\&/g
  23228. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23229. D["\1"]=" \3"/p
  23230. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23231. d
  23232. :bsnl
  23233. s/["\\]/\\&/g
  23234. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23235. D["\1"]=" \3\\\\\\n"\\/p
  23236. t cont
  23237. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23238. t cont
  23239. d
  23240. :cont
  23241. n
  23242. s/.\{148\}/&'"$ac_delim"'/g
  23243. t clear
  23244. :clear
  23245. s/\\$//
  23246. t bsnlc
  23247. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23248. d
  23249. :bsnlc
  23250. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23251. b cont
  23252. ' <confdefs.h | sed '
  23253. s/'"$ac_delim"'/"\\\
  23254. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23255. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23256. for (key in D) D_is_set[key] = 1
  23257. FS = ""
  23258. }
  23259. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23260. line = \$ 0
  23261. split(line, arg, " ")
  23262. if (arg[1] == "#") {
  23263. defundef = arg[2]
  23264. mac1 = arg[3]
  23265. } else {
  23266. defundef = substr(arg[1], 2)
  23267. mac1 = arg[2]
  23268. }
  23269. split(mac1, mac2, "(") #)
  23270. macro = mac2[1]
  23271. prefix = substr(line, 1, index(line, defundef) - 1)
  23272. if (D_is_set[macro]) {
  23273. # Preserve the white space surrounding the "#".
  23274. print prefix "define", macro P[macro] D[macro]
  23275. next
  23276. } else {
  23277. # Replace #undef with comments. This is necessary, for example,
  23278. # in the case of _POSIX_SOURCE, which is predefined and required
  23279. # on some systems where configure will not decide to define it.
  23280. if (defundef == "undef") {
  23281. print "/*", prefix defundef, macro, "*/"
  23282. next
  23283. }
  23284. }
  23285. }
  23286. { print }
  23287. _ACAWK
  23288. _ACEOF
  23289. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23290. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23291. fi # test -n "$CONFIG_HEADERS"
  23292. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23293. shift
  23294. for ac_tag
  23295. do
  23296. case $ac_tag in
  23297. :[FHLC]) ac_mode=$ac_tag; continue;;
  23298. esac
  23299. case $ac_mode$ac_tag in
  23300. :[FHL]*:*);;
  23301. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23302. :[FH]-) ac_tag=-:-;;
  23303. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23304. esac
  23305. ac_save_IFS=$IFS
  23306. IFS=:
  23307. set x $ac_tag
  23308. IFS=$ac_save_IFS
  23309. shift
  23310. ac_file=$1
  23311. shift
  23312. case $ac_mode in
  23313. :L) ac_source=$1;;
  23314. :[FH])
  23315. ac_file_inputs=
  23316. for ac_f
  23317. do
  23318. case $ac_f in
  23319. -) ac_f="$ac_tmp/stdin";;
  23320. *) # Look for the file first in the build tree, then in the source tree
  23321. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23322. # because $ac_f cannot contain `:'.
  23323. test -f "$ac_f" ||
  23324. case $ac_f in
  23325. [\\/$]*) false;;
  23326. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23327. esac ||
  23328. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23329. esac
  23330. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23331. as_fn_append ac_file_inputs " '$ac_f'"
  23332. done
  23333. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23334. # use $as_me), people would be surprised to read:
  23335. # /* config.h. Generated by config.status. */
  23336. configure_input='Generated from '`
  23337. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23338. `' by configure.'
  23339. if test x"$ac_file" != x-; then
  23340. configure_input="$ac_file. $configure_input"
  23341. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23342. $as_echo "$as_me: creating $ac_file" >&6;}
  23343. fi
  23344. # Neutralize special characters interpreted by sed in replacement strings.
  23345. case $configure_input in #(
  23346. *\&* | *\|* | *\\* )
  23347. ac_sed_conf_input=`$as_echo "$configure_input" |
  23348. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23349. *) ac_sed_conf_input=$configure_input;;
  23350. esac
  23351. case $ac_tag in
  23352. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23353. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23354. esac
  23355. ;;
  23356. esac
  23357. ac_dir=`$as_dirname -- "$ac_file" ||
  23358. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23359. X"$ac_file" : 'X\(//\)[^/]' \| \
  23360. X"$ac_file" : 'X\(//\)$' \| \
  23361. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23362. $as_echo X"$ac_file" |
  23363. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23364. s//\1/
  23365. q
  23366. }
  23367. /^X\(\/\/\)[^/].*/{
  23368. s//\1/
  23369. q
  23370. }
  23371. /^X\(\/\/\)$/{
  23372. s//\1/
  23373. q
  23374. }
  23375. /^X\(\/\).*/{
  23376. s//\1/
  23377. q
  23378. }
  23379. s/.*/./; q'`
  23380. as_dir="$ac_dir"; as_fn_mkdir_p
  23381. ac_builddir=.
  23382. case "$ac_dir" in
  23383. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23384. *)
  23385. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23386. # A ".." for each directory in $ac_dir_suffix.
  23387. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23388. case $ac_top_builddir_sub in
  23389. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23390. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23391. esac ;;
  23392. esac
  23393. ac_abs_top_builddir=$ac_pwd
  23394. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23395. # for backward compatibility:
  23396. ac_top_builddir=$ac_top_build_prefix
  23397. case $srcdir in
  23398. .) # We are building in place.
  23399. ac_srcdir=.
  23400. ac_top_srcdir=$ac_top_builddir_sub
  23401. ac_abs_top_srcdir=$ac_pwd ;;
  23402. [\\/]* | ?:[\\/]* ) # Absolute name.
  23403. ac_srcdir=$srcdir$ac_dir_suffix;
  23404. ac_top_srcdir=$srcdir
  23405. ac_abs_top_srcdir=$srcdir ;;
  23406. *) # Relative name.
  23407. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23408. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23409. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23410. esac
  23411. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23412. case $ac_mode in
  23413. :F)
  23414. #
  23415. # CONFIG_FILE
  23416. #
  23417. case $INSTALL in
  23418. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23419. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23420. esac
  23421. _ACEOF
  23422. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23423. # If the template does not know about datarootdir, expand it.
  23424. # FIXME: This hack should be removed a few years after 2.60.
  23425. ac_datarootdir_hack=; ac_datarootdir_seen=
  23426. ac_sed_dataroot='
  23427. /datarootdir/ {
  23428. p
  23429. q
  23430. }
  23431. /@datadir@/p
  23432. /@docdir@/p
  23433. /@infodir@/p
  23434. /@localedir@/p
  23435. /@mandir@/p'
  23436. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23437. *datarootdir*) ac_datarootdir_seen=yes;;
  23438. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23439. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23440. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23441. _ACEOF
  23442. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23443. ac_datarootdir_hack='
  23444. s&@datadir@&$datadir&g
  23445. s&@docdir@&$docdir&g
  23446. s&@infodir@&$infodir&g
  23447. s&@localedir@&$localedir&g
  23448. s&@mandir@&$mandir&g
  23449. s&\\\${datarootdir}&$datarootdir&g' ;;
  23450. esac
  23451. _ACEOF
  23452. # Neutralize VPATH when `$srcdir' = `.'.
  23453. # Shell code in configure.ac might set extrasub.
  23454. # FIXME: do we really want to maintain this feature?
  23455. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23456. ac_sed_extra="$ac_vpsub
  23457. $extrasub
  23458. _ACEOF
  23459. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23460. :t
  23461. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23462. s|@configure_input@|$ac_sed_conf_input|;t t
  23463. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23464. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23465. s&@srcdir@&$ac_srcdir&;t t
  23466. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23467. s&@top_srcdir@&$ac_top_srcdir&;t t
  23468. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23469. s&@builddir@&$ac_builddir&;t t
  23470. s&@abs_builddir@&$ac_abs_builddir&;t t
  23471. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23472. s&@INSTALL@&$ac_INSTALL&;t t
  23473. $ac_datarootdir_hack
  23474. "
  23475. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23476. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23477. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23478. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23479. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23480. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23482. which seems to be undefined. Please make sure it is defined" >&5
  23483. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23484. which seems to be undefined. Please make sure it is defined" >&2;}
  23485. rm -f "$ac_tmp/stdin"
  23486. case $ac_file in
  23487. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23488. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23489. esac \
  23490. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23491. ;;
  23492. :H)
  23493. #
  23494. # CONFIG_HEADER
  23495. #
  23496. if test x"$ac_file" != x-; then
  23497. {
  23498. $as_echo "/* $configure_input */" \
  23499. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23500. } >"$ac_tmp/config.h" \
  23501. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23502. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23503. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23504. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23505. else
  23506. rm -f "$ac_file"
  23507. mv "$ac_tmp/config.h" "$ac_file" \
  23508. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23509. fi
  23510. else
  23511. $as_echo "/* $configure_input */" \
  23512. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23513. || as_fn_error $? "could not create -" "$LINENO" 5
  23514. fi
  23515. ;;
  23516. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23517. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23518. ;;
  23519. esac
  23520. case $ac_file$ac_mode in
  23521. "libtool":C)
  23522. # See if we are running on zsh, and set the options which allow our
  23523. # commands through without removal of \ escapes.
  23524. if test -n "${ZSH_VERSION+set}" ; then
  23525. setopt NO_GLOB_SUBST
  23526. fi
  23527. cfgfile="${ofile}T"
  23528. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23529. $RM "$cfgfile"
  23530. cat <<_LT_EOF >> "$cfgfile"
  23531. #! $SHELL
  23532. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23533. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23534. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23535. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23536. #
  23537. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23538. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23539. # Foundation, Inc.
  23540. # Written by Gordon Matzigkeit, 1996
  23541. #
  23542. # This file is part of GNU Libtool.
  23543. #
  23544. # GNU Libtool is free software; you can redistribute it and/or
  23545. # modify it under the terms of the GNU General Public License as
  23546. # published by the Free Software Foundation; either version 2 of
  23547. # the License, or (at your option) any later version.
  23548. #
  23549. # As a special exception to the GNU General Public License,
  23550. # if you distribute this file as part of a program or library that
  23551. # is built using GNU Libtool, you may include this file under the
  23552. # same distribution terms that you use for the rest of that program.
  23553. #
  23554. # GNU Libtool is distributed in the hope that it will be useful,
  23555. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23556. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23557. # GNU General Public License for more details.
  23558. #
  23559. # You should have received a copy of the GNU General Public License
  23560. # along with GNU Libtool; see the file COPYING. If not, a copy
  23561. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23562. # obtained by writing to the Free Software Foundation, Inc.,
  23563. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23564. # The names of the tagged configurations supported by this script.
  23565. available_tags="RC CXX "
  23566. # ### BEGIN LIBTOOL CONFIG
  23567. # Which release of libtool.m4 was used?
  23568. macro_version=$macro_version
  23569. macro_revision=$macro_revision
  23570. # Assembler program.
  23571. AS=$lt_AS
  23572. # DLL creation program.
  23573. DLLTOOL=$lt_DLLTOOL
  23574. # Object dumper program.
  23575. OBJDUMP=$lt_OBJDUMP
  23576. # Whether or not to build shared libraries.
  23577. build_libtool_libs=$enable_shared
  23578. # Whether or not to build static libraries.
  23579. build_old_libs=$enable_static
  23580. # What type of objects to build.
  23581. pic_mode=$pic_mode
  23582. # Whether or not to optimize for fast installation.
  23583. fast_install=$enable_fast_install
  23584. # Shell to use when invoking shell scripts.
  23585. SHELL=$lt_SHELL
  23586. # An echo program that protects backslashes.
  23587. ECHO=$lt_ECHO
  23588. # The PATH separator for the build system.
  23589. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23590. # The host system.
  23591. host_alias=$host_alias
  23592. host=$host
  23593. host_os=$host_os
  23594. # The build system.
  23595. build_alias=$build_alias
  23596. build=$build
  23597. build_os=$build_os
  23598. # A sed program that does not truncate output.
  23599. SED=$lt_SED
  23600. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23601. Xsed="\$SED -e 1s/^X//"
  23602. # A grep program that handles long lines.
  23603. GREP=$lt_GREP
  23604. # An ERE matcher.
  23605. EGREP=$lt_EGREP
  23606. # A literal string matcher.
  23607. FGREP=$lt_FGREP
  23608. # A BSD- or MS-compatible name lister.
  23609. NM=$lt_NM
  23610. # Whether we need soft or hard links.
  23611. LN_S=$lt_LN_S
  23612. # What is the maximum length of a command?
  23613. max_cmd_len=$max_cmd_len
  23614. # Object file suffix (normally "o").
  23615. objext=$ac_objext
  23616. # Executable file suffix (normally "").
  23617. exeext=$exeext
  23618. # whether the shell understands "unset".
  23619. lt_unset=$lt_unset
  23620. # turn spaces into newlines.
  23621. SP2NL=$lt_lt_SP2NL
  23622. # turn newlines into spaces.
  23623. NL2SP=$lt_lt_NL2SP
  23624. # convert \$build file names to \$host format.
  23625. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23626. # convert \$build files to toolchain format.
  23627. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23628. # Method to check whether dependent libraries are shared objects.
  23629. deplibs_check_method=$lt_deplibs_check_method
  23630. # Command to use when deplibs_check_method = "file_magic".
  23631. file_magic_cmd=$lt_file_magic_cmd
  23632. # How to find potential files when deplibs_check_method = "file_magic".
  23633. file_magic_glob=$lt_file_magic_glob
  23634. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23635. want_nocaseglob=$lt_want_nocaseglob
  23636. # Command to associate shared and link libraries.
  23637. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23638. # The archiver.
  23639. AR=$lt_AR
  23640. # Flags to create an archive.
  23641. AR_FLAGS=$lt_AR_FLAGS
  23642. # How to feed a file listing to the archiver.
  23643. archiver_list_spec=$lt_archiver_list_spec
  23644. # A symbol stripping program.
  23645. STRIP=$lt_STRIP
  23646. # Commands used to install an old-style archive.
  23647. RANLIB=$lt_RANLIB
  23648. old_postinstall_cmds=$lt_old_postinstall_cmds
  23649. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23650. # Whether to use a lock for old archive extraction.
  23651. lock_old_archive_extraction=$lock_old_archive_extraction
  23652. # A C compiler.
  23653. LTCC=$lt_CC
  23654. # LTCC compiler flags.
  23655. LTCFLAGS=$lt_CFLAGS
  23656. # Take the output of nm and produce a listing of raw symbols and C names.
  23657. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23658. # Transform the output of nm in a proper C declaration.
  23659. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23660. # Transform the output of nm in a C name address pair.
  23661. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23662. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23663. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23664. # Specify filename containing input files for \$NM.
  23665. nm_file_list_spec=$lt_nm_file_list_spec
  23666. # The root where to search for dependent libraries,and in which our libraries should be installed.
  23667. lt_sysroot=$lt_sysroot
  23668. # The name of the directory that contains temporary libtool files.
  23669. objdir=$objdir
  23670. # Used to examine libraries when file_magic_cmd begins with "file".
  23671. MAGIC_CMD=$MAGIC_CMD
  23672. # Must we lock files when doing compilation?
  23673. need_locks=$lt_need_locks
  23674. # Manifest tool.
  23675. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23676. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23677. DSYMUTIL=$lt_DSYMUTIL
  23678. # Tool to change global to local symbols on Mac OS X.
  23679. NMEDIT=$lt_NMEDIT
  23680. # Tool to manipulate fat objects and archives on Mac OS X.
  23681. LIPO=$lt_LIPO
  23682. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23683. OTOOL=$lt_OTOOL
  23684. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23685. OTOOL64=$lt_OTOOL64
  23686. # Old archive suffix (normally "a").
  23687. libext=$libext
  23688. # Shared library suffix (normally ".so").
  23689. shrext_cmds=$lt_shrext_cmds
  23690. # The commands to extract the exported symbol list from a shared archive.
  23691. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23692. # Variables whose values should be saved in libtool wrapper scripts and
  23693. # restored at link time.
  23694. variables_saved_for_relink=$lt_variables_saved_for_relink
  23695. # Do we need the "lib" prefix for modules?
  23696. need_lib_prefix=$need_lib_prefix
  23697. # Do we need a version for libraries?
  23698. need_version=$need_version
  23699. # Library versioning type.
  23700. version_type=$version_type
  23701. # Shared library runtime path variable.
  23702. runpath_var=$runpath_var
  23703. # Shared library path variable.
  23704. shlibpath_var=$shlibpath_var
  23705. # Is shlibpath searched before the hard-coded library search path?
  23706. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23707. # Format of library name prefix.
  23708. libname_spec=$lt_libname_spec
  23709. # List of archive names. First name is the real one, the rest are links.
  23710. # The last name is the one that the linker finds with -lNAME
  23711. library_names_spec=$lt_library_names_spec
  23712. # The coded name of the library, if different from the real name.
  23713. soname_spec=$lt_soname_spec
  23714. # Permission mode override for installation of shared libraries.
  23715. install_override_mode=$lt_install_override_mode
  23716. # Command to use after installation of a shared archive.
  23717. postinstall_cmds=$lt_postinstall_cmds
  23718. # Command to use after uninstallation of a shared archive.
  23719. postuninstall_cmds=$lt_postuninstall_cmds
  23720. # Commands used to finish a libtool library installation in a directory.
  23721. finish_cmds=$lt_finish_cmds
  23722. # As "finish_cmds", except a single script fragment to be evaled but
  23723. # not shown.
  23724. finish_eval=$lt_finish_eval
  23725. # Whether we should hardcode library paths into libraries.
  23726. hardcode_into_libs=$hardcode_into_libs
  23727. # Compile-time system search path for libraries.
  23728. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23729. # Run-time system search path for libraries.
  23730. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23731. # Whether dlopen is supported.
  23732. dlopen_support=$enable_dlopen
  23733. # Whether dlopen of programs is supported.
  23734. dlopen_self=$enable_dlopen_self
  23735. # Whether dlopen of statically linked programs is supported.
  23736. dlopen_self_static=$enable_dlopen_self_static
  23737. # Commands to strip libraries.
  23738. old_striplib=$lt_old_striplib
  23739. striplib=$lt_striplib
  23740. # The linker used to build libraries.
  23741. LD=$lt_LD
  23742. # How to create reloadable object files.
  23743. reload_flag=$lt_reload_flag
  23744. reload_cmds=$lt_reload_cmds
  23745. # Commands used to build an old-style archive.
  23746. old_archive_cmds=$lt_old_archive_cmds
  23747. # A language specific compiler.
  23748. CC=$lt_compiler
  23749. # Is the compiler the GNU compiler?
  23750. with_gcc=$GCC
  23751. # Compiler flag to turn off builtin functions.
  23752. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23753. # Additional compiler flags for building library objects.
  23754. pic_flag=$lt_lt_prog_compiler_pic
  23755. # How to pass a linker flag through the compiler.
  23756. wl=$lt_lt_prog_compiler_wl
  23757. # Compiler flag to prevent dynamic linking.
  23758. link_static_flag=$lt_lt_prog_compiler_static
  23759. # Does compiler simultaneously support -c and -o options?
  23760. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23761. # Whether or not to add -lc for building shared libraries.
  23762. build_libtool_need_lc=$archive_cmds_need_lc
  23763. # Whether or not to disallow shared libs when runtime libs are static.
  23764. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23765. # Compiler flag to allow reflexive dlopens.
  23766. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23767. # Compiler flag to generate shared objects directly from archives.
  23768. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23769. # Whether the compiler copes with passing no objects directly.
  23770. compiler_needs_object=$lt_compiler_needs_object
  23771. # Create an old-style archive from a shared archive.
  23772. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23773. # Create a temporary old-style archive to link instead of a shared archive.
  23774. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23775. # Commands used to build a shared archive.
  23776. archive_cmds=$lt_archive_cmds
  23777. archive_expsym_cmds=$lt_archive_expsym_cmds
  23778. # Commands used to build a loadable module if different from building
  23779. # a shared archive.
  23780. module_cmds=$lt_module_cmds
  23781. module_expsym_cmds=$lt_module_expsym_cmds
  23782. # Whether we are building with GNU ld or not.
  23783. with_gnu_ld=$lt_with_gnu_ld
  23784. # Flag that allows shared libraries with undefined symbols to be built.
  23785. allow_undefined_flag=$lt_allow_undefined_flag
  23786. # Flag that enforces no undefined symbols.
  23787. no_undefined_flag=$lt_no_undefined_flag
  23788. # Flag to hardcode \$libdir into a binary during linking.
  23789. # This must work even if \$libdir does not exist
  23790. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23791. # Whether we need a single "-rpath" flag with a separated argument.
  23792. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23793. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23794. # DIR into the resulting binary.
  23795. hardcode_direct=$hardcode_direct
  23796. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23797. # DIR into the resulting binary and the resulting library dependency is
  23798. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23799. # library is relocated.
  23800. hardcode_direct_absolute=$hardcode_direct_absolute
  23801. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23802. # into the resulting binary.
  23803. hardcode_minus_L=$hardcode_minus_L
  23804. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23805. # into the resulting binary.
  23806. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23807. # Set to "yes" if building a shared library automatically hardcodes DIR
  23808. # into the library and all subsequent libraries and executables linked
  23809. # against it.
  23810. hardcode_automatic=$hardcode_automatic
  23811. # Set to yes if linker adds runtime paths of dependent libraries
  23812. # to runtime path list.
  23813. inherit_rpath=$inherit_rpath
  23814. # Whether libtool must link a program against all its dependency libraries.
  23815. link_all_deplibs=$link_all_deplibs
  23816. # Set to "yes" if exported symbols are required.
  23817. always_export_symbols=$always_export_symbols
  23818. # The commands to list exported symbols.
  23819. export_symbols_cmds=$lt_export_symbols_cmds
  23820. # Symbols that should not be listed in the preloaded symbols.
  23821. exclude_expsyms=$lt_exclude_expsyms
  23822. # Symbols that must always be exported.
  23823. include_expsyms=$lt_include_expsyms
  23824. # Commands necessary for linking programs (against libraries) with templates.
  23825. prelink_cmds=$lt_prelink_cmds
  23826. # Commands necessary for finishing linking programs.
  23827. postlink_cmds=$lt_postlink_cmds
  23828. # Specify filename containing input files.
  23829. file_list_spec=$lt_file_list_spec
  23830. # How to hardcode a shared library path into an executable.
  23831. hardcode_action=$hardcode_action
  23832. # The directories searched by this compiler when creating a shared library.
  23833. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23834. # Dependencies to place before and after the objects being linked to
  23835. # create a shared library.
  23836. predep_objects=$lt_predep_objects
  23837. postdep_objects=$lt_postdep_objects
  23838. predeps=$lt_predeps
  23839. postdeps=$lt_postdeps
  23840. # The library search path used internally by the compiler when linking
  23841. # a shared library.
  23842. compiler_lib_search_path=$lt_compiler_lib_search_path
  23843. # ### END LIBTOOL CONFIG
  23844. _LT_EOF
  23845. case $host_os in
  23846. aix3*)
  23847. cat <<\_LT_EOF >> "$cfgfile"
  23848. # AIX sometimes has problems with the GCC collect2 program. For some
  23849. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23850. # vanish in a puff of smoke.
  23851. if test "X${COLLECT_NAMES+set}" != Xset; then
  23852. COLLECT_NAMES=
  23853. export COLLECT_NAMES
  23854. fi
  23855. _LT_EOF
  23856. ;;
  23857. esac
  23858. ltmain="$ac_aux_dir/ltmain.sh"
  23859. # We use sed instead of cat because bash on DJGPP gets confused if
  23860. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23861. # text mode, it properly converts lines to CR/LF. This bash problem
  23862. # is reportedly fixed, but why not run on old versions too?
  23863. sed '$q' "$ltmain" >> "$cfgfile" \
  23864. || (rm -f "$cfgfile"; exit 1)
  23865. if test x"$xsi_shell" = xyes; then
  23866. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23867. func_dirname ()\
  23868. {\
  23869. \ case ${1} in\
  23870. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23871. \ * ) func_dirname_result="${3}" ;;\
  23872. \ esac\
  23873. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23874. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23875. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23876. test 0 -eq $? || _lt_function_replace_fail=:
  23877. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23878. func_basename ()\
  23879. {\
  23880. \ func_basename_result="${1##*/}"\
  23881. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23882. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23883. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23884. test 0 -eq $? || _lt_function_replace_fail=:
  23885. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23886. func_dirname_and_basename ()\
  23887. {\
  23888. \ case ${1} in\
  23889. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23890. \ * ) func_dirname_result="${3}" ;;\
  23891. \ esac\
  23892. \ func_basename_result="${1##*/}"\
  23893. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23894. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23895. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23896. test 0 -eq $? || _lt_function_replace_fail=:
  23897. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23898. func_stripname ()\
  23899. {\
  23900. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23901. \ # positional parameters, so assign one to ordinary parameter first.\
  23902. \ func_stripname_result=${3}\
  23903. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23904. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23905. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23906. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23907. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23908. test 0 -eq $? || _lt_function_replace_fail=:
  23909. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23910. func_split_long_opt ()\
  23911. {\
  23912. \ func_split_long_opt_name=${1%%=*}\
  23913. \ func_split_long_opt_arg=${1#*=}\
  23914. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23915. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23916. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23917. test 0 -eq $? || _lt_function_replace_fail=:
  23918. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23919. func_split_short_opt ()\
  23920. {\
  23921. \ func_split_short_opt_arg=${1#??}\
  23922. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23923. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23924. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23925. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23926. test 0 -eq $? || _lt_function_replace_fail=:
  23927. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23928. func_lo2o ()\
  23929. {\
  23930. \ case ${1} in\
  23931. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23932. \ *) func_lo2o_result=${1} ;;\
  23933. \ esac\
  23934. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23935. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23936. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23937. test 0 -eq $? || _lt_function_replace_fail=:
  23938. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23939. func_xform ()\
  23940. {\
  23941. func_xform_result=${1%.*}.lo\
  23942. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23943. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23944. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23945. test 0 -eq $? || _lt_function_replace_fail=:
  23946. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23947. func_arith ()\
  23948. {\
  23949. func_arith_result=$(( $* ))\
  23950. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23951. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23952. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23953. test 0 -eq $? || _lt_function_replace_fail=:
  23954. sed -e '/^func_len ()$/,/^} # func_len /c\
  23955. func_len ()\
  23956. {\
  23957. func_len_result=${#1}\
  23958. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23959. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23960. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23961. test 0 -eq $? || _lt_function_replace_fail=:
  23962. fi
  23963. if test x"$lt_shell_append" = xyes; then
  23964. sed -e '/^func_append ()$/,/^} # func_append /c\
  23965. func_append ()\
  23966. {\
  23967. eval "${1}+=\\${2}"\
  23968. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23969. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23970. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23971. test 0 -eq $? || _lt_function_replace_fail=:
  23972. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23973. func_append_quoted ()\
  23974. {\
  23975. \ func_quote_for_eval "${2}"\
  23976. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23977. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23978. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23979. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23980. test 0 -eq $? || _lt_function_replace_fail=:
  23981. # Save a `func_append' function call where possible by direct use of '+='
  23982. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23983. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23984. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23985. test 0 -eq $? || _lt_function_replace_fail=:
  23986. else
  23987. # Save a `func_append' function call even when '+=' is not available
  23988. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23989. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23990. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23991. test 0 -eq $? || _lt_function_replace_fail=:
  23992. fi
  23993. if test x"$_lt_function_replace_fail" = x":"; then
  23994. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23995. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23996. fi
  23997. mv -f "$cfgfile" "$ofile" ||
  23998. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23999. chmod +x "$ofile"
  24000. cat <<_LT_EOF >> "$ofile"
  24001. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24002. # The linker used to build libraries.
  24003. LD=$lt_LD_RC
  24004. # How to create reloadable object files.
  24005. reload_flag=$lt_reload_flag_RC
  24006. reload_cmds=$lt_reload_cmds_RC
  24007. # Commands used to build an old-style archive.
  24008. old_archive_cmds=$lt_old_archive_cmds_RC
  24009. # A language specific compiler.
  24010. CC=$lt_compiler_RC
  24011. # Is the compiler the GNU compiler?
  24012. with_gcc=$GCC_RC
  24013. # Compiler flag to turn off builtin functions.
  24014. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24015. # Additional compiler flags for building library objects.
  24016. pic_flag=$lt_lt_prog_compiler_pic_RC
  24017. # How to pass a linker flag through the compiler.
  24018. wl=$lt_lt_prog_compiler_wl_RC
  24019. # Compiler flag to prevent dynamic linking.
  24020. link_static_flag=$lt_lt_prog_compiler_static_RC
  24021. # Does compiler simultaneously support -c and -o options?
  24022. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24023. # Whether or not to add -lc for building shared libraries.
  24024. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24025. # Whether or not to disallow shared libs when runtime libs are static.
  24026. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24027. # Compiler flag to allow reflexive dlopens.
  24028. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24029. # Compiler flag to generate shared objects directly from archives.
  24030. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24031. # Whether the compiler copes with passing no objects directly.
  24032. compiler_needs_object=$lt_compiler_needs_object_RC
  24033. # Create an old-style archive from a shared archive.
  24034. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24035. # Create a temporary old-style archive to link instead of a shared archive.
  24036. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24037. # Commands used to build a shared archive.
  24038. archive_cmds=$lt_archive_cmds_RC
  24039. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24040. # Commands used to build a loadable module if different from building
  24041. # a shared archive.
  24042. module_cmds=$lt_module_cmds_RC
  24043. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24044. # Whether we are building with GNU ld or not.
  24045. with_gnu_ld=$lt_with_gnu_ld_RC
  24046. # Flag that allows shared libraries with undefined symbols to be built.
  24047. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24048. # Flag that enforces no undefined symbols.
  24049. no_undefined_flag=$lt_no_undefined_flag_RC
  24050. # Flag to hardcode \$libdir into a binary during linking.
  24051. # This must work even if \$libdir does not exist
  24052. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24053. # Whether we need a single "-rpath" flag with a separated argument.
  24054. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24055. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24056. # DIR into the resulting binary.
  24057. hardcode_direct=$hardcode_direct_RC
  24058. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24059. # DIR into the resulting binary and the resulting library dependency is
  24060. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24061. # library is relocated.
  24062. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24063. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24064. # into the resulting binary.
  24065. hardcode_minus_L=$hardcode_minus_L_RC
  24066. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24067. # into the resulting binary.
  24068. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24069. # Set to "yes" if building a shared library automatically hardcodes DIR
  24070. # into the library and all subsequent libraries and executables linked
  24071. # against it.
  24072. hardcode_automatic=$hardcode_automatic_RC
  24073. # Set to yes if linker adds runtime paths of dependent libraries
  24074. # to runtime path list.
  24075. inherit_rpath=$inherit_rpath_RC
  24076. # Whether libtool must link a program against all its dependency libraries.
  24077. link_all_deplibs=$link_all_deplibs_RC
  24078. # Set to "yes" if exported symbols are required.
  24079. always_export_symbols=$always_export_symbols_RC
  24080. # The commands to list exported symbols.
  24081. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24082. # Symbols that should not be listed in the preloaded symbols.
  24083. exclude_expsyms=$lt_exclude_expsyms_RC
  24084. # Symbols that must always be exported.
  24085. include_expsyms=$lt_include_expsyms_RC
  24086. # Commands necessary for linking programs (against libraries) with templates.
  24087. prelink_cmds=$lt_prelink_cmds_RC
  24088. # Commands necessary for finishing linking programs.
  24089. postlink_cmds=$lt_postlink_cmds_RC
  24090. # Specify filename containing input files.
  24091. file_list_spec=$lt_file_list_spec_RC
  24092. # How to hardcode a shared library path into an executable.
  24093. hardcode_action=$hardcode_action_RC
  24094. # The directories searched by this compiler when creating a shared library.
  24095. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  24096. # Dependencies to place before and after the objects being linked to
  24097. # create a shared library.
  24098. predep_objects=$lt_predep_objects_RC
  24099. postdep_objects=$lt_postdep_objects_RC
  24100. predeps=$lt_predeps_RC
  24101. postdeps=$lt_postdeps_RC
  24102. # The library search path used internally by the compiler when linking
  24103. # a shared library.
  24104. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24105. # ### END LIBTOOL TAG CONFIG: RC
  24106. _LT_EOF
  24107. cat <<_LT_EOF >> "$ofile"
  24108. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24109. # The linker used to build libraries.
  24110. LD=$lt_LD_CXX
  24111. # How to create reloadable object files.
  24112. reload_flag=$lt_reload_flag_CXX
  24113. reload_cmds=$lt_reload_cmds_CXX
  24114. # Commands used to build an old-style archive.
  24115. old_archive_cmds=$lt_old_archive_cmds_CXX
  24116. # A language specific compiler.
  24117. CC=$lt_compiler_CXX
  24118. # Is the compiler the GNU compiler?
  24119. with_gcc=$GCC_CXX
  24120. # Compiler flag to turn off builtin functions.
  24121. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24122. # Additional compiler flags for building library objects.
  24123. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24124. # How to pass a linker flag through the compiler.
  24125. wl=$lt_lt_prog_compiler_wl_CXX
  24126. # Compiler flag to prevent dynamic linking.
  24127. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24128. # Does compiler simultaneously support -c and -o options?
  24129. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24130. # Whether or not to add -lc for building shared libraries.
  24131. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24132. # Whether or not to disallow shared libs when runtime libs are static.
  24133. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24134. # Compiler flag to allow reflexive dlopens.
  24135. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24136. # Compiler flag to generate shared objects directly from archives.
  24137. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24138. # Whether the compiler copes with passing no objects directly.
  24139. compiler_needs_object=$lt_compiler_needs_object_CXX
  24140. # Create an old-style archive from a shared archive.
  24141. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24142. # Create a temporary old-style archive to link instead of a shared archive.
  24143. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24144. # Commands used to build a shared archive.
  24145. archive_cmds=$lt_archive_cmds_CXX
  24146. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24147. # Commands used to build a loadable module if different from building
  24148. # a shared archive.
  24149. module_cmds=$lt_module_cmds_CXX
  24150. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24151. # Whether we are building with GNU ld or not.
  24152. with_gnu_ld=$lt_with_gnu_ld_CXX
  24153. # Flag that allows shared libraries with undefined symbols to be built.
  24154. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24155. # Flag that enforces no undefined symbols.
  24156. no_undefined_flag=$lt_no_undefined_flag_CXX
  24157. # Flag to hardcode \$libdir into a binary during linking.
  24158. # This must work even if \$libdir does not exist
  24159. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24160. # Whether we need a single "-rpath" flag with a separated argument.
  24161. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24162. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24163. # DIR into the resulting binary.
  24164. hardcode_direct=$hardcode_direct_CXX
  24165. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24166. # DIR into the resulting binary and the resulting library dependency is
  24167. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24168. # library is relocated.
  24169. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24170. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24171. # into the resulting binary.
  24172. hardcode_minus_L=$hardcode_minus_L_CXX
  24173. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24174. # into the resulting binary.
  24175. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24176. # Set to "yes" if building a shared library automatically hardcodes DIR
  24177. # into the library and all subsequent libraries and executables linked
  24178. # against it.
  24179. hardcode_automatic=$hardcode_automatic_CXX
  24180. # Set to yes if linker adds runtime paths of dependent libraries
  24181. # to runtime path list.
  24182. inherit_rpath=$inherit_rpath_CXX
  24183. # Whether libtool must link a program against all its dependency libraries.
  24184. link_all_deplibs=$link_all_deplibs_CXX
  24185. # Set to "yes" if exported symbols are required.
  24186. always_export_symbols=$always_export_symbols_CXX
  24187. # The commands to list exported symbols.
  24188. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24189. # Symbols that should not be listed in the preloaded symbols.
  24190. exclude_expsyms=$lt_exclude_expsyms_CXX
  24191. # Symbols that must always be exported.
  24192. include_expsyms=$lt_include_expsyms_CXX
  24193. # Commands necessary for linking programs (against libraries) with templates.
  24194. prelink_cmds=$lt_prelink_cmds_CXX
  24195. # Commands necessary for finishing linking programs.
  24196. postlink_cmds=$lt_postlink_cmds_CXX
  24197. # Specify filename containing input files.
  24198. file_list_spec=$lt_file_list_spec_CXX
  24199. # How to hardcode a shared library path into an executable.
  24200. hardcode_action=$hardcode_action_CXX
  24201. # The directories searched by this compiler when creating a shared library.
  24202. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24203. # Dependencies to place before and after the objects being linked to
  24204. # create a shared library.
  24205. predep_objects=$lt_predep_objects_CXX
  24206. postdep_objects=$lt_postdep_objects_CXX
  24207. predeps=$lt_predeps_CXX
  24208. postdeps=$lt_postdeps_CXX
  24209. # The library search path used internally by the compiler when linking
  24210. # a shared library.
  24211. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24212. # ### END LIBTOOL TAG CONFIG: CXX
  24213. _LT_EOF
  24214. ;;
  24215. "sdl2_config":C) chmod a+x sdl2-config ;;
  24216. "summary":C) echo -en "$SUMMARY" ;;
  24217. esac
  24218. done # for ac_tag
  24219. as_fn_exit 0
  24220. _ACEOF
  24221. ac_clean_files=$ac_clean_files_save
  24222. test $ac_write_fail = 0 ||
  24223. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24224. # configure is writing to config.log, and then calls config.status.
  24225. # config.status does its own redirection, appending to config.log.
  24226. # Unfortunately, on DOS this fails, as config.log is still kept open
  24227. # by configure, so config.status won't be able to write to it; its
  24228. # output is simply discarded. So we exec the FD to /dev/null,
  24229. # effectively closing config.log, so it can be properly (re)opened and
  24230. # appended to by config.status. When coming back to configure, we
  24231. # need to make the FD available again.
  24232. if test "$no_create" != yes; then
  24233. ac_cs_success=:
  24234. ac_config_status_args=
  24235. test "$silent" = yes &&
  24236. ac_config_status_args="$ac_config_status_args --quiet"
  24237. exec 5>/dev/null
  24238. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24239. exec 5>>config.log
  24240. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24241. # would make configure fail if this is the last instruction.
  24242. $ac_cs_success || as_fn_exit 1
  24243. fi
  24244. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24245. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24246. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24247. fi