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

26163 lines
774 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 @S|@? 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 "@S|@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 @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  369. @%:@ must be portable across @S|@(()) 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 @S|@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. LIB@&t@OBJS=
  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. EXTRA_LDFLAGS
  582. BUILD_LDFLAGS
  583. EXTRA_CFLAGS
  584. BUILD_CFLAGS
  585. SDLTEST_OBJECTS
  586. SDLMAIN_OBJECTS
  587. VERSION_OBJECTS
  588. OBJECTS
  589. INCLUDE
  590. ac_aux_dir
  591. ENABLE_STATIC_FALSE
  592. ENABLE_STATIC_TRUE
  593. ENABLE_SHARED_FALSE
  594. ENABLE_SHARED_TRUE
  595. SDL_RLD_FLAGS
  596. SDL_STATIC_LIBS
  597. SDL_LIBS
  598. SDL_CFLAGS
  599. DIRECTFBCONFIG
  600. X_EXTRA_LIBS
  601. X_LIBS
  602. X_PRE_LIBS
  603. X_CFLAGS
  604. XMKMF
  605. ARTSCONFIG
  606. PKG_CONFIG
  607. ESD_LIBS
  608. ESD_CFLAGS
  609. ESD_CONFIG
  610. ALSA_LIBS
  611. ALSA_CFLAGS
  612. POW_LIB
  613. LIB@&t@OBJS
  614. ALLOCA
  615. WINDRES
  616. SET_MAKE
  617. INSTALL_DATA
  618. INSTALL_SCRIPT
  619. INSTALL_PROGRAM
  620. CXXCPP
  621. ac_ct_CXX
  622. CXXFLAGS
  623. CXX
  624. LT_AGE
  625. LT_REVISION
  626. LT_CURRENT
  627. LT_RELEASE
  628. CPP
  629. OTOOL64
  630. OTOOL
  631. LIPO
  632. NMEDIT
  633. DSYMUTIL
  634. MANIFEST_TOOL
  635. AWK
  636. RANLIB
  637. STRIP
  638. ac_ct_AR
  639. AR
  640. LN_S
  641. NM
  642. ac_ct_DUMPBIN
  643. DUMPBIN
  644. LD
  645. FGREP
  646. EGREP
  647. GREP
  648. SED
  649. OBJEXT
  650. EXEEXT
  651. ac_ct_CC
  652. CPPFLAGS
  653. LDFLAGS
  654. CFLAGS
  655. CC
  656. host_os
  657. host_vendor
  658. host_cpu
  659. host
  660. build_os
  661. build_vendor
  662. build_cpu
  663. build
  664. LIBTOOL
  665. OBJDUMP
  666. DLLTOOL
  667. AS
  668. SDL_VERSION
  669. SDL_BINARY_AGE
  670. SDL_INTERFACE_AGE
  671. SDL_MICRO_VERSION
  672. SDL_MINOR_VERSION
  673. SDL_MAJOR_VERSION
  674. target_alias
  675. host_alias
  676. build_alias
  677. LIBS
  678. ECHO_T
  679. ECHO_N
  680. ECHO_C
  681. DEFS
  682. mandir
  683. localedir
  684. libdir
  685. psdir
  686. pdfdir
  687. dvidir
  688. htmldir
  689. infodir
  690. docdir
  691. oldincludedir
  692. includedir
  693. localstatedir
  694. sharedstatedir
  695. sysconfdir
  696. datadir
  697. datarootdir
  698. libexecdir
  699. sbindir
  700. bindir
  701. program_transform_name
  702. prefix
  703. exec_prefix
  704. PACKAGE_URL
  705. PACKAGE_BUGREPORT
  706. PACKAGE_STRING
  707. PACKAGE_VERSION
  708. PACKAGE_TARNAME
  709. PACKAGE_NAME
  710. PATH_SEPARATOR
  711. SHELL'
  712. ac_subst_files=''
  713. ac_user_opts='
  714. enable_option_checking
  715. enable_shared
  716. enable_static
  717. with_pic
  718. enable_fast_install
  719. with_gnu_ld
  720. with_sysroot
  721. enable_libtool_lock
  722. enable_assertions
  723. enable_dependency_tracking
  724. enable_libc
  725. enable_gcc_atomics
  726. enable_atomic
  727. enable_audio
  728. enable_video
  729. enable_render
  730. enable_events
  731. enable_joystick
  732. enable_haptic
  733. enable_power
  734. enable_filesystem
  735. enable_threads
  736. enable_timers
  737. enable_file
  738. enable_loadso
  739. enable_cpuinfo
  740. enable_assembly
  741. enable_ssemath
  742. enable_mmx
  743. enable_3dnow
  744. enable_sse
  745. enable_sse2
  746. enable_altivec
  747. enable_oss
  748. enable_alsa
  749. with_alsa_prefix
  750. with_alsa_inc_prefix
  751. enable_alsatest
  752. enable_alsa_shared
  753. enable_esd
  754. with_esd_prefix
  755. with_esd_exec_prefix
  756. enable_esdtest
  757. enable_esd_shared
  758. enable_pulseaudio
  759. enable_pulseaudio_shared
  760. enable_arts
  761. enable_arts_shared
  762. enable_nas
  763. enable_nas_shared
  764. enable_sndio
  765. enable_sndio_shared
  766. enable_diskaudio
  767. enable_dummyaudio
  768. enable_video_wayland
  769. enable_video_wayland_qt_touch
  770. enable_wayland_shared
  771. enable_video_mir
  772. enable_mir_shared
  773. enable_video_x11
  774. with_x
  775. enable_x11_shared
  776. enable_video_x11_xcursor
  777. enable_video_x11_xinerama
  778. enable_video_x11_xinput
  779. enable_video_x11_xrandr
  780. enable_video_x11_scrnsaver
  781. enable_video_x11_xshape
  782. enable_video_x11_vm
  783. enable_video_vivante
  784. enable_video_cocoa
  785. enable_video_directfb
  786. enable_directfb_shared
  787. enable_fusionsound
  788. enable_fusionsound_shared
  789. enable_video_dummy
  790. enable_video_opengl
  791. enable_video_opengles
  792. enable_video_opengles1
  793. enable_video_opengles2
  794. enable_libudev
  795. enable_dbus
  796. enable_ibus
  797. enable_input_tslib
  798. enable_pthreads
  799. enable_pthread_sem
  800. enable_directx
  801. enable_sdl_dlopen
  802. enable_clock_gettime
  803. enable_rpath
  804. enable_render_d3d
  805. '
  806. ac_precious_vars='build_alias
  807. host_alias
  808. target_alias
  809. CC
  810. CFLAGS
  811. LDFLAGS
  812. LIBS
  813. CPPFLAGS
  814. CPP
  815. CXX
  816. CXXFLAGS
  817. CCC
  818. CXXCPP
  819. XMKMF'
  820. # Initialize some variables set by options.
  821. ac_init_help=
  822. ac_init_version=false
  823. ac_unrecognized_opts=
  824. ac_unrecognized_sep=
  825. # The variables have the same names as the options, with
  826. # dashes changed to underlines.
  827. cache_file=/dev/null
  828. exec_prefix=NONE
  829. no_create=
  830. no_recursion=
  831. prefix=NONE
  832. program_prefix=NONE
  833. program_suffix=NONE
  834. program_transform_name=s,x,x,
  835. silent=
  836. site=
  837. srcdir=
  838. verbose=
  839. x_includes=NONE
  840. x_libraries=NONE
  841. # Installation directory options.
  842. # These are left unexpanded so users can "make install exec_prefix=/foo"
  843. # and all the variables that are supposed to be based on exec_prefix
  844. # by default will actually change.
  845. # Use braces instead of parens because sh, perl, etc. also accept them.
  846. # (The list follows the same order as the GNU Coding Standards.)
  847. bindir='${exec_prefix}/bin'
  848. sbindir='${exec_prefix}/sbin'
  849. libexecdir='${exec_prefix}/libexec'
  850. datarootdir='${prefix}/share'
  851. datadir='${datarootdir}'
  852. sysconfdir='${prefix}/etc'
  853. sharedstatedir='${prefix}/com'
  854. localstatedir='${prefix}/var'
  855. includedir='${prefix}/include'
  856. oldincludedir='/usr/include'
  857. docdir='${datarootdir}/doc/${PACKAGE}'
  858. infodir='${datarootdir}/info'
  859. htmldir='${docdir}'
  860. dvidir='${docdir}'
  861. pdfdir='${docdir}'
  862. psdir='${docdir}'
  863. libdir='${exec_prefix}/lib'
  864. localedir='${datarootdir}/locale'
  865. mandir='${datarootdir}/man'
  866. ac_prev=
  867. ac_dashdash=
  868. for ac_option
  869. do
  870. # If the previous option needs an argument, assign it.
  871. if test -n "$ac_prev"; then
  872. eval $ac_prev=\$ac_option
  873. ac_prev=
  874. continue
  875. fi
  876. case $ac_option in
  877. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  878. *=) ac_optarg= ;;
  879. *) ac_optarg=yes ;;
  880. esac
  881. # Accept the important Cygnus configure options, so we can diagnose typos.
  882. case $ac_dashdash$ac_option in
  883. --)
  884. ac_dashdash=yes ;;
  885. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  886. ac_prev=bindir ;;
  887. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  888. bindir=$ac_optarg ;;
  889. -build | --build | --buil | --bui | --bu)
  890. ac_prev=build_alias ;;
  891. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  892. build_alias=$ac_optarg ;;
  893. -cache-file | --cache-file | --cache-fil | --cache-fi \
  894. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  895. ac_prev=cache_file ;;
  896. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  897. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  898. cache_file=$ac_optarg ;;
  899. --config-cache | -C)
  900. cache_file=config.cache ;;
  901. -datadir | --datadir | --datadi | --datad)
  902. ac_prev=datadir ;;
  903. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  904. datadir=$ac_optarg ;;
  905. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  906. | --dataroo | --dataro | --datar)
  907. ac_prev=datarootdir ;;
  908. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  909. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  910. datarootdir=$ac_optarg ;;
  911. -disable-* | --disable-*)
  912. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  913. # Reject names that are not valid shell variable names.
  914. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  915. as_fn_error $? "invalid feature name: $ac_useropt"
  916. ac_useropt_orig=$ac_useropt
  917. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  918. case $ac_user_opts in
  919. *"
  920. "enable_$ac_useropt"
  921. "*) ;;
  922. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  923. ac_unrecognized_sep=', ';;
  924. esac
  925. eval enable_$ac_useropt=no ;;
  926. -docdir | --docdir | --docdi | --doc | --do)
  927. ac_prev=docdir ;;
  928. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  929. docdir=$ac_optarg ;;
  930. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  931. ac_prev=dvidir ;;
  932. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  933. dvidir=$ac_optarg ;;
  934. -enable-* | --enable-*)
  935. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  936. # Reject names that are not valid shell variable names.
  937. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  938. as_fn_error $? "invalid feature name: $ac_useropt"
  939. ac_useropt_orig=$ac_useropt
  940. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  941. case $ac_user_opts in
  942. *"
  943. "enable_$ac_useropt"
  944. "*) ;;
  945. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  946. ac_unrecognized_sep=', ';;
  947. esac
  948. eval enable_$ac_useropt=\$ac_optarg ;;
  949. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  950. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  951. | --exec | --exe | --ex)
  952. ac_prev=exec_prefix ;;
  953. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  954. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  955. | --exec=* | --exe=* | --ex=*)
  956. exec_prefix=$ac_optarg ;;
  957. -gas | --gas | --ga | --g)
  958. # Obsolete; use --with-gas.
  959. with_gas=yes ;;
  960. -help | --help | --hel | --he | -h)
  961. ac_init_help=long ;;
  962. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  963. ac_init_help=recursive ;;
  964. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  965. ac_init_help=short ;;
  966. -host | --host | --hos | --ho)
  967. ac_prev=host_alias ;;
  968. -host=* | --host=* | --hos=* | --ho=*)
  969. host_alias=$ac_optarg ;;
  970. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  971. ac_prev=htmldir ;;
  972. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  973. | --ht=*)
  974. htmldir=$ac_optarg ;;
  975. -includedir | --includedir | --includedi | --included | --include \
  976. | --includ | --inclu | --incl | --inc)
  977. ac_prev=includedir ;;
  978. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  979. | --includ=* | --inclu=* | --incl=* | --inc=*)
  980. includedir=$ac_optarg ;;
  981. -infodir | --infodir | --infodi | --infod | --info | --inf)
  982. ac_prev=infodir ;;
  983. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  984. infodir=$ac_optarg ;;
  985. -libdir | --libdir | --libdi | --libd)
  986. ac_prev=libdir ;;
  987. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  988. libdir=$ac_optarg ;;
  989. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  990. | --libexe | --libex | --libe)
  991. ac_prev=libexecdir ;;
  992. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  993. | --libexe=* | --libex=* | --libe=*)
  994. libexecdir=$ac_optarg ;;
  995. -localedir | --localedir | --localedi | --localed | --locale)
  996. ac_prev=localedir ;;
  997. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  998. localedir=$ac_optarg ;;
  999. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1000. | --localstate | --localstat | --localsta | --localst | --locals)
  1001. ac_prev=localstatedir ;;
  1002. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1003. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1004. localstatedir=$ac_optarg ;;
  1005. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1006. ac_prev=mandir ;;
  1007. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1008. mandir=$ac_optarg ;;
  1009. -nfp | --nfp | --nf)
  1010. # Obsolete; use --without-fp.
  1011. with_fp=no ;;
  1012. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1013. | --no-cr | --no-c | -n)
  1014. no_create=yes ;;
  1015. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1016. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1017. no_recursion=yes ;;
  1018. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1019. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1020. | --oldin | --oldi | --old | --ol | --o)
  1021. ac_prev=oldincludedir ;;
  1022. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1023. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1024. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1025. oldincludedir=$ac_optarg ;;
  1026. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1027. ac_prev=prefix ;;
  1028. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1029. prefix=$ac_optarg ;;
  1030. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1031. | --program-pre | --program-pr | --program-p)
  1032. ac_prev=program_prefix ;;
  1033. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1034. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1035. program_prefix=$ac_optarg ;;
  1036. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1037. | --program-suf | --program-su | --program-s)
  1038. ac_prev=program_suffix ;;
  1039. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1040. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1041. program_suffix=$ac_optarg ;;
  1042. -program-transform-name | --program-transform-name \
  1043. | --program-transform-nam | --program-transform-na \
  1044. | --program-transform-n | --program-transform- \
  1045. | --program-transform | --program-transfor \
  1046. | --program-transfo | --program-transf \
  1047. | --program-trans | --program-tran \
  1048. | --progr-tra | --program-tr | --program-t)
  1049. ac_prev=program_transform_name ;;
  1050. -program-transform-name=* | --program-transform-name=* \
  1051. | --program-transform-nam=* | --program-transform-na=* \
  1052. | --program-transform-n=* | --program-transform-=* \
  1053. | --program-transform=* | --program-transfor=* \
  1054. | --program-transfo=* | --program-transf=* \
  1055. | --program-trans=* | --program-tran=* \
  1056. | --progr-tra=* | --program-tr=* | --program-t=*)
  1057. program_transform_name=$ac_optarg ;;
  1058. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1059. ac_prev=pdfdir ;;
  1060. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1061. pdfdir=$ac_optarg ;;
  1062. -psdir | --psdir | --psdi | --psd | --ps)
  1063. ac_prev=psdir ;;
  1064. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1065. psdir=$ac_optarg ;;
  1066. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1067. | -silent | --silent | --silen | --sile | --sil)
  1068. silent=yes ;;
  1069. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1070. ac_prev=sbindir ;;
  1071. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1072. | --sbi=* | --sb=*)
  1073. sbindir=$ac_optarg ;;
  1074. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1075. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1076. | --sharedst | --shareds | --shared | --share | --shar \
  1077. | --sha | --sh)
  1078. ac_prev=sharedstatedir ;;
  1079. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1080. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1081. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1082. | --sha=* | --sh=*)
  1083. sharedstatedir=$ac_optarg ;;
  1084. -site | --site | --sit)
  1085. ac_prev=site ;;
  1086. -site=* | --site=* | --sit=*)
  1087. site=$ac_optarg ;;
  1088. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1089. ac_prev=srcdir ;;
  1090. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1091. srcdir=$ac_optarg ;;
  1092. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1093. | --syscon | --sysco | --sysc | --sys | --sy)
  1094. ac_prev=sysconfdir ;;
  1095. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1096. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1097. sysconfdir=$ac_optarg ;;
  1098. -target | --target | --targe | --targ | --tar | --ta | --t)
  1099. ac_prev=target_alias ;;
  1100. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1101. target_alias=$ac_optarg ;;
  1102. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1103. verbose=yes ;;
  1104. -version | --version | --versio | --versi | --vers | -V)
  1105. ac_init_version=: ;;
  1106. -with-* | --with-*)
  1107. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1108. # Reject names that are not valid shell variable names.
  1109. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1110. as_fn_error $? "invalid package name: $ac_useropt"
  1111. ac_useropt_orig=$ac_useropt
  1112. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1113. case $ac_user_opts in
  1114. *"
  1115. "with_$ac_useropt"
  1116. "*) ;;
  1117. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1118. ac_unrecognized_sep=', ';;
  1119. esac
  1120. eval with_$ac_useropt=\$ac_optarg ;;
  1121. -without-* | --without-*)
  1122. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1123. # Reject names that are not valid shell variable names.
  1124. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1125. as_fn_error $? "invalid package name: $ac_useropt"
  1126. ac_useropt_orig=$ac_useropt
  1127. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1128. case $ac_user_opts in
  1129. *"
  1130. "with_$ac_useropt"
  1131. "*) ;;
  1132. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1133. ac_unrecognized_sep=', ';;
  1134. esac
  1135. eval with_$ac_useropt=no ;;
  1136. --x)
  1137. # Obsolete; use --with-x.
  1138. with_x=yes ;;
  1139. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1140. | --x-incl | --x-inc | --x-in | --x-i)
  1141. ac_prev=x_includes ;;
  1142. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1143. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1144. x_includes=$ac_optarg ;;
  1145. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1146. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1147. ac_prev=x_libraries ;;
  1148. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1149. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1150. x_libraries=$ac_optarg ;;
  1151. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1152. Try \`$0 --help' for more information"
  1153. ;;
  1154. *=*)
  1155. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1156. # Reject names that are not valid shell variable names.
  1157. case $ac_envvar in #(
  1158. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1159. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1160. esac
  1161. eval $ac_envvar=\$ac_optarg
  1162. export $ac_envvar ;;
  1163. *)
  1164. # FIXME: should be removed in autoconf 3.0.
  1165. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1166. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1167. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1168. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1169. ;;
  1170. esac
  1171. done
  1172. if test -n "$ac_prev"; then
  1173. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1174. as_fn_error $? "missing argument to $ac_option"
  1175. fi
  1176. if test -n "$ac_unrecognized_opts"; then
  1177. case $enable_option_checking in
  1178. no) ;;
  1179. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1180. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1181. esac
  1182. fi
  1183. # Check all directory arguments for consistency.
  1184. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1185. datadir sysconfdir sharedstatedir localstatedir includedir \
  1186. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1187. libdir localedir mandir
  1188. do
  1189. eval ac_val=\$$ac_var
  1190. # Remove trailing slashes.
  1191. case $ac_val in
  1192. */ )
  1193. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1194. eval $ac_var=\$ac_val;;
  1195. esac
  1196. # Be sure to have absolute directory names.
  1197. case $ac_val in
  1198. [\\/$]* | ?:[\\/]* ) continue;;
  1199. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1200. esac
  1201. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1202. done
  1203. # There might be people who depend on the old broken behavior: `$host'
  1204. # used to hold the argument of --host etc.
  1205. # FIXME: To remove some day.
  1206. build=$build_alias
  1207. host=$host_alias
  1208. target=$target_alias
  1209. # FIXME: To remove some day.
  1210. if test "x$host_alias" != x; then
  1211. if test "x$build_alias" = x; then
  1212. cross_compiling=maybe
  1213. elif test "x$build_alias" != "x$host_alias"; then
  1214. cross_compiling=yes
  1215. fi
  1216. fi
  1217. ac_tool_prefix=
  1218. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1219. test "$silent" = yes && exec 6>/dev/null
  1220. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1221. ac_ls_di=`ls -di .` &&
  1222. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1223. as_fn_error $? "working directory cannot be determined"
  1224. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1225. as_fn_error $? "pwd does not report name of working directory"
  1226. # Find the source files, if location was not specified.
  1227. if test -z "$srcdir"; then
  1228. ac_srcdir_defaulted=yes
  1229. # Try the directory containing this script, then the parent directory.
  1230. ac_confdir=`$as_dirname -- "$as_myself" ||
  1231. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1232. X"$as_myself" : 'X\(//\)[^/]' \| \
  1233. X"$as_myself" : 'X\(//\)$' \| \
  1234. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1235. $as_echo X"$as_myself" |
  1236. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1237. s//\1/
  1238. q
  1239. }
  1240. /^X\(\/\/\)[^/].*/{
  1241. s//\1/
  1242. q
  1243. }
  1244. /^X\(\/\/\)$/{
  1245. s//\1/
  1246. q
  1247. }
  1248. /^X\(\/\).*/{
  1249. s//\1/
  1250. q
  1251. }
  1252. s/.*/./; q'`
  1253. srcdir=$ac_confdir
  1254. if test ! -r "$srcdir/$ac_unique_file"; then
  1255. srcdir=..
  1256. fi
  1257. else
  1258. ac_srcdir_defaulted=no
  1259. fi
  1260. if test ! -r "$srcdir/$ac_unique_file"; then
  1261. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1262. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1263. fi
  1264. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1265. ac_abs_confdir=`(
  1266. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1267. pwd)`
  1268. # When building in place, set srcdir=.
  1269. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1270. srcdir=.
  1271. fi
  1272. # Remove unnecessary trailing slashes from srcdir.
  1273. # Double slashes in file names in object file debugging info
  1274. # mess up M-x gdb in Emacs.
  1275. case $srcdir in
  1276. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1277. esac
  1278. for ac_var in $ac_precious_vars; do
  1279. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1280. eval ac_env_${ac_var}_value=\$${ac_var}
  1281. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1282. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1283. done
  1284. #
  1285. # Report the --help message.
  1286. #
  1287. if test "$ac_init_help" = "long"; then
  1288. # Omit some internal or obsolete options to make the list less imposing.
  1289. # This message is too long to be a string in the A/UX 3.1 sh.
  1290. cat <<_ACEOF
  1291. \`configure' configures this package to adapt to many kinds of systems.
  1292. Usage: $0 [OPTION]... [VAR=VALUE]...
  1293. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1294. VAR=VALUE. See below for descriptions of some of the useful variables.
  1295. Defaults for the options are specified in brackets.
  1296. Configuration:
  1297. -h, --help display this help and exit
  1298. --help=short display options specific to this package
  1299. --help=recursive display the short help of all the included packages
  1300. -V, --version display version information and exit
  1301. -q, --quiet, --silent do not print \`checking ...' messages
  1302. --cache-file=FILE cache test results in FILE [disabled]
  1303. -C, --config-cache alias for \`--cache-file=config.cache'
  1304. -n, --no-create do not create output files
  1305. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1306. Installation directories:
  1307. --prefix=PREFIX install architecture-independent files in PREFIX
  1308. @<:@@S|@ac_default_prefix@:>@
  1309. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1310. @<:@PREFIX@:>@
  1311. By default, \`make install' will install all the files in
  1312. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1313. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1314. for instance \`--prefix=\$HOME'.
  1315. For better control, use the options below.
  1316. Fine tuning of the installation directories:
  1317. --bindir=DIR user executables [EPREFIX/bin]
  1318. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1319. --libexecdir=DIR program executables [EPREFIX/libexec]
  1320. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1321. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1322. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1323. --libdir=DIR object code libraries [EPREFIX/lib]
  1324. --includedir=DIR C header files [PREFIX/include]
  1325. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1326. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1327. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1328. --infodir=DIR info documentation [DATAROOTDIR/info]
  1329. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1330. --mandir=DIR man documentation [DATAROOTDIR/man]
  1331. --docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
  1332. --htmldir=DIR html documentation [DOCDIR]
  1333. --dvidir=DIR dvi documentation [DOCDIR]
  1334. --pdfdir=DIR pdf documentation [DOCDIR]
  1335. --psdir=DIR ps documentation [DOCDIR]
  1336. _ACEOF
  1337. cat <<\_ACEOF
  1338. X features:
  1339. --x-includes=DIR X include files are in DIR
  1340. --x-libraries=DIR X library files are in DIR
  1341. System types:
  1342. --build=BUILD configure for building on BUILD [guessed]
  1343. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1344. _ACEOF
  1345. fi
  1346. if test -n "$ac_init_help"; then
  1347. cat <<\_ACEOF
  1348. Optional Features:
  1349. --disable-option-checking ignore unrecognized --enable/--with options
  1350. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1351. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1352. --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
  1353. --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
  1354. --enable-fast-install@<:@=PKGS@:>@
  1355. optimize for fast installation @<:@default=yes@:>@
  1356. --disable-libtool-lock avoid locking (might break parallel builds)
  1357. --enable-assertions Enable internal sanity checks
  1358. (auto/disabled/release/enabled/paranoid)
  1359. @<:@@<:@default=auto@:>@@:>@
  1360. --enable-dependency-tracking
  1361. Use gcc -MMD -MT dependency tracking @<:@@<:@default=yes@:>@@:>@
  1362. --enable-libc Use the system C library @<:@@<:@default=yes@:>@@:>@
  1363. --enable-gcc-atomics Use gcc builtin atomics @<:@@<:@default=yes@:>@@:>@
  1364. --enable-atomic Enable the atomic operations subsystem
  1365. @<:@@<:@default=yes@:>@@:>@
  1366. --enable-audio Enable the audio subsystem @<:@@<:@default=yes@:>@@:>@
  1367. --enable-video Enable the video subsystem @<:@@<:@default=yes@:>@@:>@
  1368. --enable-render Enable the render subsystem @<:@@<:@default=yes@:>@@:>@
  1369. --enable-events Enable the events subsystem @<:@@<:@default=yes@:>@@:>@
  1370. --enable-joystick Enable the joystick subsystem @<:@@<:@default=yes@:>@@:>@
  1371. --enable-haptic Enable the haptic (force feedback) subsystem
  1372. @<:@@<:@default=yes@:>@@:>@
  1373. --enable-power Enable the power subsystem @<:@@<:@default=yes@:>@@:>@
  1374. --enable-filesystem Enable the filesystem subsystem @<:@@<:@default=yes@:>@@:>@
  1375. --enable-threads Enable the threading subsystem @<:@@<:@default=yes@:>@@:>@
  1376. --enable-timers Enable the timer subsystem @<:@@<:@default=yes@:>@@:>@
  1377. --enable-file Enable the file subsystem @<:@@<:@default=yes@:>@@:>@
  1378. --enable-loadso Enable the shared object loading subsystem
  1379. @<:@@<:@default=yes@:>@@:>@
  1380. --enable-cpuinfo Enable the cpuinfo subsystem @<:@@<:@default=yes@:>@@:>@
  1381. --enable-assembly Enable assembly routines @<:@@<:@default=yes@:>@@:>@
  1382. --enable-ssemath Allow GCC to use SSE floating point math
  1383. @<:@@<:@default=no@:>@@:>@
  1384. --enable-mmx use MMX assembly routines @<:@@<:@default=yes@:>@@:>@
  1385. --enable-3dnow use 3DNow! assembly routines @<:@@<:@default=yes@:>@@:>@
  1386. --enable-sse use SSE assembly routines @<:@@<:@default=yes@:>@@:>@
  1387. --enable-sse2 use SSE2 assembly routines @<:@@<:@default=no@:>@@:>@
  1388. --enable-altivec use Altivec assembly routines @<:@@<:@default=yes@:>@@:>@
  1389. --enable-oss support the OSS audio API @<:@@<:@default=maybe@:>@@:>@
  1390. --enable-alsa support the ALSA audio API @<:@@<:@default=yes@:>@@:>@
  1391. --disable-alsatest Do not try to compile and run a test Alsa program
  1392. --enable-alsa-shared dynamically load ALSA audio support @<:@@<:@default=yes@:>@@:>@
  1393. --enable-esd support the Enlightened Sound Daemon @<:@@<:@default=yes@:>@@:>@
  1394. --disable-esdtest Do not try to compile and run a test ESD program
  1395. --enable-esd-shared dynamically load ESD audio support @<:@@<:@default=yes@:>@@:>@
  1396. --enable-pulseaudio use PulseAudio @<:@@<:@default=yes@:>@@:>@
  1397. --enable-pulseaudio-shared
  1398. dynamically load PulseAudio support @<:@@<:@default=yes@:>@@:>@
  1399. --enable-arts support the Analog Real Time Synthesizer
  1400. @<:@@<:@default=yes@:>@@:>@
  1401. --enable-arts-shared dynamically load aRts audio support @<:@@<:@default=yes@:>@@:>@
  1402. --enable-nas support the NAS audio API @<:@@<:@default=yes@:>@@:>@
  1403. --enable-nas-shared dynamically load NAS audio support @<:@@<:@default=yes@:>@@:>@
  1404. --enable-sndio support the sndio audio API @<:@@<:@default=yes@:>@@:>@
  1405. --enable-sndio-shared dynamically load sndio audio support @<:@@<:@default=yes@:>@@:>@
  1406. --enable-diskaudio support the disk writer audio driver @<:@@<:@default=yes@:>@@:>@
  1407. --enable-dummyaudio support the dummy audio driver @<:@@<:@default=yes@:>@@:>@
  1408. --enable-video-wayland use Wayland video driver @<:@@<:@default=yes@:>@@:>@
  1409. --enable-video-wayland-qt-touch
  1410. QtWayland server support for Wayland video driver
  1411. @<:@@<:@default=yes@:>@@:>@
  1412. --enable-wayland-shared dynamically load Wayland support @<:@@<:@default=maybe@:>@@:>@
  1413. --enable-video-mir use Mir video driver @<:@@<:@default=yes@:>@@:>@
  1414. --enable-mir-shared dynamically load Mir support @<:@@<:@default=maybe@:>@@:>@
  1415. --enable-video-x11 use X11 video driver @<:@@<:@default=yes@:>@@:>@
  1416. --enable-x11-shared dynamically load X11 support @<:@@<:@default=maybe@:>@@:>@
  1417. --enable-video-x11-xcursor
  1418. enable X11 Xcursor support @<:@@<:@default=yes@:>@@:>@
  1419. --enable-video-x11-xinerama
  1420. enable X11 Xinerama support @<:@@<:@default=yes@:>@@:>@
  1421. --enable-video-x11-xinput
  1422. enable X11 XInput extension for manymouse, tablets,
  1423. etc @<:@@<:@default=yes@:>@@:>@
  1424. --enable-video-x11-xrandr
  1425. enable X11 Xrandr extension for fullscreen
  1426. @<:@@<:@default=yes@:>@@:>@
  1427. --enable-video-x11-scrnsaver
  1428. enable X11 screensaver extension @<:@@<:@default=yes@:>@@:>@
  1429. --enable-video-x11-xshape
  1430. enable X11 XShape support @<:@@<:@default=yes@:>@@:>@
  1431. --enable-video-x11-vm use X11 VM extension for fullscreen @<:@@<:@default=yes@:>@@:>@
  1432. --enable-video-vivante use Vivante EGL video driver @<:@@<:@default=yes@:>@@:>@
  1433. --enable-video-cocoa use Cocoa video driver @<:@@<:@default=yes@:>@@:>@
  1434. --enable-video-directfb use DirectFB video driver @<:@@<:@default=no@:>@@:>@
  1435. --enable-directfb-shared
  1436. dynamically load directfb support @<:@@<:@default=yes@:>@@:>@
  1437. --enable-fusionsound use FusionSound audio driver @<:@@<:@default=no@:>@@:>@
  1438. --enable-fusionsound-shared
  1439. dynamically load fusionsound audio support
  1440. @<:@@<:@default=yes@:>@@:>@
  1441. --enable-video-dummy use dummy video driver @<:@@<:@default=yes@:>@@:>@
  1442. --enable-video-opengl include OpenGL support @<:@@<:@default=yes@:>@@:>@
  1443. --enable-video-opengles include OpenGL ES support @<:@@<:@default=yes@:>@@:>@
  1444. --enable-video-opengles1
  1445. include OpenGL ES 1.1 support @<:@@<:@default=yes@:>@@:>@
  1446. --enable-video-opengles2
  1447. include OpenGL ES 2.0 support @<:@@<:@default=yes@:>@@:>@
  1448. --enable-libudev enable libudev support @<:@@<:@default=yes@:>@@:>@
  1449. --enable-dbus enable D-Bus support @<:@@<:@default=yes@:>@@:>@
  1450. --enable-ibus enable IBus support @<:@@<:@default=yes@:>@@:>@
  1451. --enable-input-tslib use the Touchscreen library for input
  1452. @<:@@<:@default=yes@:>@@:>@
  1453. --enable-pthreads use POSIX threads for multi-threading
  1454. @<:@@<:@default=yes@:>@@:>@
  1455. --enable-pthread-sem use pthread semaphores @<:@@<:@default=yes@:>@@:>@
  1456. --enable-directx use DirectX for Windows audio/video @<:@@<:@default=yes@:>@@:>@
  1457. --enable-sdl-dlopen use dlopen for shared object loading @<:@@<:@default=yes@:>@@:>@
  1458. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1459. UNIX @<:@@<:@default=yes@:>@@:>@
  1460. --enable-rpath use an rpath when linking SDL @<:@@<:@default=yes@:>@@:>@
  1461. --enable-render-d3d enable the Direct3D render driver @<:@@<:@default=yes@:>@@:>@
  1462. Optional Packages:
  1463. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1464. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1465. --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
  1466. both@:>@
  1467. --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
  1468. --with-sysroot=DIR Search for dependent libraries within DIR
  1469. (or the compiler's sysroot if not specified).
  1470. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1471. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1472. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1473. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1474. --with-x use the X Window System
  1475. Some influential environment variables:
  1476. CC C compiler command
  1477. CFLAGS C compiler flags
  1478. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1479. nonstandard directory <lib dir>
  1480. LIBS libraries to pass to the linker, e.g. -l<library>
  1481. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1482. you have headers in a nonstandard directory <include dir>
  1483. CPP C preprocessor
  1484. CXX C++ compiler command
  1485. CXXFLAGS C++ compiler flags
  1486. CXXCPP C++ preprocessor
  1487. XMKMF Path to xmkmf, Makefile generator for X Window System
  1488. Use these variables to override the choices made by `configure' or to help
  1489. it to find libraries and programs with nonstandard names/locations.
  1490. Report bugs to the package provider.
  1491. _ACEOF
  1492. ac_status=$?
  1493. fi
  1494. if test "$ac_init_help" = "recursive"; then
  1495. # If there are subdirs, report their specific --help.
  1496. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1497. test -d "$ac_dir" ||
  1498. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1499. continue
  1500. ac_builddir=.
  1501. case "$ac_dir" in
  1502. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1503. *)
  1504. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1505. # A ".." for each directory in $ac_dir_suffix.
  1506. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1507. case $ac_top_builddir_sub in
  1508. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1509. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1510. esac ;;
  1511. esac
  1512. ac_abs_top_builddir=$ac_pwd
  1513. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1514. # for backward compatibility:
  1515. ac_top_builddir=$ac_top_build_prefix
  1516. case $srcdir in
  1517. .) # We are building in place.
  1518. ac_srcdir=.
  1519. ac_top_srcdir=$ac_top_builddir_sub
  1520. ac_abs_top_srcdir=$ac_pwd ;;
  1521. [\\/]* | ?:[\\/]* ) # Absolute name.
  1522. ac_srcdir=$srcdir$ac_dir_suffix;
  1523. ac_top_srcdir=$srcdir
  1524. ac_abs_top_srcdir=$srcdir ;;
  1525. *) # Relative name.
  1526. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1527. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1528. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1529. esac
  1530. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1531. cd "$ac_dir" || { ac_status=$?; continue; }
  1532. # Check for guested configure.
  1533. if test -f "$ac_srcdir/configure.gnu"; then
  1534. echo &&
  1535. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1536. elif test -f "$ac_srcdir/configure"; then
  1537. echo &&
  1538. $SHELL "$ac_srcdir/configure" --help=recursive
  1539. else
  1540. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1541. fi || ac_status=$?
  1542. cd "$ac_pwd" || { ac_status=$?; break; }
  1543. done
  1544. fi
  1545. test -n "$ac_init_help" && exit $ac_status
  1546. if $ac_init_version; then
  1547. cat <<\_ACEOF
  1548. configure
  1549. generated by GNU Autoconf 2.69
  1550. Copyright (C) 2012 Free Software Foundation, Inc.
  1551. This configure script is free software; the Free Software Foundation
  1552. gives unlimited permission to copy, distribute and modify it.
  1553. _ACEOF
  1554. exit
  1555. fi
  1556. ## ------------------------ ##
  1557. ## Autoconf initialization. ##
  1558. ## ------------------------ ##
  1559. @%:@ ac_fn_c_try_compile LINENO
  1560. @%:@ --------------------------
  1561. @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1562. ac_fn_c_try_compile ()
  1563. {
  1564. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1565. rm -f conftest.$ac_objext
  1566. if { { ac_try="$ac_compile"
  1567. case "(($ac_try" in
  1568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1569. *) ac_try_echo=$ac_try;;
  1570. esac
  1571. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1572. $as_echo "$ac_try_echo"; } >&5
  1573. (eval "$ac_compile") 2>conftest.err
  1574. ac_status=$?
  1575. if test -s conftest.err; then
  1576. grep -v '^ *+' conftest.err >conftest.er1
  1577. cat conftest.er1 >&5
  1578. mv -f conftest.er1 conftest.err
  1579. fi
  1580. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1581. test $ac_status = 0; } && {
  1582. test -z "$ac_c_werror_flag" ||
  1583. test ! -s conftest.err
  1584. } && test -s conftest.$ac_objext; then :
  1585. ac_retval=0
  1586. else
  1587. $as_echo "$as_me: failed program was:" >&5
  1588. sed 's/^/| /' conftest.$ac_ext >&5
  1589. ac_retval=1
  1590. fi
  1591. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1592. as_fn_set_status $ac_retval
  1593. } @%:@ ac_fn_c_try_compile
  1594. @%:@ ac_fn_c_try_link LINENO
  1595. @%:@ -----------------------
  1596. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
  1597. ac_fn_c_try_link ()
  1598. {
  1599. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1600. rm -f conftest.$ac_objext conftest$ac_exeext
  1601. if { { ac_try="$ac_link"
  1602. case "(($ac_try" in
  1603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1604. *) ac_try_echo=$ac_try;;
  1605. esac
  1606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1607. $as_echo "$ac_try_echo"; } >&5
  1608. (eval "$ac_link") 2>conftest.err
  1609. ac_status=$?
  1610. if test -s conftest.err; then
  1611. grep -v '^ *+' conftest.err >conftest.er1
  1612. cat conftest.er1 >&5
  1613. mv -f conftest.er1 conftest.err
  1614. fi
  1615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1616. test $ac_status = 0; } && {
  1617. test -z "$ac_c_werror_flag" ||
  1618. test ! -s conftest.err
  1619. } && test -s conftest$ac_exeext && {
  1620. test "$cross_compiling" = yes ||
  1621. test -x conftest$ac_exeext
  1622. }; then :
  1623. ac_retval=0
  1624. else
  1625. $as_echo "$as_me: failed program was:" >&5
  1626. sed 's/^/| /' conftest.$ac_ext >&5
  1627. ac_retval=1
  1628. fi
  1629. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1630. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1631. # interfere with the next link command; also delete a directory that is
  1632. # left behind by Apple's compiler. We do this before executing the actions.
  1633. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1634. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1635. as_fn_set_status $ac_retval
  1636. } @%:@ ac_fn_c_try_link
  1637. @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1638. @%:@ -------------------------------------------------------
  1639. @%:@ Tests whether HEADER exists and can be compiled using the include files in
  1640. @%:@ INCLUDES, setting the cache variable VAR accordingly.
  1641. ac_fn_c_check_header_compile ()
  1642. {
  1643. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1645. $as_echo_n "checking for $2... " >&6; }
  1646. if eval \${$3+:} false; then :
  1647. $as_echo_n "(cached) " >&6
  1648. else
  1649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1650. /* end confdefs.h. */
  1651. $4
  1652. @%:@include <$2>
  1653. _ACEOF
  1654. if ac_fn_c_try_compile "$LINENO"; then :
  1655. eval "$3=yes"
  1656. else
  1657. eval "$3=no"
  1658. fi
  1659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1660. fi
  1661. eval ac_res=\$$3
  1662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1663. $as_echo "$ac_res" >&6; }
  1664. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1665. } @%:@ ac_fn_c_check_header_compile
  1666. @%:@ ac_fn_c_try_cpp LINENO
  1667. @%:@ ----------------------
  1668. @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
  1669. ac_fn_c_try_cpp ()
  1670. {
  1671. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1672. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1673. case "(($ac_try" in
  1674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1675. *) ac_try_echo=$ac_try;;
  1676. esac
  1677. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1678. $as_echo "$ac_try_echo"; } >&5
  1679. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1680. ac_status=$?
  1681. if test -s conftest.err; then
  1682. grep -v '^ *+' conftest.err >conftest.er1
  1683. cat conftest.er1 >&5
  1684. mv -f conftest.er1 conftest.err
  1685. fi
  1686. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1687. test $ac_status = 0; } > conftest.i && {
  1688. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1689. test ! -s conftest.err
  1690. }; then :
  1691. ac_retval=0
  1692. else
  1693. $as_echo "$as_me: failed program was:" >&5
  1694. sed 's/^/| /' conftest.$ac_ext >&5
  1695. ac_retval=1
  1696. fi
  1697. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1698. as_fn_set_status $ac_retval
  1699. } @%:@ ac_fn_c_try_cpp
  1700. @%:@ ac_fn_c_try_run LINENO
  1701. @%:@ ----------------------
  1702. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
  1703. @%:@ that executables *can* be run.
  1704. ac_fn_c_try_run ()
  1705. {
  1706. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1707. if { { ac_try="$ac_link"
  1708. case "(($ac_try" in
  1709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1710. *) ac_try_echo=$ac_try;;
  1711. esac
  1712. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1713. $as_echo "$ac_try_echo"; } >&5
  1714. (eval "$ac_link") 2>&5
  1715. ac_status=$?
  1716. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1717. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1718. { { case "(($ac_try" in
  1719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1720. *) ac_try_echo=$ac_try;;
  1721. esac
  1722. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1723. $as_echo "$ac_try_echo"; } >&5
  1724. (eval "$ac_try") 2>&5
  1725. ac_status=$?
  1726. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1727. test $ac_status = 0; }; }; then :
  1728. ac_retval=0
  1729. else
  1730. $as_echo "$as_me: program exited with status $ac_status" >&5
  1731. $as_echo "$as_me: failed program was:" >&5
  1732. sed 's/^/| /' conftest.$ac_ext >&5
  1733. ac_retval=$ac_status
  1734. fi
  1735. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1736. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1737. as_fn_set_status $ac_retval
  1738. } @%:@ ac_fn_c_try_run
  1739. @%:@ ac_fn_c_check_func LINENO FUNC VAR
  1740. @%:@ ----------------------------------
  1741. @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
  1742. ac_fn_c_check_func ()
  1743. {
  1744. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1746. $as_echo_n "checking for $2... " >&6; }
  1747. if eval \${$3+:} false; then :
  1748. $as_echo_n "(cached) " >&6
  1749. else
  1750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1751. /* end confdefs.h. */
  1752. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1753. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1754. #define $2 innocuous_$2
  1755. /* System header to define __stub macros and hopefully few prototypes,
  1756. which can conflict with char $2 (); below.
  1757. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1758. <limits.h> exists even on freestanding compilers. */
  1759. #ifdef __STDC__
  1760. # include <limits.h>
  1761. #else
  1762. # include <assert.h>
  1763. #endif
  1764. #undef $2
  1765. /* Override any GCC internal prototype to avoid an error.
  1766. Use char because int might match the return type of a GCC
  1767. builtin and then its argument prototype would still apply. */
  1768. #ifdef __cplusplus
  1769. extern "C"
  1770. #endif
  1771. char $2 ();
  1772. /* The GNU C library defines this for functions which it implements
  1773. to always fail with ENOSYS. Some functions are actually named
  1774. something starting with __ and the normal name is an alias. */
  1775. #if defined __stub_$2 || defined __stub___$2
  1776. choke me
  1777. #endif
  1778. int
  1779. main ()
  1780. {
  1781. return $2 ();
  1782. ;
  1783. return 0;
  1784. }
  1785. _ACEOF
  1786. if ac_fn_c_try_link "$LINENO"; then :
  1787. eval "$3=yes"
  1788. else
  1789. eval "$3=no"
  1790. fi
  1791. rm -f core conftest.err conftest.$ac_objext \
  1792. conftest$ac_exeext conftest.$ac_ext
  1793. fi
  1794. eval ac_res=\$$3
  1795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1796. $as_echo "$ac_res" >&6; }
  1797. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1798. } @%:@ ac_fn_c_check_func
  1799. @%:@ ac_fn_cxx_try_compile LINENO
  1800. @%:@ ----------------------------
  1801. @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1802. ac_fn_cxx_try_compile ()
  1803. {
  1804. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1805. rm -f conftest.$ac_objext
  1806. if { { ac_try="$ac_compile"
  1807. case "(($ac_try" in
  1808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1809. *) ac_try_echo=$ac_try;;
  1810. esac
  1811. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1812. $as_echo "$ac_try_echo"; } >&5
  1813. (eval "$ac_compile") 2>conftest.err
  1814. ac_status=$?
  1815. if test -s conftest.err; then
  1816. grep -v '^ *+' conftest.err >conftest.er1
  1817. cat conftest.er1 >&5
  1818. mv -f conftest.er1 conftest.err
  1819. fi
  1820. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1821. test $ac_status = 0; } && {
  1822. test -z "$ac_cxx_werror_flag" ||
  1823. test ! -s conftest.err
  1824. } && test -s conftest.$ac_objext; then :
  1825. ac_retval=0
  1826. else
  1827. $as_echo "$as_me: failed program was:" >&5
  1828. sed 's/^/| /' conftest.$ac_ext >&5
  1829. ac_retval=1
  1830. fi
  1831. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1832. as_fn_set_status $ac_retval
  1833. } @%:@ ac_fn_cxx_try_compile
  1834. @%:@ ac_fn_cxx_try_cpp LINENO
  1835. @%:@ ------------------------
  1836. @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
  1837. ac_fn_cxx_try_cpp ()
  1838. {
  1839. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1840. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1841. case "(($ac_try" in
  1842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1843. *) ac_try_echo=$ac_try;;
  1844. esac
  1845. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1846. $as_echo "$ac_try_echo"; } >&5
  1847. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1848. ac_status=$?
  1849. if test -s conftest.err; then
  1850. grep -v '^ *+' conftest.err >conftest.er1
  1851. cat conftest.er1 >&5
  1852. mv -f conftest.er1 conftest.err
  1853. fi
  1854. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1855. test $ac_status = 0; } > conftest.i && {
  1856. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1857. test ! -s conftest.err
  1858. }; then :
  1859. ac_retval=0
  1860. else
  1861. $as_echo "$as_me: failed program was:" >&5
  1862. sed 's/^/| /' conftest.$ac_ext >&5
  1863. ac_retval=1
  1864. fi
  1865. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1866. as_fn_set_status $ac_retval
  1867. } @%:@ ac_fn_cxx_try_cpp
  1868. @%:@ ac_fn_cxx_try_link LINENO
  1869. @%:@ -------------------------
  1870. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
  1871. ac_fn_cxx_try_link ()
  1872. {
  1873. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1874. rm -f conftest.$ac_objext conftest$ac_exeext
  1875. if { { ac_try="$ac_link"
  1876. case "(($ac_try" in
  1877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1878. *) ac_try_echo=$ac_try;;
  1879. esac
  1880. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1881. $as_echo "$ac_try_echo"; } >&5
  1882. (eval "$ac_link") 2>conftest.err
  1883. ac_status=$?
  1884. if test -s conftest.err; then
  1885. grep -v '^ *+' conftest.err >conftest.er1
  1886. cat conftest.er1 >&5
  1887. mv -f conftest.er1 conftest.err
  1888. fi
  1889. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1890. test $ac_status = 0; } && {
  1891. test -z "$ac_cxx_werror_flag" ||
  1892. test ! -s conftest.err
  1893. } && test -s conftest$ac_exeext && {
  1894. test "$cross_compiling" = yes ||
  1895. test -x conftest$ac_exeext
  1896. }; then :
  1897. ac_retval=0
  1898. else
  1899. $as_echo "$as_me: failed program was:" >&5
  1900. sed 's/^/| /' conftest.$ac_ext >&5
  1901. ac_retval=1
  1902. fi
  1903. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1904. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1905. # interfere with the next link command; also delete a directory that is
  1906. # left behind by Apple's compiler. We do this before executing the actions.
  1907. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1908. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1909. as_fn_set_status $ac_retval
  1910. } @%:@ ac_fn_cxx_try_link
  1911. @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1912. @%:@ -------------------------------------------------------
  1913. @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1914. @%:@ the include files in INCLUDES and setting the cache variable VAR
  1915. @%:@ accordingly.
  1916. ac_fn_c_check_header_mongrel ()
  1917. {
  1918. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1919. if eval \${$3+:} false; then :
  1920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1921. $as_echo_n "checking for $2... " >&6; }
  1922. if eval \${$3+:} false; then :
  1923. $as_echo_n "(cached) " >&6
  1924. fi
  1925. eval ac_res=\$$3
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1927. $as_echo "$ac_res" >&6; }
  1928. else
  1929. # Is the header compilable?
  1930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1931. $as_echo_n "checking $2 usability... " >&6; }
  1932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1933. /* end confdefs.h. */
  1934. $4
  1935. @%:@include <$2>
  1936. _ACEOF
  1937. if ac_fn_c_try_compile "$LINENO"; then :
  1938. ac_header_compiler=yes
  1939. else
  1940. ac_header_compiler=no
  1941. fi
  1942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1944. $as_echo "$ac_header_compiler" >&6; }
  1945. # Is the header present?
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1947. $as_echo_n "checking $2 presence... " >&6; }
  1948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1949. /* end confdefs.h. */
  1950. @%:@include <$2>
  1951. _ACEOF
  1952. if ac_fn_c_try_cpp "$LINENO"; then :
  1953. ac_header_preproc=yes
  1954. else
  1955. ac_header_preproc=no
  1956. fi
  1957. rm -f conftest.err conftest.i conftest.$ac_ext
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1959. $as_echo "$ac_header_preproc" >&6; }
  1960. # So? What about this header?
  1961. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1962. yes:no: )
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1964. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1966. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1967. ;;
  1968. no:yes:* )
  1969. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1970. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1972. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1974. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1976. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1978. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1979. ;;
  1980. esac
  1981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1982. $as_echo_n "checking for $2... " >&6; }
  1983. if eval \${$3+:} false; then :
  1984. $as_echo_n "(cached) " >&6
  1985. else
  1986. eval "$3=\$ac_header_compiler"
  1987. fi
  1988. eval ac_res=\$$3
  1989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1990. $as_echo "$ac_res" >&6; }
  1991. fi
  1992. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1993. } @%:@ ac_fn_c_check_header_mongrel
  1994. @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1995. @%:@ -------------------------------------------
  1996. @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
  1997. @%:@ variable VAR accordingly.
  1998. ac_fn_c_check_type ()
  1999. {
  2000. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2002. $as_echo_n "checking for $2... " >&6; }
  2003. if eval \${$3+:} false; then :
  2004. $as_echo_n "(cached) " >&6
  2005. else
  2006. eval "$3=no"
  2007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2008. /* end confdefs.h. */
  2009. $4
  2010. int
  2011. main ()
  2012. {
  2013. if (sizeof ($2))
  2014. return 0;
  2015. ;
  2016. return 0;
  2017. }
  2018. _ACEOF
  2019. if ac_fn_c_try_compile "$LINENO"; then :
  2020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2021. /* end confdefs.h. */
  2022. $4
  2023. int
  2024. main ()
  2025. {
  2026. if (sizeof (($2)))
  2027. return 0;
  2028. ;
  2029. return 0;
  2030. }
  2031. _ACEOF
  2032. if ac_fn_c_try_compile "$LINENO"; then :
  2033. else
  2034. eval "$3=yes"
  2035. fi
  2036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2037. fi
  2038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2039. fi
  2040. eval ac_res=\$$3
  2041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2042. $as_echo "$ac_res" >&6; }
  2043. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2044. } @%:@ ac_fn_c_check_type
  2045. @%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2046. @%:@ ----------------------------------------------------
  2047. @%:@ Tries to find if the field MEMBER exists in type AGGR, after including
  2048. @%:@ INCLUDES, setting cache variable VAR accordingly.
  2049. ac_fn_c_check_member ()
  2050. {
  2051. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2053. $as_echo_n "checking for $2.$3... " >&6; }
  2054. if eval \${$4+:} false; then :
  2055. $as_echo_n "(cached) " >&6
  2056. else
  2057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2058. /* end confdefs.h. */
  2059. $5
  2060. int
  2061. main ()
  2062. {
  2063. static $2 ac_aggr;
  2064. if (ac_aggr.$3)
  2065. return 0;
  2066. ;
  2067. return 0;
  2068. }
  2069. _ACEOF
  2070. if ac_fn_c_try_compile "$LINENO"; then :
  2071. eval "$4=yes"
  2072. else
  2073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2074. /* end confdefs.h. */
  2075. $5
  2076. int
  2077. main ()
  2078. {
  2079. static $2 ac_aggr;
  2080. if (sizeof ac_aggr.$3)
  2081. return 0;
  2082. ;
  2083. return 0;
  2084. }
  2085. _ACEOF
  2086. if ac_fn_c_try_compile "$LINENO"; then :
  2087. eval "$4=yes"
  2088. else
  2089. eval "$4=no"
  2090. fi
  2091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2092. fi
  2093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2094. fi
  2095. eval ac_res=\$$4
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2097. $as_echo "$ac_res" >&6; }
  2098. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2099. } @%:@ ac_fn_c_check_member
  2100. cat >config.log <<_ACEOF
  2101. This file contains any messages produced by compilers while
  2102. running configure, to aid debugging if configure makes a mistake.
  2103. It was created by $as_me, which was
  2104. generated by GNU Autoconf 2.69. Invocation command line was
  2105. $ $0 $@
  2106. _ACEOF
  2107. exec 5>>config.log
  2108. {
  2109. cat <<_ASUNAME
  2110. ## --------- ##
  2111. ## Platform. ##
  2112. ## --------- ##
  2113. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2114. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2115. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2116. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2117. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2118. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2119. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2120. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2121. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2122. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2123. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2124. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2125. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2126. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2127. _ASUNAME
  2128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2129. for as_dir in $PATH
  2130. do
  2131. IFS=$as_save_IFS
  2132. test -z "$as_dir" && as_dir=.
  2133. $as_echo "PATH: $as_dir"
  2134. done
  2135. IFS=$as_save_IFS
  2136. } >&5
  2137. cat >&5 <<_ACEOF
  2138. ## ----------- ##
  2139. ## Core tests. ##
  2140. ## ----------- ##
  2141. _ACEOF
  2142. # Keep a trace of the command line.
  2143. # Strip out --no-create and --no-recursion so they do not pile up.
  2144. # Strip out --silent because we don't want to record it for future runs.
  2145. # Also quote any args containing shell meta-characters.
  2146. # Make two passes to allow for proper duplicate-argument suppression.
  2147. ac_configure_args=
  2148. ac_configure_args0=
  2149. ac_configure_args1=
  2150. ac_must_keep_next=false
  2151. for ac_pass in 1 2
  2152. do
  2153. for ac_arg
  2154. do
  2155. case $ac_arg in
  2156. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2157. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2158. | -silent | --silent | --silen | --sile | --sil)
  2159. continue ;;
  2160. *\'*)
  2161. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2162. esac
  2163. case $ac_pass in
  2164. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2165. 2)
  2166. as_fn_append ac_configure_args1 " '$ac_arg'"
  2167. if test $ac_must_keep_next = true; then
  2168. ac_must_keep_next=false # Got value, back to normal.
  2169. else
  2170. case $ac_arg in
  2171. *=* | --config-cache | -C | -disable-* | --disable-* \
  2172. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2173. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2174. | -with-* | --with-* | -without-* | --without-* | --x)
  2175. case "$ac_configure_args0 " in
  2176. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2177. esac
  2178. ;;
  2179. -* ) ac_must_keep_next=true ;;
  2180. esac
  2181. fi
  2182. as_fn_append ac_configure_args " '$ac_arg'"
  2183. ;;
  2184. esac
  2185. done
  2186. done
  2187. { ac_configure_args0=; unset ac_configure_args0;}
  2188. { ac_configure_args1=; unset ac_configure_args1;}
  2189. # When interrupted or exit'd, cleanup temporary files, and complete
  2190. # config.log. We remove comments because anyway the quotes in there
  2191. # would cause problems or look ugly.
  2192. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2193. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2194. trap 'exit_status=$?
  2195. # Save into config.log some information that might help in debugging.
  2196. {
  2197. echo
  2198. $as_echo "## ---------------- ##
  2199. ## Cache variables. ##
  2200. ## ---------------- ##"
  2201. echo
  2202. # The following way of writing the cache mishandles newlines in values,
  2203. (
  2204. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2205. eval ac_val=\$$ac_var
  2206. case $ac_val in #(
  2207. *${as_nl}*)
  2208. case $ac_var in #(
  2209. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2210. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2211. esac
  2212. case $ac_var in #(
  2213. _ | IFS | as_nl) ;; #(
  2214. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2215. *) { eval $ac_var=; unset $ac_var;} ;;
  2216. esac ;;
  2217. esac
  2218. done
  2219. (set) 2>&1 |
  2220. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2221. *${as_nl}ac_space=\ *)
  2222. sed -n \
  2223. "s/'\''/'\''\\\\'\'''\''/g;
  2224. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2225. ;; #(
  2226. *)
  2227. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2228. ;;
  2229. esac |
  2230. sort
  2231. )
  2232. echo
  2233. $as_echo "## ----------------- ##
  2234. ## Output variables. ##
  2235. ## ----------------- ##"
  2236. echo
  2237. for ac_var in $ac_subst_vars
  2238. do
  2239. eval ac_val=\$$ac_var
  2240. case $ac_val in
  2241. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2242. esac
  2243. $as_echo "$ac_var='\''$ac_val'\''"
  2244. done | sort
  2245. echo
  2246. if test -n "$ac_subst_files"; then
  2247. $as_echo "## ------------------- ##
  2248. ## File substitutions. ##
  2249. ## ------------------- ##"
  2250. echo
  2251. for ac_var in $ac_subst_files
  2252. do
  2253. eval ac_val=\$$ac_var
  2254. case $ac_val in
  2255. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2256. esac
  2257. $as_echo "$ac_var='\''$ac_val'\''"
  2258. done | sort
  2259. echo
  2260. fi
  2261. if test -s confdefs.h; then
  2262. $as_echo "## ----------- ##
  2263. ## confdefs.h. ##
  2264. ## ----------- ##"
  2265. echo
  2266. cat confdefs.h
  2267. echo
  2268. fi
  2269. test "$ac_signal" != 0 &&
  2270. $as_echo "$as_me: caught signal $ac_signal"
  2271. $as_echo "$as_me: exit $exit_status"
  2272. } >&5
  2273. rm -f core *.core core.conftest.* &&
  2274. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2275. exit $exit_status
  2276. ' 0
  2277. for ac_signal in 1 2 13 15; do
  2278. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2279. done
  2280. ac_signal=0
  2281. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2282. rm -f -r conftest* confdefs.h
  2283. $as_echo "/* confdefs.h */" > confdefs.h
  2284. # Predefined preprocessor variables.
  2285. cat >>confdefs.h <<_ACEOF
  2286. @%:@define PACKAGE_NAME "$PACKAGE_NAME"
  2287. _ACEOF
  2288. cat >>confdefs.h <<_ACEOF
  2289. @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2290. _ACEOF
  2291. cat >>confdefs.h <<_ACEOF
  2292. @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
  2293. _ACEOF
  2294. cat >>confdefs.h <<_ACEOF
  2295. @%:@define PACKAGE_STRING "$PACKAGE_STRING"
  2296. _ACEOF
  2297. cat >>confdefs.h <<_ACEOF
  2298. @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2299. _ACEOF
  2300. cat >>confdefs.h <<_ACEOF
  2301. @%:@define PACKAGE_URL "$PACKAGE_URL"
  2302. _ACEOF
  2303. # Let the site file select an alternate cache file if it wants to.
  2304. # Prefer an explicitly selected file to automatically selected ones.
  2305. ac_site_file1=NONE
  2306. ac_site_file2=NONE
  2307. if test -n "$CONFIG_SITE"; then
  2308. # We do not want a PATH search for config.site.
  2309. case $CONFIG_SITE in @%:@((
  2310. -*) ac_site_file1=./$CONFIG_SITE;;
  2311. */*) ac_site_file1=$CONFIG_SITE;;
  2312. *) ac_site_file1=./$CONFIG_SITE;;
  2313. esac
  2314. elif test "x$prefix" != xNONE; then
  2315. ac_site_file1=$prefix/share/config.site
  2316. ac_site_file2=$prefix/etc/config.site
  2317. else
  2318. ac_site_file1=$ac_default_prefix/share/config.site
  2319. ac_site_file2=$ac_default_prefix/etc/config.site
  2320. fi
  2321. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2322. do
  2323. test "x$ac_site_file" = xNONE && continue
  2324. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2326. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2327. sed 's/^/| /' "$ac_site_file" >&5
  2328. . "$ac_site_file" \
  2329. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2330. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2331. as_fn_error $? "failed to load site script $ac_site_file
  2332. See \`config.log' for more details" "$LINENO" 5; }
  2333. fi
  2334. done
  2335. if test -r "$cache_file"; then
  2336. # Some versions of bash will fail to source /dev/null (special files
  2337. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2338. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2340. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2341. case $cache_file in
  2342. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2343. *) . "./$cache_file";;
  2344. esac
  2345. fi
  2346. else
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2348. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2349. >$cache_file
  2350. fi
  2351. # Check that the precious variables saved in the cache have kept the same
  2352. # value.
  2353. ac_cache_corrupted=false
  2354. for ac_var in $ac_precious_vars; do
  2355. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2356. eval ac_new_set=\$ac_env_${ac_var}_set
  2357. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2358. eval ac_new_val=\$ac_env_${ac_var}_value
  2359. case $ac_old_set,$ac_new_set in
  2360. set,)
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2362. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2363. ac_cache_corrupted=: ;;
  2364. ,set)
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2366. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2367. ac_cache_corrupted=: ;;
  2368. ,);;
  2369. *)
  2370. if test "x$ac_old_val" != "x$ac_new_val"; then
  2371. # differences in whitespace do not lead to failure.
  2372. ac_old_val_w=`echo x $ac_old_val`
  2373. ac_new_val_w=`echo x $ac_new_val`
  2374. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2376. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2377. ac_cache_corrupted=:
  2378. else
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2380. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2381. eval $ac_var=\$ac_old_val
  2382. fi
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2384. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2386. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2387. fi;;
  2388. esac
  2389. # Pass precious variables to config.status.
  2390. if test "$ac_new_set" = set; then
  2391. case $ac_new_val in
  2392. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2393. *) ac_arg=$ac_var=$ac_new_val ;;
  2394. esac
  2395. case " $ac_configure_args " in
  2396. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2397. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2398. esac
  2399. fi
  2400. done
  2401. if $ac_cache_corrupted; then
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2403. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2405. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2406. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2407. fi
  2408. ## -------------------- ##
  2409. ## Main body of script. ##
  2410. ## -------------------- ##
  2411. ac_ext=c
  2412. ac_cpp='$CPP $CPPFLAGS'
  2413. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2414. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2415. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2416. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2417. ac_aux_dir=
  2418. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2419. if test -f "$ac_dir/install-sh"; then
  2420. ac_aux_dir=$ac_dir
  2421. ac_install_sh="$ac_aux_dir/install-sh -c"
  2422. break
  2423. elif test -f "$ac_dir/install.sh"; then
  2424. ac_aux_dir=$ac_dir
  2425. ac_install_sh="$ac_aux_dir/install.sh -c"
  2426. break
  2427. elif test -f "$ac_dir/shtool"; then
  2428. ac_aux_dir=$ac_dir
  2429. ac_install_sh="$ac_aux_dir/shtool install -c"
  2430. break
  2431. fi
  2432. done
  2433. if test -z "$ac_aux_dir"; then
  2434. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2435. fi
  2436. # These three variables are undocumented and unsupported,
  2437. # and are intended to be withdrawn in a future Autoconf release.
  2438. # They can cause serious problems if a builder's source tree is in a directory
  2439. # whose full name contains unusual characters.
  2440. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2441. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2442. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2443. orig_CFLAGS="$CFLAGS"
  2444. #
  2445. # Making releases:
  2446. # Edit include/SDL_version.h and change the version, then:
  2447. # SDL_MICRO_VERSION += 1;
  2448. # SDL_INTERFACE_AGE += 1;
  2449. # SDL_BINARY_AGE += 1;
  2450. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2451. # if backwards compatibility has been broken,
  2452. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2453. #
  2454. SDL_MAJOR_VERSION=2
  2455. SDL_MINOR_VERSION=0
  2456. SDL_MICRO_VERSION=4
  2457. SDL_INTERFACE_AGE=0
  2458. SDL_BINARY_AGE=4
  2459. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2460. # libtool versioning
  2461. case `pwd` in
  2462. *\ * | *\ *)
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2464. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2465. esac
  2466. macro_version='2.4.2'
  2467. macro_revision='1.3337'
  2468. ltmain="$ac_aux_dir/ltmain.sh"
  2469. # Make sure we can run config.sub.
  2470. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2471. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2473. $as_echo_n "checking build system type... " >&6; }
  2474. if ${ac_cv_build+:} false; then :
  2475. $as_echo_n "(cached) " >&6
  2476. else
  2477. ac_build_alias=$build_alias
  2478. test "x$ac_build_alias" = x &&
  2479. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2480. test "x$ac_build_alias" = x &&
  2481. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2482. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2483. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2484. fi
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2486. $as_echo "$ac_cv_build" >&6; }
  2487. case $ac_cv_build in
  2488. *-*-*) ;;
  2489. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2490. esac
  2491. build=$ac_cv_build
  2492. ac_save_IFS=$IFS; IFS='-'
  2493. set x $ac_cv_build
  2494. shift
  2495. build_cpu=$1
  2496. build_vendor=$2
  2497. shift; shift
  2498. # Remember, the first character of IFS is used to create $*,
  2499. # except with old shells:
  2500. build_os=$*
  2501. IFS=$ac_save_IFS
  2502. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2504. $as_echo_n "checking host system type... " >&6; }
  2505. if ${ac_cv_host+:} false; then :
  2506. $as_echo_n "(cached) " >&6
  2507. else
  2508. if test "x$host_alias" = x; then
  2509. ac_cv_host=$ac_cv_build
  2510. else
  2511. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2512. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2513. fi
  2514. fi
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2516. $as_echo "$ac_cv_host" >&6; }
  2517. case $ac_cv_host in
  2518. *-*-*) ;;
  2519. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2520. esac
  2521. host=$ac_cv_host
  2522. ac_save_IFS=$IFS; IFS='-'
  2523. set x $ac_cv_host
  2524. shift
  2525. host_cpu=$1
  2526. host_vendor=$2
  2527. shift; shift
  2528. # Remember, the first character of IFS is used to create $*,
  2529. # except with old shells:
  2530. host_os=$*
  2531. IFS=$ac_save_IFS
  2532. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2533. # Backslashify metacharacters that are still active within
  2534. # double-quoted strings.
  2535. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2536. # Same as above, but do not quote variable references.
  2537. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2538. # Sed substitution to delay expansion of an escaped shell variable in a
  2539. # double_quote_subst'ed string.
  2540. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2541. # Sed substitution to delay expansion of an escaped single quote.
  2542. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2543. # Sed substitution to avoid accidental globbing in evaled expressions
  2544. no_glob_subst='s/\*/\\\*/g'
  2545. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2546. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2547. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2549. $as_echo_n "checking how to print strings... " >&6; }
  2550. # Test print first, because it will be a builtin if present.
  2551. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2552. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2553. ECHO='print -r --'
  2554. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2555. ECHO='printf %s\n'
  2556. else
  2557. # Use this function as a fallback that always works.
  2558. func_fallback_echo ()
  2559. {
  2560. eval 'cat <<_LTECHO_EOF
  2561. $1
  2562. _LTECHO_EOF'
  2563. }
  2564. ECHO='func_fallback_echo'
  2565. fi
  2566. # func_echo_all arg...
  2567. # Invoke $ECHO with all args, space-separated.
  2568. func_echo_all ()
  2569. {
  2570. $ECHO ""
  2571. }
  2572. case "$ECHO" in
  2573. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2574. $as_echo "printf" >&6; } ;;
  2575. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2576. $as_echo "print -r" >&6; } ;;
  2577. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2578. $as_echo "cat" >&6; } ;;
  2579. esac
  2580. ac_ext=c
  2581. ac_cpp='$CPP $CPPFLAGS'
  2582. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2583. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2584. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2585. if test -n "$ac_tool_prefix"; then
  2586. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2587. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2589. $as_echo_n "checking for $ac_word... " >&6; }
  2590. if ${ac_cv_prog_CC+:} false; then :
  2591. $as_echo_n "(cached) " >&6
  2592. else
  2593. if test -n "$CC"; then
  2594. ac_cv_prog_CC="$CC" # Let the user override the test.
  2595. else
  2596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2597. for as_dir in $PATH
  2598. do
  2599. IFS=$as_save_IFS
  2600. test -z "$as_dir" && as_dir=.
  2601. for ac_exec_ext in '' $ac_executable_extensions; do
  2602. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2603. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2605. break 2
  2606. fi
  2607. done
  2608. done
  2609. IFS=$as_save_IFS
  2610. fi
  2611. fi
  2612. CC=$ac_cv_prog_CC
  2613. if test -n "$CC"; then
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2615. $as_echo "$CC" >&6; }
  2616. else
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2618. $as_echo "no" >&6; }
  2619. fi
  2620. fi
  2621. if test -z "$ac_cv_prog_CC"; then
  2622. ac_ct_CC=$CC
  2623. # Extract the first word of "gcc", so it can be a program name with args.
  2624. set dummy gcc; ac_word=$2
  2625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2626. $as_echo_n "checking for $ac_word... " >&6; }
  2627. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2628. $as_echo_n "(cached) " >&6
  2629. else
  2630. if test -n "$ac_ct_CC"; then
  2631. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2632. else
  2633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2634. for as_dir in $PATH
  2635. do
  2636. IFS=$as_save_IFS
  2637. test -z "$as_dir" && as_dir=.
  2638. for ac_exec_ext in '' $ac_executable_extensions; do
  2639. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2640. ac_cv_prog_ac_ct_CC="gcc"
  2641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2642. break 2
  2643. fi
  2644. done
  2645. done
  2646. IFS=$as_save_IFS
  2647. fi
  2648. fi
  2649. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2650. if test -n "$ac_ct_CC"; then
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2652. $as_echo "$ac_ct_CC" >&6; }
  2653. else
  2654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2655. $as_echo "no" >&6; }
  2656. fi
  2657. if test "x$ac_ct_CC" = x; then
  2658. CC=""
  2659. else
  2660. case $cross_compiling:$ac_tool_warned in
  2661. yes:)
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2663. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2664. ac_tool_warned=yes ;;
  2665. esac
  2666. CC=$ac_ct_CC
  2667. fi
  2668. else
  2669. CC="$ac_cv_prog_CC"
  2670. fi
  2671. if test -z "$CC"; then
  2672. if test -n "$ac_tool_prefix"; then
  2673. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2674. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2676. $as_echo_n "checking for $ac_word... " >&6; }
  2677. if ${ac_cv_prog_CC+:} false; then :
  2678. $as_echo_n "(cached) " >&6
  2679. else
  2680. if test -n "$CC"; then
  2681. ac_cv_prog_CC="$CC" # Let the user override the test.
  2682. else
  2683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2684. for as_dir in $PATH
  2685. do
  2686. IFS=$as_save_IFS
  2687. test -z "$as_dir" && as_dir=.
  2688. for ac_exec_ext in '' $ac_executable_extensions; do
  2689. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2690. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2692. break 2
  2693. fi
  2694. done
  2695. done
  2696. IFS=$as_save_IFS
  2697. fi
  2698. fi
  2699. CC=$ac_cv_prog_CC
  2700. if test -n "$CC"; then
  2701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2702. $as_echo "$CC" >&6; }
  2703. else
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2705. $as_echo "no" >&6; }
  2706. fi
  2707. fi
  2708. fi
  2709. if test -z "$CC"; then
  2710. # Extract the first word of "cc", so it can be a program name with args.
  2711. set dummy cc; ac_word=$2
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2713. $as_echo_n "checking for $ac_word... " >&6; }
  2714. if ${ac_cv_prog_CC+:} false; then :
  2715. $as_echo_n "(cached) " >&6
  2716. else
  2717. if test -n "$CC"; then
  2718. ac_cv_prog_CC="$CC" # Let the user override the test.
  2719. else
  2720. ac_prog_rejected=no
  2721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2722. for as_dir in $PATH
  2723. do
  2724. IFS=$as_save_IFS
  2725. test -z "$as_dir" && as_dir=.
  2726. for ac_exec_ext in '' $ac_executable_extensions; do
  2727. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2728. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2729. ac_prog_rejected=yes
  2730. continue
  2731. fi
  2732. ac_cv_prog_CC="cc"
  2733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2734. break 2
  2735. fi
  2736. done
  2737. done
  2738. IFS=$as_save_IFS
  2739. if test $ac_prog_rejected = yes; then
  2740. # We found a bogon in the path, so make sure we never use it.
  2741. set dummy $ac_cv_prog_CC
  2742. shift
  2743. if test $@%:@ != 0; then
  2744. # We chose a different compiler from the bogus one.
  2745. # However, it has the same basename, so the bogon will be chosen
  2746. # first if we set CC to just the basename; use the full file name.
  2747. shift
  2748. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2749. fi
  2750. fi
  2751. fi
  2752. fi
  2753. CC=$ac_cv_prog_CC
  2754. if test -n "$CC"; then
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2756. $as_echo "$CC" >&6; }
  2757. else
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2759. $as_echo "no" >&6; }
  2760. fi
  2761. fi
  2762. if test -z "$CC"; then
  2763. if test -n "$ac_tool_prefix"; then
  2764. for ac_prog in cl.exe
  2765. do
  2766. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2767. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2769. $as_echo_n "checking for $ac_word... " >&6; }
  2770. if ${ac_cv_prog_CC+:} false; then :
  2771. $as_echo_n "(cached) " >&6
  2772. else
  2773. if test -n "$CC"; then
  2774. ac_cv_prog_CC="$CC" # Let the user override the test.
  2775. else
  2776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2777. for as_dir in $PATH
  2778. do
  2779. IFS=$as_save_IFS
  2780. test -z "$as_dir" && as_dir=.
  2781. for ac_exec_ext in '' $ac_executable_extensions; do
  2782. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2783. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2785. break 2
  2786. fi
  2787. done
  2788. done
  2789. IFS=$as_save_IFS
  2790. fi
  2791. fi
  2792. CC=$ac_cv_prog_CC
  2793. if test -n "$CC"; then
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2795. $as_echo "$CC" >&6; }
  2796. else
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2798. $as_echo "no" >&6; }
  2799. fi
  2800. test -n "$CC" && break
  2801. done
  2802. fi
  2803. if test -z "$CC"; then
  2804. ac_ct_CC=$CC
  2805. for ac_prog in cl.exe
  2806. do
  2807. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2808. set dummy $ac_prog; ac_word=$2
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2810. $as_echo_n "checking for $ac_word... " >&6; }
  2811. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2812. $as_echo_n "(cached) " >&6
  2813. else
  2814. if test -n "$ac_ct_CC"; then
  2815. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2816. else
  2817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2818. for as_dir in $PATH
  2819. do
  2820. IFS=$as_save_IFS
  2821. test -z "$as_dir" && as_dir=.
  2822. for ac_exec_ext in '' $ac_executable_extensions; do
  2823. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2824. ac_cv_prog_ac_ct_CC="$ac_prog"
  2825. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2826. break 2
  2827. fi
  2828. done
  2829. done
  2830. IFS=$as_save_IFS
  2831. fi
  2832. fi
  2833. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2834. if test -n "$ac_ct_CC"; then
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2836. $as_echo "$ac_ct_CC" >&6; }
  2837. else
  2838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2839. $as_echo "no" >&6; }
  2840. fi
  2841. test -n "$ac_ct_CC" && break
  2842. done
  2843. if test "x$ac_ct_CC" = x; then
  2844. CC=""
  2845. else
  2846. case $cross_compiling:$ac_tool_warned in
  2847. yes:)
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2849. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2850. ac_tool_warned=yes ;;
  2851. esac
  2852. CC=$ac_ct_CC
  2853. fi
  2854. fi
  2855. fi
  2856. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2857. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2858. as_fn_error $? "no acceptable C compiler found in \$PATH
  2859. See \`config.log' for more details" "$LINENO" 5; }
  2860. # Provide some information about the compiler.
  2861. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2862. set X $ac_compile
  2863. ac_compiler=$2
  2864. for ac_option in --version -v -V -qversion; do
  2865. { { ac_try="$ac_compiler $ac_option >&5"
  2866. case "(($ac_try" in
  2867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2868. *) ac_try_echo=$ac_try;;
  2869. esac
  2870. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2871. $as_echo "$ac_try_echo"; } >&5
  2872. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2873. ac_status=$?
  2874. if test -s conftest.err; then
  2875. sed '10a\
  2876. ... rest of stderr output deleted ...
  2877. 10q' conftest.err >conftest.er1
  2878. cat conftest.er1 >&5
  2879. fi
  2880. rm -f conftest.er1 conftest.err
  2881. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2882. test $ac_status = 0; }
  2883. done
  2884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2885. /* end confdefs.h. */
  2886. int
  2887. main ()
  2888. {
  2889. ;
  2890. return 0;
  2891. }
  2892. _ACEOF
  2893. ac_clean_files_save=$ac_clean_files
  2894. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2895. # Try to create an executable without -o first, disregard a.out.
  2896. # It will help us diagnose broken compilers, and finding out an intuition
  2897. # of exeext.
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2899. $as_echo_n "checking whether the C compiler works... " >&6; }
  2900. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2901. # The possible output files:
  2902. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2903. ac_rmfiles=
  2904. for ac_file in $ac_files
  2905. do
  2906. case $ac_file in
  2907. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2908. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2909. esac
  2910. done
  2911. rm -f $ac_rmfiles
  2912. if { { ac_try="$ac_link_default"
  2913. case "(($ac_try" in
  2914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2915. *) ac_try_echo=$ac_try;;
  2916. esac
  2917. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2918. $as_echo "$ac_try_echo"; } >&5
  2919. (eval "$ac_link_default") 2>&5
  2920. ac_status=$?
  2921. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2922. test $ac_status = 0; }; then :
  2923. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2924. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2925. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2926. # so that the user can short-circuit this test for compilers unknown to
  2927. # Autoconf.
  2928. for ac_file in $ac_files ''
  2929. do
  2930. test -f "$ac_file" || continue
  2931. case $ac_file in
  2932. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2933. ;;
  2934. [ab].out )
  2935. # We found the default executable, but exeext='' is most
  2936. # certainly right.
  2937. break;;
  2938. *.* )
  2939. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2940. then :; else
  2941. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2942. fi
  2943. # We set ac_cv_exeext here because the later test for it is not
  2944. # safe: cross compilers may not add the suffix if given an `-o'
  2945. # argument, so we may need to know it at that point already.
  2946. # Even if this section looks crufty: it has the advantage of
  2947. # actually working.
  2948. break;;
  2949. * )
  2950. break;;
  2951. esac
  2952. done
  2953. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2954. else
  2955. ac_file=''
  2956. fi
  2957. if test -z "$ac_file"; then :
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2959. $as_echo "no" >&6; }
  2960. $as_echo "$as_me: failed program was:" >&5
  2961. sed 's/^/| /' conftest.$ac_ext >&5
  2962. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2963. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2964. as_fn_error 77 "C compiler cannot create executables
  2965. See \`config.log' for more details" "$LINENO" 5; }
  2966. else
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2968. $as_echo "yes" >&6; }
  2969. fi
  2970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2971. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2973. $as_echo "$ac_file" >&6; }
  2974. ac_exeext=$ac_cv_exeext
  2975. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2976. ac_clean_files=$ac_clean_files_save
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2978. $as_echo_n "checking for suffix of executables... " >&6; }
  2979. if { { ac_try="$ac_link"
  2980. case "(($ac_try" in
  2981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2982. *) ac_try_echo=$ac_try;;
  2983. esac
  2984. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2985. $as_echo "$ac_try_echo"; } >&5
  2986. (eval "$ac_link") 2>&5
  2987. ac_status=$?
  2988. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2989. test $ac_status = 0; }; then :
  2990. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2991. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2992. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2993. # `rm'.
  2994. for ac_file in conftest.exe conftest conftest.*; do
  2995. test -f "$ac_file" || continue
  2996. case $ac_file in
  2997. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2998. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2999. break;;
  3000. * ) break;;
  3001. esac
  3002. done
  3003. else
  3004. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3005. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3006. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3007. See \`config.log' for more details" "$LINENO" 5; }
  3008. fi
  3009. rm -f conftest conftest$ac_cv_exeext
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3011. $as_echo "$ac_cv_exeext" >&6; }
  3012. rm -f conftest.$ac_ext
  3013. EXEEXT=$ac_cv_exeext
  3014. ac_exeext=$EXEEXT
  3015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3016. /* end confdefs.h. */
  3017. @%:@include <stdio.h>
  3018. int
  3019. main ()
  3020. {
  3021. FILE *f = fopen ("conftest.out", "w");
  3022. return ferror (f) || fclose (f) != 0;
  3023. ;
  3024. return 0;
  3025. }
  3026. _ACEOF
  3027. ac_clean_files="$ac_clean_files conftest.out"
  3028. # Check that the compiler produces executables we can run. If not, either
  3029. # the compiler is broken, or we cross compile.
  3030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3031. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3032. if test "$cross_compiling" != yes; then
  3033. { { ac_try="$ac_link"
  3034. case "(($ac_try" in
  3035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3036. *) ac_try_echo=$ac_try;;
  3037. esac
  3038. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3039. $as_echo "$ac_try_echo"; } >&5
  3040. (eval "$ac_link") 2>&5
  3041. ac_status=$?
  3042. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3043. test $ac_status = 0; }
  3044. if { ac_try='./conftest$ac_cv_exeext'
  3045. { { case "(($ac_try" in
  3046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3047. *) ac_try_echo=$ac_try;;
  3048. esac
  3049. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3050. $as_echo "$ac_try_echo"; } >&5
  3051. (eval "$ac_try") 2>&5
  3052. ac_status=$?
  3053. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3054. test $ac_status = 0; }; }; then
  3055. cross_compiling=no
  3056. else
  3057. if test "$cross_compiling" = maybe; then
  3058. cross_compiling=yes
  3059. else
  3060. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3061. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3062. as_fn_error $? "cannot run C compiled programs.
  3063. If you meant to cross compile, use \`--host'.
  3064. See \`config.log' for more details" "$LINENO" 5; }
  3065. fi
  3066. fi
  3067. fi
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3069. $as_echo "$cross_compiling" >&6; }
  3070. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3071. ac_clean_files=$ac_clean_files_save
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3073. $as_echo_n "checking for suffix of object files... " >&6; }
  3074. if ${ac_cv_objext+:} false; then :
  3075. $as_echo_n "(cached) " >&6
  3076. else
  3077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3078. /* end confdefs.h. */
  3079. int
  3080. main ()
  3081. {
  3082. ;
  3083. return 0;
  3084. }
  3085. _ACEOF
  3086. rm -f conftest.o conftest.obj
  3087. if { { ac_try="$ac_compile"
  3088. case "(($ac_try" in
  3089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3090. *) ac_try_echo=$ac_try;;
  3091. esac
  3092. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3093. $as_echo "$ac_try_echo"; } >&5
  3094. (eval "$ac_compile") 2>&5
  3095. ac_status=$?
  3096. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3097. test $ac_status = 0; }; then :
  3098. for ac_file in conftest.o conftest.obj conftest.*; do
  3099. test -f "$ac_file" || continue;
  3100. case $ac_file in
  3101. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3102. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3103. break;;
  3104. esac
  3105. done
  3106. else
  3107. $as_echo "$as_me: failed program was:" >&5
  3108. sed 's/^/| /' conftest.$ac_ext >&5
  3109. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3110. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3111. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3112. See \`config.log' for more details" "$LINENO" 5; }
  3113. fi
  3114. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3115. fi
  3116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3117. $as_echo "$ac_cv_objext" >&6; }
  3118. OBJEXT=$ac_cv_objext
  3119. ac_objext=$OBJEXT
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3121. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3122. if ${ac_cv_c_compiler_gnu+:} false; then :
  3123. $as_echo_n "(cached) " >&6
  3124. else
  3125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3126. /* end confdefs.h. */
  3127. int
  3128. main ()
  3129. {
  3130. #ifndef __GNUC__
  3131. choke me
  3132. #endif
  3133. ;
  3134. return 0;
  3135. }
  3136. _ACEOF
  3137. if ac_fn_c_try_compile "$LINENO"; then :
  3138. ac_compiler_gnu=yes
  3139. else
  3140. ac_compiler_gnu=no
  3141. fi
  3142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3143. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3144. fi
  3145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3146. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3147. if test $ac_compiler_gnu = yes; then
  3148. GCC=yes
  3149. else
  3150. GCC=
  3151. fi
  3152. ac_test_CFLAGS=${CFLAGS+set}
  3153. ac_save_CFLAGS=$CFLAGS
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3155. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3156. if ${ac_cv_prog_cc_g+:} false; then :
  3157. $as_echo_n "(cached) " >&6
  3158. else
  3159. ac_save_c_werror_flag=$ac_c_werror_flag
  3160. ac_c_werror_flag=yes
  3161. ac_cv_prog_cc_g=no
  3162. CFLAGS="-g"
  3163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3164. /* end confdefs.h. */
  3165. int
  3166. main ()
  3167. {
  3168. ;
  3169. return 0;
  3170. }
  3171. _ACEOF
  3172. if ac_fn_c_try_compile "$LINENO"; then :
  3173. ac_cv_prog_cc_g=yes
  3174. else
  3175. CFLAGS=""
  3176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3177. /* end confdefs.h. */
  3178. int
  3179. main ()
  3180. {
  3181. ;
  3182. return 0;
  3183. }
  3184. _ACEOF
  3185. if ac_fn_c_try_compile "$LINENO"; then :
  3186. else
  3187. ac_c_werror_flag=$ac_save_c_werror_flag
  3188. CFLAGS="-g"
  3189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3190. /* end confdefs.h. */
  3191. int
  3192. main ()
  3193. {
  3194. ;
  3195. return 0;
  3196. }
  3197. _ACEOF
  3198. if ac_fn_c_try_compile "$LINENO"; then :
  3199. ac_cv_prog_cc_g=yes
  3200. fi
  3201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3202. fi
  3203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3204. fi
  3205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3206. ac_c_werror_flag=$ac_save_c_werror_flag
  3207. fi
  3208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3209. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3210. if test "$ac_test_CFLAGS" = set; then
  3211. CFLAGS=$ac_save_CFLAGS
  3212. elif test $ac_cv_prog_cc_g = yes; then
  3213. if test "$GCC" = yes; then
  3214. CFLAGS="-g -O2"
  3215. else
  3216. CFLAGS="-g"
  3217. fi
  3218. else
  3219. if test "$GCC" = yes; then
  3220. CFLAGS="-O2"
  3221. else
  3222. CFLAGS=
  3223. fi
  3224. fi
  3225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3226. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3227. if ${ac_cv_prog_cc_c89+:} false; then :
  3228. $as_echo_n "(cached) " >&6
  3229. else
  3230. ac_cv_prog_cc_c89=no
  3231. ac_save_CC=$CC
  3232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3233. /* end confdefs.h. */
  3234. #include <stdarg.h>
  3235. #include <stdio.h>
  3236. struct stat;
  3237. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3238. struct buf { int x; };
  3239. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3240. static char *e (p, i)
  3241. char **p;
  3242. int i;
  3243. {
  3244. return p[i];
  3245. }
  3246. static char *f (char * (*g) (char **, int), char **p, ...)
  3247. {
  3248. char *s;
  3249. va_list v;
  3250. va_start (v,p);
  3251. s = g (p, va_arg (v,int));
  3252. va_end (v);
  3253. return s;
  3254. }
  3255. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3256. function prototypes and stuff, but not '\xHH' hex character constants.
  3257. These don't provoke an error unfortunately, instead are silently treated
  3258. as 'x'. The following induces an error, until -std is added to get
  3259. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3260. array size at least. It's necessary to write '\x00'==0 to get something
  3261. that's true only with -std. */
  3262. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3263. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3264. inside strings and character constants. */
  3265. #define FOO(x) 'x'
  3266. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3267. int test (int i, double x);
  3268. struct s1 {int (*f) (int a);};
  3269. struct s2 {int (*f) (double a);};
  3270. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3271. int argc;
  3272. char **argv;
  3273. int
  3274. main ()
  3275. {
  3276. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3277. ;
  3278. return 0;
  3279. }
  3280. _ACEOF
  3281. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3282. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3283. do
  3284. CC="$ac_save_CC $ac_arg"
  3285. if ac_fn_c_try_compile "$LINENO"; then :
  3286. ac_cv_prog_cc_c89=$ac_arg
  3287. fi
  3288. rm -f core conftest.err conftest.$ac_objext
  3289. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3290. done
  3291. rm -f conftest.$ac_ext
  3292. CC=$ac_save_CC
  3293. fi
  3294. # AC_CACHE_VAL
  3295. case "x$ac_cv_prog_cc_c89" in
  3296. x)
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3298. $as_echo "none needed" >&6; } ;;
  3299. xno)
  3300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3301. $as_echo "unsupported" >&6; } ;;
  3302. *)
  3303. CC="$CC $ac_cv_prog_cc_c89"
  3304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3305. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3306. esac
  3307. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3308. fi
  3309. ac_ext=c
  3310. ac_cpp='$CPP $CPPFLAGS'
  3311. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3312. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3313. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3315. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3316. if ${ac_cv_path_SED+:} false; then :
  3317. $as_echo_n "(cached) " >&6
  3318. else
  3319. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3320. for ac_i in 1 2 3 4 5 6 7; do
  3321. ac_script="$ac_script$as_nl$ac_script"
  3322. done
  3323. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3324. { ac_script=; unset ac_script;}
  3325. if test -z "$SED"; then
  3326. ac_path_SED_found=false
  3327. # Loop through the user's path and test for each of PROGNAME-LIST
  3328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3329. for as_dir in $PATH
  3330. do
  3331. IFS=$as_save_IFS
  3332. test -z "$as_dir" && as_dir=.
  3333. for ac_prog in sed gsed; do
  3334. for ac_exec_ext in '' $ac_executable_extensions; do
  3335. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3336. as_fn_executable_p "$ac_path_SED" || continue
  3337. # Check for GNU ac_path_SED and select it if it is found.
  3338. # Check for GNU $ac_path_SED
  3339. case `"$ac_path_SED" --version 2>&1` in
  3340. *GNU*)
  3341. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3342. *)
  3343. ac_count=0
  3344. $as_echo_n 0123456789 >"conftest.in"
  3345. while :
  3346. do
  3347. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3348. mv "conftest.tmp" "conftest.in"
  3349. cp "conftest.in" "conftest.nl"
  3350. $as_echo '' >> "conftest.nl"
  3351. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3352. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3353. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3354. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3355. # Best one so far, save it but keep looking for a better one
  3356. ac_cv_path_SED="$ac_path_SED"
  3357. ac_path_SED_max=$ac_count
  3358. fi
  3359. # 10*(2^10) chars as input seems more than enough
  3360. test $ac_count -gt 10 && break
  3361. done
  3362. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3363. esac
  3364. $ac_path_SED_found && break 3
  3365. done
  3366. done
  3367. done
  3368. IFS=$as_save_IFS
  3369. if test -z "$ac_cv_path_SED"; then
  3370. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3371. fi
  3372. else
  3373. ac_cv_path_SED=$SED
  3374. fi
  3375. fi
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3377. $as_echo "$ac_cv_path_SED" >&6; }
  3378. SED="$ac_cv_path_SED"
  3379. rm -f conftest.sed
  3380. test -z "$SED" && SED=sed
  3381. Xsed="$SED -e 1s/^X//"
  3382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3383. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3384. if ${ac_cv_path_GREP+:} false; then :
  3385. $as_echo_n "(cached) " >&6
  3386. else
  3387. if test -z "$GREP"; then
  3388. ac_path_GREP_found=false
  3389. # Loop through the user's path and test for each of PROGNAME-LIST
  3390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3391. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3392. do
  3393. IFS=$as_save_IFS
  3394. test -z "$as_dir" && as_dir=.
  3395. for ac_prog in grep ggrep; do
  3396. for ac_exec_ext in '' $ac_executable_extensions; do
  3397. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3398. as_fn_executable_p "$ac_path_GREP" || continue
  3399. # Check for GNU ac_path_GREP and select it if it is found.
  3400. # Check for GNU $ac_path_GREP
  3401. case `"$ac_path_GREP" --version 2>&1` in
  3402. *GNU*)
  3403. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3404. *)
  3405. ac_count=0
  3406. $as_echo_n 0123456789 >"conftest.in"
  3407. while :
  3408. do
  3409. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3410. mv "conftest.tmp" "conftest.in"
  3411. cp "conftest.in" "conftest.nl"
  3412. $as_echo 'GREP' >> "conftest.nl"
  3413. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3414. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3415. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3416. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3417. # Best one so far, save it but keep looking for a better one
  3418. ac_cv_path_GREP="$ac_path_GREP"
  3419. ac_path_GREP_max=$ac_count
  3420. fi
  3421. # 10*(2^10) chars as input seems more than enough
  3422. test $ac_count -gt 10 && break
  3423. done
  3424. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3425. esac
  3426. $ac_path_GREP_found && break 3
  3427. done
  3428. done
  3429. done
  3430. IFS=$as_save_IFS
  3431. if test -z "$ac_cv_path_GREP"; then
  3432. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3433. fi
  3434. else
  3435. ac_cv_path_GREP=$GREP
  3436. fi
  3437. fi
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3439. $as_echo "$ac_cv_path_GREP" >&6; }
  3440. GREP="$ac_cv_path_GREP"
  3441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3442. $as_echo_n "checking for egrep... " >&6; }
  3443. if ${ac_cv_path_EGREP+:} false; then :
  3444. $as_echo_n "(cached) " >&6
  3445. else
  3446. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3447. then ac_cv_path_EGREP="$GREP -E"
  3448. else
  3449. if test -z "$EGREP"; then
  3450. ac_path_EGREP_found=false
  3451. # Loop through the user's path and test for each of PROGNAME-LIST
  3452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3453. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3454. do
  3455. IFS=$as_save_IFS
  3456. test -z "$as_dir" && as_dir=.
  3457. for ac_prog in egrep; do
  3458. for ac_exec_ext in '' $ac_executable_extensions; do
  3459. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3460. as_fn_executable_p "$ac_path_EGREP" || continue
  3461. # Check for GNU ac_path_EGREP and select it if it is found.
  3462. # Check for GNU $ac_path_EGREP
  3463. case `"$ac_path_EGREP" --version 2>&1` in
  3464. *GNU*)
  3465. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3466. *)
  3467. ac_count=0
  3468. $as_echo_n 0123456789 >"conftest.in"
  3469. while :
  3470. do
  3471. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3472. mv "conftest.tmp" "conftest.in"
  3473. cp "conftest.in" "conftest.nl"
  3474. $as_echo 'EGREP' >> "conftest.nl"
  3475. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3476. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3477. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3478. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3479. # Best one so far, save it but keep looking for a better one
  3480. ac_cv_path_EGREP="$ac_path_EGREP"
  3481. ac_path_EGREP_max=$ac_count
  3482. fi
  3483. # 10*(2^10) chars as input seems more than enough
  3484. test $ac_count -gt 10 && break
  3485. done
  3486. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3487. esac
  3488. $ac_path_EGREP_found && break 3
  3489. done
  3490. done
  3491. done
  3492. IFS=$as_save_IFS
  3493. if test -z "$ac_cv_path_EGREP"; then
  3494. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3495. fi
  3496. else
  3497. ac_cv_path_EGREP=$EGREP
  3498. fi
  3499. fi
  3500. fi
  3501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3502. $as_echo "$ac_cv_path_EGREP" >&6; }
  3503. EGREP="$ac_cv_path_EGREP"
  3504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3505. $as_echo_n "checking for fgrep... " >&6; }
  3506. if ${ac_cv_path_FGREP+:} false; then :
  3507. $as_echo_n "(cached) " >&6
  3508. else
  3509. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3510. then ac_cv_path_FGREP="$GREP -F"
  3511. else
  3512. if test -z "$FGREP"; then
  3513. ac_path_FGREP_found=false
  3514. # Loop through the user's path and test for each of PROGNAME-LIST
  3515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3516. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3517. do
  3518. IFS=$as_save_IFS
  3519. test -z "$as_dir" && as_dir=.
  3520. for ac_prog in fgrep; do
  3521. for ac_exec_ext in '' $ac_executable_extensions; do
  3522. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3523. as_fn_executable_p "$ac_path_FGREP" || continue
  3524. # Check for GNU ac_path_FGREP and select it if it is found.
  3525. # Check for GNU $ac_path_FGREP
  3526. case `"$ac_path_FGREP" --version 2>&1` in
  3527. *GNU*)
  3528. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3529. *)
  3530. ac_count=0
  3531. $as_echo_n 0123456789 >"conftest.in"
  3532. while :
  3533. do
  3534. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3535. mv "conftest.tmp" "conftest.in"
  3536. cp "conftest.in" "conftest.nl"
  3537. $as_echo 'FGREP' >> "conftest.nl"
  3538. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3539. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3540. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3541. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3542. # Best one so far, save it but keep looking for a better one
  3543. ac_cv_path_FGREP="$ac_path_FGREP"
  3544. ac_path_FGREP_max=$ac_count
  3545. fi
  3546. # 10*(2^10) chars as input seems more than enough
  3547. test $ac_count -gt 10 && break
  3548. done
  3549. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3550. esac
  3551. $ac_path_FGREP_found && break 3
  3552. done
  3553. done
  3554. done
  3555. IFS=$as_save_IFS
  3556. if test -z "$ac_cv_path_FGREP"; then
  3557. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3558. fi
  3559. else
  3560. ac_cv_path_FGREP=$FGREP
  3561. fi
  3562. fi
  3563. fi
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3565. $as_echo "$ac_cv_path_FGREP" >&6; }
  3566. FGREP="$ac_cv_path_FGREP"
  3567. test -z "$GREP" && GREP=grep
  3568. @%:@ Check whether --with-gnu-ld was given.
  3569. if test "${with_gnu_ld+set}" = set; then :
  3570. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3571. else
  3572. with_gnu_ld=no
  3573. fi
  3574. ac_prog=ld
  3575. if test "$GCC" = yes; then
  3576. # Check if gcc -print-prog-name=ld gives a path.
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3578. $as_echo_n "checking for ld used by $CC... " >&6; }
  3579. case $host in
  3580. *-*-mingw*)
  3581. # gcc leaves a trailing carriage return which upsets mingw
  3582. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3583. *)
  3584. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3585. esac
  3586. case $ac_prog in
  3587. # Accept absolute paths.
  3588. [\\/]* | ?:[\\/]*)
  3589. re_direlt='/[^/][^/]*/\.\./'
  3590. # Canonicalize the pathname of ld
  3591. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3592. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3593. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3594. done
  3595. test -z "$LD" && LD="$ac_prog"
  3596. ;;
  3597. "")
  3598. # If it fails, then pretend we aren't using GCC.
  3599. ac_prog=ld
  3600. ;;
  3601. *)
  3602. # If it is relative, then search for the first ld in PATH.
  3603. with_gnu_ld=unknown
  3604. ;;
  3605. esac
  3606. elif test "$with_gnu_ld" = yes; then
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3608. $as_echo_n "checking for GNU ld... " >&6; }
  3609. else
  3610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3611. $as_echo_n "checking for non-GNU ld... " >&6; }
  3612. fi
  3613. if ${lt_cv_path_LD+:} false; then :
  3614. $as_echo_n "(cached) " >&6
  3615. else
  3616. if test -z "$LD"; then
  3617. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3618. for ac_dir in $PATH; do
  3619. IFS="$lt_save_ifs"
  3620. test -z "$ac_dir" && ac_dir=.
  3621. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3622. lt_cv_path_LD="$ac_dir/$ac_prog"
  3623. # Check to see if the program is GNU ld. I'd rather use --version,
  3624. # but apparently some variants of GNU ld only accept -v.
  3625. # Break only if it was the GNU/non-GNU ld that we prefer.
  3626. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3627. *GNU* | *'with BFD'*)
  3628. test "$with_gnu_ld" != no && break
  3629. ;;
  3630. *)
  3631. test "$with_gnu_ld" != yes && break
  3632. ;;
  3633. esac
  3634. fi
  3635. done
  3636. IFS="$lt_save_ifs"
  3637. else
  3638. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3639. fi
  3640. fi
  3641. LD="$lt_cv_path_LD"
  3642. if test -n "$LD"; then
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3644. $as_echo "$LD" >&6; }
  3645. else
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3647. $as_echo "no" >&6; }
  3648. fi
  3649. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3651. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3652. if ${lt_cv_prog_gnu_ld+:} false; then :
  3653. $as_echo_n "(cached) " >&6
  3654. else
  3655. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3656. case `$LD -v 2>&1 </dev/null` in
  3657. *GNU* | *'with BFD'*)
  3658. lt_cv_prog_gnu_ld=yes
  3659. ;;
  3660. *)
  3661. lt_cv_prog_gnu_ld=no
  3662. ;;
  3663. esac
  3664. fi
  3665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3666. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3667. with_gnu_ld=$lt_cv_prog_gnu_ld
  3668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3669. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3670. if ${lt_cv_path_NM+:} false; then :
  3671. $as_echo_n "(cached) " >&6
  3672. else
  3673. if test -n "$NM"; then
  3674. # Let the user override the test.
  3675. lt_cv_path_NM="$NM"
  3676. else
  3677. lt_nm_to_check="${ac_tool_prefix}nm"
  3678. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3679. lt_nm_to_check="$lt_nm_to_check nm"
  3680. fi
  3681. for lt_tmp_nm in $lt_nm_to_check; do
  3682. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3683. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3684. IFS="$lt_save_ifs"
  3685. test -z "$ac_dir" && ac_dir=.
  3686. tmp_nm="$ac_dir/$lt_tmp_nm"
  3687. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3688. # Check to see if the nm accepts a BSD-compat flag.
  3689. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3690. # nm: unknown option "B" ignored
  3691. # Tru64's nm complains that /dev/null is an invalid object file
  3692. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3693. */dev/null* | *'Invalid file or object type'*)
  3694. lt_cv_path_NM="$tmp_nm -B"
  3695. break
  3696. ;;
  3697. *)
  3698. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3699. */dev/null*)
  3700. lt_cv_path_NM="$tmp_nm -p"
  3701. break
  3702. ;;
  3703. *)
  3704. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3705. continue # so that we can try to find one that supports BSD flags
  3706. ;;
  3707. esac
  3708. ;;
  3709. esac
  3710. fi
  3711. done
  3712. IFS="$lt_save_ifs"
  3713. done
  3714. : ${lt_cv_path_NM=no}
  3715. fi
  3716. fi
  3717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3718. $as_echo "$lt_cv_path_NM" >&6; }
  3719. if test "$lt_cv_path_NM" != "no"; then
  3720. NM="$lt_cv_path_NM"
  3721. else
  3722. # Didn't find any BSD compatible name lister, look for dumpbin.
  3723. if test -n "$DUMPBIN"; then :
  3724. # Let the user override the test.
  3725. else
  3726. if test -n "$ac_tool_prefix"; then
  3727. for ac_prog in dumpbin "link -dump"
  3728. do
  3729. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3730. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3732. $as_echo_n "checking for $ac_word... " >&6; }
  3733. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3734. $as_echo_n "(cached) " >&6
  3735. else
  3736. if test -n "$DUMPBIN"; then
  3737. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3738. else
  3739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3740. for as_dir in $PATH
  3741. do
  3742. IFS=$as_save_IFS
  3743. test -z "$as_dir" && as_dir=.
  3744. for ac_exec_ext in '' $ac_executable_extensions; do
  3745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3746. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3748. break 2
  3749. fi
  3750. done
  3751. done
  3752. IFS=$as_save_IFS
  3753. fi
  3754. fi
  3755. DUMPBIN=$ac_cv_prog_DUMPBIN
  3756. if test -n "$DUMPBIN"; then
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3758. $as_echo "$DUMPBIN" >&6; }
  3759. else
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3761. $as_echo "no" >&6; }
  3762. fi
  3763. test -n "$DUMPBIN" && break
  3764. done
  3765. fi
  3766. if test -z "$DUMPBIN"; then
  3767. ac_ct_DUMPBIN=$DUMPBIN
  3768. for ac_prog in dumpbin "link -dump"
  3769. do
  3770. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3771. set dummy $ac_prog; ac_word=$2
  3772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3773. $as_echo_n "checking for $ac_word... " >&6; }
  3774. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3775. $as_echo_n "(cached) " >&6
  3776. else
  3777. if test -n "$ac_ct_DUMPBIN"; then
  3778. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3779. else
  3780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3781. for as_dir in $PATH
  3782. do
  3783. IFS=$as_save_IFS
  3784. test -z "$as_dir" && as_dir=.
  3785. for ac_exec_ext in '' $ac_executable_extensions; do
  3786. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3787. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3789. break 2
  3790. fi
  3791. done
  3792. done
  3793. IFS=$as_save_IFS
  3794. fi
  3795. fi
  3796. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3797. if test -n "$ac_ct_DUMPBIN"; then
  3798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3799. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3800. else
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3802. $as_echo "no" >&6; }
  3803. fi
  3804. test -n "$ac_ct_DUMPBIN" && break
  3805. done
  3806. if test "x$ac_ct_DUMPBIN" = x; then
  3807. DUMPBIN=":"
  3808. else
  3809. case $cross_compiling:$ac_tool_warned in
  3810. yes:)
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3812. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3813. ac_tool_warned=yes ;;
  3814. esac
  3815. DUMPBIN=$ac_ct_DUMPBIN
  3816. fi
  3817. fi
  3818. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3819. *COFF*)
  3820. DUMPBIN="$DUMPBIN -symbols"
  3821. ;;
  3822. *)
  3823. DUMPBIN=:
  3824. ;;
  3825. esac
  3826. fi
  3827. if test "$DUMPBIN" != ":"; then
  3828. NM="$DUMPBIN"
  3829. fi
  3830. fi
  3831. test -z "$NM" && NM=nm
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3833. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3834. if ${lt_cv_nm_interface+:} false; then :
  3835. $as_echo_n "(cached) " >&6
  3836. else
  3837. lt_cv_nm_interface="BSD nm"
  3838. echo "int some_variable = 0;" > conftest.$ac_ext
  3839. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3840. (eval "$ac_compile" 2>conftest.err)
  3841. cat conftest.err >&5
  3842. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3843. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3844. cat conftest.err >&5
  3845. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3846. cat conftest.out >&5
  3847. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3848. lt_cv_nm_interface="MS dumpbin"
  3849. fi
  3850. rm -f conftest*
  3851. fi
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3853. $as_echo "$lt_cv_nm_interface" >&6; }
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3855. $as_echo_n "checking whether ln -s works... " >&6; }
  3856. LN_S=$as_ln_s
  3857. if test "$LN_S" = "ln -s"; then
  3858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3859. $as_echo "yes" >&6; }
  3860. else
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3862. $as_echo "no, using $LN_S" >&6; }
  3863. fi
  3864. # find the maximum length of command line arguments
  3865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3866. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3867. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3868. $as_echo_n "(cached) " >&6
  3869. else
  3870. i=0
  3871. teststring="ABCD"
  3872. case $build_os in
  3873. msdosdjgpp*)
  3874. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3875. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3876. # during glob expansion). Even if it were fixed, the result of this
  3877. # check would be larger than it should be.
  3878. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3879. ;;
  3880. gnu*)
  3881. # Under GNU Hurd, this test is not required because there is
  3882. # no limit to the length of command line arguments.
  3883. # Libtool will interpret -1 as no limit whatsoever
  3884. lt_cv_sys_max_cmd_len=-1;
  3885. ;;
  3886. cygwin* | mingw* | cegcc*)
  3887. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3888. # about 5 minutes as the teststring grows exponentially.
  3889. # Worse, since 9x/ME are not pre-emptively multitasking,
  3890. # you end up with a "frozen" computer, even though with patience
  3891. # the test eventually succeeds (with a max line length of 256k).
  3892. # Instead, let's just punt: use the minimum linelength reported by
  3893. # all of the supported platforms: 8192 (on NT/2K/XP).
  3894. lt_cv_sys_max_cmd_len=8192;
  3895. ;;
  3896. mint*)
  3897. # On MiNT this can take a long time and run out of memory.
  3898. lt_cv_sys_max_cmd_len=8192;
  3899. ;;
  3900. amigaos*)
  3901. # On AmigaOS with pdksh, this test takes hours, literally.
  3902. # So we just punt and use a minimum line length of 8192.
  3903. lt_cv_sys_max_cmd_len=8192;
  3904. ;;
  3905. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3906. # This has been around since 386BSD, at least. Likely further.
  3907. if test -x /sbin/sysctl; then
  3908. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3909. elif test -x /usr/sbin/sysctl; then
  3910. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3911. else
  3912. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3913. fi
  3914. # And add a safety zone
  3915. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3916. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3917. ;;
  3918. interix*)
  3919. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3920. lt_cv_sys_max_cmd_len=196608
  3921. ;;
  3922. os2*)
  3923. # The test takes a long time on OS/2.
  3924. lt_cv_sys_max_cmd_len=8192
  3925. ;;
  3926. osf*)
  3927. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3928. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3929. # nice to cause kernel panics so lets avoid the loop below.
  3930. # First set a reasonable default.
  3931. lt_cv_sys_max_cmd_len=16384
  3932. #
  3933. if test -x /sbin/sysconfig; then
  3934. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3935. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3936. esac
  3937. fi
  3938. ;;
  3939. sco3.2v5*)
  3940. lt_cv_sys_max_cmd_len=102400
  3941. ;;
  3942. sysv5* | sco5v6* | sysv4.2uw2*)
  3943. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3944. if test -n "$kargmax"; then
  3945. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3946. else
  3947. lt_cv_sys_max_cmd_len=32768
  3948. fi
  3949. ;;
  3950. *)
  3951. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3952. if test -n "$lt_cv_sys_max_cmd_len"; then
  3953. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3954. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3955. else
  3956. # Make teststring a little bigger before we do anything with it.
  3957. # a 1K string should be a reasonable start.
  3958. for i in 1 2 3 4 5 6 7 8 ; do
  3959. teststring=$teststring$teststring
  3960. done
  3961. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3962. # If test is not a shell built-in, we'll probably end up computing a
  3963. # maximum length that is only half of the actual maximum length, but
  3964. # we can't tell.
  3965. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3966. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3967. test $i != 17 # 1/2 MB should be enough
  3968. do
  3969. i=`expr $i + 1`
  3970. teststring=$teststring$teststring
  3971. done
  3972. # Only check the string length outside the loop.
  3973. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3974. teststring=
  3975. # Add a significant safety factor because C++ compilers can tack on
  3976. # massive amounts of additional arguments before passing them to the
  3977. # linker. It appears as though 1/2 is a usable value.
  3978. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3979. fi
  3980. ;;
  3981. esac
  3982. fi
  3983. if test -n $lt_cv_sys_max_cmd_len ; then
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3985. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3986. else
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3988. $as_echo "none" >&6; }
  3989. fi
  3990. max_cmd_len=$lt_cv_sys_max_cmd_len
  3991. : ${CP="cp -f"}
  3992. : ${MV="mv -f"}
  3993. : ${RM="rm -f"}
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  3995. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  3996. # Try some XSI features
  3997. xsi_shell=no
  3998. ( _lt_dummy="a/b/c"
  3999. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4000. = c,a/b,b/c, \
  4001. && eval 'test $(( 1 + 1 )) -eq 2 \
  4002. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4003. && xsi_shell=yes
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4005. $as_echo "$xsi_shell" >&6; }
  4006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4007. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4008. lt_shell_append=no
  4009. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4010. >/dev/null 2>&1 \
  4011. && lt_shell_append=yes
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4013. $as_echo "$lt_shell_append" >&6; }
  4014. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4015. lt_unset=unset
  4016. else
  4017. lt_unset=false
  4018. fi
  4019. # test EBCDIC or ASCII
  4020. case `echo X|tr X '\101'` in
  4021. A) # ASCII based system
  4022. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4023. lt_SP2NL='tr \040 \012'
  4024. lt_NL2SP='tr \015\012 \040\040'
  4025. ;;
  4026. *) # EBCDIC based system
  4027. lt_SP2NL='tr \100 \n'
  4028. lt_NL2SP='tr \r\n \100\100'
  4029. ;;
  4030. esac
  4031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4032. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4033. if ${lt_cv_to_host_file_cmd+:} false; then :
  4034. $as_echo_n "(cached) " >&6
  4035. else
  4036. case $host in
  4037. *-*-mingw* )
  4038. case $build in
  4039. *-*-mingw* ) # actually msys
  4040. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4041. ;;
  4042. *-*-cygwin* )
  4043. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4044. ;;
  4045. * ) # otherwise, assume *nix
  4046. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4047. ;;
  4048. esac
  4049. ;;
  4050. *-*-cygwin* )
  4051. case $build in
  4052. *-*-mingw* ) # actually msys
  4053. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4054. ;;
  4055. *-*-cygwin* )
  4056. lt_cv_to_host_file_cmd=func_convert_file_noop
  4057. ;;
  4058. * ) # otherwise, assume *nix
  4059. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4060. ;;
  4061. esac
  4062. ;;
  4063. * ) # unhandled hosts (and "normal" native builds)
  4064. lt_cv_to_host_file_cmd=func_convert_file_noop
  4065. ;;
  4066. esac
  4067. fi
  4068. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4070. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4072. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4073. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4074. $as_echo_n "(cached) " >&6
  4075. else
  4076. #assume ordinary cross tools, or native build.
  4077. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4078. case $host in
  4079. *-*-mingw* )
  4080. case $build in
  4081. *-*-mingw* ) # actually msys
  4082. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4083. ;;
  4084. esac
  4085. ;;
  4086. esac
  4087. fi
  4088. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4090. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4092. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4093. if ${lt_cv_ld_reload_flag+:} false; then :
  4094. $as_echo_n "(cached) " >&6
  4095. else
  4096. lt_cv_ld_reload_flag='-r'
  4097. fi
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4099. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4100. reload_flag=$lt_cv_ld_reload_flag
  4101. case $reload_flag in
  4102. "" | " "*) ;;
  4103. *) reload_flag=" $reload_flag" ;;
  4104. esac
  4105. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4106. case $host_os in
  4107. cygwin* | mingw* | pw32* | cegcc*)
  4108. if test "$GCC" != yes; then
  4109. reload_cmds=false
  4110. fi
  4111. ;;
  4112. darwin*)
  4113. if test "$GCC" = yes; then
  4114. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4115. else
  4116. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4117. fi
  4118. ;;
  4119. esac
  4120. if test -n "$ac_tool_prefix"; then
  4121. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4122. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4124. $as_echo_n "checking for $ac_word... " >&6; }
  4125. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4126. $as_echo_n "(cached) " >&6
  4127. else
  4128. if test -n "$OBJDUMP"; then
  4129. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4130. else
  4131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4132. for as_dir in $PATH
  4133. do
  4134. IFS=$as_save_IFS
  4135. test -z "$as_dir" && as_dir=.
  4136. for ac_exec_ext in '' $ac_executable_extensions; do
  4137. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4138. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4139. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4140. break 2
  4141. fi
  4142. done
  4143. done
  4144. IFS=$as_save_IFS
  4145. fi
  4146. fi
  4147. OBJDUMP=$ac_cv_prog_OBJDUMP
  4148. if test -n "$OBJDUMP"; then
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4150. $as_echo "$OBJDUMP" >&6; }
  4151. else
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4153. $as_echo "no" >&6; }
  4154. fi
  4155. fi
  4156. if test -z "$ac_cv_prog_OBJDUMP"; then
  4157. ac_ct_OBJDUMP=$OBJDUMP
  4158. # Extract the first word of "objdump", so it can be a program name with args.
  4159. set dummy objdump; ac_word=$2
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4161. $as_echo_n "checking for $ac_word... " >&6; }
  4162. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4163. $as_echo_n "(cached) " >&6
  4164. else
  4165. if test -n "$ac_ct_OBJDUMP"; then
  4166. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4167. else
  4168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4169. for as_dir in $PATH
  4170. do
  4171. IFS=$as_save_IFS
  4172. test -z "$as_dir" && as_dir=.
  4173. for ac_exec_ext in '' $ac_executable_extensions; do
  4174. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4175. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4177. break 2
  4178. fi
  4179. done
  4180. done
  4181. IFS=$as_save_IFS
  4182. fi
  4183. fi
  4184. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4185. if test -n "$ac_ct_OBJDUMP"; then
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4187. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4188. else
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4190. $as_echo "no" >&6; }
  4191. fi
  4192. if test "x$ac_ct_OBJDUMP" = x; then
  4193. OBJDUMP="false"
  4194. else
  4195. case $cross_compiling:$ac_tool_warned in
  4196. yes:)
  4197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4198. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4199. ac_tool_warned=yes ;;
  4200. esac
  4201. OBJDUMP=$ac_ct_OBJDUMP
  4202. fi
  4203. else
  4204. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4205. fi
  4206. test -z "$OBJDUMP" && OBJDUMP=objdump
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4208. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4209. if ${lt_cv_deplibs_check_method+:} false; then :
  4210. $as_echo_n "(cached) " >&6
  4211. else
  4212. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4213. lt_cv_file_magic_test_file=
  4214. lt_cv_deplibs_check_method='unknown'
  4215. # Need to set the preceding variable on all platforms that support
  4216. # interlibrary dependencies.
  4217. # 'none' -- dependencies not supported.
  4218. # `unknown' -- same as none, but documents that we really don't know.
  4219. # 'pass_all' -- all dependencies passed with no checks.
  4220. # 'test_compile' -- check by making test program.
  4221. # 'file_magic [[regex]]' -- check by looking for files in library path
  4222. # which responds to the $file_magic_cmd with a given extended regex.
  4223. # If you have `file' or equivalent on your system and you're not sure
  4224. # whether `pass_all' will *always* work, you probably want this one.
  4225. case $host_os in
  4226. aix[4-9]*)
  4227. lt_cv_deplibs_check_method=pass_all
  4228. ;;
  4229. beos*)
  4230. lt_cv_deplibs_check_method=pass_all
  4231. ;;
  4232. bsdi[45]*)
  4233. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4234. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4235. lt_cv_file_magic_test_file=/shlib/libc.so
  4236. ;;
  4237. cygwin*)
  4238. # func_win32_libid is a shell function defined in ltmain.sh
  4239. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4240. lt_cv_file_magic_cmd='func_win32_libid'
  4241. lt_cv_deplibs_check_method=pass_all
  4242. ;;
  4243. mingw* | pw32*)
  4244. # Base MSYS/MinGW do not provide the 'file' command needed by
  4245. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4246. # unless we find 'file', for example because we are cross-compiling.
  4247. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4248. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4249. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4250. lt_cv_file_magic_cmd='func_win32_libid'
  4251. else
  4252. # Keep this pattern in sync with the one in func_win32_libid.
  4253. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4254. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4255. fi
  4256. lt_cv_deplibs_check_method=pass_all
  4257. ;;
  4258. cegcc*)
  4259. # use the weaker test based on 'objdump'. See mingw*.
  4260. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4261. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4262. ;;
  4263. darwin* | rhapsody*)
  4264. lt_cv_deplibs_check_method=pass_all
  4265. ;;
  4266. freebsd* | dragonfly*)
  4267. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4268. case $host_cpu in
  4269. i*86 )
  4270. # Not sure whether the presence of OpenBSD here was a mistake.
  4271. # Let's accept both of them until this is cleared up.
  4272. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4273. lt_cv_file_magic_cmd=/usr/bin/file
  4274. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4275. ;;
  4276. esac
  4277. else
  4278. lt_cv_deplibs_check_method=pass_all
  4279. fi
  4280. ;;
  4281. gnu*)
  4282. lt_cv_deplibs_check_method=pass_all
  4283. ;;
  4284. haiku*)
  4285. lt_cv_deplibs_check_method=pass_all
  4286. ;;
  4287. hpux10.20* | hpux11*)
  4288. lt_cv_file_magic_cmd=/usr/bin/file
  4289. case $host_cpu in
  4290. ia64*)
  4291. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4292. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4293. ;;
  4294. hppa*64*)
  4295. 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]'
  4296. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4297. ;;
  4298. *)
  4299. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4300. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4301. ;;
  4302. esac
  4303. ;;
  4304. interix[3-9]*)
  4305. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4306. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4307. ;;
  4308. irix5* | irix6* | nonstopux*)
  4309. case $LD in
  4310. *-32|*"-32 ") libmagic=32-bit;;
  4311. *-n32|*"-n32 ") libmagic=N32;;
  4312. *-64|*"-64 ") libmagic=64-bit;;
  4313. *) libmagic=never-match;;
  4314. esac
  4315. lt_cv_deplibs_check_method=pass_all
  4316. ;;
  4317. # This must be glibc/ELF.
  4318. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4319. lt_cv_deplibs_check_method=pass_all
  4320. ;;
  4321. netbsd*)
  4322. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4323. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4324. else
  4325. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4326. fi
  4327. ;;
  4328. newos6*)
  4329. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4330. lt_cv_file_magic_cmd=/usr/bin/file
  4331. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4332. ;;
  4333. *nto* | *qnx*)
  4334. lt_cv_deplibs_check_method=pass_all
  4335. ;;
  4336. openbsd*)
  4337. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4338. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4339. else
  4340. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4341. fi
  4342. ;;
  4343. osf3* | osf4* | osf5*)
  4344. lt_cv_deplibs_check_method=pass_all
  4345. ;;
  4346. rdos*)
  4347. lt_cv_deplibs_check_method=pass_all
  4348. ;;
  4349. solaris*)
  4350. lt_cv_deplibs_check_method=pass_all
  4351. ;;
  4352. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4353. lt_cv_deplibs_check_method=pass_all
  4354. ;;
  4355. sysv4 | sysv4.3*)
  4356. case $host_vendor in
  4357. motorola)
  4358. 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]'
  4359. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4360. ;;
  4361. ncr)
  4362. lt_cv_deplibs_check_method=pass_all
  4363. ;;
  4364. sequent)
  4365. lt_cv_file_magic_cmd='/bin/file'
  4366. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4367. ;;
  4368. sni)
  4369. lt_cv_file_magic_cmd='/bin/file'
  4370. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4371. lt_cv_file_magic_test_file=/lib/libc.so
  4372. ;;
  4373. siemens)
  4374. lt_cv_deplibs_check_method=pass_all
  4375. ;;
  4376. pc)
  4377. lt_cv_deplibs_check_method=pass_all
  4378. ;;
  4379. esac
  4380. ;;
  4381. tpf*)
  4382. lt_cv_deplibs_check_method=pass_all
  4383. ;;
  4384. esac
  4385. fi
  4386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4387. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4388. file_magic_glob=
  4389. want_nocaseglob=no
  4390. if test "$build" = "$host"; then
  4391. case $host_os in
  4392. mingw* | pw32*)
  4393. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4394. want_nocaseglob=yes
  4395. else
  4396. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4397. fi
  4398. ;;
  4399. esac
  4400. fi
  4401. file_magic_cmd=$lt_cv_file_magic_cmd
  4402. deplibs_check_method=$lt_cv_deplibs_check_method
  4403. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4404. if test -n "$ac_tool_prefix"; then
  4405. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4406. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4408. $as_echo_n "checking for $ac_word... " >&6; }
  4409. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4410. $as_echo_n "(cached) " >&6
  4411. else
  4412. if test -n "$DLLTOOL"; then
  4413. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4414. else
  4415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4416. for as_dir in $PATH
  4417. do
  4418. IFS=$as_save_IFS
  4419. test -z "$as_dir" && as_dir=.
  4420. for ac_exec_ext in '' $ac_executable_extensions; do
  4421. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4422. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4423. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4424. break 2
  4425. fi
  4426. done
  4427. done
  4428. IFS=$as_save_IFS
  4429. fi
  4430. fi
  4431. DLLTOOL=$ac_cv_prog_DLLTOOL
  4432. if test -n "$DLLTOOL"; then
  4433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4434. $as_echo "$DLLTOOL" >&6; }
  4435. else
  4436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4437. $as_echo "no" >&6; }
  4438. fi
  4439. fi
  4440. if test -z "$ac_cv_prog_DLLTOOL"; then
  4441. ac_ct_DLLTOOL=$DLLTOOL
  4442. # Extract the first word of "dlltool", so it can be a program name with args.
  4443. set dummy dlltool; ac_word=$2
  4444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4445. $as_echo_n "checking for $ac_word... " >&6; }
  4446. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4447. $as_echo_n "(cached) " >&6
  4448. else
  4449. if test -n "$ac_ct_DLLTOOL"; then
  4450. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4451. else
  4452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4453. for as_dir in $PATH
  4454. do
  4455. IFS=$as_save_IFS
  4456. test -z "$as_dir" && as_dir=.
  4457. for ac_exec_ext in '' $ac_executable_extensions; do
  4458. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4459. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4461. break 2
  4462. fi
  4463. done
  4464. done
  4465. IFS=$as_save_IFS
  4466. fi
  4467. fi
  4468. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4469. if test -n "$ac_ct_DLLTOOL"; then
  4470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4471. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4472. else
  4473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4474. $as_echo "no" >&6; }
  4475. fi
  4476. if test "x$ac_ct_DLLTOOL" = x; then
  4477. DLLTOOL="false"
  4478. else
  4479. case $cross_compiling:$ac_tool_warned in
  4480. yes:)
  4481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4482. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4483. ac_tool_warned=yes ;;
  4484. esac
  4485. DLLTOOL=$ac_ct_DLLTOOL
  4486. fi
  4487. else
  4488. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4489. fi
  4490. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4492. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4493. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4494. $as_echo_n "(cached) " >&6
  4495. else
  4496. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4497. case $host_os in
  4498. cygwin* | mingw* | pw32* | cegcc*)
  4499. # two different shell functions defined in ltmain.sh
  4500. # decide which to use based on capabilities of $DLLTOOL
  4501. case `$DLLTOOL --help 2>&1` in
  4502. *--identify-strict*)
  4503. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4504. ;;
  4505. *)
  4506. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4507. ;;
  4508. esac
  4509. ;;
  4510. *)
  4511. # fallback: assume linklib IS sharedlib
  4512. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4513. ;;
  4514. esac
  4515. fi
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4517. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4518. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4519. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4520. if test -n "$ac_tool_prefix"; then
  4521. for ac_prog in ar
  4522. do
  4523. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4524. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4526. $as_echo_n "checking for $ac_word... " >&6; }
  4527. if ${ac_cv_prog_AR+:} false; then :
  4528. $as_echo_n "(cached) " >&6
  4529. else
  4530. if test -n "$AR"; then
  4531. ac_cv_prog_AR="$AR" # Let the user override the test.
  4532. else
  4533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4534. for as_dir in $PATH
  4535. do
  4536. IFS=$as_save_IFS
  4537. test -z "$as_dir" && as_dir=.
  4538. for ac_exec_ext in '' $ac_executable_extensions; do
  4539. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4540. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4541. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4542. break 2
  4543. fi
  4544. done
  4545. done
  4546. IFS=$as_save_IFS
  4547. fi
  4548. fi
  4549. AR=$ac_cv_prog_AR
  4550. if test -n "$AR"; then
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4552. $as_echo "$AR" >&6; }
  4553. else
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4555. $as_echo "no" >&6; }
  4556. fi
  4557. test -n "$AR" && break
  4558. done
  4559. fi
  4560. if test -z "$AR"; then
  4561. ac_ct_AR=$AR
  4562. for ac_prog in ar
  4563. do
  4564. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4565. set dummy $ac_prog; ac_word=$2
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4567. $as_echo_n "checking for $ac_word... " >&6; }
  4568. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4569. $as_echo_n "(cached) " >&6
  4570. else
  4571. if test -n "$ac_ct_AR"; then
  4572. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4573. else
  4574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4575. for as_dir in $PATH
  4576. do
  4577. IFS=$as_save_IFS
  4578. test -z "$as_dir" && as_dir=.
  4579. for ac_exec_ext in '' $ac_executable_extensions; do
  4580. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4581. ac_cv_prog_ac_ct_AR="$ac_prog"
  4582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4583. break 2
  4584. fi
  4585. done
  4586. done
  4587. IFS=$as_save_IFS
  4588. fi
  4589. fi
  4590. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4591. if test -n "$ac_ct_AR"; then
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4593. $as_echo "$ac_ct_AR" >&6; }
  4594. else
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4596. $as_echo "no" >&6; }
  4597. fi
  4598. test -n "$ac_ct_AR" && break
  4599. done
  4600. if test "x$ac_ct_AR" = x; then
  4601. AR="false"
  4602. else
  4603. case $cross_compiling:$ac_tool_warned in
  4604. yes:)
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4606. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4607. ac_tool_warned=yes ;;
  4608. esac
  4609. AR=$ac_ct_AR
  4610. fi
  4611. fi
  4612. : ${AR=ar}
  4613. : ${AR_FLAGS=cru}
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4615. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4616. if ${lt_cv_ar_at_file+:} false; then :
  4617. $as_echo_n "(cached) " >&6
  4618. else
  4619. lt_cv_ar_at_file=no
  4620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4621. /* end confdefs.h. */
  4622. int
  4623. main ()
  4624. {
  4625. ;
  4626. return 0;
  4627. }
  4628. _ACEOF
  4629. if ac_fn_c_try_compile "$LINENO"; then :
  4630. echo conftest.$ac_objext > conftest.lst
  4631. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4632. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4633. (eval $lt_ar_try) 2>&5
  4634. ac_status=$?
  4635. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4636. test $ac_status = 0; }
  4637. if test "$ac_status" -eq 0; then
  4638. # Ensure the archiver fails upon bogus file names.
  4639. rm -f conftest.$ac_objext libconftest.a
  4640. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4641. (eval $lt_ar_try) 2>&5
  4642. ac_status=$?
  4643. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4644. test $ac_status = 0; }
  4645. if test "$ac_status" -ne 0; then
  4646. lt_cv_ar_at_file=@
  4647. fi
  4648. fi
  4649. rm -f conftest.* libconftest.a
  4650. fi
  4651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4652. fi
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4654. $as_echo "$lt_cv_ar_at_file" >&6; }
  4655. if test "x$lt_cv_ar_at_file" = xno; then
  4656. archiver_list_spec=
  4657. else
  4658. archiver_list_spec=$lt_cv_ar_at_file
  4659. fi
  4660. if test -n "$ac_tool_prefix"; then
  4661. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4662. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4664. $as_echo_n "checking for $ac_word... " >&6; }
  4665. if ${ac_cv_prog_STRIP+:} false; then :
  4666. $as_echo_n "(cached) " >&6
  4667. else
  4668. if test -n "$STRIP"; then
  4669. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4670. else
  4671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4672. for as_dir in $PATH
  4673. do
  4674. IFS=$as_save_IFS
  4675. test -z "$as_dir" && as_dir=.
  4676. for ac_exec_ext in '' $ac_executable_extensions; do
  4677. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4678. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4680. break 2
  4681. fi
  4682. done
  4683. done
  4684. IFS=$as_save_IFS
  4685. fi
  4686. fi
  4687. STRIP=$ac_cv_prog_STRIP
  4688. if test -n "$STRIP"; then
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4690. $as_echo "$STRIP" >&6; }
  4691. else
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4693. $as_echo "no" >&6; }
  4694. fi
  4695. fi
  4696. if test -z "$ac_cv_prog_STRIP"; then
  4697. ac_ct_STRIP=$STRIP
  4698. # Extract the first word of "strip", so it can be a program name with args.
  4699. set dummy strip; ac_word=$2
  4700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4701. $as_echo_n "checking for $ac_word... " >&6; }
  4702. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4703. $as_echo_n "(cached) " >&6
  4704. else
  4705. if test -n "$ac_ct_STRIP"; then
  4706. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4707. else
  4708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4709. for as_dir in $PATH
  4710. do
  4711. IFS=$as_save_IFS
  4712. test -z "$as_dir" && as_dir=.
  4713. for ac_exec_ext in '' $ac_executable_extensions; do
  4714. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4715. ac_cv_prog_ac_ct_STRIP="strip"
  4716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4717. break 2
  4718. fi
  4719. done
  4720. done
  4721. IFS=$as_save_IFS
  4722. fi
  4723. fi
  4724. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4725. if test -n "$ac_ct_STRIP"; then
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4727. $as_echo "$ac_ct_STRIP" >&6; }
  4728. else
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4730. $as_echo "no" >&6; }
  4731. fi
  4732. if test "x$ac_ct_STRIP" = x; then
  4733. STRIP=":"
  4734. else
  4735. case $cross_compiling:$ac_tool_warned in
  4736. yes:)
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4738. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4739. ac_tool_warned=yes ;;
  4740. esac
  4741. STRIP=$ac_ct_STRIP
  4742. fi
  4743. else
  4744. STRIP="$ac_cv_prog_STRIP"
  4745. fi
  4746. test -z "$STRIP" && STRIP=:
  4747. if test -n "$ac_tool_prefix"; then
  4748. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4749. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4751. $as_echo_n "checking for $ac_word... " >&6; }
  4752. if ${ac_cv_prog_RANLIB+:} false; then :
  4753. $as_echo_n "(cached) " >&6
  4754. else
  4755. if test -n "$RANLIB"; then
  4756. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4757. else
  4758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4759. for as_dir in $PATH
  4760. do
  4761. IFS=$as_save_IFS
  4762. test -z "$as_dir" && as_dir=.
  4763. for ac_exec_ext in '' $ac_executable_extensions; do
  4764. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4765. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4766. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4767. break 2
  4768. fi
  4769. done
  4770. done
  4771. IFS=$as_save_IFS
  4772. fi
  4773. fi
  4774. RANLIB=$ac_cv_prog_RANLIB
  4775. if test -n "$RANLIB"; then
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4777. $as_echo "$RANLIB" >&6; }
  4778. else
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4780. $as_echo "no" >&6; }
  4781. fi
  4782. fi
  4783. if test -z "$ac_cv_prog_RANLIB"; then
  4784. ac_ct_RANLIB=$RANLIB
  4785. # Extract the first word of "ranlib", so it can be a program name with args.
  4786. set dummy ranlib; ac_word=$2
  4787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4788. $as_echo_n "checking for $ac_word... " >&6; }
  4789. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4790. $as_echo_n "(cached) " >&6
  4791. else
  4792. if test -n "$ac_ct_RANLIB"; then
  4793. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4794. else
  4795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4796. for as_dir in $PATH
  4797. do
  4798. IFS=$as_save_IFS
  4799. test -z "$as_dir" && as_dir=.
  4800. for ac_exec_ext in '' $ac_executable_extensions; do
  4801. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4802. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4804. break 2
  4805. fi
  4806. done
  4807. done
  4808. IFS=$as_save_IFS
  4809. fi
  4810. fi
  4811. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4812. if test -n "$ac_ct_RANLIB"; then
  4813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4814. $as_echo "$ac_ct_RANLIB" >&6; }
  4815. else
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4817. $as_echo "no" >&6; }
  4818. fi
  4819. if test "x$ac_ct_RANLIB" = x; then
  4820. RANLIB=":"
  4821. else
  4822. case $cross_compiling:$ac_tool_warned in
  4823. yes:)
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4825. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4826. ac_tool_warned=yes ;;
  4827. esac
  4828. RANLIB=$ac_ct_RANLIB
  4829. fi
  4830. else
  4831. RANLIB="$ac_cv_prog_RANLIB"
  4832. fi
  4833. test -z "$RANLIB" && RANLIB=:
  4834. # Determine commands to create old-style static archives.
  4835. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4836. old_postinstall_cmds='chmod 644 $oldlib'
  4837. old_postuninstall_cmds=
  4838. if test -n "$RANLIB"; then
  4839. case $host_os in
  4840. openbsd*)
  4841. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4842. ;;
  4843. *)
  4844. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4845. ;;
  4846. esac
  4847. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4848. fi
  4849. case $host_os in
  4850. darwin*)
  4851. lock_old_archive_extraction=yes ;;
  4852. *)
  4853. lock_old_archive_extraction=no ;;
  4854. esac
  4855. for ac_prog in gawk mawk nawk awk
  4856. do
  4857. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4858. set dummy $ac_prog; ac_word=$2
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4860. $as_echo_n "checking for $ac_word... " >&6; }
  4861. if ${ac_cv_prog_AWK+:} false; then :
  4862. $as_echo_n "(cached) " >&6
  4863. else
  4864. if test -n "$AWK"; then
  4865. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4866. else
  4867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4868. for as_dir in $PATH
  4869. do
  4870. IFS=$as_save_IFS
  4871. test -z "$as_dir" && as_dir=.
  4872. for ac_exec_ext in '' $ac_executable_extensions; do
  4873. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4874. ac_cv_prog_AWK="$ac_prog"
  4875. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4876. break 2
  4877. fi
  4878. done
  4879. done
  4880. IFS=$as_save_IFS
  4881. fi
  4882. fi
  4883. AWK=$ac_cv_prog_AWK
  4884. if test -n "$AWK"; then
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4886. $as_echo "$AWK" >&6; }
  4887. else
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4889. $as_echo "no" >&6; }
  4890. fi
  4891. test -n "$AWK" && break
  4892. done
  4893. # If no C compiler was specified, use CC.
  4894. LTCC=${LTCC-"$CC"}
  4895. # If no C compiler flags were specified, use CFLAGS.
  4896. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4897. # Allow CC to be a program name with arguments.
  4898. compiler=$CC
  4899. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4901. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4902. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4903. $as_echo_n "(cached) " >&6
  4904. else
  4905. # These are sane defaults that work on at least a few old systems.
  4906. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4907. # Character class describing NM global symbol codes.
  4908. symcode='[BCDEGRST]'
  4909. # Regexp to match symbols that can be accessed directly from C.
  4910. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4911. # Define system-specific variables.
  4912. case $host_os in
  4913. aix*)
  4914. symcode='[BCDT]'
  4915. ;;
  4916. cygwin* | mingw* | pw32* | cegcc*)
  4917. symcode='[ABCDGISTW]'
  4918. ;;
  4919. hpux*)
  4920. if test "$host_cpu" = ia64; then
  4921. symcode='[ABCDEGRST]'
  4922. fi
  4923. ;;
  4924. irix* | nonstopux*)
  4925. symcode='[BCDEGRST]'
  4926. ;;
  4927. osf*)
  4928. symcode='[BCDEGQRST]'
  4929. ;;
  4930. solaris*)
  4931. symcode='[BDRT]'
  4932. ;;
  4933. sco3.2v5*)
  4934. symcode='[DT]'
  4935. ;;
  4936. sysv4.2uw2*)
  4937. symcode='[DT]'
  4938. ;;
  4939. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4940. symcode='[ABDT]'
  4941. ;;
  4942. sysv4)
  4943. symcode='[DFNSTU]'
  4944. ;;
  4945. esac
  4946. # If we're using GNU nm, then use its standard symbol codes.
  4947. case `$NM -V 2>&1` in
  4948. *GNU* | *'with BFD'*)
  4949. symcode='[ABCDGIRSTW]' ;;
  4950. esac
  4951. # Transform an extracted symbol line into a proper C declaration.
  4952. # Some systems (esp. on ia64) link data and code symbols differently,
  4953. # so use this general approach.
  4954. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4955. # Transform an extracted symbol line into symbol name and symbol address
  4956. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4957. 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'"
  4958. # Handle CRLF in mingw tool chain
  4959. opt_cr=
  4960. case $build_os in
  4961. mingw*)
  4962. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4963. ;;
  4964. esac
  4965. # Try without a prefix underscore, then with it.
  4966. for ac_symprfx in "" "_"; do
  4967. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4968. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4969. # Write the raw and C identifiers.
  4970. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4971. # Fake it for dumpbin and say T for any non-static function
  4972. # and D for any global variable.
  4973. # Also find C++ and __fastcall symbols from MSVC++,
  4974. # which start with @ or ?.
  4975. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4976. " {last_section=section; section=\$ 3};"\
  4977. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4978. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4979. " \$ 0!~/External *\|/{next};"\
  4980. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4981. " {if(hide[section]) next};"\
  4982. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4983. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4984. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4985. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4986. " ' prfx=^$ac_symprfx"
  4987. else
  4988. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4989. fi
  4990. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4991. # Check to see that the pipe works correctly.
  4992. pipe_works=no
  4993. rm -f conftest*
  4994. cat > conftest.$ac_ext <<_LT_EOF
  4995. #ifdef __cplusplus
  4996. extern "C" {
  4997. #endif
  4998. char nm_test_var;
  4999. void nm_test_func(void);
  5000. void nm_test_func(void){}
  5001. #ifdef __cplusplus
  5002. }
  5003. #endif
  5004. int main(){nm_test_var='a';nm_test_func();return(0);}
  5005. _LT_EOF
  5006. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5007. (eval $ac_compile) 2>&5
  5008. ac_status=$?
  5009. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5010. test $ac_status = 0; }; then
  5011. # Now try to grab the symbols.
  5012. nlist=conftest.nm
  5013. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5014. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5015. ac_status=$?
  5016. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5017. test $ac_status = 0; } && test -s "$nlist"; then
  5018. # Try sorting and uniquifying the output.
  5019. if sort "$nlist" | uniq > "$nlist"T; then
  5020. mv -f "$nlist"T "$nlist"
  5021. else
  5022. rm -f "$nlist"T
  5023. fi
  5024. # Make sure that we snagged all the symbols we need.
  5025. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5026. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5027. cat <<_LT_EOF > conftest.$ac_ext
  5028. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5029. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5030. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5031. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5032. # define LT@&t@_DLSYM_CONST
  5033. #elif defined(__osf__)
  5034. /* This system does not cope well with relocations in const data. */
  5035. # define LT@&t@_DLSYM_CONST
  5036. #else
  5037. # define LT@&t@_DLSYM_CONST const
  5038. #endif
  5039. #ifdef __cplusplus
  5040. extern "C" {
  5041. #endif
  5042. _LT_EOF
  5043. # Now generate the symbol file.
  5044. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5045. cat <<_LT_EOF >> conftest.$ac_ext
  5046. /* The mapping between symbol names and symbols. */
  5047. LT@&t@_DLSYM_CONST struct {
  5048. const char *name;
  5049. void *address;
  5050. }
  5051. lt__PROGRAM__LTX_preloaded_symbols[] =
  5052. {
  5053. { "@PROGRAM@", (void *) 0 },
  5054. _LT_EOF
  5055. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5056. cat <<\_LT_EOF >> conftest.$ac_ext
  5057. {0, (void *) 0}
  5058. };
  5059. /* This works around a problem in FreeBSD linker */
  5060. #ifdef FREEBSD_WORKAROUND
  5061. static const void *lt_preloaded_setup() {
  5062. return lt__PROGRAM__LTX_preloaded_symbols;
  5063. }
  5064. #endif
  5065. #ifdef __cplusplus
  5066. }
  5067. #endif
  5068. _LT_EOF
  5069. # Now try linking the two files.
  5070. mv conftest.$ac_objext conftstm.$ac_objext
  5071. lt_globsym_save_LIBS=$LIBS
  5072. lt_globsym_save_CFLAGS=$CFLAGS
  5073. LIBS="conftstm.$ac_objext"
  5074. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5075. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5076. (eval $ac_link) 2>&5
  5077. ac_status=$?
  5078. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5079. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5080. pipe_works=yes
  5081. fi
  5082. LIBS=$lt_globsym_save_LIBS
  5083. CFLAGS=$lt_globsym_save_CFLAGS
  5084. else
  5085. echo "cannot find nm_test_func in $nlist" >&5
  5086. fi
  5087. else
  5088. echo "cannot find nm_test_var in $nlist" >&5
  5089. fi
  5090. else
  5091. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5092. fi
  5093. else
  5094. echo "$progname: failed program was:" >&5
  5095. cat conftest.$ac_ext >&5
  5096. fi
  5097. rm -rf conftest* conftst*
  5098. # Do not use the global_symbol_pipe unless it works.
  5099. if test "$pipe_works" = yes; then
  5100. break
  5101. else
  5102. lt_cv_sys_global_symbol_pipe=
  5103. fi
  5104. done
  5105. fi
  5106. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5107. lt_cv_sys_global_symbol_to_cdecl=
  5108. fi
  5109. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5111. $as_echo "failed" >&6; }
  5112. else
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5114. $as_echo "ok" >&6; }
  5115. fi
  5116. # Response file support.
  5117. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5118. nm_file_list_spec='@'
  5119. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5120. nm_file_list_spec='@'
  5121. fi
  5122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5123. $as_echo_n "checking for sysroot... " >&6; }
  5124. @%:@ Check whether --with-sysroot was given.
  5125. if test "${with_sysroot+set}" = set; then :
  5126. withval=$with_sysroot;
  5127. else
  5128. with_sysroot=no
  5129. fi
  5130. lt_sysroot=
  5131. case ${with_sysroot} in #(
  5132. yes)
  5133. if test "$GCC" = yes; then
  5134. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5135. fi
  5136. ;; #(
  5137. /*)
  5138. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5139. ;; #(
  5140. no|'')
  5141. ;; #(
  5142. *)
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5144. $as_echo "${with_sysroot}" >&6; }
  5145. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5146. ;;
  5147. esac
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5149. $as_echo "${lt_sysroot:-no}" >&6; }
  5150. @%:@ Check whether --enable-libtool-lock was given.
  5151. if test "${enable_libtool_lock+set}" = set; then :
  5152. enableval=$enable_libtool_lock;
  5153. fi
  5154. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5155. # Some flags need to be propagated to the compiler or linker for good
  5156. # libtool support.
  5157. case $host in
  5158. ia64-*-hpux*)
  5159. # Find out which ABI we are using.
  5160. echo 'int i;' > conftest.$ac_ext
  5161. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5162. (eval $ac_compile) 2>&5
  5163. ac_status=$?
  5164. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5165. test $ac_status = 0; }; then
  5166. case `/usr/bin/file conftest.$ac_objext` in
  5167. *ELF-32*)
  5168. HPUX_IA64_MODE="32"
  5169. ;;
  5170. *ELF-64*)
  5171. HPUX_IA64_MODE="64"
  5172. ;;
  5173. esac
  5174. fi
  5175. rm -rf conftest*
  5176. ;;
  5177. *-*-irix6*)
  5178. # Find out which ABI we are using.
  5179. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5180. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5181. (eval $ac_compile) 2>&5
  5182. ac_status=$?
  5183. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5184. test $ac_status = 0; }; then
  5185. if test "$lt_cv_prog_gnu_ld" = yes; then
  5186. case `/usr/bin/file conftest.$ac_objext` in
  5187. *32-bit*)
  5188. LD="${LD-ld} -melf32bsmip"
  5189. ;;
  5190. *N32*)
  5191. LD="${LD-ld} -melf32bmipn32"
  5192. ;;
  5193. *64-bit*)
  5194. LD="${LD-ld} -melf64bmip"
  5195. ;;
  5196. esac
  5197. else
  5198. case `/usr/bin/file conftest.$ac_objext` in
  5199. *32-bit*)
  5200. LD="${LD-ld} -32"
  5201. ;;
  5202. *N32*)
  5203. LD="${LD-ld} -n32"
  5204. ;;
  5205. *64-bit*)
  5206. LD="${LD-ld} -64"
  5207. ;;
  5208. esac
  5209. fi
  5210. fi
  5211. rm -rf conftest*
  5212. ;;
  5213. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5214. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5215. # Find out which ABI we are using.
  5216. echo 'int i;' > conftest.$ac_ext
  5217. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5218. (eval $ac_compile) 2>&5
  5219. ac_status=$?
  5220. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5221. test $ac_status = 0; }; then
  5222. case `/usr/bin/file conftest.o` in
  5223. *32-bit*)
  5224. case $host in
  5225. x86_64-*kfreebsd*-gnu)
  5226. LD="${LD-ld} -m elf_i386_fbsd"
  5227. ;;
  5228. x86_64-*linux*)
  5229. LD="${LD-ld} -m elf_i386"
  5230. ;;
  5231. ppc64-*linux*|powerpc64-*linux*)
  5232. LD="${LD-ld} -m elf32ppclinux"
  5233. ;;
  5234. s390x-*linux*)
  5235. LD="${LD-ld} -m elf_s390"
  5236. ;;
  5237. sparc64-*linux*)
  5238. LD="${LD-ld} -m elf32_sparc"
  5239. ;;
  5240. esac
  5241. ;;
  5242. *64-bit*)
  5243. case $host in
  5244. x86_64-*kfreebsd*-gnu)
  5245. LD="${LD-ld} -m elf_x86_64_fbsd"
  5246. ;;
  5247. x86_64-*linux*)
  5248. LD="${LD-ld} -m elf_x86_64"
  5249. ;;
  5250. ppc*-*linux*|powerpc*-*linux*)
  5251. LD="${LD-ld} -m elf64ppc"
  5252. ;;
  5253. s390*-*linux*|s390*-*tpf*)
  5254. LD="${LD-ld} -m elf64_s390"
  5255. ;;
  5256. sparc*-*linux*)
  5257. LD="${LD-ld} -m elf64_sparc"
  5258. ;;
  5259. esac
  5260. ;;
  5261. esac
  5262. fi
  5263. rm -rf conftest*
  5264. ;;
  5265. *-*-sco3.2v5*)
  5266. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5267. SAVE_CFLAGS="$CFLAGS"
  5268. CFLAGS="$CFLAGS -belf"
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5270. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5271. if ${lt_cv_cc_needs_belf+:} false; then :
  5272. $as_echo_n "(cached) " >&6
  5273. else
  5274. ac_ext=c
  5275. ac_cpp='$CPP $CPPFLAGS'
  5276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5280. /* end confdefs.h. */
  5281. int
  5282. main ()
  5283. {
  5284. ;
  5285. return 0;
  5286. }
  5287. _ACEOF
  5288. if ac_fn_c_try_link "$LINENO"; then :
  5289. lt_cv_cc_needs_belf=yes
  5290. else
  5291. lt_cv_cc_needs_belf=no
  5292. fi
  5293. rm -f core conftest.err conftest.$ac_objext \
  5294. conftest$ac_exeext conftest.$ac_ext
  5295. ac_ext=c
  5296. ac_cpp='$CPP $CPPFLAGS'
  5297. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5298. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5299. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5300. fi
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5302. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5303. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5304. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5305. CFLAGS="$SAVE_CFLAGS"
  5306. fi
  5307. ;;
  5308. *-*solaris*)
  5309. # Find out which ABI we are using.
  5310. echo 'int i;' > conftest.$ac_ext
  5311. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5312. (eval $ac_compile) 2>&5
  5313. ac_status=$?
  5314. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5315. test $ac_status = 0; }; then
  5316. case `/usr/bin/file conftest.o` in
  5317. *64-bit*)
  5318. case $lt_cv_prog_gnu_ld in
  5319. yes*)
  5320. case $host in
  5321. i?86-*-solaris*)
  5322. LD="${LD-ld} -m elf_x86_64"
  5323. ;;
  5324. sparc*-*-solaris*)
  5325. LD="${LD-ld} -m elf64_sparc"
  5326. ;;
  5327. esac
  5328. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5329. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5330. LD="${LD-ld}_sol2"
  5331. fi
  5332. ;;
  5333. *)
  5334. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5335. LD="${LD-ld} -64"
  5336. fi
  5337. ;;
  5338. esac
  5339. ;;
  5340. esac
  5341. fi
  5342. rm -rf conftest*
  5343. ;;
  5344. esac
  5345. need_locks="$enable_libtool_lock"
  5346. if test -n "$ac_tool_prefix"; then
  5347. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5348. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5350. $as_echo_n "checking for $ac_word... " >&6; }
  5351. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5352. $as_echo_n "(cached) " >&6
  5353. else
  5354. if test -n "$MANIFEST_TOOL"; then
  5355. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5356. else
  5357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5358. for as_dir in $PATH
  5359. do
  5360. IFS=$as_save_IFS
  5361. test -z "$as_dir" && as_dir=.
  5362. for ac_exec_ext in '' $ac_executable_extensions; do
  5363. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5364. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5365. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5366. break 2
  5367. fi
  5368. done
  5369. done
  5370. IFS=$as_save_IFS
  5371. fi
  5372. fi
  5373. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5374. if test -n "$MANIFEST_TOOL"; then
  5375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5376. $as_echo "$MANIFEST_TOOL" >&6; }
  5377. else
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5379. $as_echo "no" >&6; }
  5380. fi
  5381. fi
  5382. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5383. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5384. # Extract the first word of "mt", so it can be a program name with args.
  5385. set dummy mt; ac_word=$2
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5387. $as_echo_n "checking for $ac_word... " >&6; }
  5388. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5389. $as_echo_n "(cached) " >&6
  5390. else
  5391. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5392. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5393. else
  5394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5395. for as_dir in $PATH
  5396. do
  5397. IFS=$as_save_IFS
  5398. test -z "$as_dir" && as_dir=.
  5399. for ac_exec_ext in '' $ac_executable_extensions; do
  5400. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5401. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5403. break 2
  5404. fi
  5405. done
  5406. done
  5407. IFS=$as_save_IFS
  5408. fi
  5409. fi
  5410. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5411. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5413. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5414. else
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5416. $as_echo "no" >&6; }
  5417. fi
  5418. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5419. MANIFEST_TOOL=":"
  5420. else
  5421. case $cross_compiling:$ac_tool_warned in
  5422. yes:)
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5424. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5425. ac_tool_warned=yes ;;
  5426. esac
  5427. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5428. fi
  5429. else
  5430. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5431. fi
  5432. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5434. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5435. if ${lt_cv_path_mainfest_tool+:} false; then :
  5436. $as_echo_n "(cached) " >&6
  5437. else
  5438. lt_cv_path_mainfest_tool=no
  5439. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5440. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5441. cat conftest.err >&5
  5442. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5443. lt_cv_path_mainfest_tool=yes
  5444. fi
  5445. rm -f conftest*
  5446. fi
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5448. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5449. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5450. MANIFEST_TOOL=:
  5451. fi
  5452. case $host_os in
  5453. rhapsody* | darwin*)
  5454. if test -n "$ac_tool_prefix"; then
  5455. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5456. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5458. $as_echo_n "checking for $ac_word... " >&6; }
  5459. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5460. $as_echo_n "(cached) " >&6
  5461. else
  5462. if test -n "$DSYMUTIL"; then
  5463. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5464. else
  5465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5466. for as_dir in $PATH
  5467. do
  5468. IFS=$as_save_IFS
  5469. test -z "$as_dir" && as_dir=.
  5470. for ac_exec_ext in '' $ac_executable_extensions; do
  5471. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5472. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5473. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5474. break 2
  5475. fi
  5476. done
  5477. done
  5478. IFS=$as_save_IFS
  5479. fi
  5480. fi
  5481. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5482. if test -n "$DSYMUTIL"; then
  5483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5484. $as_echo "$DSYMUTIL" >&6; }
  5485. else
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5487. $as_echo "no" >&6; }
  5488. fi
  5489. fi
  5490. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5491. ac_ct_DSYMUTIL=$DSYMUTIL
  5492. # Extract the first word of "dsymutil", so it can be a program name with args.
  5493. set dummy dsymutil; ac_word=$2
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5495. $as_echo_n "checking for $ac_word... " >&6; }
  5496. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5497. $as_echo_n "(cached) " >&6
  5498. else
  5499. if test -n "$ac_ct_DSYMUTIL"; then
  5500. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5501. else
  5502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5503. for as_dir in $PATH
  5504. do
  5505. IFS=$as_save_IFS
  5506. test -z "$as_dir" && as_dir=.
  5507. for ac_exec_ext in '' $ac_executable_extensions; do
  5508. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5509. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5511. break 2
  5512. fi
  5513. done
  5514. done
  5515. IFS=$as_save_IFS
  5516. fi
  5517. fi
  5518. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5519. if test -n "$ac_ct_DSYMUTIL"; then
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5521. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5522. else
  5523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5524. $as_echo "no" >&6; }
  5525. fi
  5526. if test "x$ac_ct_DSYMUTIL" = x; then
  5527. DSYMUTIL=":"
  5528. else
  5529. case $cross_compiling:$ac_tool_warned in
  5530. yes:)
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5532. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5533. ac_tool_warned=yes ;;
  5534. esac
  5535. DSYMUTIL=$ac_ct_DSYMUTIL
  5536. fi
  5537. else
  5538. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5539. fi
  5540. if test -n "$ac_tool_prefix"; then
  5541. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5542. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5544. $as_echo_n "checking for $ac_word... " >&6; }
  5545. if ${ac_cv_prog_NMEDIT+:} false; then :
  5546. $as_echo_n "(cached) " >&6
  5547. else
  5548. if test -n "$NMEDIT"; then
  5549. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5550. else
  5551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5552. for as_dir in $PATH
  5553. do
  5554. IFS=$as_save_IFS
  5555. test -z "$as_dir" && as_dir=.
  5556. for ac_exec_ext in '' $ac_executable_extensions; do
  5557. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5558. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5560. break 2
  5561. fi
  5562. done
  5563. done
  5564. IFS=$as_save_IFS
  5565. fi
  5566. fi
  5567. NMEDIT=$ac_cv_prog_NMEDIT
  5568. if test -n "$NMEDIT"; then
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5570. $as_echo "$NMEDIT" >&6; }
  5571. else
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5573. $as_echo "no" >&6; }
  5574. fi
  5575. fi
  5576. if test -z "$ac_cv_prog_NMEDIT"; then
  5577. ac_ct_NMEDIT=$NMEDIT
  5578. # Extract the first word of "nmedit", so it can be a program name with args.
  5579. set dummy nmedit; ac_word=$2
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5581. $as_echo_n "checking for $ac_word... " >&6; }
  5582. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5583. $as_echo_n "(cached) " >&6
  5584. else
  5585. if test -n "$ac_ct_NMEDIT"; then
  5586. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5587. else
  5588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5589. for as_dir in $PATH
  5590. do
  5591. IFS=$as_save_IFS
  5592. test -z "$as_dir" && as_dir=.
  5593. for ac_exec_ext in '' $ac_executable_extensions; do
  5594. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5595. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5597. break 2
  5598. fi
  5599. done
  5600. done
  5601. IFS=$as_save_IFS
  5602. fi
  5603. fi
  5604. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5605. if test -n "$ac_ct_NMEDIT"; then
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5607. $as_echo "$ac_ct_NMEDIT" >&6; }
  5608. else
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5610. $as_echo "no" >&6; }
  5611. fi
  5612. if test "x$ac_ct_NMEDIT" = x; then
  5613. NMEDIT=":"
  5614. else
  5615. case $cross_compiling:$ac_tool_warned in
  5616. yes:)
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5618. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5619. ac_tool_warned=yes ;;
  5620. esac
  5621. NMEDIT=$ac_ct_NMEDIT
  5622. fi
  5623. else
  5624. NMEDIT="$ac_cv_prog_NMEDIT"
  5625. fi
  5626. if test -n "$ac_tool_prefix"; then
  5627. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5628. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5630. $as_echo_n "checking for $ac_word... " >&6; }
  5631. if ${ac_cv_prog_LIPO+:} false; then :
  5632. $as_echo_n "(cached) " >&6
  5633. else
  5634. if test -n "$LIPO"; then
  5635. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5636. else
  5637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5638. for as_dir in $PATH
  5639. do
  5640. IFS=$as_save_IFS
  5641. test -z "$as_dir" && as_dir=.
  5642. for ac_exec_ext in '' $ac_executable_extensions; do
  5643. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5644. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5645. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5646. break 2
  5647. fi
  5648. done
  5649. done
  5650. IFS=$as_save_IFS
  5651. fi
  5652. fi
  5653. LIPO=$ac_cv_prog_LIPO
  5654. if test -n "$LIPO"; then
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5656. $as_echo "$LIPO" >&6; }
  5657. else
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5659. $as_echo "no" >&6; }
  5660. fi
  5661. fi
  5662. if test -z "$ac_cv_prog_LIPO"; then
  5663. ac_ct_LIPO=$LIPO
  5664. # Extract the first word of "lipo", so it can be a program name with args.
  5665. set dummy lipo; ac_word=$2
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5667. $as_echo_n "checking for $ac_word... " >&6; }
  5668. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5669. $as_echo_n "(cached) " >&6
  5670. else
  5671. if test -n "$ac_ct_LIPO"; then
  5672. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5673. else
  5674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5675. for as_dir in $PATH
  5676. do
  5677. IFS=$as_save_IFS
  5678. test -z "$as_dir" && as_dir=.
  5679. for ac_exec_ext in '' $ac_executable_extensions; do
  5680. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5681. ac_cv_prog_ac_ct_LIPO="lipo"
  5682. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5683. break 2
  5684. fi
  5685. done
  5686. done
  5687. IFS=$as_save_IFS
  5688. fi
  5689. fi
  5690. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5691. if test -n "$ac_ct_LIPO"; then
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5693. $as_echo "$ac_ct_LIPO" >&6; }
  5694. else
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5696. $as_echo "no" >&6; }
  5697. fi
  5698. if test "x$ac_ct_LIPO" = x; then
  5699. LIPO=":"
  5700. else
  5701. case $cross_compiling:$ac_tool_warned in
  5702. yes:)
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5704. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5705. ac_tool_warned=yes ;;
  5706. esac
  5707. LIPO=$ac_ct_LIPO
  5708. fi
  5709. else
  5710. LIPO="$ac_cv_prog_LIPO"
  5711. fi
  5712. if test -n "$ac_tool_prefix"; then
  5713. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5714. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5716. $as_echo_n "checking for $ac_word... " >&6; }
  5717. if ${ac_cv_prog_OTOOL+:} false; then :
  5718. $as_echo_n "(cached) " >&6
  5719. else
  5720. if test -n "$OTOOL"; then
  5721. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5722. else
  5723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5724. for as_dir in $PATH
  5725. do
  5726. IFS=$as_save_IFS
  5727. test -z "$as_dir" && as_dir=.
  5728. for ac_exec_ext in '' $ac_executable_extensions; do
  5729. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5730. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5731. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5732. break 2
  5733. fi
  5734. done
  5735. done
  5736. IFS=$as_save_IFS
  5737. fi
  5738. fi
  5739. OTOOL=$ac_cv_prog_OTOOL
  5740. if test -n "$OTOOL"; then
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5742. $as_echo "$OTOOL" >&6; }
  5743. else
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5745. $as_echo "no" >&6; }
  5746. fi
  5747. fi
  5748. if test -z "$ac_cv_prog_OTOOL"; then
  5749. ac_ct_OTOOL=$OTOOL
  5750. # Extract the first word of "otool", so it can be a program name with args.
  5751. set dummy otool; ac_word=$2
  5752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5753. $as_echo_n "checking for $ac_word... " >&6; }
  5754. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5755. $as_echo_n "(cached) " >&6
  5756. else
  5757. if test -n "$ac_ct_OTOOL"; then
  5758. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5759. else
  5760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5761. for as_dir in $PATH
  5762. do
  5763. IFS=$as_save_IFS
  5764. test -z "$as_dir" && as_dir=.
  5765. for ac_exec_ext in '' $ac_executable_extensions; do
  5766. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5767. ac_cv_prog_ac_ct_OTOOL="otool"
  5768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5769. break 2
  5770. fi
  5771. done
  5772. done
  5773. IFS=$as_save_IFS
  5774. fi
  5775. fi
  5776. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5777. if test -n "$ac_ct_OTOOL"; then
  5778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5779. $as_echo "$ac_ct_OTOOL" >&6; }
  5780. else
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5782. $as_echo "no" >&6; }
  5783. fi
  5784. if test "x$ac_ct_OTOOL" = x; then
  5785. OTOOL=":"
  5786. else
  5787. case $cross_compiling:$ac_tool_warned in
  5788. yes:)
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5790. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5791. ac_tool_warned=yes ;;
  5792. esac
  5793. OTOOL=$ac_ct_OTOOL
  5794. fi
  5795. else
  5796. OTOOL="$ac_cv_prog_OTOOL"
  5797. fi
  5798. if test -n "$ac_tool_prefix"; then
  5799. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5800. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5802. $as_echo_n "checking for $ac_word... " >&6; }
  5803. if ${ac_cv_prog_OTOOL64+:} false; then :
  5804. $as_echo_n "(cached) " >&6
  5805. else
  5806. if test -n "$OTOOL64"; then
  5807. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5808. else
  5809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5810. for as_dir in $PATH
  5811. do
  5812. IFS=$as_save_IFS
  5813. test -z "$as_dir" && as_dir=.
  5814. for ac_exec_ext in '' $ac_executable_extensions; do
  5815. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5816. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5817. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5818. break 2
  5819. fi
  5820. done
  5821. done
  5822. IFS=$as_save_IFS
  5823. fi
  5824. fi
  5825. OTOOL64=$ac_cv_prog_OTOOL64
  5826. if test -n "$OTOOL64"; then
  5827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5828. $as_echo "$OTOOL64" >&6; }
  5829. else
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5831. $as_echo "no" >&6; }
  5832. fi
  5833. fi
  5834. if test -z "$ac_cv_prog_OTOOL64"; then
  5835. ac_ct_OTOOL64=$OTOOL64
  5836. # Extract the first word of "otool64", so it can be a program name with args.
  5837. set dummy otool64; ac_word=$2
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5839. $as_echo_n "checking for $ac_word... " >&6; }
  5840. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5841. $as_echo_n "(cached) " >&6
  5842. else
  5843. if test -n "$ac_ct_OTOOL64"; then
  5844. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5845. else
  5846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5847. for as_dir in $PATH
  5848. do
  5849. IFS=$as_save_IFS
  5850. test -z "$as_dir" && as_dir=.
  5851. for ac_exec_ext in '' $ac_executable_extensions; do
  5852. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5853. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5855. break 2
  5856. fi
  5857. done
  5858. done
  5859. IFS=$as_save_IFS
  5860. fi
  5861. fi
  5862. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5863. if test -n "$ac_ct_OTOOL64"; then
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5865. $as_echo "$ac_ct_OTOOL64" >&6; }
  5866. else
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5868. $as_echo "no" >&6; }
  5869. fi
  5870. if test "x$ac_ct_OTOOL64" = x; then
  5871. OTOOL64=":"
  5872. else
  5873. case $cross_compiling:$ac_tool_warned in
  5874. yes:)
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5876. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5877. ac_tool_warned=yes ;;
  5878. esac
  5879. OTOOL64=$ac_ct_OTOOL64
  5880. fi
  5881. else
  5882. OTOOL64="$ac_cv_prog_OTOOL64"
  5883. fi
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5885. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5886. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5887. $as_echo_n "(cached) " >&6
  5888. else
  5889. lt_cv_apple_cc_single_mod=no
  5890. if test -z "${LT_MULTI_MODULE}"; then
  5891. # By default we will add the -single_module flag. You can override
  5892. # by either setting the environment variable LT_MULTI_MODULE
  5893. # non-empty at configure time, or by adding -multi_module to the
  5894. # link flags.
  5895. rm -rf libconftest.dylib*
  5896. echo "int foo(void){return 1;}" > conftest.c
  5897. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5898. -dynamiclib -Wl,-single_module conftest.c" >&5
  5899. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5900. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5901. _lt_result=$?
  5902. # If there is a non-empty error log, and "single_module"
  5903. # appears in it, assume the flag caused a linker warning
  5904. if test -s conftest.err && $GREP single_module conftest.err; then
  5905. cat conftest.err >&5
  5906. # Otherwise, if the output was created with a 0 exit code from
  5907. # the compiler, it worked.
  5908. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5909. lt_cv_apple_cc_single_mod=yes
  5910. else
  5911. cat conftest.err >&5
  5912. fi
  5913. rm -rf libconftest.dylib*
  5914. rm -f conftest.*
  5915. fi
  5916. fi
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5918. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5920. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5921. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5922. $as_echo_n "(cached) " >&6
  5923. else
  5924. lt_cv_ld_exported_symbols_list=no
  5925. save_LDFLAGS=$LDFLAGS
  5926. echo "_main" > conftest.sym
  5927. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5929. /* end confdefs.h. */
  5930. int
  5931. main ()
  5932. {
  5933. ;
  5934. return 0;
  5935. }
  5936. _ACEOF
  5937. if ac_fn_c_try_link "$LINENO"; then :
  5938. lt_cv_ld_exported_symbols_list=yes
  5939. else
  5940. lt_cv_ld_exported_symbols_list=no
  5941. fi
  5942. rm -f core conftest.err conftest.$ac_objext \
  5943. conftest$ac_exeext conftest.$ac_ext
  5944. LDFLAGS="$save_LDFLAGS"
  5945. fi
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5947. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5949. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5950. if ${lt_cv_ld_force_load+:} false; then :
  5951. $as_echo_n "(cached) " >&6
  5952. else
  5953. lt_cv_ld_force_load=no
  5954. cat > conftest.c << _LT_EOF
  5955. int forced_loaded() { return 2;}
  5956. _LT_EOF
  5957. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5958. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5959. echo "$AR cru libconftest.a conftest.o" >&5
  5960. $AR cru libconftest.a conftest.o 2>&5
  5961. echo "$RANLIB libconftest.a" >&5
  5962. $RANLIB libconftest.a 2>&5
  5963. cat > conftest.c << _LT_EOF
  5964. int main() { return 0;}
  5965. _LT_EOF
  5966. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5967. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5968. _lt_result=$?
  5969. if test -s conftest.err && $GREP force_load conftest.err; then
  5970. cat conftest.err >&5
  5971. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5972. lt_cv_ld_force_load=yes
  5973. else
  5974. cat conftest.err >&5
  5975. fi
  5976. rm -f conftest.err libconftest.a conftest conftest.c
  5977. rm -rf conftest.dSYM
  5978. fi
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5980. $as_echo "$lt_cv_ld_force_load" >&6; }
  5981. case $host_os in
  5982. rhapsody* | darwin1.[012])
  5983. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5984. darwin1.*)
  5985. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5986. darwin*) # darwin 5.x on
  5987. # if running on 10.5 or later, the deployment target defaults
  5988. # to the OS version, if on x86, and 10.4, the deployment
  5989. # target defaults to 10.4. Don't you love it?
  5990. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5991. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5992. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5993. 10.[012]*)
  5994. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5995. 10.*)
  5996. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5997. esac
  5998. ;;
  5999. esac
  6000. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6001. _lt_dar_single_mod='$single_module'
  6002. fi
  6003. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6004. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6005. else
  6006. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6007. fi
  6008. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6009. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6010. else
  6011. _lt_dsymutil=
  6012. fi
  6013. ;;
  6014. esac
  6015. ac_ext=c
  6016. ac_cpp='$CPP $CPPFLAGS'
  6017. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6018. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6019. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6021. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6022. # On Suns, sometimes $CPP names a directory.
  6023. if test -n "$CPP" && test -d "$CPP"; then
  6024. CPP=
  6025. fi
  6026. if test -z "$CPP"; then
  6027. if ${ac_cv_prog_CPP+:} false; then :
  6028. $as_echo_n "(cached) " >&6
  6029. else
  6030. # Double quotes because CPP needs to be expanded
  6031. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6032. do
  6033. ac_preproc_ok=false
  6034. for ac_c_preproc_warn_flag in '' yes
  6035. do
  6036. # Use a header file that comes with gcc, so configuring glibc
  6037. # with a fresh cross-compiler works.
  6038. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6039. # <limits.h> exists even on freestanding compilers.
  6040. # On the NeXT, cc -E runs the code through the compiler's parser,
  6041. # not just through cpp. "Syntax error" is here to catch this case.
  6042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6043. /* end confdefs.h. */
  6044. @%:@ifdef __STDC__
  6045. @%:@ include <limits.h>
  6046. @%:@else
  6047. @%:@ include <assert.h>
  6048. @%:@endif
  6049. Syntax error
  6050. _ACEOF
  6051. if ac_fn_c_try_cpp "$LINENO"; then :
  6052. else
  6053. # Broken: fails on valid input.
  6054. continue
  6055. fi
  6056. rm -f conftest.err conftest.i conftest.$ac_ext
  6057. # OK, works on sane cases. Now check whether nonexistent headers
  6058. # can be detected and how.
  6059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6060. /* end confdefs.h. */
  6061. @%:@include <ac_nonexistent.h>
  6062. _ACEOF
  6063. if ac_fn_c_try_cpp "$LINENO"; then :
  6064. # Broken: success on invalid input.
  6065. continue
  6066. else
  6067. # Passes both tests.
  6068. ac_preproc_ok=:
  6069. break
  6070. fi
  6071. rm -f conftest.err conftest.i conftest.$ac_ext
  6072. done
  6073. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6074. rm -f conftest.i conftest.err conftest.$ac_ext
  6075. if $ac_preproc_ok; then :
  6076. break
  6077. fi
  6078. done
  6079. ac_cv_prog_CPP=$CPP
  6080. fi
  6081. CPP=$ac_cv_prog_CPP
  6082. else
  6083. ac_cv_prog_CPP=$CPP
  6084. fi
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6086. $as_echo "$CPP" >&6; }
  6087. ac_preproc_ok=false
  6088. for ac_c_preproc_warn_flag in '' yes
  6089. do
  6090. # Use a header file that comes with gcc, so configuring glibc
  6091. # with a fresh cross-compiler works.
  6092. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6093. # <limits.h> exists even on freestanding compilers.
  6094. # On the NeXT, cc -E runs the code through the compiler's parser,
  6095. # not just through cpp. "Syntax error" is here to catch this case.
  6096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6097. /* end confdefs.h. */
  6098. @%:@ifdef __STDC__
  6099. @%:@ include <limits.h>
  6100. @%:@else
  6101. @%:@ include <assert.h>
  6102. @%:@endif
  6103. Syntax error
  6104. _ACEOF
  6105. if ac_fn_c_try_cpp "$LINENO"; then :
  6106. else
  6107. # Broken: fails on valid input.
  6108. continue
  6109. fi
  6110. rm -f conftest.err conftest.i conftest.$ac_ext
  6111. # OK, works on sane cases. Now check whether nonexistent headers
  6112. # can be detected and how.
  6113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6114. /* end confdefs.h. */
  6115. @%:@include <ac_nonexistent.h>
  6116. _ACEOF
  6117. if ac_fn_c_try_cpp "$LINENO"; then :
  6118. # Broken: success on invalid input.
  6119. continue
  6120. else
  6121. # Passes both tests.
  6122. ac_preproc_ok=:
  6123. break
  6124. fi
  6125. rm -f conftest.err conftest.i conftest.$ac_ext
  6126. done
  6127. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6128. rm -f conftest.i conftest.err conftest.$ac_ext
  6129. if $ac_preproc_ok; then :
  6130. else
  6131. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6132. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6133. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6134. See \`config.log' for more details" "$LINENO" 5; }
  6135. fi
  6136. ac_ext=c
  6137. ac_cpp='$CPP $CPPFLAGS'
  6138. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6139. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6140. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6142. $as_echo_n "checking for ANSI C header files... " >&6; }
  6143. if ${ac_cv_header_stdc+:} false; then :
  6144. $as_echo_n "(cached) " >&6
  6145. else
  6146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6147. /* end confdefs.h. */
  6148. #include <stdlib.h>
  6149. #include <stdarg.h>
  6150. #include <string.h>
  6151. #include <float.h>
  6152. int
  6153. main ()
  6154. {
  6155. ;
  6156. return 0;
  6157. }
  6158. _ACEOF
  6159. if ac_fn_c_try_compile "$LINENO"; then :
  6160. ac_cv_header_stdc=yes
  6161. else
  6162. ac_cv_header_stdc=no
  6163. fi
  6164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6165. if test $ac_cv_header_stdc = yes; then
  6166. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6168. /* end confdefs.h. */
  6169. #include <string.h>
  6170. _ACEOF
  6171. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6172. $EGREP "memchr" >/dev/null 2>&1; then :
  6173. else
  6174. ac_cv_header_stdc=no
  6175. fi
  6176. rm -f conftest*
  6177. fi
  6178. if test $ac_cv_header_stdc = yes; then
  6179. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6181. /* end confdefs.h. */
  6182. #include <stdlib.h>
  6183. _ACEOF
  6184. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6185. $EGREP "free" >/dev/null 2>&1; then :
  6186. else
  6187. ac_cv_header_stdc=no
  6188. fi
  6189. rm -f conftest*
  6190. fi
  6191. if test $ac_cv_header_stdc = yes; then
  6192. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6193. if test "$cross_compiling" = yes; then :
  6194. :
  6195. else
  6196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6197. /* end confdefs.h. */
  6198. #include <ctype.h>
  6199. #include <stdlib.h>
  6200. #if ((' ' & 0x0FF) == 0x020)
  6201. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6202. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6203. #else
  6204. # define ISLOWER(c) \
  6205. (('a' <= (c) && (c) <= 'i') \
  6206. || ('j' <= (c) && (c) <= 'r') \
  6207. || ('s' <= (c) && (c) <= 'z'))
  6208. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6209. #endif
  6210. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6211. int
  6212. main ()
  6213. {
  6214. int i;
  6215. for (i = 0; i < 256; i++)
  6216. if (XOR (islower (i), ISLOWER (i))
  6217. || toupper (i) != TOUPPER (i))
  6218. return 2;
  6219. return 0;
  6220. }
  6221. _ACEOF
  6222. if ac_fn_c_try_run "$LINENO"; then :
  6223. else
  6224. ac_cv_header_stdc=no
  6225. fi
  6226. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6227. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6228. fi
  6229. fi
  6230. fi
  6231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6232. $as_echo "$ac_cv_header_stdc" >&6; }
  6233. if test $ac_cv_header_stdc = yes; then
  6234. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  6235. fi
  6236. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6237. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6238. inttypes.h stdint.h unistd.h
  6239. do :
  6240. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6241. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6242. "
  6243. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6244. cat >>confdefs.h <<_ACEOF
  6245. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6246. _ACEOF
  6247. fi
  6248. done
  6249. for ac_header in dlfcn.h
  6250. do :
  6251. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6252. "
  6253. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6254. cat >>confdefs.h <<_ACEOF
  6255. @%:@define HAVE_DLFCN_H 1
  6256. _ACEOF
  6257. fi
  6258. done
  6259. # Set options
  6260. enable_win32_dll=yes
  6261. case $host in
  6262. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6263. if test -n "$ac_tool_prefix"; then
  6264. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6265. set dummy ${ac_tool_prefix}as; ac_word=$2
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6267. $as_echo_n "checking for $ac_word... " >&6; }
  6268. if ${ac_cv_prog_AS+:} false; then :
  6269. $as_echo_n "(cached) " >&6
  6270. else
  6271. if test -n "$AS"; then
  6272. ac_cv_prog_AS="$AS" # Let the user override the test.
  6273. else
  6274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6275. for as_dir in $PATH
  6276. do
  6277. IFS=$as_save_IFS
  6278. test -z "$as_dir" && as_dir=.
  6279. for ac_exec_ext in '' $ac_executable_extensions; do
  6280. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6281. ac_cv_prog_AS="${ac_tool_prefix}as"
  6282. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6283. break 2
  6284. fi
  6285. done
  6286. done
  6287. IFS=$as_save_IFS
  6288. fi
  6289. fi
  6290. AS=$ac_cv_prog_AS
  6291. if test -n "$AS"; then
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6293. $as_echo "$AS" >&6; }
  6294. else
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6296. $as_echo "no" >&6; }
  6297. fi
  6298. fi
  6299. if test -z "$ac_cv_prog_AS"; then
  6300. ac_ct_AS=$AS
  6301. # Extract the first word of "as", so it can be a program name with args.
  6302. set dummy as; ac_word=$2
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6304. $as_echo_n "checking for $ac_word... " >&6; }
  6305. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6306. $as_echo_n "(cached) " >&6
  6307. else
  6308. if test -n "$ac_ct_AS"; then
  6309. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6310. else
  6311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6312. for as_dir in $PATH
  6313. do
  6314. IFS=$as_save_IFS
  6315. test -z "$as_dir" && as_dir=.
  6316. for ac_exec_ext in '' $ac_executable_extensions; do
  6317. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6318. ac_cv_prog_ac_ct_AS="as"
  6319. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6320. break 2
  6321. fi
  6322. done
  6323. done
  6324. IFS=$as_save_IFS
  6325. fi
  6326. fi
  6327. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6328. if test -n "$ac_ct_AS"; then
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6330. $as_echo "$ac_ct_AS" >&6; }
  6331. else
  6332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6333. $as_echo "no" >&6; }
  6334. fi
  6335. if test "x$ac_ct_AS" = x; then
  6336. AS="false"
  6337. else
  6338. case $cross_compiling:$ac_tool_warned in
  6339. yes:)
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6341. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6342. ac_tool_warned=yes ;;
  6343. esac
  6344. AS=$ac_ct_AS
  6345. fi
  6346. else
  6347. AS="$ac_cv_prog_AS"
  6348. fi
  6349. if test -n "$ac_tool_prefix"; then
  6350. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6351. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6353. $as_echo_n "checking for $ac_word... " >&6; }
  6354. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6355. $as_echo_n "(cached) " >&6
  6356. else
  6357. if test -n "$DLLTOOL"; then
  6358. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6359. else
  6360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6361. for as_dir in $PATH
  6362. do
  6363. IFS=$as_save_IFS
  6364. test -z "$as_dir" && as_dir=.
  6365. for ac_exec_ext in '' $ac_executable_extensions; do
  6366. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6367. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6368. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6369. break 2
  6370. fi
  6371. done
  6372. done
  6373. IFS=$as_save_IFS
  6374. fi
  6375. fi
  6376. DLLTOOL=$ac_cv_prog_DLLTOOL
  6377. if test -n "$DLLTOOL"; then
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6379. $as_echo "$DLLTOOL" >&6; }
  6380. else
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6382. $as_echo "no" >&6; }
  6383. fi
  6384. fi
  6385. if test -z "$ac_cv_prog_DLLTOOL"; then
  6386. ac_ct_DLLTOOL=$DLLTOOL
  6387. # Extract the first word of "dlltool", so it can be a program name with args.
  6388. set dummy dlltool; ac_word=$2
  6389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6390. $as_echo_n "checking for $ac_word... " >&6; }
  6391. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6392. $as_echo_n "(cached) " >&6
  6393. else
  6394. if test -n "$ac_ct_DLLTOOL"; then
  6395. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6396. else
  6397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6398. for as_dir in $PATH
  6399. do
  6400. IFS=$as_save_IFS
  6401. test -z "$as_dir" && as_dir=.
  6402. for ac_exec_ext in '' $ac_executable_extensions; do
  6403. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6404. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6406. break 2
  6407. fi
  6408. done
  6409. done
  6410. IFS=$as_save_IFS
  6411. fi
  6412. fi
  6413. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6414. if test -n "$ac_ct_DLLTOOL"; then
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6416. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6417. else
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6419. $as_echo "no" >&6; }
  6420. fi
  6421. if test "x$ac_ct_DLLTOOL" = x; then
  6422. DLLTOOL="false"
  6423. else
  6424. case $cross_compiling:$ac_tool_warned in
  6425. yes:)
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6427. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6428. ac_tool_warned=yes ;;
  6429. esac
  6430. DLLTOOL=$ac_ct_DLLTOOL
  6431. fi
  6432. else
  6433. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6434. fi
  6435. if test -n "$ac_tool_prefix"; then
  6436. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6437. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6439. $as_echo_n "checking for $ac_word... " >&6; }
  6440. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6441. $as_echo_n "(cached) " >&6
  6442. else
  6443. if test -n "$OBJDUMP"; then
  6444. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6445. else
  6446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6447. for as_dir in $PATH
  6448. do
  6449. IFS=$as_save_IFS
  6450. test -z "$as_dir" && as_dir=.
  6451. for ac_exec_ext in '' $ac_executable_extensions; do
  6452. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6453. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6455. break 2
  6456. fi
  6457. done
  6458. done
  6459. IFS=$as_save_IFS
  6460. fi
  6461. fi
  6462. OBJDUMP=$ac_cv_prog_OBJDUMP
  6463. if test -n "$OBJDUMP"; then
  6464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6465. $as_echo "$OBJDUMP" >&6; }
  6466. else
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6468. $as_echo "no" >&6; }
  6469. fi
  6470. fi
  6471. if test -z "$ac_cv_prog_OBJDUMP"; then
  6472. ac_ct_OBJDUMP=$OBJDUMP
  6473. # Extract the first word of "objdump", so it can be a program name with args.
  6474. set dummy objdump; ac_word=$2
  6475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6476. $as_echo_n "checking for $ac_word... " >&6; }
  6477. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6478. $as_echo_n "(cached) " >&6
  6479. else
  6480. if test -n "$ac_ct_OBJDUMP"; then
  6481. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6482. else
  6483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6484. for as_dir in $PATH
  6485. do
  6486. IFS=$as_save_IFS
  6487. test -z "$as_dir" && as_dir=.
  6488. for ac_exec_ext in '' $ac_executable_extensions; do
  6489. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6490. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6491. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6492. break 2
  6493. fi
  6494. done
  6495. done
  6496. IFS=$as_save_IFS
  6497. fi
  6498. fi
  6499. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6500. if test -n "$ac_ct_OBJDUMP"; then
  6501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6502. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6503. else
  6504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6505. $as_echo "no" >&6; }
  6506. fi
  6507. if test "x$ac_ct_OBJDUMP" = x; then
  6508. OBJDUMP="false"
  6509. else
  6510. case $cross_compiling:$ac_tool_warned in
  6511. yes:)
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6513. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6514. ac_tool_warned=yes ;;
  6515. esac
  6516. OBJDUMP=$ac_ct_OBJDUMP
  6517. fi
  6518. else
  6519. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6520. fi
  6521. ;;
  6522. esac
  6523. test -z "$AS" && AS=as
  6524. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6525. test -z "$OBJDUMP" && OBJDUMP=objdump
  6526. enable_dlopen=no
  6527. @%:@ Check whether --enable-shared was given.
  6528. if test "${enable_shared+set}" = set; then :
  6529. enableval=$enable_shared; p=${PACKAGE-default}
  6530. case $enableval in
  6531. yes) enable_shared=yes ;;
  6532. no) enable_shared=no ;;
  6533. *)
  6534. enable_shared=no
  6535. # Look at the argument we got. We use all the common list separators.
  6536. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6537. for pkg in $enableval; do
  6538. IFS="$lt_save_ifs"
  6539. if test "X$pkg" = "X$p"; then
  6540. enable_shared=yes
  6541. fi
  6542. done
  6543. IFS="$lt_save_ifs"
  6544. ;;
  6545. esac
  6546. else
  6547. enable_shared=yes
  6548. fi
  6549. @%:@ Check whether --enable-static was given.
  6550. if test "${enable_static+set}" = set; then :
  6551. enableval=$enable_static; p=${PACKAGE-default}
  6552. case $enableval in
  6553. yes) enable_static=yes ;;
  6554. no) enable_static=no ;;
  6555. *)
  6556. enable_static=no
  6557. # Look at the argument we got. We use all the common list separators.
  6558. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6559. for pkg in $enableval; do
  6560. IFS="$lt_save_ifs"
  6561. if test "X$pkg" = "X$p"; then
  6562. enable_static=yes
  6563. fi
  6564. done
  6565. IFS="$lt_save_ifs"
  6566. ;;
  6567. esac
  6568. else
  6569. enable_static=yes
  6570. fi
  6571. @%:@ Check whether --with-pic was given.
  6572. if test "${with_pic+set}" = set; then :
  6573. withval=$with_pic; lt_p=${PACKAGE-default}
  6574. case $withval in
  6575. yes|no) pic_mode=$withval ;;
  6576. *)
  6577. pic_mode=default
  6578. # Look at the argument we got. We use all the common list separators.
  6579. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6580. for lt_pkg in $withval; do
  6581. IFS="$lt_save_ifs"
  6582. if test "X$lt_pkg" = "X$lt_p"; then
  6583. pic_mode=yes
  6584. fi
  6585. done
  6586. IFS="$lt_save_ifs"
  6587. ;;
  6588. esac
  6589. else
  6590. pic_mode=default
  6591. fi
  6592. test -z "$pic_mode" && pic_mode=default
  6593. @%:@ Check whether --enable-fast-install was given.
  6594. if test "${enable_fast_install+set}" = set; then :
  6595. enableval=$enable_fast_install; p=${PACKAGE-default}
  6596. case $enableval in
  6597. yes) enable_fast_install=yes ;;
  6598. no) enable_fast_install=no ;;
  6599. *)
  6600. enable_fast_install=no
  6601. # Look at the argument we got. We use all the common list separators.
  6602. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6603. for pkg in $enableval; do
  6604. IFS="$lt_save_ifs"
  6605. if test "X$pkg" = "X$p"; then
  6606. enable_fast_install=yes
  6607. fi
  6608. done
  6609. IFS="$lt_save_ifs"
  6610. ;;
  6611. esac
  6612. else
  6613. enable_fast_install=yes
  6614. fi
  6615. # This can be used to rebuild libtool when needed
  6616. LIBTOOL_DEPS="$ltmain"
  6617. # Always use our own libtool.
  6618. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6619. test -z "$LN_S" && LN_S="ln -s"
  6620. if test -n "${ZSH_VERSION+set}" ; then
  6621. setopt NO_GLOB_SUBST
  6622. fi
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6624. $as_echo_n "checking for objdir... " >&6; }
  6625. if ${lt_cv_objdir+:} false; then :
  6626. $as_echo_n "(cached) " >&6
  6627. else
  6628. rm -f .libs 2>/dev/null
  6629. mkdir .libs 2>/dev/null
  6630. if test -d .libs; then
  6631. lt_cv_objdir=.libs
  6632. else
  6633. # MS-DOS does not allow filenames that begin with a dot.
  6634. lt_cv_objdir=_libs
  6635. fi
  6636. rmdir .libs 2>/dev/null
  6637. fi
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6639. $as_echo "$lt_cv_objdir" >&6; }
  6640. objdir=$lt_cv_objdir
  6641. cat >>confdefs.h <<_ACEOF
  6642. @%:@define LT_OBJDIR "$lt_cv_objdir/"
  6643. _ACEOF
  6644. case $host_os in
  6645. aix3*)
  6646. # AIX sometimes has problems with the GCC collect2 program. For some
  6647. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6648. # vanish in a puff of smoke.
  6649. if test "X${COLLECT_NAMES+set}" != Xset; then
  6650. COLLECT_NAMES=
  6651. export COLLECT_NAMES
  6652. fi
  6653. ;;
  6654. esac
  6655. # Global variables:
  6656. ofile=libtool
  6657. can_build_shared=yes
  6658. # All known linkers require a `.a' archive for static linking (except MSVC,
  6659. # which needs '.lib').
  6660. libext=a
  6661. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6662. old_CC="$CC"
  6663. old_CFLAGS="$CFLAGS"
  6664. # Set sane defaults for various variables
  6665. test -z "$CC" && CC=cc
  6666. test -z "$LTCC" && LTCC=$CC
  6667. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6668. test -z "$LD" && LD=ld
  6669. test -z "$ac_objext" && ac_objext=o
  6670. for cc_temp in $compiler""; do
  6671. case $cc_temp in
  6672. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6673. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6674. \-*) ;;
  6675. *) break;;
  6676. esac
  6677. done
  6678. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6679. # Only perform the check for file, if the check method requires it
  6680. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6681. case $deplibs_check_method in
  6682. file_magic*)
  6683. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6685. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6686. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6687. $as_echo_n "(cached) " >&6
  6688. else
  6689. case $MAGIC_CMD in
  6690. [\\/*] | ?:[\\/]*)
  6691. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6692. ;;
  6693. *)
  6694. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6695. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6696. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6697. for ac_dir in $ac_dummy; do
  6698. IFS="$lt_save_ifs"
  6699. test -z "$ac_dir" && ac_dir=.
  6700. if test -f $ac_dir/${ac_tool_prefix}file; then
  6701. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6702. if test -n "$file_magic_test_file"; then
  6703. case $deplibs_check_method in
  6704. "file_magic "*)
  6705. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6706. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6707. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6708. $EGREP "$file_magic_regex" > /dev/null; then
  6709. :
  6710. else
  6711. cat <<_LT_EOF 1>&2
  6712. *** Warning: the command libtool uses to detect shared libraries,
  6713. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6714. *** The result is that libtool may fail to recognize shared libraries
  6715. *** as such. This will affect the creation of libtool libraries that
  6716. *** depend on shared libraries, but programs linked with such libtool
  6717. *** libraries will work regardless of this problem. Nevertheless, you
  6718. *** may want to report the problem to your system manager and/or to
  6719. *** bug-libtool@gnu.org
  6720. _LT_EOF
  6721. fi ;;
  6722. esac
  6723. fi
  6724. break
  6725. fi
  6726. done
  6727. IFS="$lt_save_ifs"
  6728. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6729. ;;
  6730. esac
  6731. fi
  6732. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6733. if test -n "$MAGIC_CMD"; then
  6734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6735. $as_echo "$MAGIC_CMD" >&6; }
  6736. else
  6737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6738. $as_echo "no" >&6; }
  6739. fi
  6740. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6741. if test -n "$ac_tool_prefix"; then
  6742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6743. $as_echo_n "checking for file... " >&6; }
  6744. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6745. $as_echo_n "(cached) " >&6
  6746. else
  6747. case $MAGIC_CMD in
  6748. [\\/*] | ?:[\\/]*)
  6749. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6750. ;;
  6751. *)
  6752. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6753. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6754. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6755. for ac_dir in $ac_dummy; do
  6756. IFS="$lt_save_ifs"
  6757. test -z "$ac_dir" && ac_dir=.
  6758. if test -f $ac_dir/file; then
  6759. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6760. if test -n "$file_magic_test_file"; then
  6761. case $deplibs_check_method in
  6762. "file_magic "*)
  6763. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6764. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6765. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6766. $EGREP "$file_magic_regex" > /dev/null; then
  6767. :
  6768. else
  6769. cat <<_LT_EOF 1>&2
  6770. *** Warning: the command libtool uses to detect shared libraries,
  6771. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6772. *** The result is that libtool may fail to recognize shared libraries
  6773. *** as such. This will affect the creation of libtool libraries that
  6774. *** depend on shared libraries, but programs linked with such libtool
  6775. *** libraries will work regardless of this problem. Nevertheless, you
  6776. *** may want to report the problem to your system manager and/or to
  6777. *** bug-libtool@gnu.org
  6778. _LT_EOF
  6779. fi ;;
  6780. esac
  6781. fi
  6782. break
  6783. fi
  6784. done
  6785. IFS="$lt_save_ifs"
  6786. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6787. ;;
  6788. esac
  6789. fi
  6790. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6791. if test -n "$MAGIC_CMD"; then
  6792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6793. $as_echo "$MAGIC_CMD" >&6; }
  6794. else
  6795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6796. $as_echo "no" >&6; }
  6797. fi
  6798. else
  6799. MAGIC_CMD=:
  6800. fi
  6801. fi
  6802. fi
  6803. ;;
  6804. esac
  6805. # Use C for the default configuration in the libtool script
  6806. lt_save_CC="$CC"
  6807. ac_ext=c
  6808. ac_cpp='$CPP $CPPFLAGS'
  6809. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6810. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6811. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6812. # Source file extension for C test sources.
  6813. ac_ext=c
  6814. # Object file extension for compiled C test sources.
  6815. objext=o
  6816. objext=$objext
  6817. # Code to be used in simple compile tests
  6818. lt_simple_compile_test_code="int some_variable = 0;"
  6819. # Code to be used in simple link tests
  6820. lt_simple_link_test_code='int main(){return(0);}'
  6821. # If no C compiler was specified, use CC.
  6822. LTCC=${LTCC-"$CC"}
  6823. # If no C compiler flags were specified, use CFLAGS.
  6824. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6825. # Allow CC to be a program name with arguments.
  6826. compiler=$CC
  6827. # Save the default compiler, since it gets overwritten when the other
  6828. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6829. compiler_DEFAULT=$CC
  6830. # save warnings/boilerplate of simple test code
  6831. ac_outfile=conftest.$ac_objext
  6832. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6833. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6834. _lt_compiler_boilerplate=`cat conftest.err`
  6835. $RM conftest*
  6836. ac_outfile=conftest.$ac_objext
  6837. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6838. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6839. _lt_linker_boilerplate=`cat conftest.err`
  6840. $RM -r conftest*
  6841. ## CAVEAT EMPTOR:
  6842. ## There is no encapsulation within the following macros, do not change
  6843. ## the running order or otherwise move them around unless you know exactly
  6844. ## what you are doing...
  6845. if test -n "$compiler"; then
  6846. lt_prog_compiler_no_builtin_flag=
  6847. if test "$GCC" = yes; then
  6848. case $cc_basename in
  6849. nvcc*)
  6850. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6851. *)
  6852. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6853. esac
  6854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6855. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6856. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6857. $as_echo_n "(cached) " >&6
  6858. else
  6859. lt_cv_prog_compiler_rtti_exceptions=no
  6860. ac_outfile=conftest.$ac_objext
  6861. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6862. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6863. # Insert the option either (1) after the last *FLAGS variable, or
  6864. # (2) before a word containing "conftest.", or (3) at the end.
  6865. # Note that $ac_compile itself does not contain backslashes and begins
  6866. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6867. # The option is referenced via a variable to avoid confusing sed.
  6868. lt_compile=`echo "$ac_compile" | $SED \
  6869. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6870. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6871. -e 's:$: $lt_compiler_flag:'`
  6872. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6873. (eval "$lt_compile" 2>conftest.err)
  6874. ac_status=$?
  6875. cat conftest.err >&5
  6876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6877. if (exit $ac_status) && test -s "$ac_outfile"; then
  6878. # The compiler can only warn and ignore the option if not recognized
  6879. # So say no if there are warnings other than the usual output.
  6880. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6881. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6882. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6883. lt_cv_prog_compiler_rtti_exceptions=yes
  6884. fi
  6885. fi
  6886. $RM conftest*
  6887. fi
  6888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6889. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6890. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6891. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6892. else
  6893. :
  6894. fi
  6895. fi
  6896. lt_prog_compiler_wl=
  6897. lt_prog_compiler_pic=
  6898. lt_prog_compiler_static=
  6899. if test "$GCC" = yes; then
  6900. lt_prog_compiler_wl='-Wl,'
  6901. lt_prog_compiler_static='-static'
  6902. case $host_os in
  6903. aix*)
  6904. # All AIX code is PIC.
  6905. if test "$host_cpu" = ia64; then
  6906. # AIX 5 now supports IA64 processor
  6907. lt_prog_compiler_static='-Bstatic'
  6908. fi
  6909. ;;
  6910. amigaos*)
  6911. case $host_cpu in
  6912. powerpc)
  6913. # see comment about AmigaOS4 .so support
  6914. lt_prog_compiler_pic='-fPIC'
  6915. ;;
  6916. m68k)
  6917. # FIXME: we need at least 68020 code to build shared libraries, but
  6918. # adding the `-m68020' flag to GCC prevents building anything better,
  6919. # like `-m68040'.
  6920. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6921. ;;
  6922. esac
  6923. ;;
  6924. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6925. # PIC is the default for these OSes.
  6926. ;;
  6927. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6928. # This hack is so that the source file can tell whether it is being
  6929. # built for inclusion in a dll (and should export symbols for example).
  6930. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6931. # (--disable-auto-import) libraries
  6932. lt_prog_compiler_pic='-DDLL_EXPORT'
  6933. ;;
  6934. darwin* | rhapsody*)
  6935. # PIC is the default on this platform
  6936. # Common symbols not allowed in MH_DYLIB files
  6937. lt_prog_compiler_pic='-fno-common'
  6938. ;;
  6939. haiku*)
  6940. # PIC is the default for Haiku.
  6941. # The "-static" flag exists, but is broken.
  6942. lt_prog_compiler_static=
  6943. ;;
  6944. hpux*)
  6945. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6946. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6947. # sets the default TLS model and affects inlining.
  6948. case $host_cpu in
  6949. hppa*64*)
  6950. # +Z the default
  6951. ;;
  6952. *)
  6953. lt_prog_compiler_pic='-fPIC'
  6954. ;;
  6955. esac
  6956. ;;
  6957. interix[3-9]*)
  6958. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6959. # Instead, we relocate shared libraries at runtime.
  6960. ;;
  6961. msdosdjgpp*)
  6962. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6963. # on systems that don't support them.
  6964. lt_prog_compiler_can_build_shared=no
  6965. enable_shared=no
  6966. ;;
  6967. *nto* | *qnx*)
  6968. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6969. # it will coredump.
  6970. lt_prog_compiler_pic='-fPIC -shared'
  6971. ;;
  6972. sysv4*MP*)
  6973. if test -d /usr/nec; then
  6974. lt_prog_compiler_pic=-Kconform_pic
  6975. fi
  6976. ;;
  6977. *)
  6978. lt_prog_compiler_pic='-fPIC'
  6979. ;;
  6980. esac
  6981. case $cc_basename in
  6982. nvcc*) # Cuda Compiler Driver 2.2
  6983. lt_prog_compiler_wl='-Xlinker '
  6984. if test -n "$lt_prog_compiler_pic"; then
  6985. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6986. fi
  6987. ;;
  6988. esac
  6989. else
  6990. # PORTME Check for flag to pass linker flags through the system compiler.
  6991. case $host_os in
  6992. aix*)
  6993. lt_prog_compiler_wl='-Wl,'
  6994. if test "$host_cpu" = ia64; then
  6995. # AIX 5 now supports IA64 processor
  6996. lt_prog_compiler_static='-Bstatic'
  6997. else
  6998. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6999. fi
  7000. ;;
  7001. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7002. # This hack is so that the source file can tell whether it is being
  7003. # built for inclusion in a dll (and should export symbols for example).
  7004. lt_prog_compiler_pic='-DDLL_EXPORT'
  7005. ;;
  7006. hpux9* | hpux10* | hpux11*)
  7007. lt_prog_compiler_wl='-Wl,'
  7008. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7009. # not for PA HP-UX.
  7010. case $host_cpu in
  7011. hppa*64*|ia64*)
  7012. # +Z the default
  7013. ;;
  7014. *)
  7015. lt_prog_compiler_pic='+Z'
  7016. ;;
  7017. esac
  7018. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7019. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7020. ;;
  7021. irix5* | irix6* | nonstopux*)
  7022. lt_prog_compiler_wl='-Wl,'
  7023. # PIC (with -KPIC) is the default.
  7024. lt_prog_compiler_static='-non_shared'
  7025. ;;
  7026. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7027. case $cc_basename in
  7028. # old Intel for x86_64 which still supported -KPIC.
  7029. ecc*)
  7030. lt_prog_compiler_wl='-Wl,'
  7031. lt_prog_compiler_pic='-KPIC'
  7032. lt_prog_compiler_static='-static'
  7033. ;;
  7034. # icc used to be incompatible with GCC.
  7035. # ICC 10 doesn't accept -KPIC any more.
  7036. icc* | ifort*)
  7037. lt_prog_compiler_wl='-Wl,'
  7038. lt_prog_compiler_pic='-fPIC'
  7039. lt_prog_compiler_static='-static'
  7040. ;;
  7041. # Lahey Fortran 8.1.
  7042. lf95*)
  7043. lt_prog_compiler_wl='-Wl,'
  7044. lt_prog_compiler_pic='--shared'
  7045. lt_prog_compiler_static='--static'
  7046. ;;
  7047. nagfor*)
  7048. # NAG Fortran compiler
  7049. lt_prog_compiler_wl='-Wl,-Wl,,'
  7050. lt_prog_compiler_pic='-PIC'
  7051. lt_prog_compiler_static='-Bstatic'
  7052. ;;
  7053. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7054. # Portland Group compilers (*not* the Pentium gcc compiler,
  7055. # which looks to be a dead project)
  7056. lt_prog_compiler_wl='-Wl,'
  7057. lt_prog_compiler_pic='-fpic'
  7058. lt_prog_compiler_static='-Bstatic'
  7059. ;;
  7060. ccc*)
  7061. lt_prog_compiler_wl='-Wl,'
  7062. # All Alpha code is PIC.
  7063. lt_prog_compiler_static='-non_shared'
  7064. ;;
  7065. xl* | bgxl* | bgf* | mpixl*)
  7066. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7067. lt_prog_compiler_wl='-Wl,'
  7068. lt_prog_compiler_pic='-qpic'
  7069. lt_prog_compiler_static='-qstaticlink'
  7070. ;;
  7071. *)
  7072. case `$CC -V 2>&1 | sed 5q` in
  7073. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7074. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7075. lt_prog_compiler_pic='-KPIC'
  7076. lt_prog_compiler_static='-Bstatic'
  7077. lt_prog_compiler_wl=''
  7078. ;;
  7079. *Sun\ F* | *Sun*Fortran*)
  7080. lt_prog_compiler_pic='-KPIC'
  7081. lt_prog_compiler_static='-Bstatic'
  7082. lt_prog_compiler_wl='-Qoption ld '
  7083. ;;
  7084. *Sun\ C*)
  7085. # Sun C 5.9
  7086. lt_prog_compiler_pic='-KPIC'
  7087. lt_prog_compiler_static='-Bstatic'
  7088. lt_prog_compiler_wl='-Wl,'
  7089. ;;
  7090. *Intel*\ [CF]*Compiler*)
  7091. lt_prog_compiler_wl='-Wl,'
  7092. lt_prog_compiler_pic='-fPIC'
  7093. lt_prog_compiler_static='-static'
  7094. ;;
  7095. *Portland\ Group*)
  7096. lt_prog_compiler_wl='-Wl,'
  7097. lt_prog_compiler_pic='-fpic'
  7098. lt_prog_compiler_static='-Bstatic'
  7099. ;;
  7100. esac
  7101. ;;
  7102. esac
  7103. ;;
  7104. newsos6)
  7105. lt_prog_compiler_pic='-KPIC'
  7106. lt_prog_compiler_static='-Bstatic'
  7107. ;;
  7108. *nto* | *qnx*)
  7109. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7110. # it will coredump.
  7111. lt_prog_compiler_pic='-fPIC -shared'
  7112. ;;
  7113. osf3* | osf4* | osf5*)
  7114. lt_prog_compiler_wl='-Wl,'
  7115. # All OSF/1 code is PIC.
  7116. lt_prog_compiler_static='-non_shared'
  7117. ;;
  7118. rdos*)
  7119. lt_prog_compiler_static='-non_shared'
  7120. ;;
  7121. solaris*)
  7122. lt_prog_compiler_pic='-KPIC'
  7123. lt_prog_compiler_static='-Bstatic'
  7124. case $cc_basename in
  7125. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7126. lt_prog_compiler_wl='-Qoption ld ';;
  7127. *)
  7128. lt_prog_compiler_wl='-Wl,';;
  7129. esac
  7130. ;;
  7131. sunos4*)
  7132. lt_prog_compiler_wl='-Qoption ld '
  7133. lt_prog_compiler_pic='-PIC'
  7134. lt_prog_compiler_static='-Bstatic'
  7135. ;;
  7136. sysv4 | sysv4.2uw2* | sysv4.3*)
  7137. lt_prog_compiler_wl='-Wl,'
  7138. lt_prog_compiler_pic='-KPIC'
  7139. lt_prog_compiler_static='-Bstatic'
  7140. ;;
  7141. sysv4*MP*)
  7142. if test -d /usr/nec ;then
  7143. lt_prog_compiler_pic='-Kconform_pic'
  7144. lt_prog_compiler_static='-Bstatic'
  7145. fi
  7146. ;;
  7147. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7148. lt_prog_compiler_wl='-Wl,'
  7149. lt_prog_compiler_pic='-KPIC'
  7150. lt_prog_compiler_static='-Bstatic'
  7151. ;;
  7152. unicos*)
  7153. lt_prog_compiler_wl='-Wl,'
  7154. lt_prog_compiler_can_build_shared=no
  7155. ;;
  7156. uts4*)
  7157. lt_prog_compiler_pic='-pic'
  7158. lt_prog_compiler_static='-Bstatic'
  7159. ;;
  7160. *)
  7161. lt_prog_compiler_can_build_shared=no
  7162. ;;
  7163. esac
  7164. fi
  7165. case $host_os in
  7166. # For platforms which do not support PIC, -DPIC is meaningless:
  7167. *djgpp*)
  7168. lt_prog_compiler_pic=
  7169. ;;
  7170. *)
  7171. lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
  7172. ;;
  7173. esac
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7175. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7176. if ${lt_cv_prog_compiler_pic+:} false; then :
  7177. $as_echo_n "(cached) " >&6
  7178. else
  7179. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7180. fi
  7181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7182. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7183. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7184. #
  7185. # Check to make sure the PIC flag actually works.
  7186. #
  7187. if test -n "$lt_prog_compiler_pic"; then
  7188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7189. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7190. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7191. $as_echo_n "(cached) " >&6
  7192. else
  7193. lt_cv_prog_compiler_pic_works=no
  7194. ac_outfile=conftest.$ac_objext
  7195. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7196. lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
  7197. # Insert the option either (1) after the last *FLAGS variable, or
  7198. # (2) before a word containing "conftest.", or (3) at the end.
  7199. # Note that $ac_compile itself does not contain backslashes and begins
  7200. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7201. # The option is referenced via a variable to avoid confusing sed.
  7202. lt_compile=`echo "$ac_compile" | $SED \
  7203. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7204. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7205. -e 's:$: $lt_compiler_flag:'`
  7206. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7207. (eval "$lt_compile" 2>conftest.err)
  7208. ac_status=$?
  7209. cat conftest.err >&5
  7210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7211. if (exit $ac_status) && test -s "$ac_outfile"; then
  7212. # The compiler can only warn and ignore the option if not recognized
  7213. # So say no if there are warnings other than the usual output.
  7214. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7215. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7216. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7217. lt_cv_prog_compiler_pic_works=yes
  7218. fi
  7219. fi
  7220. $RM conftest*
  7221. fi
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7223. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7224. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7225. case $lt_prog_compiler_pic in
  7226. "" | " "*) ;;
  7227. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7228. esac
  7229. else
  7230. lt_prog_compiler_pic=
  7231. lt_prog_compiler_can_build_shared=no
  7232. fi
  7233. fi
  7234. #
  7235. # Check to make sure the static flag actually works.
  7236. #
  7237. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7239. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7240. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7241. $as_echo_n "(cached) " >&6
  7242. else
  7243. lt_cv_prog_compiler_static_works=no
  7244. save_LDFLAGS="$LDFLAGS"
  7245. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7246. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7247. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7248. # The linker can only warn and ignore the option if not recognized
  7249. # So say no if there are warnings
  7250. if test -s conftest.err; then
  7251. # Append any errors to the config.log.
  7252. cat conftest.err 1>&5
  7253. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7254. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7255. if diff conftest.exp conftest.er2 >/dev/null; then
  7256. lt_cv_prog_compiler_static_works=yes
  7257. fi
  7258. else
  7259. lt_cv_prog_compiler_static_works=yes
  7260. fi
  7261. fi
  7262. $RM -r conftest*
  7263. LDFLAGS="$save_LDFLAGS"
  7264. fi
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7266. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7267. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7268. :
  7269. else
  7270. lt_prog_compiler_static=
  7271. fi
  7272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7273. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7274. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7275. $as_echo_n "(cached) " >&6
  7276. else
  7277. lt_cv_prog_compiler_c_o=no
  7278. $RM -r conftest 2>/dev/null
  7279. mkdir conftest
  7280. cd conftest
  7281. mkdir out
  7282. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7283. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7284. # Insert the option either (1) after the last *FLAGS variable, or
  7285. # (2) before a word containing "conftest.", or (3) at the end.
  7286. # Note that $ac_compile itself does not contain backslashes and begins
  7287. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7288. lt_compile=`echo "$ac_compile" | $SED \
  7289. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7290. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7291. -e 's:$: $lt_compiler_flag:'`
  7292. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7293. (eval "$lt_compile" 2>out/conftest.err)
  7294. ac_status=$?
  7295. cat out/conftest.err >&5
  7296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7297. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7298. then
  7299. # The compiler can only warn and ignore the option if not recognized
  7300. # So say no if there are warnings
  7301. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7302. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7303. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7304. lt_cv_prog_compiler_c_o=yes
  7305. fi
  7306. fi
  7307. chmod u+w . 2>&5
  7308. $RM conftest*
  7309. # SGI C++ compiler will create directory out/ii_files/ for
  7310. # template instantiation
  7311. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7312. $RM out/* && rmdir out
  7313. cd ..
  7314. $RM -r conftest
  7315. $RM conftest*
  7316. fi
  7317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7318. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7320. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7321. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7322. $as_echo_n "(cached) " >&6
  7323. else
  7324. lt_cv_prog_compiler_c_o=no
  7325. $RM -r conftest 2>/dev/null
  7326. mkdir conftest
  7327. cd conftest
  7328. mkdir out
  7329. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7330. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7331. # Insert the option either (1) after the last *FLAGS variable, or
  7332. # (2) before a word containing "conftest.", or (3) at the end.
  7333. # Note that $ac_compile itself does not contain backslashes and begins
  7334. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7335. lt_compile=`echo "$ac_compile" | $SED \
  7336. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7337. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7338. -e 's:$: $lt_compiler_flag:'`
  7339. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7340. (eval "$lt_compile" 2>out/conftest.err)
  7341. ac_status=$?
  7342. cat out/conftest.err >&5
  7343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7344. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7345. then
  7346. # The compiler can only warn and ignore the option if not recognized
  7347. # So say no if there are warnings
  7348. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7349. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7350. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7351. lt_cv_prog_compiler_c_o=yes
  7352. fi
  7353. fi
  7354. chmod u+w . 2>&5
  7355. $RM conftest*
  7356. # SGI C++ compiler will create directory out/ii_files/ for
  7357. # template instantiation
  7358. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7359. $RM out/* && rmdir out
  7360. cd ..
  7361. $RM -r conftest
  7362. $RM conftest*
  7363. fi
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7365. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7366. hard_links="nottested"
  7367. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7368. # do not overwrite the value of need_locks provided by the user
  7369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7370. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7371. hard_links=yes
  7372. $RM conftest*
  7373. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7374. touch conftest.a
  7375. ln conftest.a conftest.b 2>&5 || hard_links=no
  7376. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7378. $as_echo "$hard_links" >&6; }
  7379. if test "$hard_links" = no; then
  7380. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7381. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7382. need_locks=warn
  7383. fi
  7384. else
  7385. need_locks=no
  7386. fi
  7387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7388. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7389. runpath_var=
  7390. allow_undefined_flag=
  7391. always_export_symbols=no
  7392. archive_cmds=
  7393. archive_expsym_cmds=
  7394. compiler_needs_object=no
  7395. enable_shared_with_static_runtimes=no
  7396. export_dynamic_flag_spec=
  7397. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7398. hardcode_automatic=no
  7399. hardcode_direct=no
  7400. hardcode_direct_absolute=no
  7401. hardcode_libdir_flag_spec=
  7402. hardcode_libdir_separator=
  7403. hardcode_minus_L=no
  7404. hardcode_shlibpath_var=unsupported
  7405. inherit_rpath=no
  7406. link_all_deplibs=unknown
  7407. module_cmds=
  7408. module_expsym_cmds=
  7409. old_archive_from_new_cmds=
  7410. old_archive_from_expsyms_cmds=
  7411. thread_safe_flag_spec=
  7412. whole_archive_flag_spec=
  7413. # include_expsyms should be a list of space-separated symbols to be *always*
  7414. # included in the symbol list
  7415. include_expsyms=
  7416. # exclude_expsyms can be an extended regexp of symbols to exclude
  7417. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7418. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7419. # as well as any symbol that contains `d'.
  7420. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7421. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7422. # platforms (ab)use it in PIC code, but their linkers get confused if
  7423. # the symbol is explicitly referenced. Since portable code cannot
  7424. # rely on this symbol name, it's probably fine to never include it in
  7425. # preloaded symbol tables.
  7426. # Exclude shared library initialization/finalization symbols.
  7427. extract_expsyms_cmds=
  7428. case $host_os in
  7429. cygwin* | mingw* | pw32* | cegcc*)
  7430. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7431. # When not using gcc, we currently assume that we are using
  7432. # Microsoft Visual C++.
  7433. if test "$GCC" != yes; then
  7434. with_gnu_ld=no
  7435. fi
  7436. ;;
  7437. interix*)
  7438. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7439. with_gnu_ld=yes
  7440. ;;
  7441. openbsd*)
  7442. with_gnu_ld=no
  7443. ;;
  7444. esac
  7445. ld_shlibs=yes
  7446. # On some targets, GNU ld is compatible enough with the native linker
  7447. # that we're better off using the native interface for both.
  7448. lt_use_gnu_ld_interface=no
  7449. if test "$with_gnu_ld" = yes; then
  7450. case $host_os in
  7451. aix*)
  7452. # The AIX port of GNU ld has always aspired to compatibility
  7453. # with the native linker. However, as the warning in the GNU ld
  7454. # block says, versions before 2.19.5* couldn't really create working
  7455. # shared libraries, regardless of the interface used.
  7456. case `$LD -v 2>&1` in
  7457. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7458. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7459. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7460. *)
  7461. lt_use_gnu_ld_interface=yes
  7462. ;;
  7463. esac
  7464. ;;
  7465. *)
  7466. lt_use_gnu_ld_interface=yes
  7467. ;;
  7468. esac
  7469. fi
  7470. if test "$lt_use_gnu_ld_interface" = yes; then
  7471. # If archive_cmds runs LD, not CC, wlarc should be empty
  7472. wlarc='${wl}'
  7473. # Set some defaults for GNU ld with shared library support. These
  7474. # are reset later if shared libraries are not supported. Putting them
  7475. # here allows them to be overridden if necessary.
  7476. runpath_var=LD_RUN_PATH
  7477. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7478. export_dynamic_flag_spec='${wl}--export-dynamic'
  7479. # ancient GNU ld didn't support --whole-archive et. al.
  7480. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7481. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7482. else
  7483. whole_archive_flag_spec=
  7484. fi
  7485. supports_anon_versioning=no
  7486. case `$LD -v 2>&1` in
  7487. *GNU\ gold*) supports_anon_versioning=yes ;;
  7488. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7489. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7490. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7491. *\ 2.11.*) ;; # other 2.11 versions
  7492. *) supports_anon_versioning=yes ;;
  7493. esac
  7494. # See if GNU ld supports shared libraries.
  7495. case $host_os in
  7496. aix[3-9]*)
  7497. # On AIX/PPC, the GNU linker is very broken
  7498. if test "$host_cpu" != ia64; then
  7499. ld_shlibs=no
  7500. cat <<_LT_EOF 1>&2
  7501. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7502. *** to be unable to reliably create shared libraries on AIX.
  7503. *** Therefore, libtool is disabling shared libraries support. If you
  7504. *** really care for shared libraries, you may want to install binutils
  7505. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7506. *** You will then need to restart the configuration process.
  7507. _LT_EOF
  7508. fi
  7509. ;;
  7510. amigaos*)
  7511. case $host_cpu in
  7512. powerpc)
  7513. # see comment about AmigaOS4 .so support
  7514. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7515. archive_expsym_cmds=''
  7516. ;;
  7517. m68k)
  7518. 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)'
  7519. hardcode_libdir_flag_spec='-L$libdir'
  7520. hardcode_minus_L=yes
  7521. ;;
  7522. esac
  7523. ;;
  7524. beos*)
  7525. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7526. allow_undefined_flag=unsupported
  7527. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7528. # support --undefined. This deserves some investigation. FIXME
  7529. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7530. else
  7531. ld_shlibs=no
  7532. fi
  7533. ;;
  7534. cygwin* | mingw* | pw32* | cegcc*)
  7535. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7536. # as there is no search path for DLLs.
  7537. hardcode_libdir_flag_spec='-L$libdir'
  7538. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7539. allow_undefined_flag=unsupported
  7540. always_export_symbols=no
  7541. enable_shared_with_static_runtimes=yes
  7542. 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'
  7543. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7544. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7545. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7546. # If the export-symbols file already is a .def file (1st line
  7547. # is EXPORTS), use it as is; otherwise, prepend...
  7548. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7549. cp $export_symbols $output_objdir/$soname.def;
  7550. else
  7551. echo EXPORTS > $output_objdir/$soname.def;
  7552. cat $export_symbols >> $output_objdir/$soname.def;
  7553. fi~
  7554. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7555. else
  7556. ld_shlibs=no
  7557. fi
  7558. ;;
  7559. haiku*)
  7560. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7561. link_all_deplibs=yes
  7562. ;;
  7563. interix[3-9]*)
  7564. hardcode_direct=no
  7565. hardcode_shlibpath_var=no
  7566. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7567. export_dynamic_flag_spec='${wl}-E'
  7568. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7569. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7570. # default) and relocated if they conflict, which is a slow very memory
  7571. # consuming and fragmenting process. To avoid this, we pick a random,
  7572. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7573. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7574. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7575. 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'
  7576. ;;
  7577. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7578. tmp_diet=no
  7579. if test "$host_os" = linux-dietlibc; then
  7580. case $cc_basename in
  7581. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7582. esac
  7583. fi
  7584. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7585. && test "$tmp_diet" = no
  7586. then
  7587. tmp_addflag=' $pic_flag'
  7588. tmp_sharedflag='-shared'
  7589. case $cc_basename,$host_cpu in
  7590. pgcc*) # Portland Group C compiler
  7591. 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'
  7592. tmp_addflag=' $pic_flag'
  7593. ;;
  7594. pgf77* | pgf90* | pgf95* | pgfortran*)
  7595. # Portland Group f77 and f90 compilers
  7596. 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'
  7597. tmp_addflag=' $pic_flag -Mnomain' ;;
  7598. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7599. tmp_addflag=' -i_dynamic' ;;
  7600. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7601. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7602. ifc* | ifort*) # Intel Fortran compiler
  7603. tmp_addflag=' -nofor_main' ;;
  7604. lf95*) # Lahey Fortran 8.1
  7605. whole_archive_flag_spec=
  7606. tmp_sharedflag='--shared' ;;
  7607. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7608. tmp_sharedflag='-qmkshrobj'
  7609. tmp_addflag= ;;
  7610. nvcc*) # Cuda Compiler Driver 2.2
  7611. 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'
  7612. compiler_needs_object=yes
  7613. ;;
  7614. esac
  7615. case `$CC -V 2>&1 | sed 5q` in
  7616. *Sun\ C*) # Sun C 5.9
  7617. 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'
  7618. compiler_needs_object=yes
  7619. tmp_sharedflag='-G' ;;
  7620. *Sun\ F*) # Sun Fortran 8.3
  7621. tmp_sharedflag='-G' ;;
  7622. esac
  7623. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7624. if test "x$supports_anon_versioning" = xyes; then
  7625. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7626. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7627. echo "local: *; };" >> $output_objdir/$libname.ver~
  7628. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7629. fi
  7630. case $cc_basename in
  7631. xlf* | bgf* | bgxlf* | mpixlf*)
  7632. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7633. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7634. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7635. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7636. if test "x$supports_anon_versioning" = xyes; then
  7637. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7638. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7639. echo "local: *; };" >> $output_objdir/$libname.ver~
  7640. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7641. fi
  7642. ;;
  7643. esac
  7644. else
  7645. ld_shlibs=no
  7646. fi
  7647. ;;
  7648. netbsd*)
  7649. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7650. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7651. wlarc=
  7652. else
  7653. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7654. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7655. fi
  7656. ;;
  7657. solaris*)
  7658. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7659. ld_shlibs=no
  7660. cat <<_LT_EOF 1>&2
  7661. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7662. *** create shared libraries on Solaris systems. Therefore, libtool
  7663. *** is disabling shared libraries support. We urge you to upgrade GNU
  7664. *** binutils to release 2.9.1 or newer. Another option is to modify
  7665. *** your PATH or compiler configuration so that the native linker is
  7666. *** used, and then restart.
  7667. _LT_EOF
  7668. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7669. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7670. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7671. else
  7672. ld_shlibs=no
  7673. fi
  7674. ;;
  7675. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7676. case `$LD -v 2>&1` in
  7677. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7678. ld_shlibs=no
  7679. cat <<_LT_EOF 1>&2
  7680. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7681. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7682. *** is disabling shared libraries support. We urge you to upgrade GNU
  7683. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7684. *** your PATH or compiler configuration so that the native linker is
  7685. *** used, and then restart.
  7686. _LT_EOF
  7687. ;;
  7688. *)
  7689. # For security reasons, it is highly recommended that you always
  7690. # use absolute paths for naming shared libraries, and exclude the
  7691. # DT_RUNPATH tag from executables and libraries. But doing so
  7692. # requires that you compile everything twice, which is a pain.
  7693. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7694. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7695. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7696. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7697. else
  7698. ld_shlibs=no
  7699. fi
  7700. ;;
  7701. esac
  7702. ;;
  7703. sunos4*)
  7704. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7705. wlarc=
  7706. hardcode_direct=yes
  7707. hardcode_shlibpath_var=no
  7708. ;;
  7709. *)
  7710. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7711. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7712. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7713. else
  7714. ld_shlibs=no
  7715. fi
  7716. ;;
  7717. esac
  7718. if test "$ld_shlibs" = no; then
  7719. runpath_var=
  7720. hardcode_libdir_flag_spec=
  7721. export_dynamic_flag_spec=
  7722. whole_archive_flag_spec=
  7723. fi
  7724. else
  7725. # PORTME fill in a description of your system's linker (not GNU ld)
  7726. case $host_os in
  7727. aix3*)
  7728. allow_undefined_flag=unsupported
  7729. always_export_symbols=yes
  7730. 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'
  7731. # Note: this linker hardcodes the directories in LIBPATH if there
  7732. # are no directories specified by -L.
  7733. hardcode_minus_L=yes
  7734. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7735. # Neither direct hardcoding nor static linking is supported with a
  7736. # broken collect2.
  7737. hardcode_direct=unsupported
  7738. fi
  7739. ;;
  7740. aix[4-9]*)
  7741. if test "$host_cpu" = ia64; then
  7742. # On IA64, the linker does run time linking by default, so we don't
  7743. # have to do anything special.
  7744. aix_use_runtimelinking=no
  7745. exp_sym_flag='-Bexport'
  7746. no_entry_flag=""
  7747. else
  7748. # If we're using GNU nm, then we don't want the "-C" option.
  7749. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7750. # Also, AIX nm treats weak defined symbols like other global
  7751. # defined symbols, whereas GNU nm marks them as "W".
  7752. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7753. 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'
  7754. else
  7755. 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'
  7756. fi
  7757. aix_use_runtimelinking=no
  7758. # Test if we are trying to use run time linking or normal
  7759. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7760. # need to do runtime linking.
  7761. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7762. for ld_flag in $LDFLAGS; do
  7763. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7764. aix_use_runtimelinking=yes
  7765. break
  7766. fi
  7767. done
  7768. ;;
  7769. esac
  7770. exp_sym_flag='-bexport'
  7771. no_entry_flag='-bnoentry'
  7772. fi
  7773. # When large executables or shared objects are built, AIX ld can
  7774. # have problems creating the table of contents. If linking a library
  7775. # or program results in "error TOC overflow" add -mminimal-toc to
  7776. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7777. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7778. archive_cmds=''
  7779. hardcode_direct=yes
  7780. hardcode_direct_absolute=yes
  7781. hardcode_libdir_separator=':'
  7782. link_all_deplibs=yes
  7783. file_list_spec='${wl}-f,'
  7784. if test "$GCC" = yes; then
  7785. case $host_os in aix4.[012]|aix4.[012].*)
  7786. # We only want to do this on AIX 4.2 and lower, the check
  7787. # below for broken collect2 doesn't work under 4.3+
  7788. collect2name=`${CC} -print-prog-name=collect2`
  7789. if test -f "$collect2name" &&
  7790. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7791. then
  7792. # We have reworked collect2
  7793. :
  7794. else
  7795. # We have old collect2
  7796. hardcode_direct=unsupported
  7797. # It fails to find uninstalled libraries when the uninstalled
  7798. # path is not listed in the libpath. Setting hardcode_minus_L
  7799. # to unsupported forces relinking
  7800. hardcode_minus_L=yes
  7801. hardcode_libdir_flag_spec='-L$libdir'
  7802. hardcode_libdir_separator=
  7803. fi
  7804. ;;
  7805. esac
  7806. shared_flag='-shared'
  7807. if test "$aix_use_runtimelinking" = yes; then
  7808. shared_flag="$shared_flag "'${wl}-G'
  7809. fi
  7810. else
  7811. # not using gcc
  7812. if test "$host_cpu" = ia64; then
  7813. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7814. # chokes on -Wl,-G. The following line is correct:
  7815. shared_flag='-G'
  7816. else
  7817. if test "$aix_use_runtimelinking" = yes; then
  7818. shared_flag='${wl}-G'
  7819. else
  7820. shared_flag='${wl}-bM:SRE'
  7821. fi
  7822. fi
  7823. fi
  7824. export_dynamic_flag_spec='${wl}-bexpall'
  7825. # It seems that -bexpall does not export symbols beginning with
  7826. # underscore (_), so it is better to generate a list of symbols to export.
  7827. always_export_symbols=yes
  7828. if test "$aix_use_runtimelinking" = yes; then
  7829. # Warning - without using the other runtime loading flags (-brtl),
  7830. # -berok will link without error, but may produce a broken library.
  7831. allow_undefined_flag='-berok'
  7832. # Determine the default libpath from the value encoded in an
  7833. # empty executable.
  7834. if test "${lt_cv_aix_libpath+set}" = set; then
  7835. aix_libpath=$lt_cv_aix_libpath
  7836. else
  7837. if ${lt_cv_aix_libpath_+:} false; then :
  7838. $as_echo_n "(cached) " >&6
  7839. else
  7840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7841. /* end confdefs.h. */
  7842. int
  7843. main ()
  7844. {
  7845. ;
  7846. return 0;
  7847. }
  7848. _ACEOF
  7849. if ac_fn_c_try_link "$LINENO"; then :
  7850. lt_aix_libpath_sed='
  7851. /Import File Strings/,/^$/ {
  7852. /^0/ {
  7853. s/^0 *\([^ ]*\) *$/\1/
  7854. p
  7855. }
  7856. }'
  7857. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7858. # Check for a 64-bit object if we didn't find anything.
  7859. if test -z "$lt_cv_aix_libpath_"; then
  7860. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7861. fi
  7862. fi
  7863. rm -f core conftest.err conftest.$ac_objext \
  7864. conftest$ac_exeext conftest.$ac_ext
  7865. if test -z "$lt_cv_aix_libpath_"; then
  7866. lt_cv_aix_libpath_="/usr/lib:/lib"
  7867. fi
  7868. fi
  7869. aix_libpath=$lt_cv_aix_libpath_
  7870. fi
  7871. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7872. 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"
  7873. else
  7874. if test "$host_cpu" = ia64; then
  7875. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7876. allow_undefined_flag="-z nodefs"
  7877. 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"
  7878. else
  7879. # Determine the default libpath from the value encoded in an
  7880. # empty executable.
  7881. if test "${lt_cv_aix_libpath+set}" = set; then
  7882. aix_libpath=$lt_cv_aix_libpath
  7883. else
  7884. if ${lt_cv_aix_libpath_+:} false; then :
  7885. $as_echo_n "(cached) " >&6
  7886. else
  7887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7888. /* end confdefs.h. */
  7889. int
  7890. main ()
  7891. {
  7892. ;
  7893. return 0;
  7894. }
  7895. _ACEOF
  7896. if ac_fn_c_try_link "$LINENO"; then :
  7897. lt_aix_libpath_sed='
  7898. /Import File Strings/,/^$/ {
  7899. /^0/ {
  7900. s/^0 *\([^ ]*\) *$/\1/
  7901. p
  7902. }
  7903. }'
  7904. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7905. # Check for a 64-bit object if we didn't find anything.
  7906. if test -z "$lt_cv_aix_libpath_"; then
  7907. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7908. fi
  7909. fi
  7910. rm -f core conftest.err conftest.$ac_objext \
  7911. conftest$ac_exeext conftest.$ac_ext
  7912. if test -z "$lt_cv_aix_libpath_"; then
  7913. lt_cv_aix_libpath_="/usr/lib:/lib"
  7914. fi
  7915. fi
  7916. aix_libpath=$lt_cv_aix_libpath_
  7917. fi
  7918. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7919. # Warning - without using the other run time loading flags,
  7920. # -berok will link without error, but may produce a broken library.
  7921. no_undefined_flag=' ${wl}-bernotok'
  7922. allow_undefined_flag=' ${wl}-berok'
  7923. if test "$with_gnu_ld" = yes; then
  7924. # We only use this code for GNU lds that support --whole-archive.
  7925. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7926. else
  7927. # Exported symbols can be pulled into shared objects from archives
  7928. whole_archive_flag_spec='$convenience'
  7929. fi
  7930. archive_cmds_need_lc=yes
  7931. # This is similar to how AIX traditionally builds its shared libraries.
  7932. 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'
  7933. fi
  7934. fi
  7935. ;;
  7936. amigaos*)
  7937. case $host_cpu in
  7938. powerpc)
  7939. # see comment about AmigaOS4 .so support
  7940. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7941. archive_expsym_cmds=''
  7942. ;;
  7943. m68k)
  7944. 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)'
  7945. hardcode_libdir_flag_spec='-L$libdir'
  7946. hardcode_minus_L=yes
  7947. ;;
  7948. esac
  7949. ;;
  7950. bsdi[45]*)
  7951. export_dynamic_flag_spec=-rdynamic
  7952. ;;
  7953. cygwin* | mingw* | pw32* | cegcc*)
  7954. # When not using gcc, we currently assume that we are using
  7955. # Microsoft Visual C++.
  7956. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7957. # no search path for DLLs.
  7958. case $cc_basename in
  7959. cl*)
  7960. # Native MSVC
  7961. hardcode_libdir_flag_spec=' '
  7962. allow_undefined_flag=unsupported
  7963. always_export_symbols=yes
  7964. file_list_spec='@'
  7965. # Tell ltmain to make .lib files, not .a files.
  7966. libext=lib
  7967. # Tell ltmain to make .dll files, not .so files.
  7968. shrext_cmds=".dll"
  7969. # FIXME: Setting linknames here is a bad hack.
  7970. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7971. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7972. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7973. else
  7974. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7975. fi~
  7976. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7977. linknames='
  7978. # The linker will not automatically build a static lib if we build a DLL.
  7979. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7980. enable_shared_with_static_runtimes=yes
  7981. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7982. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7983. # Don't use ranlib
  7984. old_postinstall_cmds='chmod 644 $oldlib'
  7985. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7986. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7987. case $lt_outputfile in
  7988. *.exe|*.EXE) ;;
  7989. *)
  7990. lt_outputfile="$lt_outputfile.exe"
  7991. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7992. ;;
  7993. esac~
  7994. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7995. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7996. $RM "$lt_outputfile.manifest";
  7997. fi'
  7998. ;;
  7999. *)
  8000. # Assume MSVC wrapper
  8001. hardcode_libdir_flag_spec=' '
  8002. allow_undefined_flag=unsupported
  8003. # Tell ltmain to make .lib files, not .a files.
  8004. libext=lib
  8005. # Tell ltmain to make .dll files, not .so files.
  8006. shrext_cmds=".dll"
  8007. # FIXME: Setting linknames here is a bad hack.
  8008. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8009. # The linker will automatically build a .lib file if we build a DLL.
  8010. old_archive_from_new_cmds='true'
  8011. # FIXME: Should let the user specify the lib program.
  8012. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8013. enable_shared_with_static_runtimes=yes
  8014. ;;
  8015. esac
  8016. ;;
  8017. darwin* | rhapsody*)
  8018. archive_cmds_need_lc=no
  8019. hardcode_direct=no
  8020. hardcode_automatic=yes
  8021. hardcode_shlibpath_var=unsupported
  8022. if test "$lt_cv_ld_force_load" = "yes"; then
  8023. 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\"`'
  8024. else
  8025. whole_archive_flag_spec=''
  8026. fi
  8027. link_all_deplibs=yes
  8028. allow_undefined_flag="$_lt_dar_allow_undefined"
  8029. case $cc_basename in
  8030. ifort*) _lt_dar_can_shared=yes ;;
  8031. *) _lt_dar_can_shared=$GCC ;;
  8032. esac
  8033. if test "$_lt_dar_can_shared" = "yes"; then
  8034. output_verbose_link_cmd=func_echo_all
  8035. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8036. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8037. 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}"
  8038. 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}"
  8039. else
  8040. ld_shlibs=no
  8041. fi
  8042. ;;
  8043. dgux*)
  8044. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8045. hardcode_libdir_flag_spec='-L$libdir'
  8046. hardcode_shlibpath_var=no
  8047. ;;
  8048. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8049. # support. Future versions do this automatically, but an explicit c++rt0.o
  8050. # does not break anything, and helps significantly (at the cost of a little
  8051. # extra space).
  8052. freebsd2.2*)
  8053. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8054. hardcode_libdir_flag_spec='-R$libdir'
  8055. hardcode_direct=yes
  8056. hardcode_shlibpath_var=no
  8057. ;;
  8058. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8059. freebsd2.*)
  8060. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8061. hardcode_direct=yes
  8062. hardcode_minus_L=yes
  8063. hardcode_shlibpath_var=no
  8064. ;;
  8065. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8066. freebsd* | dragonfly*)
  8067. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8068. hardcode_libdir_flag_spec='-R$libdir'
  8069. hardcode_direct=yes
  8070. hardcode_shlibpath_var=no
  8071. ;;
  8072. hpux9*)
  8073. if test "$GCC" = yes; then
  8074. 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'
  8075. else
  8076. 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'
  8077. fi
  8078. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8079. hardcode_libdir_separator=:
  8080. hardcode_direct=yes
  8081. # hardcode_minus_L: Not really in the search PATH,
  8082. # but as the default location of the library.
  8083. hardcode_minus_L=yes
  8084. export_dynamic_flag_spec='${wl}-E'
  8085. ;;
  8086. hpux10*)
  8087. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8088. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8089. else
  8090. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8091. fi
  8092. if test "$with_gnu_ld" = no; then
  8093. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8094. hardcode_libdir_separator=:
  8095. hardcode_direct=yes
  8096. hardcode_direct_absolute=yes
  8097. export_dynamic_flag_spec='${wl}-E'
  8098. # hardcode_minus_L: Not really in the search PATH,
  8099. # but as the default location of the library.
  8100. hardcode_minus_L=yes
  8101. fi
  8102. ;;
  8103. hpux11*)
  8104. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8105. case $host_cpu in
  8106. hppa*64*)
  8107. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8108. ;;
  8109. ia64*)
  8110. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8111. ;;
  8112. *)
  8113. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8114. ;;
  8115. esac
  8116. else
  8117. case $host_cpu in
  8118. hppa*64*)
  8119. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8120. ;;
  8121. ia64*)
  8122. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8123. ;;
  8124. *)
  8125. # Older versions of the 11.00 compiler do not understand -b yet
  8126. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8128. $as_echo_n "checking if $CC understands -b... " >&6; }
  8129. if ${lt_cv_prog_compiler__b+:} false; then :
  8130. $as_echo_n "(cached) " >&6
  8131. else
  8132. lt_cv_prog_compiler__b=no
  8133. save_LDFLAGS="$LDFLAGS"
  8134. LDFLAGS="$LDFLAGS -b"
  8135. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8136. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8137. # The linker can only warn and ignore the option if not recognized
  8138. # So say no if there are warnings
  8139. if test -s conftest.err; then
  8140. # Append any errors to the config.log.
  8141. cat conftest.err 1>&5
  8142. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8143. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8144. if diff conftest.exp conftest.er2 >/dev/null; then
  8145. lt_cv_prog_compiler__b=yes
  8146. fi
  8147. else
  8148. lt_cv_prog_compiler__b=yes
  8149. fi
  8150. fi
  8151. $RM -r conftest*
  8152. LDFLAGS="$save_LDFLAGS"
  8153. fi
  8154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8155. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8156. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8157. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8158. else
  8159. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8160. fi
  8161. ;;
  8162. esac
  8163. fi
  8164. if test "$with_gnu_ld" = no; then
  8165. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8166. hardcode_libdir_separator=:
  8167. case $host_cpu in
  8168. hppa*64*|ia64*)
  8169. hardcode_direct=no
  8170. hardcode_shlibpath_var=no
  8171. ;;
  8172. *)
  8173. hardcode_direct=yes
  8174. hardcode_direct_absolute=yes
  8175. export_dynamic_flag_spec='${wl}-E'
  8176. # hardcode_minus_L: Not really in the search PATH,
  8177. # but as the default location of the library.
  8178. hardcode_minus_L=yes
  8179. ;;
  8180. esac
  8181. fi
  8182. ;;
  8183. irix5* | irix6* | nonstopux*)
  8184. if test "$GCC" = yes; then
  8185. 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'
  8186. # Try to use the -exported_symbol ld option, if it does not
  8187. # work, assume that -exports_file does not work either and
  8188. # implicitly export all symbols.
  8189. # This should be the same for all languages, so no per-tag cache variable.
  8190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8191. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8192. if ${lt_cv_irix_exported_symbol+:} false; then :
  8193. $as_echo_n "(cached) " >&6
  8194. else
  8195. save_LDFLAGS="$LDFLAGS"
  8196. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8198. /* end confdefs.h. */
  8199. int foo (void) { return 0; }
  8200. _ACEOF
  8201. if ac_fn_c_try_link "$LINENO"; then :
  8202. lt_cv_irix_exported_symbol=yes
  8203. else
  8204. lt_cv_irix_exported_symbol=no
  8205. fi
  8206. rm -f core conftest.err conftest.$ac_objext \
  8207. conftest$ac_exeext conftest.$ac_ext
  8208. LDFLAGS="$save_LDFLAGS"
  8209. fi
  8210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8211. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8212. if test "$lt_cv_irix_exported_symbol" = yes; then
  8213. 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'
  8214. fi
  8215. else
  8216. 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'
  8217. 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'
  8218. fi
  8219. archive_cmds_need_lc='no'
  8220. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8221. hardcode_libdir_separator=:
  8222. inherit_rpath=yes
  8223. link_all_deplibs=yes
  8224. ;;
  8225. netbsd*)
  8226. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8227. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8228. else
  8229. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8230. fi
  8231. hardcode_libdir_flag_spec='-R$libdir'
  8232. hardcode_direct=yes
  8233. hardcode_shlibpath_var=no
  8234. ;;
  8235. newsos6)
  8236. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8237. hardcode_direct=yes
  8238. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8239. hardcode_libdir_separator=:
  8240. hardcode_shlibpath_var=no
  8241. ;;
  8242. *nto* | *qnx*)
  8243. ;;
  8244. openbsd*)
  8245. if test -f /usr/libexec/ld.so; then
  8246. hardcode_direct=yes
  8247. hardcode_shlibpath_var=no
  8248. hardcode_direct_absolute=yes
  8249. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8250. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8251. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8252. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8253. export_dynamic_flag_spec='${wl}-E'
  8254. else
  8255. case $host_os in
  8256. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8257. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8258. hardcode_libdir_flag_spec='-R$libdir'
  8259. ;;
  8260. *)
  8261. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8262. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8263. ;;
  8264. esac
  8265. fi
  8266. else
  8267. ld_shlibs=no
  8268. fi
  8269. ;;
  8270. os2*)
  8271. hardcode_libdir_flag_spec='-L$libdir'
  8272. hardcode_minus_L=yes
  8273. allow_undefined_flag=unsupported
  8274. 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'
  8275. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8276. ;;
  8277. osf3*)
  8278. if test "$GCC" = yes; then
  8279. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8280. 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'
  8281. else
  8282. allow_undefined_flag=' -expect_unresolved \*'
  8283. 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'
  8284. fi
  8285. archive_cmds_need_lc='no'
  8286. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8287. hardcode_libdir_separator=:
  8288. ;;
  8289. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8290. if test "$GCC" = yes; then
  8291. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8292. 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'
  8293. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8294. else
  8295. allow_undefined_flag=' -expect_unresolved \*'
  8296. 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'
  8297. 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~
  8298. $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'
  8299. # Both c and cxx compiler support -rpath directly
  8300. hardcode_libdir_flag_spec='-rpath $libdir'
  8301. fi
  8302. archive_cmds_need_lc='no'
  8303. hardcode_libdir_separator=:
  8304. ;;
  8305. solaris*)
  8306. no_undefined_flag=' -z defs'
  8307. if test "$GCC" = yes; then
  8308. wlarc='${wl}'
  8309. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8310. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8311. $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'
  8312. else
  8313. case `$CC -V 2>&1` in
  8314. *"Compilers 5.0"*)
  8315. wlarc=''
  8316. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8317. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8318. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8319. ;;
  8320. *)
  8321. wlarc='${wl}'
  8322. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8323. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8324. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8325. ;;
  8326. esac
  8327. fi
  8328. hardcode_libdir_flag_spec='-R$libdir'
  8329. hardcode_shlibpath_var=no
  8330. case $host_os in
  8331. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8332. *)
  8333. # The compiler driver will combine and reorder linker options,
  8334. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8335. # but is careful enough not to reorder.
  8336. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8337. if test "$GCC" = yes; then
  8338. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8339. else
  8340. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8341. fi
  8342. ;;
  8343. esac
  8344. link_all_deplibs=yes
  8345. ;;
  8346. sunos4*)
  8347. if test "x$host_vendor" = xsequent; then
  8348. # Use $CC to link under sequent, because it throws in some extra .o
  8349. # files that make .init and .fini sections work.
  8350. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8351. else
  8352. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8353. fi
  8354. hardcode_libdir_flag_spec='-L$libdir'
  8355. hardcode_direct=yes
  8356. hardcode_minus_L=yes
  8357. hardcode_shlibpath_var=no
  8358. ;;
  8359. sysv4)
  8360. case $host_vendor in
  8361. sni)
  8362. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8363. hardcode_direct=yes # is this really true???
  8364. ;;
  8365. siemens)
  8366. ## LD is ld it makes a PLAMLIB
  8367. ## CC just makes a GrossModule.
  8368. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8369. reload_cmds='$CC -r -o $output$reload_objs'
  8370. hardcode_direct=no
  8371. ;;
  8372. motorola)
  8373. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8374. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8375. ;;
  8376. esac
  8377. runpath_var='LD_RUN_PATH'
  8378. hardcode_shlibpath_var=no
  8379. ;;
  8380. sysv4.3*)
  8381. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8382. hardcode_shlibpath_var=no
  8383. export_dynamic_flag_spec='-Bexport'
  8384. ;;
  8385. sysv4*MP*)
  8386. if test -d /usr/nec; then
  8387. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8388. hardcode_shlibpath_var=no
  8389. runpath_var=LD_RUN_PATH
  8390. hardcode_runpath_var=yes
  8391. ld_shlibs=yes
  8392. fi
  8393. ;;
  8394. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8395. no_undefined_flag='${wl}-z,text'
  8396. archive_cmds_need_lc=no
  8397. hardcode_shlibpath_var=no
  8398. runpath_var='LD_RUN_PATH'
  8399. if test "$GCC" = yes; then
  8400. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8401. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8402. else
  8403. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8404. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8405. fi
  8406. ;;
  8407. sysv5* | sco3.2v5* | sco5v6*)
  8408. # Note: We can NOT use -z defs as we might desire, because we do not
  8409. # link with -lc, and that would cause any symbols used from libc to
  8410. # always be unresolved, which means just about no library would
  8411. # ever link correctly. If we're not using GNU ld we use -z text
  8412. # though, which does catch some bad symbols but isn't as heavy-handed
  8413. # as -z defs.
  8414. no_undefined_flag='${wl}-z,text'
  8415. allow_undefined_flag='${wl}-z,nodefs'
  8416. archive_cmds_need_lc=no
  8417. hardcode_shlibpath_var=no
  8418. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8419. hardcode_libdir_separator=':'
  8420. link_all_deplibs=yes
  8421. export_dynamic_flag_spec='${wl}-Bexport'
  8422. runpath_var='LD_RUN_PATH'
  8423. if test "$GCC" = yes; then
  8424. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8425. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8426. else
  8427. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8428. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8429. fi
  8430. ;;
  8431. uts4*)
  8432. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8433. hardcode_libdir_flag_spec='-L$libdir'
  8434. hardcode_shlibpath_var=no
  8435. ;;
  8436. *)
  8437. ld_shlibs=no
  8438. ;;
  8439. esac
  8440. if test x$host_vendor = xsni; then
  8441. case $host in
  8442. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8443. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8444. ;;
  8445. esac
  8446. fi
  8447. fi
  8448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8449. $as_echo "$ld_shlibs" >&6; }
  8450. test "$ld_shlibs" = no && can_build_shared=no
  8451. with_gnu_ld=$with_gnu_ld
  8452. #
  8453. # Do we need to explicitly link libc?
  8454. #
  8455. case "x$archive_cmds_need_lc" in
  8456. x|xyes)
  8457. # Assume -lc should be added
  8458. archive_cmds_need_lc=yes
  8459. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8460. case $archive_cmds in
  8461. *'~'*)
  8462. # FIXME: we may have to deal with multi-command sequences.
  8463. ;;
  8464. '$CC '*)
  8465. # Test whether the compiler implicitly links with -lc since on some
  8466. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8467. # to ld, don't add -lc before -lgcc.
  8468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8469. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8470. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8471. $as_echo_n "(cached) " >&6
  8472. else
  8473. $RM conftest*
  8474. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8475. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8476. (eval $ac_compile) 2>&5
  8477. ac_status=$?
  8478. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8479. test $ac_status = 0; } 2>conftest.err; then
  8480. soname=conftest
  8481. lib=conftest
  8482. libobjs=conftest.$ac_objext
  8483. deplibs=
  8484. wl=$lt_prog_compiler_wl
  8485. pic_flag=$lt_prog_compiler_pic
  8486. compiler_flags=-v
  8487. linker_flags=-v
  8488. verstring=
  8489. output_objdir=.
  8490. libname=conftest
  8491. lt_save_allow_undefined_flag=$allow_undefined_flag
  8492. allow_undefined_flag=
  8493. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8494. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8495. ac_status=$?
  8496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8497. test $ac_status = 0; }
  8498. then
  8499. lt_cv_archive_cmds_need_lc=no
  8500. else
  8501. lt_cv_archive_cmds_need_lc=yes
  8502. fi
  8503. allow_undefined_flag=$lt_save_allow_undefined_flag
  8504. else
  8505. cat conftest.err 1>&5
  8506. fi
  8507. $RM conftest*
  8508. fi
  8509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8510. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8511. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8512. ;;
  8513. esac
  8514. fi
  8515. ;;
  8516. esac
  8517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8518. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8519. if test "$GCC" = yes; then
  8520. case $host_os in
  8521. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8522. *) lt_awk_arg="/^libraries:/" ;;
  8523. esac
  8524. case $host_os in
  8525. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8526. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8527. esac
  8528. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8529. case $lt_search_path_spec in
  8530. *\;*)
  8531. # if the path contains ";" then we assume it to be the separator
  8532. # otherwise default to the standard path separator (i.e. ":") - it is
  8533. # assumed that no part of a normal pathname contains ";" but that should
  8534. # okay in the real world where ";" in dirpaths is itself problematic.
  8535. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8536. ;;
  8537. *)
  8538. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8539. ;;
  8540. esac
  8541. # Ok, now we have the path, separated by spaces, we can step through it
  8542. # and add multilib dir if necessary.
  8543. lt_tmp_lt_search_path_spec=
  8544. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8545. for lt_sys_path in $lt_search_path_spec; do
  8546. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8547. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8548. else
  8549. test -d "$lt_sys_path" && \
  8550. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8551. fi
  8552. done
  8553. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8554. BEGIN {RS=" "; FS="/|\n";} {
  8555. lt_foo="";
  8556. lt_count=0;
  8557. for (lt_i = NF; lt_i > 0; lt_i--) {
  8558. if ($lt_i != "" && $lt_i != ".") {
  8559. if ($lt_i == "..") {
  8560. lt_count++;
  8561. } else {
  8562. if (lt_count == 0) {
  8563. lt_foo="/" $lt_i lt_foo;
  8564. } else {
  8565. lt_count--;
  8566. }
  8567. }
  8568. }
  8569. }
  8570. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8571. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8572. }'`
  8573. # AWK program above erroneously prepends '/' to C:/dos/paths
  8574. # for these hosts.
  8575. case $host_os in
  8576. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8577. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8578. esac
  8579. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8580. else
  8581. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8582. fi
  8583. library_names_spec=
  8584. libname_spec='lib$name'
  8585. soname_spec=
  8586. shrext_cmds=".so"
  8587. postinstall_cmds=
  8588. postuninstall_cmds=
  8589. finish_cmds=
  8590. finish_eval=
  8591. shlibpath_var=
  8592. shlibpath_overrides_runpath=unknown
  8593. version_type=none
  8594. dynamic_linker="$host_os ld.so"
  8595. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8596. need_lib_prefix=unknown
  8597. hardcode_into_libs=no
  8598. # when you set need_version to no, make sure it does not cause -set_version
  8599. # flags to be left without arguments
  8600. need_version=unknown
  8601. case $host_os in
  8602. aix3*)
  8603. version_type=linux # correct to gnu/linux during the next big refactor
  8604. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8605. shlibpath_var=LIBPATH
  8606. # AIX 3 has no versioning support, so we append a major version to the name.
  8607. soname_spec='${libname}${release}${shared_ext}$major'
  8608. ;;
  8609. aix[4-9]*)
  8610. version_type=linux # correct to gnu/linux during the next big refactor
  8611. need_lib_prefix=no
  8612. need_version=no
  8613. hardcode_into_libs=yes
  8614. if test "$host_cpu" = ia64; then
  8615. # AIX 5 supports IA64
  8616. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8617. shlibpath_var=LD_LIBRARY_PATH
  8618. else
  8619. # With GCC up to 2.95.x, collect2 would create an import file
  8620. # for dependence libraries. The import file would start with
  8621. # the line `#! .'. This would cause the generated library to
  8622. # depend on `.', always an invalid library. This was fixed in
  8623. # development snapshots of GCC prior to 3.0.
  8624. case $host_os in
  8625. aix4 | aix4.[01] | aix4.[01].*)
  8626. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8627. echo ' yes '
  8628. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8629. :
  8630. else
  8631. can_build_shared=no
  8632. fi
  8633. ;;
  8634. esac
  8635. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8636. # soname into executable. Probably we can add versioning support to
  8637. # collect2, so additional links can be useful in future.
  8638. if test "$aix_use_runtimelinking" = yes; then
  8639. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8640. # instead of lib<name>.a to let people know that these are not
  8641. # typical AIX shared libraries.
  8642. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8643. else
  8644. # We preserve .a as extension for shared libraries through AIX4.2
  8645. # and later when we are not doing run time linking.
  8646. library_names_spec='${libname}${release}.a $libname.a'
  8647. soname_spec='${libname}${release}${shared_ext}$major'
  8648. fi
  8649. shlibpath_var=LIBPATH
  8650. fi
  8651. ;;
  8652. amigaos*)
  8653. case $host_cpu in
  8654. powerpc)
  8655. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8656. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8657. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8658. ;;
  8659. m68k)
  8660. library_names_spec='$libname.ixlibrary $libname.a'
  8661. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8662. 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'
  8663. ;;
  8664. esac
  8665. ;;
  8666. beos*)
  8667. library_names_spec='${libname}${shared_ext}'
  8668. dynamic_linker="$host_os ld.so"
  8669. shlibpath_var=LIBRARY_PATH
  8670. ;;
  8671. bsdi[45]*)
  8672. version_type=linux # correct to gnu/linux during the next big refactor
  8673. need_version=no
  8674. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8675. soname_spec='${libname}${release}${shared_ext}$major'
  8676. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8677. shlibpath_var=LD_LIBRARY_PATH
  8678. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8679. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8680. # the default ld.so.conf also contains /usr/contrib/lib and
  8681. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8682. # libtool to hard-code these into programs
  8683. ;;
  8684. cygwin* | mingw* | pw32* | cegcc*)
  8685. version_type=windows
  8686. shrext_cmds=".dll"
  8687. need_version=no
  8688. need_lib_prefix=no
  8689. case $GCC,$cc_basename in
  8690. yes,*)
  8691. # gcc
  8692. library_names_spec='$libname.dll.a'
  8693. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8694. postinstall_cmds='base_file=`basename \${file}`~
  8695. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8696. dldir=$destdir/`dirname \$dlpath`~
  8697. test -d \$dldir || mkdir -p \$dldir~
  8698. $install_prog $dir/$dlname \$dldir/$dlname~
  8699. chmod a+x \$dldir/$dlname~
  8700. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8701. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8702. fi'
  8703. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8704. dlpath=$dir/\$dldll~
  8705. $RM \$dlpath'
  8706. shlibpath_overrides_runpath=yes
  8707. case $host_os in
  8708. cygwin*)
  8709. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8710. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8711. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8712. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8713. ;;
  8714. mingw* | cegcc*)
  8715. # MinGW DLLs use traditional 'lib' prefix
  8716. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8717. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8718. ;;
  8719. pw32*)
  8720. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8721. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8722. ;;
  8723. esac
  8724. dynamic_linker='Win32 ld.exe'
  8725. ;;
  8726. *,cl*)
  8727. # Native MSVC
  8728. libname_spec='$name'
  8729. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8730. library_names_spec='${libname}.dll.lib'
  8731. case $build_os in
  8732. mingw*)
  8733. sys_lib_search_path_spec=
  8734. lt_save_ifs=$IFS
  8735. IFS=';'
  8736. for lt_path in $LIB
  8737. do
  8738. IFS=$lt_save_ifs
  8739. # Let DOS variable expansion print the short 8.3 style file name.
  8740. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8741. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8742. done
  8743. IFS=$lt_save_ifs
  8744. # Convert to MSYS style.
  8745. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8746. ;;
  8747. cygwin*)
  8748. # Convert to unix form, then to dos form, then back to unix form
  8749. # but this time dos style (no spaces!) so that the unix form looks
  8750. # like /cygdrive/c/PROGRA~1:/cygdr...
  8751. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8752. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8753. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8754. ;;
  8755. *)
  8756. sys_lib_search_path_spec="$LIB"
  8757. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8758. # It is most probably a Windows format PATH.
  8759. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8760. else
  8761. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8762. fi
  8763. # FIXME: find the short name or the path components, as spaces are
  8764. # common. (e.g. "Program Files" -> "PROGRA~1")
  8765. ;;
  8766. esac
  8767. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8768. postinstall_cmds='base_file=`basename \${file}`~
  8769. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8770. dldir=$destdir/`dirname \$dlpath`~
  8771. test -d \$dldir || mkdir -p \$dldir~
  8772. $install_prog $dir/$dlname \$dldir/$dlname'
  8773. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8774. dlpath=$dir/\$dldll~
  8775. $RM \$dlpath'
  8776. shlibpath_overrides_runpath=yes
  8777. dynamic_linker='Win32 link.exe'
  8778. ;;
  8779. *)
  8780. # Assume MSVC wrapper
  8781. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8782. dynamic_linker='Win32 ld.exe'
  8783. ;;
  8784. esac
  8785. # FIXME: first we should search . and the directory the executable is in
  8786. shlibpath_var=PATH
  8787. ;;
  8788. darwin* | rhapsody*)
  8789. dynamic_linker="$host_os dyld"
  8790. version_type=darwin
  8791. need_lib_prefix=no
  8792. need_version=no
  8793. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8794. soname_spec='${libname}${release}${major}$shared_ext'
  8795. shlibpath_overrides_runpath=yes
  8796. shlibpath_var=DYLD_LIBRARY_PATH
  8797. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8798. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8799. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8800. ;;
  8801. dgux*)
  8802. version_type=linux # correct to gnu/linux during the next big refactor
  8803. need_lib_prefix=no
  8804. need_version=no
  8805. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8806. soname_spec='${libname}${release}${shared_ext}$major'
  8807. shlibpath_var=LD_LIBRARY_PATH
  8808. ;;
  8809. freebsd* | dragonfly*)
  8810. # DragonFly does not have aout. When/if they implement a new
  8811. # versioning mechanism, adjust this.
  8812. if test -x /usr/bin/objformat; then
  8813. objformat=`/usr/bin/objformat`
  8814. else
  8815. case $host_os in
  8816. freebsd[23].*) objformat=aout ;;
  8817. *) objformat=elf ;;
  8818. esac
  8819. fi
  8820. version_type=freebsd-$objformat
  8821. case $version_type in
  8822. freebsd-elf*)
  8823. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8824. need_version=no
  8825. need_lib_prefix=no
  8826. ;;
  8827. freebsd-*)
  8828. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8829. need_version=yes
  8830. ;;
  8831. esac
  8832. shlibpath_var=LD_LIBRARY_PATH
  8833. case $host_os in
  8834. freebsd2.*)
  8835. shlibpath_overrides_runpath=yes
  8836. ;;
  8837. freebsd3.[01]* | freebsdelf3.[01]*)
  8838. shlibpath_overrides_runpath=yes
  8839. hardcode_into_libs=yes
  8840. ;;
  8841. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8842. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8843. shlibpath_overrides_runpath=no
  8844. hardcode_into_libs=yes
  8845. ;;
  8846. *) # from 4.6 on, and DragonFly
  8847. shlibpath_overrides_runpath=yes
  8848. hardcode_into_libs=yes
  8849. ;;
  8850. esac
  8851. ;;
  8852. gnu*)
  8853. version_type=linux # correct to gnu/linux during the next big refactor
  8854. need_lib_prefix=no
  8855. need_version=no
  8856. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8857. soname_spec='${libname}${release}${shared_ext}$major'
  8858. shlibpath_var=LD_LIBRARY_PATH
  8859. shlibpath_overrides_runpath=no
  8860. hardcode_into_libs=yes
  8861. ;;
  8862. haiku*)
  8863. version_type=linux # correct to gnu/linux during the next big refactor
  8864. need_lib_prefix=no
  8865. need_version=no
  8866. dynamic_linker="$host_os runtime_loader"
  8867. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8868. soname_spec='${libname}${release}${shared_ext}$major'
  8869. shlibpath_var=LIBRARY_PATH
  8870. shlibpath_overrides_runpath=yes
  8871. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8872. hardcode_into_libs=yes
  8873. ;;
  8874. hpux9* | hpux10* | hpux11*)
  8875. # Give a soname corresponding to the major version so that dld.sl refuses to
  8876. # link against other versions.
  8877. version_type=sunos
  8878. need_lib_prefix=no
  8879. need_version=no
  8880. case $host_cpu in
  8881. ia64*)
  8882. shrext_cmds='.so'
  8883. hardcode_into_libs=yes
  8884. dynamic_linker="$host_os dld.so"
  8885. shlibpath_var=LD_LIBRARY_PATH
  8886. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8887. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8888. soname_spec='${libname}${release}${shared_ext}$major'
  8889. if test "X$HPUX_IA64_MODE" = X32; then
  8890. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8891. else
  8892. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8893. fi
  8894. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8895. ;;
  8896. hppa*64*)
  8897. shrext_cmds='.sl'
  8898. hardcode_into_libs=yes
  8899. dynamic_linker="$host_os dld.sl"
  8900. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8901. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8903. soname_spec='${libname}${release}${shared_ext}$major'
  8904. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8905. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8906. ;;
  8907. *)
  8908. shrext_cmds='.sl'
  8909. dynamic_linker="$host_os dld.sl"
  8910. shlibpath_var=SHLIB_PATH
  8911. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8912. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8913. soname_spec='${libname}${release}${shared_ext}$major'
  8914. ;;
  8915. esac
  8916. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8917. postinstall_cmds='chmod 555 $lib'
  8918. # or fails outright, so override atomically:
  8919. install_override_mode=555
  8920. ;;
  8921. interix[3-9]*)
  8922. version_type=linux # correct to gnu/linux during the next big refactor
  8923. need_lib_prefix=no
  8924. need_version=no
  8925. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8926. soname_spec='${libname}${release}${shared_ext}$major'
  8927. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8928. shlibpath_var=LD_LIBRARY_PATH
  8929. shlibpath_overrides_runpath=no
  8930. hardcode_into_libs=yes
  8931. ;;
  8932. irix5* | irix6* | nonstopux*)
  8933. case $host_os in
  8934. nonstopux*) version_type=nonstopux ;;
  8935. *)
  8936. if test "$lt_cv_prog_gnu_ld" = yes; then
  8937. version_type=linux # correct to gnu/linux during the next big refactor
  8938. else
  8939. version_type=irix
  8940. fi ;;
  8941. esac
  8942. need_lib_prefix=no
  8943. need_version=no
  8944. soname_spec='${libname}${release}${shared_ext}$major'
  8945. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8946. case $host_os in
  8947. irix5* | nonstopux*)
  8948. libsuff= shlibsuff=
  8949. ;;
  8950. *)
  8951. case $LD in # libtool.m4 will add one of these switches to LD
  8952. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8953. libsuff= shlibsuff= libmagic=32-bit;;
  8954. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8955. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8956. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8957. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8958. *) libsuff= shlibsuff= libmagic=never-match;;
  8959. esac
  8960. ;;
  8961. esac
  8962. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8963. shlibpath_overrides_runpath=no
  8964. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8965. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8966. hardcode_into_libs=yes
  8967. ;;
  8968. # No shared lib support for Linux oldld, aout, or coff.
  8969. linux*oldld* | linux*aout* | linux*coff*)
  8970. dynamic_linker=no
  8971. ;;
  8972. # This must be glibc/ELF.
  8973. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8974. version_type=linux # correct to gnu/linux during the next big refactor
  8975. need_lib_prefix=no
  8976. need_version=no
  8977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8978. soname_spec='${libname}${release}${shared_ext}$major'
  8979. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8980. shlibpath_var=LD_LIBRARY_PATH
  8981. shlibpath_overrides_runpath=no
  8982. # Some binutils ld are patched to set DT_RUNPATH
  8983. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8984. $as_echo_n "(cached) " >&6
  8985. else
  8986. lt_cv_shlibpath_overrides_runpath=no
  8987. save_LDFLAGS=$LDFLAGS
  8988. save_libdir=$libdir
  8989. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8990. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8992. /* end confdefs.h. */
  8993. int
  8994. main ()
  8995. {
  8996. ;
  8997. return 0;
  8998. }
  8999. _ACEOF
  9000. if ac_fn_c_try_link "$LINENO"; then :
  9001. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9002. lt_cv_shlibpath_overrides_runpath=yes
  9003. fi
  9004. fi
  9005. rm -f core conftest.err conftest.$ac_objext \
  9006. conftest$ac_exeext conftest.$ac_ext
  9007. LDFLAGS=$save_LDFLAGS
  9008. libdir=$save_libdir
  9009. fi
  9010. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9011. # This implies no fast_install, which is unacceptable.
  9012. # Some rework will be needed to allow for fast_install
  9013. # before this can be enabled.
  9014. hardcode_into_libs=yes
  9015. # Append ld.so.conf contents to the search path
  9016. if test -f /etc/ld.so.conf; then
  9017. 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' ' '`
  9018. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9019. fi
  9020. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9021. # powerpc, because MkLinux only supported shared libraries with the
  9022. # GNU dynamic linker. Since this was broken with cross compilers,
  9023. # most powerpc-linux boxes support dynamic linking these days and
  9024. # people can always --disable-shared, the test was removed, and we
  9025. # assume the GNU/Linux dynamic linker is in use.
  9026. dynamic_linker='GNU/Linux ld.so'
  9027. ;;
  9028. netbsd*)
  9029. version_type=sunos
  9030. need_lib_prefix=no
  9031. need_version=no
  9032. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9034. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9035. dynamic_linker='NetBSD (a.out) ld.so'
  9036. else
  9037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9038. soname_spec='${libname}${release}${shared_ext}$major'
  9039. dynamic_linker='NetBSD ld.elf_so'
  9040. fi
  9041. shlibpath_var=LD_LIBRARY_PATH
  9042. shlibpath_overrides_runpath=yes
  9043. hardcode_into_libs=yes
  9044. ;;
  9045. newsos6)
  9046. version_type=linux # correct to gnu/linux during the next big refactor
  9047. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9048. shlibpath_var=LD_LIBRARY_PATH
  9049. shlibpath_overrides_runpath=yes
  9050. ;;
  9051. *nto* | *qnx*)
  9052. version_type=qnx
  9053. need_lib_prefix=no
  9054. need_version=no
  9055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9056. soname_spec='${libname}${release}${shared_ext}$major'
  9057. shlibpath_var=LD_LIBRARY_PATH
  9058. shlibpath_overrides_runpath=no
  9059. hardcode_into_libs=yes
  9060. dynamic_linker='ldqnx.so'
  9061. ;;
  9062. openbsd*)
  9063. version_type=sunos
  9064. sys_lib_dlsearch_path_spec="/usr/lib"
  9065. need_lib_prefix=no
  9066. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9067. case $host_os in
  9068. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9069. *) need_version=no ;;
  9070. esac
  9071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9072. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9073. shlibpath_var=LD_LIBRARY_PATH
  9074. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9075. case $host_os in
  9076. openbsd2.[89] | openbsd2.[89].*)
  9077. shlibpath_overrides_runpath=no
  9078. ;;
  9079. *)
  9080. shlibpath_overrides_runpath=yes
  9081. ;;
  9082. esac
  9083. else
  9084. shlibpath_overrides_runpath=yes
  9085. fi
  9086. ;;
  9087. os2*)
  9088. libname_spec='$name'
  9089. shrext_cmds=".dll"
  9090. need_lib_prefix=no
  9091. library_names_spec='$libname${shared_ext} $libname.a'
  9092. dynamic_linker='OS/2 ld.exe'
  9093. shlibpath_var=LIBPATH
  9094. ;;
  9095. osf3* | osf4* | osf5*)
  9096. version_type=osf
  9097. need_lib_prefix=no
  9098. need_version=no
  9099. soname_spec='${libname}${release}${shared_ext}$major'
  9100. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9101. shlibpath_var=LD_LIBRARY_PATH
  9102. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9103. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9104. ;;
  9105. rdos*)
  9106. dynamic_linker=no
  9107. ;;
  9108. solaris*)
  9109. version_type=linux # correct to gnu/linux during the next big refactor
  9110. need_lib_prefix=no
  9111. need_version=no
  9112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9113. soname_spec='${libname}${release}${shared_ext}$major'
  9114. shlibpath_var=LD_LIBRARY_PATH
  9115. shlibpath_overrides_runpath=yes
  9116. hardcode_into_libs=yes
  9117. # ldd complains unless libraries are executable
  9118. postinstall_cmds='chmod +x $lib'
  9119. ;;
  9120. sunos4*)
  9121. version_type=sunos
  9122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9123. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9124. shlibpath_var=LD_LIBRARY_PATH
  9125. shlibpath_overrides_runpath=yes
  9126. if test "$with_gnu_ld" = yes; then
  9127. need_lib_prefix=no
  9128. fi
  9129. need_version=yes
  9130. ;;
  9131. sysv4 | sysv4.3*)
  9132. version_type=linux # correct to gnu/linux during the next big refactor
  9133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9134. soname_spec='${libname}${release}${shared_ext}$major'
  9135. shlibpath_var=LD_LIBRARY_PATH
  9136. case $host_vendor in
  9137. sni)
  9138. shlibpath_overrides_runpath=no
  9139. need_lib_prefix=no
  9140. runpath_var=LD_RUN_PATH
  9141. ;;
  9142. siemens)
  9143. need_lib_prefix=no
  9144. ;;
  9145. motorola)
  9146. need_lib_prefix=no
  9147. need_version=no
  9148. shlibpath_overrides_runpath=no
  9149. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9150. ;;
  9151. esac
  9152. ;;
  9153. sysv4*MP*)
  9154. if test -d /usr/nec ;then
  9155. version_type=linux # correct to gnu/linux during the next big refactor
  9156. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9157. soname_spec='$libname${shared_ext}.$major'
  9158. shlibpath_var=LD_LIBRARY_PATH
  9159. fi
  9160. ;;
  9161. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9162. version_type=freebsd-elf
  9163. need_lib_prefix=no
  9164. need_version=no
  9165. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9166. soname_spec='${libname}${release}${shared_ext}$major'
  9167. shlibpath_var=LD_LIBRARY_PATH
  9168. shlibpath_overrides_runpath=yes
  9169. hardcode_into_libs=yes
  9170. if test "$with_gnu_ld" = yes; then
  9171. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9172. else
  9173. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9174. case $host_os in
  9175. sco3.2v5*)
  9176. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9177. ;;
  9178. esac
  9179. fi
  9180. sys_lib_dlsearch_path_spec='/usr/lib'
  9181. ;;
  9182. tpf*)
  9183. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9184. version_type=linux # correct to gnu/linux during the next big refactor
  9185. need_lib_prefix=no
  9186. need_version=no
  9187. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9188. shlibpath_var=LD_LIBRARY_PATH
  9189. shlibpath_overrides_runpath=no
  9190. hardcode_into_libs=yes
  9191. ;;
  9192. uts4*)
  9193. version_type=linux # correct to gnu/linux during the next big refactor
  9194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9195. soname_spec='${libname}${release}${shared_ext}$major'
  9196. shlibpath_var=LD_LIBRARY_PATH
  9197. ;;
  9198. *)
  9199. dynamic_linker=no
  9200. ;;
  9201. esac
  9202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9203. $as_echo "$dynamic_linker" >&6; }
  9204. test "$dynamic_linker" = no && can_build_shared=no
  9205. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9206. if test "$GCC" = yes; then
  9207. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9208. fi
  9209. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9210. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9211. fi
  9212. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9213. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9214. fi
  9215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9216. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9217. hardcode_action=
  9218. if test -n "$hardcode_libdir_flag_spec" ||
  9219. test -n "$runpath_var" ||
  9220. test "X$hardcode_automatic" = "Xyes" ; then
  9221. # We can hardcode non-existent directories.
  9222. if test "$hardcode_direct" != no &&
  9223. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9224. # have to relink, otherwise we might link with an installed library
  9225. # when we should be linking with a yet-to-be-installed one
  9226. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9227. test "$hardcode_minus_L" != no; then
  9228. # Linking always hardcodes the temporary library directory.
  9229. hardcode_action=relink
  9230. else
  9231. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9232. hardcode_action=immediate
  9233. fi
  9234. else
  9235. # We cannot hardcode anything, or else we can only hardcode existing
  9236. # directories.
  9237. hardcode_action=unsupported
  9238. fi
  9239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9240. $as_echo "$hardcode_action" >&6; }
  9241. if test "$hardcode_action" = relink ||
  9242. test "$inherit_rpath" = yes; then
  9243. # Fast installation is not supported
  9244. enable_fast_install=no
  9245. elif test "$shlibpath_overrides_runpath" = yes ||
  9246. test "$enable_shared" = no; then
  9247. # Fast installation is not necessary
  9248. enable_fast_install=needless
  9249. fi
  9250. if test "x$enable_dlopen" != xyes; then
  9251. enable_dlopen=unknown
  9252. enable_dlopen_self=unknown
  9253. enable_dlopen_self_static=unknown
  9254. else
  9255. lt_cv_dlopen=no
  9256. lt_cv_dlopen_libs=
  9257. case $host_os in
  9258. beos*)
  9259. lt_cv_dlopen="load_add_on"
  9260. lt_cv_dlopen_libs=
  9261. lt_cv_dlopen_self=yes
  9262. ;;
  9263. mingw* | pw32* | cegcc*)
  9264. lt_cv_dlopen="LoadLibrary"
  9265. lt_cv_dlopen_libs=
  9266. ;;
  9267. cygwin*)
  9268. lt_cv_dlopen="dlopen"
  9269. lt_cv_dlopen_libs=
  9270. ;;
  9271. darwin*)
  9272. # if libdl is installed we need to link against it
  9273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9274. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9275. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9276. $as_echo_n "(cached) " >&6
  9277. else
  9278. ac_check_lib_save_LIBS=$LIBS
  9279. LIBS="-ldl $LIBS"
  9280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9281. /* end confdefs.h. */
  9282. /* Override any GCC internal prototype to avoid an error.
  9283. Use char because int might match the return type of a GCC
  9284. builtin and then its argument prototype would still apply. */
  9285. #ifdef __cplusplus
  9286. extern "C"
  9287. #endif
  9288. char dlopen ();
  9289. int
  9290. main ()
  9291. {
  9292. return dlopen ();
  9293. ;
  9294. return 0;
  9295. }
  9296. _ACEOF
  9297. if ac_fn_c_try_link "$LINENO"; then :
  9298. ac_cv_lib_dl_dlopen=yes
  9299. else
  9300. ac_cv_lib_dl_dlopen=no
  9301. fi
  9302. rm -f core conftest.err conftest.$ac_objext \
  9303. conftest$ac_exeext conftest.$ac_ext
  9304. LIBS=$ac_check_lib_save_LIBS
  9305. fi
  9306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9307. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9308. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9309. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9310. else
  9311. lt_cv_dlopen="dyld"
  9312. lt_cv_dlopen_libs=
  9313. lt_cv_dlopen_self=yes
  9314. fi
  9315. ;;
  9316. *)
  9317. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9318. if test "x$ac_cv_func_shl_load" = xyes; then :
  9319. lt_cv_dlopen="shl_load"
  9320. else
  9321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9322. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9323. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9324. $as_echo_n "(cached) " >&6
  9325. else
  9326. ac_check_lib_save_LIBS=$LIBS
  9327. LIBS="-ldld $LIBS"
  9328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9329. /* end confdefs.h. */
  9330. /* Override any GCC internal prototype to avoid an error.
  9331. Use char because int might match the return type of a GCC
  9332. builtin and then its argument prototype would still apply. */
  9333. #ifdef __cplusplus
  9334. extern "C"
  9335. #endif
  9336. char shl_load ();
  9337. int
  9338. main ()
  9339. {
  9340. return shl_load ();
  9341. ;
  9342. return 0;
  9343. }
  9344. _ACEOF
  9345. if ac_fn_c_try_link "$LINENO"; then :
  9346. ac_cv_lib_dld_shl_load=yes
  9347. else
  9348. ac_cv_lib_dld_shl_load=no
  9349. fi
  9350. rm -f core conftest.err conftest.$ac_objext \
  9351. conftest$ac_exeext conftest.$ac_ext
  9352. LIBS=$ac_check_lib_save_LIBS
  9353. fi
  9354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9355. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9356. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9357. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9358. else
  9359. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9360. if test "x$ac_cv_func_dlopen" = xyes; then :
  9361. lt_cv_dlopen="dlopen"
  9362. else
  9363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9364. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9365. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9366. $as_echo_n "(cached) " >&6
  9367. else
  9368. ac_check_lib_save_LIBS=$LIBS
  9369. LIBS="-ldl $LIBS"
  9370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9371. /* end confdefs.h. */
  9372. /* Override any GCC internal prototype to avoid an error.
  9373. Use char because int might match the return type of a GCC
  9374. builtin and then its argument prototype would still apply. */
  9375. #ifdef __cplusplus
  9376. extern "C"
  9377. #endif
  9378. char dlopen ();
  9379. int
  9380. main ()
  9381. {
  9382. return dlopen ();
  9383. ;
  9384. return 0;
  9385. }
  9386. _ACEOF
  9387. if ac_fn_c_try_link "$LINENO"; then :
  9388. ac_cv_lib_dl_dlopen=yes
  9389. else
  9390. ac_cv_lib_dl_dlopen=no
  9391. fi
  9392. rm -f core conftest.err conftest.$ac_objext \
  9393. conftest$ac_exeext conftest.$ac_ext
  9394. LIBS=$ac_check_lib_save_LIBS
  9395. fi
  9396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9397. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9398. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9399. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9400. else
  9401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9402. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9403. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9404. $as_echo_n "(cached) " >&6
  9405. else
  9406. ac_check_lib_save_LIBS=$LIBS
  9407. LIBS="-lsvld $LIBS"
  9408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9409. /* end confdefs.h. */
  9410. /* Override any GCC internal prototype to avoid an error.
  9411. Use char because int might match the return type of a GCC
  9412. builtin and then its argument prototype would still apply. */
  9413. #ifdef __cplusplus
  9414. extern "C"
  9415. #endif
  9416. char dlopen ();
  9417. int
  9418. main ()
  9419. {
  9420. return dlopen ();
  9421. ;
  9422. return 0;
  9423. }
  9424. _ACEOF
  9425. if ac_fn_c_try_link "$LINENO"; then :
  9426. ac_cv_lib_svld_dlopen=yes
  9427. else
  9428. ac_cv_lib_svld_dlopen=no
  9429. fi
  9430. rm -f core conftest.err conftest.$ac_objext \
  9431. conftest$ac_exeext conftest.$ac_ext
  9432. LIBS=$ac_check_lib_save_LIBS
  9433. fi
  9434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9435. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9436. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9437. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9438. else
  9439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9440. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9441. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9442. $as_echo_n "(cached) " >&6
  9443. else
  9444. ac_check_lib_save_LIBS=$LIBS
  9445. LIBS="-ldld $LIBS"
  9446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9447. /* end confdefs.h. */
  9448. /* Override any GCC internal prototype to avoid an error.
  9449. Use char because int might match the return type of a GCC
  9450. builtin and then its argument prototype would still apply. */
  9451. #ifdef __cplusplus
  9452. extern "C"
  9453. #endif
  9454. char dld_link ();
  9455. int
  9456. main ()
  9457. {
  9458. return dld_link ();
  9459. ;
  9460. return 0;
  9461. }
  9462. _ACEOF
  9463. if ac_fn_c_try_link "$LINENO"; then :
  9464. ac_cv_lib_dld_dld_link=yes
  9465. else
  9466. ac_cv_lib_dld_dld_link=no
  9467. fi
  9468. rm -f core conftest.err conftest.$ac_objext \
  9469. conftest$ac_exeext conftest.$ac_ext
  9470. LIBS=$ac_check_lib_save_LIBS
  9471. fi
  9472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9473. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9474. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9475. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9476. fi
  9477. fi
  9478. fi
  9479. fi
  9480. fi
  9481. fi
  9482. ;;
  9483. esac
  9484. if test "x$lt_cv_dlopen" != xno; then
  9485. enable_dlopen=yes
  9486. else
  9487. enable_dlopen=no
  9488. fi
  9489. case $lt_cv_dlopen in
  9490. dlopen)
  9491. save_CPPFLAGS="$CPPFLAGS"
  9492. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9493. save_LDFLAGS="$LDFLAGS"
  9494. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9495. save_LIBS="$LIBS"
  9496. LIBS="$lt_cv_dlopen_libs $LIBS"
  9497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9498. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9499. if ${lt_cv_dlopen_self+:} false; then :
  9500. $as_echo_n "(cached) " >&6
  9501. else
  9502. if test "$cross_compiling" = yes; then :
  9503. lt_cv_dlopen_self=cross
  9504. else
  9505. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9506. lt_status=$lt_dlunknown
  9507. cat > conftest.$ac_ext <<_LT_EOF
  9508. #line $LINENO "configure"
  9509. #include "confdefs.h"
  9510. #if HAVE_DLFCN_H
  9511. #include <dlfcn.h>
  9512. #endif
  9513. #include <stdio.h>
  9514. #ifdef RTLD_GLOBAL
  9515. # define LT_DLGLOBAL RTLD_GLOBAL
  9516. #else
  9517. # ifdef DL_GLOBAL
  9518. # define LT_DLGLOBAL DL_GLOBAL
  9519. # else
  9520. # define LT_DLGLOBAL 0
  9521. # endif
  9522. #endif
  9523. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9524. find out it does not work in some platform. */
  9525. #ifndef LT_DLLAZY_OR_NOW
  9526. # ifdef RTLD_LAZY
  9527. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9528. # else
  9529. # ifdef DL_LAZY
  9530. # define LT_DLLAZY_OR_NOW DL_LAZY
  9531. # else
  9532. # ifdef RTLD_NOW
  9533. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9534. # else
  9535. # ifdef DL_NOW
  9536. # define LT_DLLAZY_OR_NOW DL_NOW
  9537. # else
  9538. # define LT_DLLAZY_OR_NOW 0
  9539. # endif
  9540. # endif
  9541. # endif
  9542. # endif
  9543. #endif
  9544. /* When -fvisbility=hidden is used, assume the code has been annotated
  9545. correspondingly for the symbols needed. */
  9546. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9547. int fnord () __attribute__((visibility("default")));
  9548. #endif
  9549. int fnord () { return 42; }
  9550. int main ()
  9551. {
  9552. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9553. int status = $lt_dlunknown;
  9554. if (self)
  9555. {
  9556. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9557. else
  9558. {
  9559. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9560. else puts (dlerror ());
  9561. }
  9562. /* dlclose (self); */
  9563. }
  9564. else
  9565. puts (dlerror ());
  9566. return status;
  9567. }
  9568. _LT_EOF
  9569. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9570. (eval $ac_link) 2>&5
  9571. ac_status=$?
  9572. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9573. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9574. (./conftest; exit; ) >&5 2>/dev/null
  9575. lt_status=$?
  9576. case x$lt_status in
  9577. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9578. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9579. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9580. esac
  9581. else :
  9582. # compilation failed
  9583. lt_cv_dlopen_self=no
  9584. fi
  9585. fi
  9586. rm -fr conftest*
  9587. fi
  9588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9589. $as_echo "$lt_cv_dlopen_self" >&6; }
  9590. if test "x$lt_cv_dlopen_self" = xyes; then
  9591. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9593. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9594. if ${lt_cv_dlopen_self_static+:} false; then :
  9595. $as_echo_n "(cached) " >&6
  9596. else
  9597. if test "$cross_compiling" = yes; then :
  9598. lt_cv_dlopen_self_static=cross
  9599. else
  9600. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9601. lt_status=$lt_dlunknown
  9602. cat > conftest.$ac_ext <<_LT_EOF
  9603. #line $LINENO "configure"
  9604. #include "confdefs.h"
  9605. #if HAVE_DLFCN_H
  9606. #include <dlfcn.h>
  9607. #endif
  9608. #include <stdio.h>
  9609. #ifdef RTLD_GLOBAL
  9610. # define LT_DLGLOBAL RTLD_GLOBAL
  9611. #else
  9612. # ifdef DL_GLOBAL
  9613. # define LT_DLGLOBAL DL_GLOBAL
  9614. # else
  9615. # define LT_DLGLOBAL 0
  9616. # endif
  9617. #endif
  9618. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9619. find out it does not work in some platform. */
  9620. #ifndef LT_DLLAZY_OR_NOW
  9621. # ifdef RTLD_LAZY
  9622. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9623. # else
  9624. # ifdef DL_LAZY
  9625. # define LT_DLLAZY_OR_NOW DL_LAZY
  9626. # else
  9627. # ifdef RTLD_NOW
  9628. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9629. # else
  9630. # ifdef DL_NOW
  9631. # define LT_DLLAZY_OR_NOW DL_NOW
  9632. # else
  9633. # define LT_DLLAZY_OR_NOW 0
  9634. # endif
  9635. # endif
  9636. # endif
  9637. # endif
  9638. #endif
  9639. /* When -fvisbility=hidden is used, assume the code has been annotated
  9640. correspondingly for the symbols needed. */
  9641. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9642. int fnord () __attribute__((visibility("default")));
  9643. #endif
  9644. int fnord () { return 42; }
  9645. int main ()
  9646. {
  9647. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9648. int status = $lt_dlunknown;
  9649. if (self)
  9650. {
  9651. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9652. else
  9653. {
  9654. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9655. else puts (dlerror ());
  9656. }
  9657. /* dlclose (self); */
  9658. }
  9659. else
  9660. puts (dlerror ());
  9661. return status;
  9662. }
  9663. _LT_EOF
  9664. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9665. (eval $ac_link) 2>&5
  9666. ac_status=$?
  9667. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9668. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9669. (./conftest; exit; ) >&5 2>/dev/null
  9670. lt_status=$?
  9671. case x$lt_status in
  9672. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9673. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9674. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9675. esac
  9676. else :
  9677. # compilation failed
  9678. lt_cv_dlopen_self_static=no
  9679. fi
  9680. fi
  9681. rm -fr conftest*
  9682. fi
  9683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9684. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9685. fi
  9686. CPPFLAGS="$save_CPPFLAGS"
  9687. LDFLAGS="$save_LDFLAGS"
  9688. LIBS="$save_LIBS"
  9689. ;;
  9690. esac
  9691. case $lt_cv_dlopen_self in
  9692. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9693. *) enable_dlopen_self=unknown ;;
  9694. esac
  9695. case $lt_cv_dlopen_self_static in
  9696. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9697. *) enable_dlopen_self_static=unknown ;;
  9698. esac
  9699. fi
  9700. striplib=
  9701. old_striplib=
  9702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9703. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9704. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9705. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9706. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9708. $as_echo "yes" >&6; }
  9709. else
  9710. # FIXME - insert some real tests, host_os isn't really good enough
  9711. case $host_os in
  9712. darwin*)
  9713. if test -n "$STRIP" ; then
  9714. striplib="$STRIP -x"
  9715. old_striplib="$STRIP -S"
  9716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9717. $as_echo "yes" >&6; }
  9718. else
  9719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9720. $as_echo "no" >&6; }
  9721. fi
  9722. ;;
  9723. *)
  9724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9725. $as_echo "no" >&6; }
  9726. ;;
  9727. esac
  9728. fi
  9729. # Report which library types will actually be built
  9730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9731. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9733. $as_echo "$can_build_shared" >&6; }
  9734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9735. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9736. test "$can_build_shared" = "no" && enable_shared=no
  9737. # On AIX, shared libraries and static libraries use the same namespace, and
  9738. # are all built from PIC.
  9739. case $host_os in
  9740. aix3*)
  9741. test "$enable_shared" = yes && enable_static=no
  9742. if test -n "$RANLIB"; then
  9743. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9744. postinstall_cmds='$RANLIB $lib'
  9745. fi
  9746. ;;
  9747. aix[4-9]*)
  9748. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9749. test "$enable_shared" = yes && enable_static=no
  9750. fi
  9751. ;;
  9752. esac
  9753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9754. $as_echo "$enable_shared" >&6; }
  9755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9756. $as_echo_n "checking whether to build static libraries... " >&6; }
  9757. # Make sure either enable_shared or enable_static is yes.
  9758. test "$enable_shared" = yes || enable_static=yes
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9760. $as_echo "$enable_static" >&6; }
  9761. fi
  9762. ac_ext=c
  9763. ac_cpp='$CPP $CPPFLAGS'
  9764. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9765. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9766. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9767. CC="$lt_save_CC"
  9768. ac_config_commands="$ac_config_commands libtool"
  9769. # Only expand once:
  9770. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9771. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9772. LT_REVISION=$SDL_INTERFACE_AGE
  9773. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9774. ac_ext=c
  9775. ac_cpp='$CPP $CPPFLAGS'
  9776. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9777. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9778. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9779. if test -n "$ac_tool_prefix"; then
  9780. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9781. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9783. $as_echo_n "checking for $ac_word... " >&6; }
  9784. if ${ac_cv_prog_CC+:} false; then :
  9785. $as_echo_n "(cached) " >&6
  9786. else
  9787. if test -n "$CC"; then
  9788. ac_cv_prog_CC="$CC" # Let the user override the test.
  9789. else
  9790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9791. for as_dir in $PATH
  9792. do
  9793. IFS=$as_save_IFS
  9794. test -z "$as_dir" && as_dir=.
  9795. for ac_exec_ext in '' $ac_executable_extensions; do
  9796. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9797. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9798. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9799. break 2
  9800. fi
  9801. done
  9802. done
  9803. IFS=$as_save_IFS
  9804. fi
  9805. fi
  9806. CC=$ac_cv_prog_CC
  9807. if test -n "$CC"; then
  9808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9809. $as_echo "$CC" >&6; }
  9810. else
  9811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9812. $as_echo "no" >&6; }
  9813. fi
  9814. fi
  9815. if test -z "$ac_cv_prog_CC"; then
  9816. ac_ct_CC=$CC
  9817. # Extract the first word of "gcc", so it can be a program name with args.
  9818. set dummy gcc; ac_word=$2
  9819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9820. $as_echo_n "checking for $ac_word... " >&6; }
  9821. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9822. $as_echo_n "(cached) " >&6
  9823. else
  9824. if test -n "$ac_ct_CC"; then
  9825. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9826. else
  9827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9828. for as_dir in $PATH
  9829. do
  9830. IFS=$as_save_IFS
  9831. test -z "$as_dir" && as_dir=.
  9832. for ac_exec_ext in '' $ac_executable_extensions; do
  9833. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9834. ac_cv_prog_ac_ct_CC="gcc"
  9835. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9836. break 2
  9837. fi
  9838. done
  9839. done
  9840. IFS=$as_save_IFS
  9841. fi
  9842. fi
  9843. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9844. if test -n "$ac_ct_CC"; then
  9845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9846. $as_echo "$ac_ct_CC" >&6; }
  9847. else
  9848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9849. $as_echo "no" >&6; }
  9850. fi
  9851. if test "x$ac_ct_CC" = x; then
  9852. CC=""
  9853. else
  9854. case $cross_compiling:$ac_tool_warned in
  9855. yes:)
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9857. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9858. ac_tool_warned=yes ;;
  9859. esac
  9860. CC=$ac_ct_CC
  9861. fi
  9862. else
  9863. CC="$ac_cv_prog_CC"
  9864. fi
  9865. if test -z "$CC"; then
  9866. if test -n "$ac_tool_prefix"; then
  9867. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9868. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9870. $as_echo_n "checking for $ac_word... " >&6; }
  9871. if ${ac_cv_prog_CC+:} false; then :
  9872. $as_echo_n "(cached) " >&6
  9873. else
  9874. if test -n "$CC"; then
  9875. ac_cv_prog_CC="$CC" # Let the user override the test.
  9876. else
  9877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9878. for as_dir in $PATH
  9879. do
  9880. IFS=$as_save_IFS
  9881. test -z "$as_dir" && as_dir=.
  9882. for ac_exec_ext in '' $ac_executable_extensions; do
  9883. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9884. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9886. break 2
  9887. fi
  9888. done
  9889. done
  9890. IFS=$as_save_IFS
  9891. fi
  9892. fi
  9893. CC=$ac_cv_prog_CC
  9894. if test -n "$CC"; then
  9895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9896. $as_echo "$CC" >&6; }
  9897. else
  9898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9899. $as_echo "no" >&6; }
  9900. fi
  9901. fi
  9902. fi
  9903. if test -z "$CC"; then
  9904. # Extract the first word of "cc", so it can be a program name with args.
  9905. set dummy cc; ac_word=$2
  9906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9907. $as_echo_n "checking for $ac_word... " >&6; }
  9908. if ${ac_cv_prog_CC+:} false; then :
  9909. $as_echo_n "(cached) " >&6
  9910. else
  9911. if test -n "$CC"; then
  9912. ac_cv_prog_CC="$CC" # Let the user override the test.
  9913. else
  9914. ac_prog_rejected=no
  9915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9916. for as_dir in $PATH
  9917. do
  9918. IFS=$as_save_IFS
  9919. test -z "$as_dir" && as_dir=.
  9920. for ac_exec_ext in '' $ac_executable_extensions; do
  9921. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9922. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9923. ac_prog_rejected=yes
  9924. continue
  9925. fi
  9926. ac_cv_prog_CC="cc"
  9927. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9928. break 2
  9929. fi
  9930. done
  9931. done
  9932. IFS=$as_save_IFS
  9933. if test $ac_prog_rejected = yes; then
  9934. # We found a bogon in the path, so make sure we never use it.
  9935. set dummy $ac_cv_prog_CC
  9936. shift
  9937. if test $@%:@ != 0; then
  9938. # We chose a different compiler from the bogus one.
  9939. # However, it has the same basename, so the bogon will be chosen
  9940. # first if we set CC to just the basename; use the full file name.
  9941. shift
  9942. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9943. fi
  9944. fi
  9945. fi
  9946. fi
  9947. CC=$ac_cv_prog_CC
  9948. if test -n "$CC"; then
  9949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9950. $as_echo "$CC" >&6; }
  9951. else
  9952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9953. $as_echo "no" >&6; }
  9954. fi
  9955. fi
  9956. if test -z "$CC"; then
  9957. if test -n "$ac_tool_prefix"; then
  9958. for ac_prog in cl.exe
  9959. do
  9960. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9961. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9963. $as_echo_n "checking for $ac_word... " >&6; }
  9964. if ${ac_cv_prog_CC+:} false; then :
  9965. $as_echo_n "(cached) " >&6
  9966. else
  9967. if test -n "$CC"; then
  9968. ac_cv_prog_CC="$CC" # Let the user override the test.
  9969. else
  9970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9971. for as_dir in $PATH
  9972. do
  9973. IFS=$as_save_IFS
  9974. test -z "$as_dir" && as_dir=.
  9975. for ac_exec_ext in '' $ac_executable_extensions; do
  9976. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9977. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9979. break 2
  9980. fi
  9981. done
  9982. done
  9983. IFS=$as_save_IFS
  9984. fi
  9985. fi
  9986. CC=$ac_cv_prog_CC
  9987. if test -n "$CC"; then
  9988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9989. $as_echo "$CC" >&6; }
  9990. else
  9991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9992. $as_echo "no" >&6; }
  9993. fi
  9994. test -n "$CC" && break
  9995. done
  9996. fi
  9997. if test -z "$CC"; then
  9998. ac_ct_CC=$CC
  9999. for ac_prog in cl.exe
  10000. do
  10001. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10002. set dummy $ac_prog; ac_word=$2
  10003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10004. $as_echo_n "checking for $ac_word... " >&6; }
  10005. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10006. $as_echo_n "(cached) " >&6
  10007. else
  10008. if test -n "$ac_ct_CC"; then
  10009. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10010. else
  10011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10012. for as_dir in $PATH
  10013. do
  10014. IFS=$as_save_IFS
  10015. test -z "$as_dir" && as_dir=.
  10016. for ac_exec_ext in '' $ac_executable_extensions; do
  10017. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10018. ac_cv_prog_ac_ct_CC="$ac_prog"
  10019. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10020. break 2
  10021. fi
  10022. done
  10023. done
  10024. IFS=$as_save_IFS
  10025. fi
  10026. fi
  10027. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10028. if test -n "$ac_ct_CC"; then
  10029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10030. $as_echo "$ac_ct_CC" >&6; }
  10031. else
  10032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10033. $as_echo "no" >&6; }
  10034. fi
  10035. test -n "$ac_ct_CC" && break
  10036. done
  10037. if test "x$ac_ct_CC" = x; then
  10038. CC=""
  10039. else
  10040. case $cross_compiling:$ac_tool_warned in
  10041. yes:)
  10042. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10043. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10044. ac_tool_warned=yes ;;
  10045. esac
  10046. CC=$ac_ct_CC
  10047. fi
  10048. fi
  10049. fi
  10050. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10051. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10052. as_fn_error $? "no acceptable C compiler found in \$PATH
  10053. See \`config.log' for more details" "$LINENO" 5; }
  10054. # Provide some information about the compiler.
  10055. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10056. set X $ac_compile
  10057. ac_compiler=$2
  10058. for ac_option in --version -v -V -qversion; do
  10059. { { ac_try="$ac_compiler $ac_option >&5"
  10060. case "(($ac_try" in
  10061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10062. *) ac_try_echo=$ac_try;;
  10063. esac
  10064. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10065. $as_echo "$ac_try_echo"; } >&5
  10066. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10067. ac_status=$?
  10068. if test -s conftest.err; then
  10069. sed '10a\
  10070. ... rest of stderr output deleted ...
  10071. 10q' conftest.err >conftest.er1
  10072. cat conftest.er1 >&5
  10073. fi
  10074. rm -f conftest.er1 conftest.err
  10075. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10076. test $ac_status = 0; }
  10077. done
  10078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10079. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10080. if ${ac_cv_c_compiler_gnu+:} false; then :
  10081. $as_echo_n "(cached) " >&6
  10082. else
  10083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10084. /* end confdefs.h. */
  10085. int
  10086. main ()
  10087. {
  10088. #ifndef __GNUC__
  10089. choke me
  10090. #endif
  10091. ;
  10092. return 0;
  10093. }
  10094. _ACEOF
  10095. if ac_fn_c_try_compile "$LINENO"; then :
  10096. ac_compiler_gnu=yes
  10097. else
  10098. ac_compiler_gnu=no
  10099. fi
  10100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10101. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10102. fi
  10103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10104. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10105. if test $ac_compiler_gnu = yes; then
  10106. GCC=yes
  10107. else
  10108. GCC=
  10109. fi
  10110. ac_test_CFLAGS=${CFLAGS+set}
  10111. ac_save_CFLAGS=$CFLAGS
  10112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10113. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10114. if ${ac_cv_prog_cc_g+:} false; then :
  10115. $as_echo_n "(cached) " >&6
  10116. else
  10117. ac_save_c_werror_flag=$ac_c_werror_flag
  10118. ac_c_werror_flag=yes
  10119. ac_cv_prog_cc_g=no
  10120. CFLAGS="-g"
  10121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10122. /* end confdefs.h. */
  10123. int
  10124. main ()
  10125. {
  10126. ;
  10127. return 0;
  10128. }
  10129. _ACEOF
  10130. if ac_fn_c_try_compile "$LINENO"; then :
  10131. ac_cv_prog_cc_g=yes
  10132. else
  10133. CFLAGS=""
  10134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10135. /* end confdefs.h. */
  10136. int
  10137. main ()
  10138. {
  10139. ;
  10140. return 0;
  10141. }
  10142. _ACEOF
  10143. if ac_fn_c_try_compile "$LINENO"; then :
  10144. else
  10145. ac_c_werror_flag=$ac_save_c_werror_flag
  10146. CFLAGS="-g"
  10147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10148. /* end confdefs.h. */
  10149. int
  10150. main ()
  10151. {
  10152. ;
  10153. return 0;
  10154. }
  10155. _ACEOF
  10156. if ac_fn_c_try_compile "$LINENO"; then :
  10157. ac_cv_prog_cc_g=yes
  10158. fi
  10159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10160. fi
  10161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10162. fi
  10163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10164. ac_c_werror_flag=$ac_save_c_werror_flag
  10165. fi
  10166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10167. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10168. if test "$ac_test_CFLAGS" = set; then
  10169. CFLAGS=$ac_save_CFLAGS
  10170. elif test $ac_cv_prog_cc_g = yes; then
  10171. if test "$GCC" = yes; then
  10172. CFLAGS="-g -O2"
  10173. else
  10174. CFLAGS="-g"
  10175. fi
  10176. else
  10177. if test "$GCC" = yes; then
  10178. CFLAGS="-O2"
  10179. else
  10180. CFLAGS=
  10181. fi
  10182. fi
  10183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10184. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10185. if ${ac_cv_prog_cc_c89+:} false; then :
  10186. $as_echo_n "(cached) " >&6
  10187. else
  10188. ac_cv_prog_cc_c89=no
  10189. ac_save_CC=$CC
  10190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10191. /* end confdefs.h. */
  10192. #include <stdarg.h>
  10193. #include <stdio.h>
  10194. struct stat;
  10195. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10196. struct buf { int x; };
  10197. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10198. static char *e (p, i)
  10199. char **p;
  10200. int i;
  10201. {
  10202. return p[i];
  10203. }
  10204. static char *f (char * (*g) (char **, int), char **p, ...)
  10205. {
  10206. char *s;
  10207. va_list v;
  10208. va_start (v,p);
  10209. s = g (p, va_arg (v,int));
  10210. va_end (v);
  10211. return s;
  10212. }
  10213. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10214. function prototypes and stuff, but not '\xHH' hex character constants.
  10215. These don't provoke an error unfortunately, instead are silently treated
  10216. as 'x'. The following induces an error, until -std is added to get
  10217. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10218. array size at least. It's necessary to write '\x00'==0 to get something
  10219. that's true only with -std. */
  10220. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10221. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10222. inside strings and character constants. */
  10223. #define FOO(x) 'x'
  10224. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10225. int test (int i, double x);
  10226. struct s1 {int (*f) (int a);};
  10227. struct s2 {int (*f) (double a);};
  10228. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10229. int argc;
  10230. char **argv;
  10231. int
  10232. main ()
  10233. {
  10234. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10235. ;
  10236. return 0;
  10237. }
  10238. _ACEOF
  10239. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10240. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10241. do
  10242. CC="$ac_save_CC $ac_arg"
  10243. if ac_fn_c_try_compile "$LINENO"; then :
  10244. ac_cv_prog_cc_c89=$ac_arg
  10245. fi
  10246. rm -f core conftest.err conftest.$ac_objext
  10247. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10248. done
  10249. rm -f conftest.$ac_ext
  10250. CC=$ac_save_CC
  10251. fi
  10252. # AC_CACHE_VAL
  10253. case "x$ac_cv_prog_cc_c89" in
  10254. x)
  10255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10256. $as_echo "none needed" >&6; } ;;
  10257. xno)
  10258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10259. $as_echo "unsupported" >&6; } ;;
  10260. *)
  10261. CC="$CC $ac_cv_prog_cc_c89"
  10262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10263. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10264. esac
  10265. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10266. fi
  10267. ac_ext=c
  10268. ac_cpp='$CPP $CPPFLAGS'
  10269. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10270. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10271. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10272. ac_ext=cpp
  10273. ac_cpp='$CXXCPP $CPPFLAGS'
  10274. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10275. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10276. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10277. if test -z "$CXX"; then
  10278. if test -n "$CCC"; then
  10279. CXX=$CCC
  10280. else
  10281. if test -n "$ac_tool_prefix"; then
  10282. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10283. do
  10284. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10285. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10287. $as_echo_n "checking for $ac_word... " >&6; }
  10288. if ${ac_cv_prog_CXX+:} false; then :
  10289. $as_echo_n "(cached) " >&6
  10290. else
  10291. if test -n "$CXX"; then
  10292. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10293. else
  10294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10295. for as_dir in $PATH
  10296. do
  10297. IFS=$as_save_IFS
  10298. test -z "$as_dir" && as_dir=.
  10299. for ac_exec_ext in '' $ac_executable_extensions; do
  10300. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10301. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10303. break 2
  10304. fi
  10305. done
  10306. done
  10307. IFS=$as_save_IFS
  10308. fi
  10309. fi
  10310. CXX=$ac_cv_prog_CXX
  10311. if test -n "$CXX"; then
  10312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10313. $as_echo "$CXX" >&6; }
  10314. else
  10315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10316. $as_echo "no" >&6; }
  10317. fi
  10318. test -n "$CXX" && break
  10319. done
  10320. fi
  10321. if test -z "$CXX"; then
  10322. ac_ct_CXX=$CXX
  10323. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10324. do
  10325. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10326. set dummy $ac_prog; ac_word=$2
  10327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10328. $as_echo_n "checking for $ac_word... " >&6; }
  10329. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10330. $as_echo_n "(cached) " >&6
  10331. else
  10332. if test -n "$ac_ct_CXX"; then
  10333. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10334. else
  10335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10336. for as_dir in $PATH
  10337. do
  10338. IFS=$as_save_IFS
  10339. test -z "$as_dir" && as_dir=.
  10340. for ac_exec_ext in '' $ac_executable_extensions; do
  10341. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10342. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10344. break 2
  10345. fi
  10346. done
  10347. done
  10348. IFS=$as_save_IFS
  10349. fi
  10350. fi
  10351. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10352. if test -n "$ac_ct_CXX"; then
  10353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10354. $as_echo "$ac_ct_CXX" >&6; }
  10355. else
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10357. $as_echo "no" >&6; }
  10358. fi
  10359. test -n "$ac_ct_CXX" && break
  10360. done
  10361. if test "x$ac_ct_CXX" = x; then
  10362. CXX="g++"
  10363. else
  10364. case $cross_compiling:$ac_tool_warned in
  10365. yes:)
  10366. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10367. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10368. ac_tool_warned=yes ;;
  10369. esac
  10370. CXX=$ac_ct_CXX
  10371. fi
  10372. fi
  10373. fi
  10374. fi
  10375. # Provide some information about the compiler.
  10376. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10377. set X $ac_compile
  10378. ac_compiler=$2
  10379. for ac_option in --version -v -V -qversion; do
  10380. { { ac_try="$ac_compiler $ac_option >&5"
  10381. case "(($ac_try" in
  10382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10383. *) ac_try_echo=$ac_try;;
  10384. esac
  10385. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10386. $as_echo "$ac_try_echo"; } >&5
  10387. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10388. ac_status=$?
  10389. if test -s conftest.err; then
  10390. sed '10a\
  10391. ... rest of stderr output deleted ...
  10392. 10q' conftest.err >conftest.er1
  10393. cat conftest.er1 >&5
  10394. fi
  10395. rm -f conftest.er1 conftest.err
  10396. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10397. test $ac_status = 0; }
  10398. done
  10399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10400. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10401. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10402. $as_echo_n "(cached) " >&6
  10403. else
  10404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10405. /* end confdefs.h. */
  10406. int
  10407. main ()
  10408. {
  10409. #ifndef __GNUC__
  10410. choke me
  10411. #endif
  10412. ;
  10413. return 0;
  10414. }
  10415. _ACEOF
  10416. if ac_fn_cxx_try_compile "$LINENO"; then :
  10417. ac_compiler_gnu=yes
  10418. else
  10419. ac_compiler_gnu=no
  10420. fi
  10421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10422. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10423. fi
  10424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10425. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10426. if test $ac_compiler_gnu = yes; then
  10427. GXX=yes
  10428. else
  10429. GXX=
  10430. fi
  10431. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10432. ac_save_CXXFLAGS=$CXXFLAGS
  10433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10434. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10435. if ${ac_cv_prog_cxx_g+:} false; then :
  10436. $as_echo_n "(cached) " >&6
  10437. else
  10438. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10439. ac_cxx_werror_flag=yes
  10440. ac_cv_prog_cxx_g=no
  10441. CXXFLAGS="-g"
  10442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10443. /* end confdefs.h. */
  10444. int
  10445. main ()
  10446. {
  10447. ;
  10448. return 0;
  10449. }
  10450. _ACEOF
  10451. if ac_fn_cxx_try_compile "$LINENO"; then :
  10452. ac_cv_prog_cxx_g=yes
  10453. else
  10454. CXXFLAGS=""
  10455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10456. /* end confdefs.h. */
  10457. int
  10458. main ()
  10459. {
  10460. ;
  10461. return 0;
  10462. }
  10463. _ACEOF
  10464. if ac_fn_cxx_try_compile "$LINENO"; then :
  10465. else
  10466. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10467. CXXFLAGS="-g"
  10468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10469. /* end confdefs.h. */
  10470. int
  10471. main ()
  10472. {
  10473. ;
  10474. return 0;
  10475. }
  10476. _ACEOF
  10477. if ac_fn_cxx_try_compile "$LINENO"; then :
  10478. ac_cv_prog_cxx_g=yes
  10479. fi
  10480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10481. fi
  10482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10483. fi
  10484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10485. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10486. fi
  10487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10488. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10489. if test "$ac_test_CXXFLAGS" = set; then
  10490. CXXFLAGS=$ac_save_CXXFLAGS
  10491. elif test $ac_cv_prog_cxx_g = yes; then
  10492. if test "$GXX" = yes; then
  10493. CXXFLAGS="-g -O2"
  10494. else
  10495. CXXFLAGS="-g"
  10496. fi
  10497. else
  10498. if test "$GXX" = yes; then
  10499. CXXFLAGS="-O2"
  10500. else
  10501. CXXFLAGS=
  10502. fi
  10503. fi
  10504. ac_ext=c
  10505. ac_cpp='$CPP $CPPFLAGS'
  10506. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10507. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10508. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10509. func_stripname_cnf ()
  10510. {
  10511. case ${2} in
  10512. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10513. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10514. esac
  10515. } # func_stripname_cnf
  10516. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10517. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10518. (test "X$CXX" != "Xg++"))) ; then
  10519. ac_ext=cpp
  10520. ac_cpp='$CXXCPP $CPPFLAGS'
  10521. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10522. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10523. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10525. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10526. if test -z "$CXXCPP"; then
  10527. if ${ac_cv_prog_CXXCPP+:} false; then :
  10528. $as_echo_n "(cached) " >&6
  10529. else
  10530. # Double quotes because CXXCPP needs to be expanded
  10531. for CXXCPP in "$CXX -E" "/lib/cpp"
  10532. do
  10533. ac_preproc_ok=false
  10534. for ac_cxx_preproc_warn_flag in '' yes
  10535. do
  10536. # Use a header file that comes with gcc, so configuring glibc
  10537. # with a fresh cross-compiler works.
  10538. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10539. # <limits.h> exists even on freestanding compilers.
  10540. # On the NeXT, cc -E runs the code through the compiler's parser,
  10541. # not just through cpp. "Syntax error" is here to catch this case.
  10542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10543. /* end confdefs.h. */
  10544. @%:@ifdef __STDC__
  10545. @%:@ include <limits.h>
  10546. @%:@else
  10547. @%:@ include <assert.h>
  10548. @%:@endif
  10549. Syntax error
  10550. _ACEOF
  10551. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10552. else
  10553. # Broken: fails on valid input.
  10554. continue
  10555. fi
  10556. rm -f conftest.err conftest.i conftest.$ac_ext
  10557. # OK, works on sane cases. Now check whether nonexistent headers
  10558. # can be detected and how.
  10559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10560. /* end confdefs.h. */
  10561. @%:@include <ac_nonexistent.h>
  10562. _ACEOF
  10563. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10564. # Broken: success on invalid input.
  10565. continue
  10566. else
  10567. # Passes both tests.
  10568. ac_preproc_ok=:
  10569. break
  10570. fi
  10571. rm -f conftest.err conftest.i conftest.$ac_ext
  10572. done
  10573. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10574. rm -f conftest.i conftest.err conftest.$ac_ext
  10575. if $ac_preproc_ok; then :
  10576. break
  10577. fi
  10578. done
  10579. ac_cv_prog_CXXCPP=$CXXCPP
  10580. fi
  10581. CXXCPP=$ac_cv_prog_CXXCPP
  10582. else
  10583. ac_cv_prog_CXXCPP=$CXXCPP
  10584. fi
  10585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10586. $as_echo "$CXXCPP" >&6; }
  10587. ac_preproc_ok=false
  10588. for ac_cxx_preproc_warn_flag in '' yes
  10589. do
  10590. # Use a header file that comes with gcc, so configuring glibc
  10591. # with a fresh cross-compiler works.
  10592. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10593. # <limits.h> exists even on freestanding compilers.
  10594. # On the NeXT, cc -E runs the code through the compiler's parser,
  10595. # not just through cpp. "Syntax error" is here to catch this case.
  10596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10597. /* end confdefs.h. */
  10598. @%:@ifdef __STDC__
  10599. @%:@ include <limits.h>
  10600. @%:@else
  10601. @%:@ include <assert.h>
  10602. @%:@endif
  10603. Syntax error
  10604. _ACEOF
  10605. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10606. else
  10607. # Broken: fails on valid input.
  10608. continue
  10609. fi
  10610. rm -f conftest.err conftest.i conftest.$ac_ext
  10611. # OK, works on sane cases. Now check whether nonexistent headers
  10612. # can be detected and how.
  10613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10614. /* end confdefs.h. */
  10615. @%:@include <ac_nonexistent.h>
  10616. _ACEOF
  10617. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10618. # Broken: success on invalid input.
  10619. continue
  10620. else
  10621. # Passes both tests.
  10622. ac_preproc_ok=:
  10623. break
  10624. fi
  10625. rm -f conftest.err conftest.i conftest.$ac_ext
  10626. done
  10627. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10628. rm -f conftest.i conftest.err conftest.$ac_ext
  10629. if $ac_preproc_ok; then :
  10630. else
  10631. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10632. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10633. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10634. See \`config.log' for more details" "$LINENO" 5; }
  10635. fi
  10636. ac_ext=c
  10637. ac_cpp='$CPP $CPPFLAGS'
  10638. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10639. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10640. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10641. else
  10642. _lt_caught_CXX_error=yes
  10643. fi
  10644. ac_ext=cpp
  10645. ac_cpp='$CXXCPP $CPPFLAGS'
  10646. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10647. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10648. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10649. archive_cmds_need_lc_CXX=no
  10650. allow_undefined_flag_CXX=
  10651. always_export_symbols_CXX=no
  10652. archive_expsym_cmds_CXX=
  10653. compiler_needs_object_CXX=no
  10654. export_dynamic_flag_spec_CXX=
  10655. hardcode_direct_CXX=no
  10656. hardcode_direct_absolute_CXX=no
  10657. hardcode_libdir_flag_spec_CXX=
  10658. hardcode_libdir_separator_CXX=
  10659. hardcode_minus_L_CXX=no
  10660. hardcode_shlibpath_var_CXX=unsupported
  10661. hardcode_automatic_CXX=no
  10662. inherit_rpath_CXX=no
  10663. module_cmds_CXX=
  10664. module_expsym_cmds_CXX=
  10665. link_all_deplibs_CXX=unknown
  10666. old_archive_cmds_CXX=$old_archive_cmds
  10667. reload_flag_CXX=$reload_flag
  10668. reload_cmds_CXX=$reload_cmds
  10669. no_undefined_flag_CXX=
  10670. whole_archive_flag_spec_CXX=
  10671. enable_shared_with_static_runtimes_CXX=no
  10672. # Source file extension for C++ test sources.
  10673. ac_ext=cpp
  10674. # Object file extension for compiled C++ test sources.
  10675. objext=o
  10676. objext_CXX=$objext
  10677. # No sense in running all these tests if we already determined that
  10678. # the CXX compiler isn't working. Some variables (like enable_shared)
  10679. # are currently assumed to apply to all compilers on this platform,
  10680. # and will be corrupted by setting them based on a non-working compiler.
  10681. if test "$_lt_caught_CXX_error" != yes; then
  10682. # Code to be used in simple compile tests
  10683. lt_simple_compile_test_code="int some_variable = 0;"
  10684. # Code to be used in simple link tests
  10685. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10686. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10687. # If no C compiler was specified, use CC.
  10688. LTCC=${LTCC-"$CC"}
  10689. # If no C compiler flags were specified, use CFLAGS.
  10690. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10691. # Allow CC to be a program name with arguments.
  10692. compiler=$CC
  10693. # save warnings/boilerplate of simple test code
  10694. ac_outfile=conftest.$ac_objext
  10695. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10696. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10697. _lt_compiler_boilerplate=`cat conftest.err`
  10698. $RM conftest*
  10699. ac_outfile=conftest.$ac_objext
  10700. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10701. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10702. _lt_linker_boilerplate=`cat conftest.err`
  10703. $RM -r conftest*
  10704. # Allow CC to be a program name with arguments.
  10705. lt_save_CC=$CC
  10706. lt_save_CFLAGS=$CFLAGS
  10707. lt_save_LD=$LD
  10708. lt_save_GCC=$GCC
  10709. GCC=$GXX
  10710. lt_save_with_gnu_ld=$with_gnu_ld
  10711. lt_save_path_LD=$lt_cv_path_LD
  10712. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10713. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10714. else
  10715. $as_unset lt_cv_prog_gnu_ld
  10716. fi
  10717. if test -n "${lt_cv_path_LDCXX+set}"; then
  10718. lt_cv_path_LD=$lt_cv_path_LDCXX
  10719. else
  10720. $as_unset lt_cv_path_LD
  10721. fi
  10722. test -z "${LDCXX+set}" || LD=$LDCXX
  10723. CC=${CXX-"c++"}
  10724. CFLAGS=$CXXFLAGS
  10725. compiler=$CC
  10726. compiler_CXX=$CC
  10727. for cc_temp in $compiler""; do
  10728. case $cc_temp in
  10729. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10730. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10731. \-*) ;;
  10732. *) break;;
  10733. esac
  10734. done
  10735. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10736. if test -n "$compiler"; then
  10737. # We don't want -fno-exception when compiling C++ code, so set the
  10738. # no_builtin_flag separately
  10739. if test "$GXX" = yes; then
  10740. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10741. else
  10742. lt_prog_compiler_no_builtin_flag_CXX=
  10743. fi
  10744. if test "$GXX" = yes; then
  10745. # Set up default GNU C++ configuration
  10746. @%:@ Check whether --with-gnu-ld was given.
  10747. if test "${with_gnu_ld+set}" = set; then :
  10748. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10749. else
  10750. with_gnu_ld=no
  10751. fi
  10752. ac_prog=ld
  10753. if test "$GCC" = yes; then
  10754. # Check if gcc -print-prog-name=ld gives a path.
  10755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10756. $as_echo_n "checking for ld used by $CC... " >&6; }
  10757. case $host in
  10758. *-*-mingw*)
  10759. # gcc leaves a trailing carriage return which upsets mingw
  10760. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10761. *)
  10762. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10763. esac
  10764. case $ac_prog in
  10765. # Accept absolute paths.
  10766. [\\/]* | ?:[\\/]*)
  10767. re_direlt='/[^/][^/]*/\.\./'
  10768. # Canonicalize the pathname of ld
  10769. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10770. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10771. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10772. done
  10773. test -z "$LD" && LD="$ac_prog"
  10774. ;;
  10775. "")
  10776. # If it fails, then pretend we aren't using GCC.
  10777. ac_prog=ld
  10778. ;;
  10779. *)
  10780. # If it is relative, then search for the first ld in PATH.
  10781. with_gnu_ld=unknown
  10782. ;;
  10783. esac
  10784. elif test "$with_gnu_ld" = yes; then
  10785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10786. $as_echo_n "checking for GNU ld... " >&6; }
  10787. else
  10788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10789. $as_echo_n "checking for non-GNU ld... " >&6; }
  10790. fi
  10791. if ${lt_cv_path_LD+:} false; then :
  10792. $as_echo_n "(cached) " >&6
  10793. else
  10794. if test -z "$LD"; then
  10795. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10796. for ac_dir in $PATH; do
  10797. IFS="$lt_save_ifs"
  10798. test -z "$ac_dir" && ac_dir=.
  10799. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10800. lt_cv_path_LD="$ac_dir/$ac_prog"
  10801. # Check to see if the program is GNU ld. I'd rather use --version,
  10802. # but apparently some variants of GNU ld only accept -v.
  10803. # Break only if it was the GNU/non-GNU ld that we prefer.
  10804. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10805. *GNU* | *'with BFD'*)
  10806. test "$with_gnu_ld" != no && break
  10807. ;;
  10808. *)
  10809. test "$with_gnu_ld" != yes && break
  10810. ;;
  10811. esac
  10812. fi
  10813. done
  10814. IFS="$lt_save_ifs"
  10815. else
  10816. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10817. fi
  10818. fi
  10819. LD="$lt_cv_path_LD"
  10820. if test -n "$LD"; then
  10821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10822. $as_echo "$LD" >&6; }
  10823. else
  10824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10825. $as_echo "no" >&6; }
  10826. fi
  10827. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10829. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10830. if ${lt_cv_prog_gnu_ld+:} false; then :
  10831. $as_echo_n "(cached) " >&6
  10832. else
  10833. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10834. case `$LD -v 2>&1 </dev/null` in
  10835. *GNU* | *'with BFD'*)
  10836. lt_cv_prog_gnu_ld=yes
  10837. ;;
  10838. *)
  10839. lt_cv_prog_gnu_ld=no
  10840. ;;
  10841. esac
  10842. fi
  10843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10844. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10845. with_gnu_ld=$lt_cv_prog_gnu_ld
  10846. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10847. # archiving commands below assume that GNU ld is being used.
  10848. if test "$with_gnu_ld" = yes; then
  10849. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10850. 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'
  10851. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10852. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10853. # If archive_cmds runs LD, not CC, wlarc should be empty
  10854. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10855. # investigate it a little bit more. (MM)
  10856. wlarc='${wl}'
  10857. # ancient GNU ld didn't support --whole-archive et. al.
  10858. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10859. $GREP 'no-whole-archive' > /dev/null; then
  10860. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10861. else
  10862. whole_archive_flag_spec_CXX=
  10863. fi
  10864. else
  10865. with_gnu_ld=no
  10866. wlarc=
  10867. # A generic and very simple default shared library creation
  10868. # command for GNU C++ for the case where it uses the native
  10869. # linker, instead of GNU ld. If possible, this setting should
  10870. # overridden to take advantage of the native linker features on
  10871. # the platform it is being used on.
  10872. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10873. fi
  10874. # Commands to make compiler produce verbose output that lists
  10875. # what "hidden" libraries, object files and flags are used when
  10876. # linking a shared library.
  10877. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10878. else
  10879. GXX=no
  10880. with_gnu_ld=no
  10881. wlarc=
  10882. fi
  10883. # PORTME: fill in a description of your system's C++ link characteristics
  10884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10885. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10886. ld_shlibs_CXX=yes
  10887. case $host_os in
  10888. aix3*)
  10889. # FIXME: insert proper C++ library support
  10890. ld_shlibs_CXX=no
  10891. ;;
  10892. aix[4-9]*)
  10893. if test "$host_cpu" = ia64; then
  10894. # On IA64, the linker does run time linking by default, so we don't
  10895. # have to do anything special.
  10896. aix_use_runtimelinking=no
  10897. exp_sym_flag='-Bexport'
  10898. no_entry_flag=""
  10899. else
  10900. aix_use_runtimelinking=no
  10901. # Test if we are trying to use run time linking or normal
  10902. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10903. # need to do runtime linking.
  10904. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10905. for ld_flag in $LDFLAGS; do
  10906. case $ld_flag in
  10907. *-brtl*)
  10908. aix_use_runtimelinking=yes
  10909. break
  10910. ;;
  10911. esac
  10912. done
  10913. ;;
  10914. esac
  10915. exp_sym_flag='-bexport'
  10916. no_entry_flag='-bnoentry'
  10917. fi
  10918. # When large executables or shared objects are built, AIX ld can
  10919. # have problems creating the table of contents. If linking a library
  10920. # or program results in "error TOC overflow" add -mminimal-toc to
  10921. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10922. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10923. archive_cmds_CXX=''
  10924. hardcode_direct_CXX=yes
  10925. hardcode_direct_absolute_CXX=yes
  10926. hardcode_libdir_separator_CXX=':'
  10927. link_all_deplibs_CXX=yes
  10928. file_list_spec_CXX='${wl}-f,'
  10929. if test "$GXX" = yes; then
  10930. case $host_os in aix4.[012]|aix4.[012].*)
  10931. # We only want to do this on AIX 4.2 and lower, the check
  10932. # below for broken collect2 doesn't work under 4.3+
  10933. collect2name=`${CC} -print-prog-name=collect2`
  10934. if test -f "$collect2name" &&
  10935. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10936. then
  10937. # We have reworked collect2
  10938. :
  10939. else
  10940. # We have old collect2
  10941. hardcode_direct_CXX=unsupported
  10942. # It fails to find uninstalled libraries when the uninstalled
  10943. # path is not listed in the libpath. Setting hardcode_minus_L
  10944. # to unsupported forces relinking
  10945. hardcode_minus_L_CXX=yes
  10946. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10947. hardcode_libdir_separator_CXX=
  10948. fi
  10949. esac
  10950. shared_flag='-shared'
  10951. if test "$aix_use_runtimelinking" = yes; then
  10952. shared_flag="$shared_flag "'${wl}-G'
  10953. fi
  10954. else
  10955. # not using gcc
  10956. if test "$host_cpu" = ia64; then
  10957. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10958. # chokes on -Wl,-G. The following line is correct:
  10959. shared_flag='-G'
  10960. else
  10961. if test "$aix_use_runtimelinking" = yes; then
  10962. shared_flag='${wl}-G'
  10963. else
  10964. shared_flag='${wl}-bM:SRE'
  10965. fi
  10966. fi
  10967. fi
  10968. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10969. # It seems that -bexpall does not export symbols beginning with
  10970. # underscore (_), so it is better to generate a list of symbols to
  10971. # export.
  10972. always_export_symbols_CXX=yes
  10973. if test "$aix_use_runtimelinking" = yes; then
  10974. # Warning - without using the other runtime loading flags (-brtl),
  10975. # -berok will link without error, but may produce a broken library.
  10976. allow_undefined_flag_CXX='-berok'
  10977. # Determine the default libpath from the value encoded in an empty
  10978. # executable.
  10979. if test "${lt_cv_aix_libpath+set}" = set; then
  10980. aix_libpath=$lt_cv_aix_libpath
  10981. else
  10982. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10983. $as_echo_n "(cached) " >&6
  10984. else
  10985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10986. /* end confdefs.h. */
  10987. int
  10988. main ()
  10989. {
  10990. ;
  10991. return 0;
  10992. }
  10993. _ACEOF
  10994. if ac_fn_cxx_try_link "$LINENO"; then :
  10995. lt_aix_libpath_sed='
  10996. /Import File Strings/,/^$/ {
  10997. /^0/ {
  10998. s/^0 *\([^ ]*\) *$/\1/
  10999. p
  11000. }
  11001. }'
  11002. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11003. # Check for a 64-bit object if we didn't find anything.
  11004. if test -z "$lt_cv_aix_libpath__CXX"; then
  11005. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11006. fi
  11007. fi
  11008. rm -f core conftest.err conftest.$ac_objext \
  11009. conftest$ac_exeext conftest.$ac_ext
  11010. if test -z "$lt_cv_aix_libpath__CXX"; then
  11011. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11012. fi
  11013. fi
  11014. aix_libpath=$lt_cv_aix_libpath__CXX
  11015. fi
  11016. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11017. 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"
  11018. else
  11019. if test "$host_cpu" = ia64; then
  11020. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11021. allow_undefined_flag_CXX="-z nodefs"
  11022. 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"
  11023. else
  11024. # Determine the default libpath from the value encoded in an
  11025. # empty executable.
  11026. if test "${lt_cv_aix_libpath+set}" = set; then
  11027. aix_libpath=$lt_cv_aix_libpath
  11028. else
  11029. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11030. $as_echo_n "(cached) " >&6
  11031. else
  11032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11033. /* end confdefs.h. */
  11034. int
  11035. main ()
  11036. {
  11037. ;
  11038. return 0;
  11039. }
  11040. _ACEOF
  11041. if ac_fn_cxx_try_link "$LINENO"; then :
  11042. lt_aix_libpath_sed='
  11043. /Import File Strings/,/^$/ {
  11044. /^0/ {
  11045. s/^0 *\([^ ]*\) *$/\1/
  11046. p
  11047. }
  11048. }'
  11049. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11050. # Check for a 64-bit object if we didn't find anything.
  11051. if test -z "$lt_cv_aix_libpath__CXX"; then
  11052. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11053. fi
  11054. fi
  11055. rm -f core conftest.err conftest.$ac_objext \
  11056. conftest$ac_exeext conftest.$ac_ext
  11057. if test -z "$lt_cv_aix_libpath__CXX"; then
  11058. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11059. fi
  11060. fi
  11061. aix_libpath=$lt_cv_aix_libpath__CXX
  11062. fi
  11063. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11064. # Warning - without using the other run time loading flags,
  11065. # -berok will link without error, but may produce a broken library.
  11066. no_undefined_flag_CXX=' ${wl}-bernotok'
  11067. allow_undefined_flag_CXX=' ${wl}-berok'
  11068. if test "$with_gnu_ld" = yes; then
  11069. # We only use this code for GNU lds that support --whole-archive.
  11070. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11071. else
  11072. # Exported symbols can be pulled into shared objects from archives
  11073. whole_archive_flag_spec_CXX='$convenience'
  11074. fi
  11075. archive_cmds_need_lc_CXX=yes
  11076. # This is similar to how AIX traditionally builds its shared
  11077. # libraries.
  11078. 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'
  11079. fi
  11080. fi
  11081. ;;
  11082. beos*)
  11083. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11084. allow_undefined_flag_CXX=unsupported
  11085. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11086. # support --undefined. This deserves some investigation. FIXME
  11087. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11088. else
  11089. ld_shlibs_CXX=no
  11090. fi
  11091. ;;
  11092. chorus*)
  11093. case $cc_basename in
  11094. *)
  11095. # FIXME: insert proper C++ library support
  11096. ld_shlibs_CXX=no
  11097. ;;
  11098. esac
  11099. ;;
  11100. cygwin* | mingw* | pw32* | cegcc*)
  11101. case $GXX,$cc_basename in
  11102. ,cl* | no,cl*)
  11103. # Native MSVC
  11104. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11105. # no search path for DLLs.
  11106. hardcode_libdir_flag_spec_CXX=' '
  11107. allow_undefined_flag_CXX=unsupported
  11108. always_export_symbols_CXX=yes
  11109. file_list_spec_CXX='@'
  11110. # Tell ltmain to make .lib files, not .a files.
  11111. libext=lib
  11112. # Tell ltmain to make .dll files, not .so files.
  11113. shrext_cmds=".dll"
  11114. # FIXME: Setting linknames here is a bad hack.
  11115. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11116. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11117. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11118. else
  11119. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11120. fi~
  11121. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11122. linknames='
  11123. # The linker will not automatically build a static lib if we build a DLL.
  11124. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11125. enable_shared_with_static_runtimes_CXX=yes
  11126. # Don't use ranlib
  11127. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11128. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11129. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11130. case $lt_outputfile in
  11131. *.exe|*.EXE) ;;
  11132. *)
  11133. lt_outputfile="$lt_outputfile.exe"
  11134. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11135. ;;
  11136. esac~
  11137. func_to_tool_file "$lt_outputfile"~
  11138. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11139. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11140. $RM "$lt_outputfile.manifest";
  11141. fi'
  11142. ;;
  11143. *)
  11144. # g++
  11145. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11146. # as there is no search path for DLLs.
  11147. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11148. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11149. allow_undefined_flag_CXX=unsupported
  11150. always_export_symbols_CXX=no
  11151. enable_shared_with_static_runtimes_CXX=yes
  11152. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11153. 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'
  11154. # If the export-symbols file already is a .def file (1st line
  11155. # is EXPORTS), use it as is; otherwise, prepend...
  11156. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11157. cp $export_symbols $output_objdir/$soname.def;
  11158. else
  11159. echo EXPORTS > $output_objdir/$soname.def;
  11160. cat $export_symbols >> $output_objdir/$soname.def;
  11161. fi~
  11162. $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'
  11163. else
  11164. ld_shlibs_CXX=no
  11165. fi
  11166. ;;
  11167. esac
  11168. ;;
  11169. darwin* | rhapsody*)
  11170. archive_cmds_need_lc_CXX=no
  11171. hardcode_direct_CXX=no
  11172. hardcode_automatic_CXX=yes
  11173. hardcode_shlibpath_var_CXX=unsupported
  11174. if test "$lt_cv_ld_force_load" = "yes"; then
  11175. 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\"`'
  11176. else
  11177. whole_archive_flag_spec_CXX=''
  11178. fi
  11179. link_all_deplibs_CXX=yes
  11180. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11181. case $cc_basename in
  11182. ifort*) _lt_dar_can_shared=yes ;;
  11183. *) _lt_dar_can_shared=$GCC ;;
  11184. esac
  11185. if test "$_lt_dar_can_shared" = "yes"; then
  11186. output_verbose_link_cmd=func_echo_all
  11187. 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}"
  11188. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11189. 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}"
  11190. 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}"
  11191. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11192. 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}"
  11193. 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}"
  11194. fi
  11195. else
  11196. ld_shlibs_CXX=no
  11197. fi
  11198. ;;
  11199. dgux*)
  11200. case $cc_basename in
  11201. ec++*)
  11202. # FIXME: insert proper C++ library support
  11203. ld_shlibs_CXX=no
  11204. ;;
  11205. ghcx*)
  11206. # Green Hills C++ Compiler
  11207. # FIXME: insert proper C++ library support
  11208. ld_shlibs_CXX=no
  11209. ;;
  11210. *)
  11211. # FIXME: insert proper C++ library support
  11212. ld_shlibs_CXX=no
  11213. ;;
  11214. esac
  11215. ;;
  11216. freebsd2.*)
  11217. # C++ shared libraries reported to be fairly broken before
  11218. # switch to ELF
  11219. ld_shlibs_CXX=no
  11220. ;;
  11221. freebsd-elf*)
  11222. archive_cmds_need_lc_CXX=no
  11223. ;;
  11224. freebsd* | dragonfly*)
  11225. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11226. # conventions
  11227. ld_shlibs_CXX=yes
  11228. ;;
  11229. gnu*)
  11230. ;;
  11231. haiku*)
  11232. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11233. link_all_deplibs_CXX=yes
  11234. ;;
  11235. hpux9*)
  11236. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11237. hardcode_libdir_separator_CXX=:
  11238. export_dynamic_flag_spec_CXX='${wl}-E'
  11239. hardcode_direct_CXX=yes
  11240. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11241. # but as the default
  11242. # location of the library.
  11243. case $cc_basename in
  11244. CC*)
  11245. # FIXME: insert proper C++ library support
  11246. ld_shlibs_CXX=no
  11247. ;;
  11248. aCC*)
  11249. 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'
  11250. # Commands to make compiler produce verbose output that lists
  11251. # what "hidden" libraries, object files and flags are used when
  11252. # linking a shared library.
  11253. #
  11254. # There doesn't appear to be a way to prevent this compiler from
  11255. # explicitly linking system object files so we need to strip them
  11256. # from the output so that they don't get included in the library
  11257. # dependencies.
  11258. 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"'
  11259. ;;
  11260. *)
  11261. if test "$GXX" = yes; then
  11262. 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'
  11263. else
  11264. # FIXME: insert proper C++ library support
  11265. ld_shlibs_CXX=no
  11266. fi
  11267. ;;
  11268. esac
  11269. ;;
  11270. hpux10*|hpux11*)
  11271. if test $with_gnu_ld = no; then
  11272. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11273. hardcode_libdir_separator_CXX=:
  11274. case $host_cpu in
  11275. hppa*64*|ia64*)
  11276. ;;
  11277. *)
  11278. export_dynamic_flag_spec_CXX='${wl}-E'
  11279. ;;
  11280. esac
  11281. fi
  11282. case $host_cpu in
  11283. hppa*64*|ia64*)
  11284. hardcode_direct_CXX=no
  11285. hardcode_shlibpath_var_CXX=no
  11286. ;;
  11287. *)
  11288. hardcode_direct_CXX=yes
  11289. hardcode_direct_absolute_CXX=yes
  11290. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11291. # but as the default
  11292. # location of the library.
  11293. ;;
  11294. esac
  11295. case $cc_basename in
  11296. CC*)
  11297. # FIXME: insert proper C++ library support
  11298. ld_shlibs_CXX=no
  11299. ;;
  11300. aCC*)
  11301. case $host_cpu in
  11302. hppa*64*)
  11303. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11304. ;;
  11305. ia64*)
  11306. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11307. ;;
  11308. *)
  11309. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11310. ;;
  11311. esac
  11312. # Commands to make compiler produce verbose output that lists
  11313. # what "hidden" libraries, object files and flags are used when
  11314. # linking a shared library.
  11315. #
  11316. # There doesn't appear to be a way to prevent this compiler from
  11317. # explicitly linking system object files so we need to strip them
  11318. # from the output so that they don't get included in the library
  11319. # dependencies.
  11320. 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"'
  11321. ;;
  11322. *)
  11323. if test "$GXX" = yes; then
  11324. if test $with_gnu_ld = no; then
  11325. case $host_cpu in
  11326. hppa*64*)
  11327. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11328. ;;
  11329. ia64*)
  11330. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11331. ;;
  11332. *)
  11333. 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'
  11334. ;;
  11335. esac
  11336. fi
  11337. else
  11338. # FIXME: insert proper C++ library support
  11339. ld_shlibs_CXX=no
  11340. fi
  11341. ;;
  11342. esac
  11343. ;;
  11344. interix[3-9]*)
  11345. hardcode_direct_CXX=no
  11346. hardcode_shlibpath_var_CXX=no
  11347. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11348. export_dynamic_flag_spec_CXX='${wl}-E'
  11349. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11350. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11351. # default) and relocated if they conflict, which is a slow very memory
  11352. # consuming and fragmenting process. To avoid this, we pick a random,
  11353. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11354. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11355. 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'
  11356. 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'
  11357. ;;
  11358. irix5* | irix6*)
  11359. case $cc_basename in
  11360. CC*)
  11361. # SGI C++
  11362. 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'
  11363. # Archives containing C++ object files must be created using
  11364. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11365. # necessary to make sure instantiated templates are included
  11366. # in the archive.
  11367. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11368. ;;
  11369. *)
  11370. if test "$GXX" = yes; then
  11371. if test "$with_gnu_ld" = no; then
  11372. 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'
  11373. else
  11374. 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'
  11375. fi
  11376. fi
  11377. link_all_deplibs_CXX=yes
  11378. ;;
  11379. esac
  11380. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11381. hardcode_libdir_separator_CXX=:
  11382. inherit_rpath_CXX=yes
  11383. ;;
  11384. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11385. case $cc_basename in
  11386. KCC*)
  11387. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11388. # KCC will only create a shared library if the output file
  11389. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11390. # to its proper name (with version) after linking.
  11391. 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'
  11392. 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'
  11393. # Commands to make compiler produce verbose output that lists
  11394. # what "hidden" libraries, object files and flags are used when
  11395. # linking a shared library.
  11396. #
  11397. # There doesn't appear to be a way to prevent this compiler from
  11398. # explicitly linking system object files so we need to strip them
  11399. # from the output so that they don't get included in the library
  11400. # dependencies.
  11401. 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"'
  11402. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11403. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11404. # Archives containing C++ object files must be created using
  11405. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11406. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11407. ;;
  11408. icpc* | ecpc* )
  11409. # Intel C++
  11410. with_gnu_ld=yes
  11411. # version 8.0 and above of icpc choke on multiply defined symbols
  11412. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11413. # earlier do not add the objects themselves.
  11414. case `$CC -V 2>&1` in
  11415. *"Version 7."*)
  11416. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11417. 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'
  11418. ;;
  11419. *) # Version 8.0 or newer
  11420. tmp_idyn=
  11421. case $host_cpu in
  11422. ia64*) tmp_idyn=' -i_dynamic';;
  11423. esac
  11424. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11425. 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'
  11426. ;;
  11427. esac
  11428. archive_cmds_need_lc_CXX=no
  11429. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11430. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11431. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11432. ;;
  11433. pgCC* | pgcpp*)
  11434. # Portland Group C++ compiler
  11435. case `$CC -V` in
  11436. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11437. prelink_cmds_CXX='tpldir=Template.dir~
  11438. rm -rf $tpldir~
  11439. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11440. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11441. old_archive_cmds_CXX='tpldir=Template.dir~
  11442. rm -rf $tpldir~
  11443. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11444. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11445. $RANLIB $oldlib'
  11446. archive_cmds_CXX='tpldir=Template.dir~
  11447. rm -rf $tpldir~
  11448. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11449. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11450. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11451. rm -rf $tpldir~
  11452. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11453. $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'
  11454. ;;
  11455. *) # Version 6 and above use weak symbols
  11456. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11457. 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'
  11458. ;;
  11459. esac
  11460. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11461. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11462. 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'
  11463. ;;
  11464. cxx*)
  11465. # Compaq C++
  11466. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11467. 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'
  11468. runpath_var=LD_RUN_PATH
  11469. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11470. hardcode_libdir_separator_CXX=:
  11471. # Commands to make compiler produce verbose output that lists
  11472. # what "hidden" libraries, object files and flags are used when
  11473. # linking a shared library.
  11474. #
  11475. # There doesn't appear to be a way to prevent this compiler from
  11476. # explicitly linking system object files so we need to strip them
  11477. # from the output so that they don't get included in the library
  11478. # dependencies.
  11479. 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'
  11480. ;;
  11481. xl* | mpixl* | bgxl*)
  11482. # IBM XL 8.0 on PPC, with GNU ld
  11483. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11484. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11485. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11486. if test "x$supports_anon_versioning" = xyes; then
  11487. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11488. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11489. echo "local: *; };" >> $output_objdir/$libname.ver~
  11490. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11491. fi
  11492. ;;
  11493. *)
  11494. case `$CC -V 2>&1 | sed 5q` in
  11495. *Sun\ C*)
  11496. # Sun C++ 5.9
  11497. no_undefined_flag_CXX=' -zdefs'
  11498. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11499. 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'
  11500. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11501. 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'
  11502. compiler_needs_object_CXX=yes
  11503. # Not sure whether something based on
  11504. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11505. # would be better.
  11506. output_verbose_link_cmd='func_echo_all'
  11507. # Archives containing C++ object files must be created using
  11508. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11509. # necessary to make sure instantiated templates are included
  11510. # in the archive.
  11511. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11512. ;;
  11513. esac
  11514. ;;
  11515. esac
  11516. ;;
  11517. lynxos*)
  11518. # FIXME: insert proper C++ library support
  11519. ld_shlibs_CXX=no
  11520. ;;
  11521. m88k*)
  11522. # FIXME: insert proper C++ library support
  11523. ld_shlibs_CXX=no
  11524. ;;
  11525. mvs*)
  11526. case $cc_basename in
  11527. cxx*)
  11528. # FIXME: insert proper C++ library support
  11529. ld_shlibs_CXX=no
  11530. ;;
  11531. *)
  11532. # FIXME: insert proper C++ library support
  11533. ld_shlibs_CXX=no
  11534. ;;
  11535. esac
  11536. ;;
  11537. netbsd*)
  11538. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11539. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11540. wlarc=
  11541. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11542. hardcode_direct_CXX=yes
  11543. hardcode_shlibpath_var_CXX=no
  11544. fi
  11545. # Workaround some broken pre-1.5 toolchains
  11546. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11547. ;;
  11548. *nto* | *qnx*)
  11549. ld_shlibs_CXX=yes
  11550. ;;
  11551. openbsd2*)
  11552. # C++ shared libraries are fairly broken
  11553. ld_shlibs_CXX=no
  11554. ;;
  11555. openbsd*)
  11556. if test -f /usr/libexec/ld.so; then
  11557. hardcode_direct_CXX=yes
  11558. hardcode_shlibpath_var_CXX=no
  11559. hardcode_direct_absolute_CXX=yes
  11560. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11561. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11562. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11563. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11564. export_dynamic_flag_spec_CXX='${wl}-E'
  11565. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11566. fi
  11567. output_verbose_link_cmd=func_echo_all
  11568. else
  11569. ld_shlibs_CXX=no
  11570. fi
  11571. ;;
  11572. osf3* | osf4* | osf5*)
  11573. case $cc_basename in
  11574. KCC*)
  11575. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11576. # KCC will only create a shared library if the output file
  11577. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11578. # to its proper name (with version) after linking.
  11579. 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'
  11580. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11581. hardcode_libdir_separator_CXX=:
  11582. # Archives containing C++ object files must be created using
  11583. # the KAI C++ compiler.
  11584. case $host in
  11585. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11586. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11587. esac
  11588. ;;
  11589. RCC*)
  11590. # Rational C++ 2.4.1
  11591. # FIXME: insert proper C++ library support
  11592. ld_shlibs_CXX=no
  11593. ;;
  11594. cxx*)
  11595. case $host in
  11596. osf3*)
  11597. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11598. 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'
  11599. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11600. ;;
  11601. *)
  11602. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11603. 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'
  11604. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11605. echo "-hidden">> $lib.exp~
  11606. $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~
  11607. $RM $lib.exp'
  11608. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11609. ;;
  11610. esac
  11611. hardcode_libdir_separator_CXX=:
  11612. # Commands to make compiler produce verbose output that lists
  11613. # what "hidden" libraries, object files and flags are used when
  11614. # linking a shared library.
  11615. #
  11616. # There doesn't appear to be a way to prevent this compiler from
  11617. # explicitly linking system object files so we need to strip them
  11618. # from the output so that they don't get included in the library
  11619. # dependencies.
  11620. 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"'
  11621. ;;
  11622. *)
  11623. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11624. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11625. case $host in
  11626. osf3*)
  11627. 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'
  11628. ;;
  11629. *)
  11630. 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'
  11631. ;;
  11632. esac
  11633. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11634. hardcode_libdir_separator_CXX=:
  11635. # Commands to make compiler produce verbose output that lists
  11636. # what "hidden" libraries, object files and flags are used when
  11637. # linking a shared library.
  11638. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11639. else
  11640. # FIXME: insert proper C++ library support
  11641. ld_shlibs_CXX=no
  11642. fi
  11643. ;;
  11644. esac
  11645. ;;
  11646. psos*)
  11647. # FIXME: insert proper C++ library support
  11648. ld_shlibs_CXX=no
  11649. ;;
  11650. sunos4*)
  11651. case $cc_basename in
  11652. CC*)
  11653. # Sun C++ 4.x
  11654. # FIXME: insert proper C++ library support
  11655. ld_shlibs_CXX=no
  11656. ;;
  11657. lcc*)
  11658. # Lucid
  11659. # FIXME: insert proper C++ library support
  11660. ld_shlibs_CXX=no
  11661. ;;
  11662. *)
  11663. # FIXME: insert proper C++ library support
  11664. ld_shlibs_CXX=no
  11665. ;;
  11666. esac
  11667. ;;
  11668. solaris*)
  11669. case $cc_basename in
  11670. CC* | sunCC*)
  11671. # Sun C++ 4.2, 5.x and Centerline C++
  11672. archive_cmds_need_lc_CXX=yes
  11673. no_undefined_flag_CXX=' -zdefs'
  11674. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11675. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11676. $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'
  11677. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11678. hardcode_shlibpath_var_CXX=no
  11679. case $host_os in
  11680. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11681. *)
  11682. # The compiler driver will combine and reorder linker options,
  11683. # but understands `-z linker_flag'.
  11684. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11685. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11686. ;;
  11687. esac
  11688. link_all_deplibs_CXX=yes
  11689. output_verbose_link_cmd='func_echo_all'
  11690. # Archives containing C++ object files must be created using
  11691. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11692. # necessary to make sure instantiated templates are included
  11693. # in the archive.
  11694. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11695. ;;
  11696. gcx*)
  11697. # Green Hills C++ Compiler
  11698. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11699. # The C++ compiler must be used to create the archive.
  11700. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11701. ;;
  11702. *)
  11703. # GNU C++ compiler with Solaris linker
  11704. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11705. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11706. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11707. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11708. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11709. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11710. # Commands to make compiler produce verbose output that lists
  11711. # what "hidden" libraries, object files and flags are used when
  11712. # linking a shared library.
  11713. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11714. else
  11715. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11716. # platform.
  11717. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11718. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11719. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11720. # Commands to make compiler produce verbose output that lists
  11721. # what "hidden" libraries, object files and flags are used when
  11722. # linking a shared library.
  11723. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11724. fi
  11725. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11726. case $host_os in
  11727. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11728. *)
  11729. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11730. ;;
  11731. esac
  11732. fi
  11733. ;;
  11734. esac
  11735. ;;
  11736. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11737. no_undefined_flag_CXX='${wl}-z,text'
  11738. archive_cmds_need_lc_CXX=no
  11739. hardcode_shlibpath_var_CXX=no
  11740. runpath_var='LD_RUN_PATH'
  11741. case $cc_basename in
  11742. CC*)
  11743. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11744. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11745. ;;
  11746. *)
  11747. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11748. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11749. ;;
  11750. esac
  11751. ;;
  11752. sysv5* | sco3.2v5* | sco5v6*)
  11753. # Note: We can NOT use -z defs as we might desire, because we do not
  11754. # link with -lc, and that would cause any symbols used from libc to
  11755. # always be unresolved, which means just about no library would
  11756. # ever link correctly. If we're not using GNU ld we use -z text
  11757. # though, which does catch some bad symbols but isn't as heavy-handed
  11758. # as -z defs.
  11759. no_undefined_flag_CXX='${wl}-z,text'
  11760. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11761. archive_cmds_need_lc_CXX=no
  11762. hardcode_shlibpath_var_CXX=no
  11763. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11764. hardcode_libdir_separator_CXX=':'
  11765. link_all_deplibs_CXX=yes
  11766. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11767. runpath_var='LD_RUN_PATH'
  11768. case $cc_basename in
  11769. CC*)
  11770. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11771. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11772. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11773. '"$old_archive_cmds_CXX"
  11774. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11775. '"$reload_cmds_CXX"
  11776. ;;
  11777. *)
  11778. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11779. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11780. ;;
  11781. esac
  11782. ;;
  11783. tandem*)
  11784. case $cc_basename in
  11785. NCC*)
  11786. # NonStop-UX NCC 3.20
  11787. # FIXME: insert proper C++ library support
  11788. ld_shlibs_CXX=no
  11789. ;;
  11790. *)
  11791. # FIXME: insert proper C++ library support
  11792. ld_shlibs_CXX=no
  11793. ;;
  11794. esac
  11795. ;;
  11796. vxworks*)
  11797. # FIXME: insert proper C++ library support
  11798. ld_shlibs_CXX=no
  11799. ;;
  11800. *)
  11801. # FIXME: insert proper C++ library support
  11802. ld_shlibs_CXX=no
  11803. ;;
  11804. esac
  11805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11806. $as_echo "$ld_shlibs_CXX" >&6; }
  11807. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11808. GCC_CXX="$GXX"
  11809. LD_CXX="$LD"
  11810. ## CAVEAT EMPTOR:
  11811. ## There is no encapsulation within the following macros, do not change
  11812. ## the running order or otherwise move them around unless you know exactly
  11813. ## what you are doing...
  11814. # Dependencies to place before and after the object being linked:
  11815. predep_objects_CXX=
  11816. postdep_objects_CXX=
  11817. predeps_CXX=
  11818. postdeps_CXX=
  11819. compiler_lib_search_path_CXX=
  11820. cat > conftest.$ac_ext <<_LT_EOF
  11821. class Foo
  11822. {
  11823. public:
  11824. Foo (void) { a = 0; }
  11825. private:
  11826. int a;
  11827. };
  11828. _LT_EOF
  11829. _lt_libdeps_save_CFLAGS=$CFLAGS
  11830. case "$CC $CFLAGS " in #(
  11831. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11832. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11833. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11834. esac
  11835. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11836. (eval $ac_compile) 2>&5
  11837. ac_status=$?
  11838. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11839. test $ac_status = 0; }; then
  11840. # Parse the compiler output and extract the necessary
  11841. # objects, libraries and library flags.
  11842. # Sentinel used to keep track of whether or not we are before
  11843. # the conftest object file.
  11844. pre_test_object_deps_done=no
  11845. for p in `eval "$output_verbose_link_cmd"`; do
  11846. case ${prev}${p} in
  11847. -L* | -R* | -l*)
  11848. # Some compilers place space between "-{L,R}" and the path.
  11849. # Remove the space.
  11850. if test $p = "-L" ||
  11851. test $p = "-R"; then
  11852. prev=$p
  11853. continue
  11854. fi
  11855. # Expand the sysroot to ease extracting the directories later.
  11856. if test -z "$prev"; then
  11857. case $p in
  11858. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11859. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11860. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11861. esac
  11862. fi
  11863. case $p in
  11864. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11865. esac
  11866. if test "$pre_test_object_deps_done" = no; then
  11867. case ${prev} in
  11868. -L | -R)
  11869. # Internal compiler library paths should come after those
  11870. # provided the user. The postdeps already come after the
  11871. # user supplied libs so there is no need to process them.
  11872. if test -z "$compiler_lib_search_path_CXX"; then
  11873. compiler_lib_search_path_CXX="${prev}${p}"
  11874. else
  11875. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11876. fi
  11877. ;;
  11878. # The "-l" case would never come before the object being
  11879. # linked, so don't bother handling this case.
  11880. esac
  11881. else
  11882. if test -z "$postdeps_CXX"; then
  11883. postdeps_CXX="${prev}${p}"
  11884. else
  11885. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11886. fi
  11887. fi
  11888. prev=
  11889. ;;
  11890. *.lto.$objext) ;; # Ignore GCC LTO objects
  11891. *.$objext)
  11892. # This assumes that the test object file only shows up
  11893. # once in the compiler output.
  11894. if test "$p" = "conftest.$objext"; then
  11895. pre_test_object_deps_done=yes
  11896. continue
  11897. fi
  11898. if test "$pre_test_object_deps_done" = no; then
  11899. if test -z "$predep_objects_CXX"; then
  11900. predep_objects_CXX="$p"
  11901. else
  11902. predep_objects_CXX="$predep_objects_CXX $p"
  11903. fi
  11904. else
  11905. if test -z "$postdep_objects_CXX"; then
  11906. postdep_objects_CXX="$p"
  11907. else
  11908. postdep_objects_CXX="$postdep_objects_CXX $p"
  11909. fi
  11910. fi
  11911. ;;
  11912. *) ;; # Ignore the rest.
  11913. esac
  11914. done
  11915. # Clean up.
  11916. rm -f a.out a.exe
  11917. else
  11918. echo "libtool.m4: error: problem compiling CXX test program"
  11919. fi
  11920. $RM -f confest.$objext
  11921. CFLAGS=$_lt_libdeps_save_CFLAGS
  11922. # PORTME: override above test on systems where it is broken
  11923. case $host_os in
  11924. interix[3-9]*)
  11925. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11926. # hack all around it, let's just trust "g++" to DTRT.
  11927. predep_objects_CXX=
  11928. postdep_objects_CXX=
  11929. postdeps_CXX=
  11930. ;;
  11931. linux*)
  11932. case `$CC -V 2>&1 | sed 5q` in
  11933. *Sun\ C*)
  11934. # Sun C++ 5.9
  11935. # The more standards-conforming stlport4 library is
  11936. # incompatible with the Cstd library. Avoid specifying
  11937. # it if it's in CXXFLAGS. Ignore libCrun as
  11938. # -library=stlport4 depends on it.
  11939. case " $CXX $CXXFLAGS " in
  11940. *" -library=stlport4 "*)
  11941. solaris_use_stlport4=yes
  11942. ;;
  11943. esac
  11944. if test "$solaris_use_stlport4" != yes; then
  11945. postdeps_CXX='-library=Cstd -library=Crun'
  11946. fi
  11947. ;;
  11948. esac
  11949. ;;
  11950. solaris*)
  11951. case $cc_basename in
  11952. CC* | sunCC*)
  11953. # The more standards-conforming stlport4 library is
  11954. # incompatible with the Cstd library. Avoid specifying
  11955. # it if it's in CXXFLAGS. Ignore libCrun as
  11956. # -library=stlport4 depends on it.
  11957. case " $CXX $CXXFLAGS " in
  11958. *" -library=stlport4 "*)
  11959. solaris_use_stlport4=yes
  11960. ;;
  11961. esac
  11962. # Adding this requires a known-good setup of shared libraries for
  11963. # Sun compiler versions before 5.6, else PIC objects from an old
  11964. # archive will be linked into the output, leading to subtle bugs.
  11965. if test "$solaris_use_stlport4" != yes; then
  11966. postdeps_CXX='-library=Cstd -library=Crun'
  11967. fi
  11968. ;;
  11969. esac
  11970. ;;
  11971. esac
  11972. case " $postdeps_CXX " in
  11973. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11974. esac
  11975. compiler_lib_search_dirs_CXX=
  11976. if test -n "${compiler_lib_search_path_CXX}"; then
  11977. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11978. fi
  11979. lt_prog_compiler_wl_CXX=
  11980. lt_prog_compiler_pic_CXX=
  11981. lt_prog_compiler_static_CXX=
  11982. # C++ specific cases for pic, static, wl, etc.
  11983. if test "$GXX" = yes; then
  11984. lt_prog_compiler_wl_CXX='-Wl,'
  11985. lt_prog_compiler_static_CXX='-static'
  11986. case $host_os in
  11987. aix*)
  11988. # All AIX code is PIC.
  11989. if test "$host_cpu" = ia64; then
  11990. # AIX 5 now supports IA64 processor
  11991. lt_prog_compiler_static_CXX='-Bstatic'
  11992. fi
  11993. ;;
  11994. amigaos*)
  11995. case $host_cpu in
  11996. powerpc)
  11997. # see comment about AmigaOS4 .so support
  11998. lt_prog_compiler_pic_CXX='-fPIC'
  11999. ;;
  12000. m68k)
  12001. # FIXME: we need at least 68020 code to build shared libraries, but
  12002. # adding the `-m68020' flag to GCC prevents building anything better,
  12003. # like `-m68040'.
  12004. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12005. ;;
  12006. esac
  12007. ;;
  12008. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12009. # PIC is the default for these OSes.
  12010. ;;
  12011. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12012. # This hack is so that the source file can tell whether it is being
  12013. # built for inclusion in a dll (and should export symbols for example).
  12014. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12015. # (--disable-auto-import) libraries
  12016. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12017. ;;
  12018. darwin* | rhapsody*)
  12019. # PIC is the default on this platform
  12020. # Common symbols not allowed in MH_DYLIB files
  12021. lt_prog_compiler_pic_CXX='-fno-common'
  12022. ;;
  12023. *djgpp*)
  12024. # DJGPP does not support shared libraries at all
  12025. lt_prog_compiler_pic_CXX=
  12026. ;;
  12027. haiku*)
  12028. # PIC is the default for Haiku.
  12029. # The "-static" flag exists, but is broken.
  12030. lt_prog_compiler_static_CXX=
  12031. ;;
  12032. interix[3-9]*)
  12033. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12034. # Instead, we relocate shared libraries at runtime.
  12035. ;;
  12036. sysv4*MP*)
  12037. if test -d /usr/nec; then
  12038. lt_prog_compiler_pic_CXX=-Kconform_pic
  12039. fi
  12040. ;;
  12041. hpux*)
  12042. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12043. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12044. # sets the default TLS model and affects inlining.
  12045. case $host_cpu in
  12046. hppa*64*)
  12047. ;;
  12048. *)
  12049. lt_prog_compiler_pic_CXX='-fPIC'
  12050. ;;
  12051. esac
  12052. ;;
  12053. *qnx* | *nto*)
  12054. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12055. # it will coredump.
  12056. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12057. ;;
  12058. *)
  12059. lt_prog_compiler_pic_CXX='-fPIC'
  12060. ;;
  12061. esac
  12062. else
  12063. case $host_os in
  12064. aix[4-9]*)
  12065. # All AIX code is PIC.
  12066. if test "$host_cpu" = ia64; then
  12067. # AIX 5 now supports IA64 processor
  12068. lt_prog_compiler_static_CXX='-Bstatic'
  12069. else
  12070. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12071. fi
  12072. ;;
  12073. chorus*)
  12074. case $cc_basename in
  12075. cxch68*)
  12076. # Green Hills C++ Compiler
  12077. # _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"
  12078. ;;
  12079. esac
  12080. ;;
  12081. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12082. # This hack is so that the source file can tell whether it is being
  12083. # built for inclusion in a dll (and should export symbols for example).
  12084. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12085. ;;
  12086. dgux*)
  12087. case $cc_basename in
  12088. ec++*)
  12089. lt_prog_compiler_pic_CXX='-KPIC'
  12090. ;;
  12091. ghcx*)
  12092. # Green Hills C++ Compiler
  12093. lt_prog_compiler_pic_CXX='-pic'
  12094. ;;
  12095. *)
  12096. ;;
  12097. esac
  12098. ;;
  12099. freebsd* | dragonfly*)
  12100. # FreeBSD uses GNU C++
  12101. ;;
  12102. hpux9* | hpux10* | hpux11*)
  12103. case $cc_basename in
  12104. CC*)
  12105. lt_prog_compiler_wl_CXX='-Wl,'
  12106. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12107. if test "$host_cpu" != ia64; then
  12108. lt_prog_compiler_pic_CXX='+Z'
  12109. fi
  12110. ;;
  12111. aCC*)
  12112. lt_prog_compiler_wl_CXX='-Wl,'
  12113. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12114. case $host_cpu in
  12115. hppa*64*|ia64*)
  12116. # +Z the default
  12117. ;;
  12118. *)
  12119. lt_prog_compiler_pic_CXX='+Z'
  12120. ;;
  12121. esac
  12122. ;;
  12123. *)
  12124. ;;
  12125. esac
  12126. ;;
  12127. interix*)
  12128. # This is c89, which is MS Visual C++ (no shared libs)
  12129. # Anyone wants to do a port?
  12130. ;;
  12131. irix5* | irix6* | nonstopux*)
  12132. case $cc_basename in
  12133. CC*)
  12134. lt_prog_compiler_wl_CXX='-Wl,'
  12135. lt_prog_compiler_static_CXX='-non_shared'
  12136. # CC pic flag -KPIC is the default.
  12137. ;;
  12138. *)
  12139. ;;
  12140. esac
  12141. ;;
  12142. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12143. case $cc_basename in
  12144. KCC*)
  12145. # KAI C++ Compiler
  12146. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12147. lt_prog_compiler_pic_CXX='-fPIC'
  12148. ;;
  12149. ecpc* )
  12150. # old Intel C++ for x86_64 which still supported -KPIC.
  12151. lt_prog_compiler_wl_CXX='-Wl,'
  12152. lt_prog_compiler_pic_CXX='-KPIC'
  12153. lt_prog_compiler_static_CXX='-static'
  12154. ;;
  12155. icpc* )
  12156. # Intel C++, used to be incompatible with GCC.
  12157. # ICC 10 doesn't accept -KPIC any more.
  12158. lt_prog_compiler_wl_CXX='-Wl,'
  12159. lt_prog_compiler_pic_CXX='-fPIC'
  12160. lt_prog_compiler_static_CXX='-static'
  12161. ;;
  12162. pgCC* | pgcpp*)
  12163. # Portland Group C++ compiler
  12164. lt_prog_compiler_wl_CXX='-Wl,'
  12165. lt_prog_compiler_pic_CXX='-fpic'
  12166. lt_prog_compiler_static_CXX='-Bstatic'
  12167. ;;
  12168. cxx*)
  12169. # Compaq C++
  12170. # Make sure the PIC flag is empty. It appears that all Alpha
  12171. # Linux and Compaq Tru64 Unix objects are PIC.
  12172. lt_prog_compiler_pic_CXX=
  12173. lt_prog_compiler_static_CXX='-non_shared'
  12174. ;;
  12175. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12176. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12177. lt_prog_compiler_wl_CXX='-Wl,'
  12178. lt_prog_compiler_pic_CXX='-qpic'
  12179. lt_prog_compiler_static_CXX='-qstaticlink'
  12180. ;;
  12181. *)
  12182. case `$CC -V 2>&1 | sed 5q` in
  12183. *Sun\ C*)
  12184. # Sun C++ 5.9
  12185. lt_prog_compiler_pic_CXX='-KPIC'
  12186. lt_prog_compiler_static_CXX='-Bstatic'
  12187. lt_prog_compiler_wl_CXX='-Qoption ld '
  12188. ;;
  12189. esac
  12190. ;;
  12191. esac
  12192. ;;
  12193. lynxos*)
  12194. ;;
  12195. m88k*)
  12196. ;;
  12197. mvs*)
  12198. case $cc_basename in
  12199. cxx*)
  12200. lt_prog_compiler_pic_CXX='-W c,exportall'
  12201. ;;
  12202. *)
  12203. ;;
  12204. esac
  12205. ;;
  12206. netbsd*)
  12207. ;;
  12208. *qnx* | *nto*)
  12209. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12210. # it will coredump.
  12211. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12212. ;;
  12213. osf3* | osf4* | osf5*)
  12214. case $cc_basename in
  12215. KCC*)
  12216. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12217. ;;
  12218. RCC*)
  12219. # Rational C++ 2.4.1
  12220. lt_prog_compiler_pic_CXX='-pic'
  12221. ;;
  12222. cxx*)
  12223. # Digital/Compaq C++
  12224. lt_prog_compiler_wl_CXX='-Wl,'
  12225. # Make sure the PIC flag is empty. It appears that all Alpha
  12226. # Linux and Compaq Tru64 Unix objects are PIC.
  12227. lt_prog_compiler_pic_CXX=
  12228. lt_prog_compiler_static_CXX='-non_shared'
  12229. ;;
  12230. *)
  12231. ;;
  12232. esac
  12233. ;;
  12234. psos*)
  12235. ;;
  12236. solaris*)
  12237. case $cc_basename in
  12238. CC* | sunCC*)
  12239. # Sun C++ 4.2, 5.x and Centerline C++
  12240. lt_prog_compiler_pic_CXX='-KPIC'
  12241. lt_prog_compiler_static_CXX='-Bstatic'
  12242. lt_prog_compiler_wl_CXX='-Qoption ld '
  12243. ;;
  12244. gcx*)
  12245. # Green Hills C++ Compiler
  12246. lt_prog_compiler_pic_CXX='-PIC'
  12247. ;;
  12248. *)
  12249. ;;
  12250. esac
  12251. ;;
  12252. sunos4*)
  12253. case $cc_basename in
  12254. CC*)
  12255. # Sun C++ 4.x
  12256. lt_prog_compiler_pic_CXX='-pic'
  12257. lt_prog_compiler_static_CXX='-Bstatic'
  12258. ;;
  12259. lcc*)
  12260. # Lucid
  12261. lt_prog_compiler_pic_CXX='-pic'
  12262. ;;
  12263. *)
  12264. ;;
  12265. esac
  12266. ;;
  12267. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12268. case $cc_basename in
  12269. CC*)
  12270. lt_prog_compiler_wl_CXX='-Wl,'
  12271. lt_prog_compiler_pic_CXX='-KPIC'
  12272. lt_prog_compiler_static_CXX='-Bstatic'
  12273. ;;
  12274. esac
  12275. ;;
  12276. tandem*)
  12277. case $cc_basename in
  12278. NCC*)
  12279. # NonStop-UX NCC 3.20
  12280. lt_prog_compiler_pic_CXX='-KPIC'
  12281. ;;
  12282. *)
  12283. ;;
  12284. esac
  12285. ;;
  12286. vxworks*)
  12287. ;;
  12288. *)
  12289. lt_prog_compiler_can_build_shared_CXX=no
  12290. ;;
  12291. esac
  12292. fi
  12293. case $host_os in
  12294. # For platforms which do not support PIC, -DPIC is meaningless:
  12295. *djgpp*)
  12296. lt_prog_compiler_pic_CXX=
  12297. ;;
  12298. *)
  12299. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
  12300. ;;
  12301. esac
  12302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12303. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12304. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12305. $as_echo_n "(cached) " >&6
  12306. else
  12307. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12308. fi
  12309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12310. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12311. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12312. #
  12313. # Check to make sure the PIC flag actually works.
  12314. #
  12315. if test -n "$lt_prog_compiler_pic_CXX"; then
  12316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12317. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12318. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12319. $as_echo_n "(cached) " >&6
  12320. else
  12321. lt_cv_prog_compiler_pic_works_CXX=no
  12322. ac_outfile=conftest.$ac_objext
  12323. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12324. lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
  12325. # Insert the option either (1) after the last *FLAGS variable, or
  12326. # (2) before a word containing "conftest.", or (3) at the end.
  12327. # Note that $ac_compile itself does not contain backslashes and begins
  12328. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12329. # The option is referenced via a variable to avoid confusing sed.
  12330. lt_compile=`echo "$ac_compile" | $SED \
  12331. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12332. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12333. -e 's:$: $lt_compiler_flag:'`
  12334. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12335. (eval "$lt_compile" 2>conftest.err)
  12336. ac_status=$?
  12337. cat conftest.err >&5
  12338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12339. if (exit $ac_status) && test -s "$ac_outfile"; then
  12340. # The compiler can only warn and ignore the option if not recognized
  12341. # So say no if there are warnings other than the usual output.
  12342. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12343. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12344. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12345. lt_cv_prog_compiler_pic_works_CXX=yes
  12346. fi
  12347. fi
  12348. $RM conftest*
  12349. fi
  12350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12351. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12352. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12353. case $lt_prog_compiler_pic_CXX in
  12354. "" | " "*) ;;
  12355. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12356. esac
  12357. else
  12358. lt_prog_compiler_pic_CXX=
  12359. lt_prog_compiler_can_build_shared_CXX=no
  12360. fi
  12361. fi
  12362. #
  12363. # Check to make sure the static flag actually works.
  12364. #
  12365. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12367. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12368. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12369. $as_echo_n "(cached) " >&6
  12370. else
  12371. lt_cv_prog_compiler_static_works_CXX=no
  12372. save_LDFLAGS="$LDFLAGS"
  12373. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12374. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12375. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12376. # The linker can only warn and ignore the option if not recognized
  12377. # So say no if there are warnings
  12378. if test -s conftest.err; then
  12379. # Append any errors to the config.log.
  12380. cat conftest.err 1>&5
  12381. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12382. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12383. if diff conftest.exp conftest.er2 >/dev/null; then
  12384. lt_cv_prog_compiler_static_works_CXX=yes
  12385. fi
  12386. else
  12387. lt_cv_prog_compiler_static_works_CXX=yes
  12388. fi
  12389. fi
  12390. $RM -r conftest*
  12391. LDFLAGS="$save_LDFLAGS"
  12392. fi
  12393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12394. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12395. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12396. :
  12397. else
  12398. lt_prog_compiler_static_CXX=
  12399. fi
  12400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12401. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12402. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12403. $as_echo_n "(cached) " >&6
  12404. else
  12405. lt_cv_prog_compiler_c_o_CXX=no
  12406. $RM -r conftest 2>/dev/null
  12407. mkdir conftest
  12408. cd conftest
  12409. mkdir out
  12410. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12411. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12412. # Insert the option either (1) after the last *FLAGS variable, or
  12413. # (2) before a word containing "conftest.", or (3) at the end.
  12414. # Note that $ac_compile itself does not contain backslashes and begins
  12415. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12416. lt_compile=`echo "$ac_compile" | $SED \
  12417. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12418. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12419. -e 's:$: $lt_compiler_flag:'`
  12420. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12421. (eval "$lt_compile" 2>out/conftest.err)
  12422. ac_status=$?
  12423. cat out/conftest.err >&5
  12424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12425. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12426. then
  12427. # The compiler can only warn and ignore the option if not recognized
  12428. # So say no if there are warnings
  12429. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12430. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12431. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12432. lt_cv_prog_compiler_c_o_CXX=yes
  12433. fi
  12434. fi
  12435. chmod u+w . 2>&5
  12436. $RM conftest*
  12437. # SGI C++ compiler will create directory out/ii_files/ for
  12438. # template instantiation
  12439. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12440. $RM out/* && rmdir out
  12441. cd ..
  12442. $RM -r conftest
  12443. $RM conftest*
  12444. fi
  12445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12446. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12448. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12449. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12450. $as_echo_n "(cached) " >&6
  12451. else
  12452. lt_cv_prog_compiler_c_o_CXX=no
  12453. $RM -r conftest 2>/dev/null
  12454. mkdir conftest
  12455. cd conftest
  12456. mkdir out
  12457. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12458. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12459. # Insert the option either (1) after the last *FLAGS variable, or
  12460. # (2) before a word containing "conftest.", or (3) at the end.
  12461. # Note that $ac_compile itself does not contain backslashes and begins
  12462. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12463. lt_compile=`echo "$ac_compile" | $SED \
  12464. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12465. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12466. -e 's:$: $lt_compiler_flag:'`
  12467. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12468. (eval "$lt_compile" 2>out/conftest.err)
  12469. ac_status=$?
  12470. cat out/conftest.err >&5
  12471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12472. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12473. then
  12474. # The compiler can only warn and ignore the option if not recognized
  12475. # So say no if there are warnings
  12476. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12477. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12478. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12479. lt_cv_prog_compiler_c_o_CXX=yes
  12480. fi
  12481. fi
  12482. chmod u+w . 2>&5
  12483. $RM conftest*
  12484. # SGI C++ compiler will create directory out/ii_files/ for
  12485. # template instantiation
  12486. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12487. $RM out/* && rmdir out
  12488. cd ..
  12489. $RM -r conftest
  12490. $RM conftest*
  12491. fi
  12492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12493. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12494. hard_links="nottested"
  12495. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12496. # do not overwrite the value of need_locks provided by the user
  12497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12498. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12499. hard_links=yes
  12500. $RM conftest*
  12501. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12502. touch conftest.a
  12503. ln conftest.a conftest.b 2>&5 || hard_links=no
  12504. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12506. $as_echo "$hard_links" >&6; }
  12507. if test "$hard_links" = no; then
  12508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12509. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12510. need_locks=warn
  12511. fi
  12512. else
  12513. need_locks=no
  12514. fi
  12515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12516. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12517. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12518. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12519. case $host_os in
  12520. aix[4-9]*)
  12521. # If we're using GNU nm, then we don't want the "-C" option.
  12522. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12523. # Also, AIX nm treats weak defined symbols like other global defined
  12524. # symbols, whereas GNU nm marks them as "W".
  12525. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12526. 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'
  12527. else
  12528. 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'
  12529. fi
  12530. ;;
  12531. pw32*)
  12532. export_symbols_cmds_CXX="$ltdll_cmds"
  12533. ;;
  12534. cygwin* | mingw* | cegcc*)
  12535. case $cc_basename in
  12536. cl*)
  12537. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12538. ;;
  12539. *)
  12540. 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'
  12541. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12542. ;;
  12543. esac
  12544. ;;
  12545. *)
  12546. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12547. ;;
  12548. esac
  12549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12550. $as_echo "$ld_shlibs_CXX" >&6; }
  12551. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12552. with_gnu_ld_CXX=$with_gnu_ld
  12553. #
  12554. # Do we need to explicitly link libc?
  12555. #
  12556. case "x$archive_cmds_need_lc_CXX" in
  12557. x|xyes)
  12558. # Assume -lc should be added
  12559. archive_cmds_need_lc_CXX=yes
  12560. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12561. case $archive_cmds_CXX in
  12562. *'~'*)
  12563. # FIXME: we may have to deal with multi-command sequences.
  12564. ;;
  12565. '$CC '*)
  12566. # Test whether the compiler implicitly links with -lc since on some
  12567. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12568. # to ld, don't add -lc before -lgcc.
  12569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12570. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12571. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12572. $as_echo_n "(cached) " >&6
  12573. else
  12574. $RM conftest*
  12575. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12576. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12577. (eval $ac_compile) 2>&5
  12578. ac_status=$?
  12579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12580. test $ac_status = 0; } 2>conftest.err; then
  12581. soname=conftest
  12582. lib=conftest
  12583. libobjs=conftest.$ac_objext
  12584. deplibs=
  12585. wl=$lt_prog_compiler_wl_CXX
  12586. pic_flag=$lt_prog_compiler_pic_CXX
  12587. compiler_flags=-v
  12588. linker_flags=-v
  12589. verstring=
  12590. output_objdir=.
  12591. libname=conftest
  12592. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12593. allow_undefined_flag_CXX=
  12594. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12595. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12596. ac_status=$?
  12597. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12598. test $ac_status = 0; }
  12599. then
  12600. lt_cv_archive_cmds_need_lc_CXX=no
  12601. else
  12602. lt_cv_archive_cmds_need_lc_CXX=yes
  12603. fi
  12604. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12605. else
  12606. cat conftest.err 1>&5
  12607. fi
  12608. $RM conftest*
  12609. fi
  12610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12611. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12612. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12613. ;;
  12614. esac
  12615. fi
  12616. ;;
  12617. esac
  12618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12619. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12620. library_names_spec=
  12621. libname_spec='lib$name'
  12622. soname_spec=
  12623. shrext_cmds=".so"
  12624. postinstall_cmds=
  12625. postuninstall_cmds=
  12626. finish_cmds=
  12627. finish_eval=
  12628. shlibpath_var=
  12629. shlibpath_overrides_runpath=unknown
  12630. version_type=none
  12631. dynamic_linker="$host_os ld.so"
  12632. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12633. need_lib_prefix=unknown
  12634. hardcode_into_libs=no
  12635. # when you set need_version to no, make sure it does not cause -set_version
  12636. # flags to be left without arguments
  12637. need_version=unknown
  12638. case $host_os in
  12639. aix3*)
  12640. version_type=linux # correct to gnu/linux during the next big refactor
  12641. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12642. shlibpath_var=LIBPATH
  12643. # AIX 3 has no versioning support, so we append a major version to the name.
  12644. soname_spec='${libname}${release}${shared_ext}$major'
  12645. ;;
  12646. aix[4-9]*)
  12647. version_type=linux # correct to gnu/linux during the next big refactor
  12648. need_lib_prefix=no
  12649. need_version=no
  12650. hardcode_into_libs=yes
  12651. if test "$host_cpu" = ia64; then
  12652. # AIX 5 supports IA64
  12653. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12654. shlibpath_var=LD_LIBRARY_PATH
  12655. else
  12656. # With GCC up to 2.95.x, collect2 would create an import file
  12657. # for dependence libraries. The import file would start with
  12658. # the line `#! .'. This would cause the generated library to
  12659. # depend on `.', always an invalid library. This was fixed in
  12660. # development snapshots of GCC prior to 3.0.
  12661. case $host_os in
  12662. aix4 | aix4.[01] | aix4.[01].*)
  12663. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12664. echo ' yes '
  12665. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12666. :
  12667. else
  12668. can_build_shared=no
  12669. fi
  12670. ;;
  12671. esac
  12672. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12673. # soname into executable. Probably we can add versioning support to
  12674. # collect2, so additional links can be useful in future.
  12675. if test "$aix_use_runtimelinking" = yes; then
  12676. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12677. # instead of lib<name>.a to let people know that these are not
  12678. # typical AIX shared libraries.
  12679. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12680. else
  12681. # We preserve .a as extension for shared libraries through AIX4.2
  12682. # and later when we are not doing run time linking.
  12683. library_names_spec='${libname}${release}.a $libname.a'
  12684. soname_spec='${libname}${release}${shared_ext}$major'
  12685. fi
  12686. shlibpath_var=LIBPATH
  12687. fi
  12688. ;;
  12689. amigaos*)
  12690. case $host_cpu in
  12691. powerpc)
  12692. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12693. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12694. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12695. ;;
  12696. m68k)
  12697. library_names_spec='$libname.ixlibrary $libname.a'
  12698. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12699. 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'
  12700. ;;
  12701. esac
  12702. ;;
  12703. beos*)
  12704. library_names_spec='${libname}${shared_ext}'
  12705. dynamic_linker="$host_os ld.so"
  12706. shlibpath_var=LIBRARY_PATH
  12707. ;;
  12708. bsdi[45]*)
  12709. version_type=linux # correct to gnu/linux during the next big refactor
  12710. need_version=no
  12711. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12712. soname_spec='${libname}${release}${shared_ext}$major'
  12713. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12714. shlibpath_var=LD_LIBRARY_PATH
  12715. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12716. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12717. # the default ld.so.conf also contains /usr/contrib/lib and
  12718. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12719. # libtool to hard-code these into programs
  12720. ;;
  12721. cygwin* | mingw* | pw32* | cegcc*)
  12722. version_type=windows
  12723. shrext_cmds=".dll"
  12724. need_version=no
  12725. need_lib_prefix=no
  12726. case $GCC,$cc_basename in
  12727. yes,*)
  12728. # gcc
  12729. library_names_spec='$libname.dll.a'
  12730. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12731. postinstall_cmds='base_file=`basename \${file}`~
  12732. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12733. dldir=$destdir/`dirname \$dlpath`~
  12734. test -d \$dldir || mkdir -p \$dldir~
  12735. $install_prog $dir/$dlname \$dldir/$dlname~
  12736. chmod a+x \$dldir/$dlname~
  12737. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12738. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12739. fi'
  12740. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12741. dlpath=$dir/\$dldll~
  12742. $RM \$dlpath'
  12743. shlibpath_overrides_runpath=yes
  12744. case $host_os in
  12745. cygwin*)
  12746. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12747. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12748. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12749. ;;
  12750. mingw* | cegcc*)
  12751. # MinGW DLLs use traditional 'lib' prefix
  12752. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12753. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12754. ;;
  12755. pw32*)
  12756. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12757. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12758. ;;
  12759. esac
  12760. dynamic_linker='Win32 ld.exe'
  12761. ;;
  12762. *,cl*)
  12763. # Native MSVC
  12764. libname_spec='$name'
  12765. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12766. library_names_spec='${libname}.dll.lib'
  12767. case $build_os in
  12768. mingw*)
  12769. sys_lib_search_path_spec=
  12770. lt_save_ifs=$IFS
  12771. IFS=';'
  12772. for lt_path in $LIB
  12773. do
  12774. IFS=$lt_save_ifs
  12775. # Let DOS variable expansion print the short 8.3 style file name.
  12776. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12777. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12778. done
  12779. IFS=$lt_save_ifs
  12780. # Convert to MSYS style.
  12781. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12782. ;;
  12783. cygwin*)
  12784. # Convert to unix form, then to dos form, then back to unix form
  12785. # but this time dos style (no spaces!) so that the unix form looks
  12786. # like /cygdrive/c/PROGRA~1:/cygdr...
  12787. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12788. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12789. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12790. ;;
  12791. *)
  12792. sys_lib_search_path_spec="$LIB"
  12793. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12794. # It is most probably a Windows format PATH.
  12795. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12796. else
  12797. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12798. fi
  12799. # FIXME: find the short name or the path components, as spaces are
  12800. # common. (e.g. "Program Files" -> "PROGRA~1")
  12801. ;;
  12802. esac
  12803. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12804. postinstall_cmds='base_file=`basename \${file}`~
  12805. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12806. dldir=$destdir/`dirname \$dlpath`~
  12807. test -d \$dldir || mkdir -p \$dldir~
  12808. $install_prog $dir/$dlname \$dldir/$dlname'
  12809. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12810. dlpath=$dir/\$dldll~
  12811. $RM \$dlpath'
  12812. shlibpath_overrides_runpath=yes
  12813. dynamic_linker='Win32 link.exe'
  12814. ;;
  12815. *)
  12816. # Assume MSVC wrapper
  12817. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12818. dynamic_linker='Win32 ld.exe'
  12819. ;;
  12820. esac
  12821. # FIXME: first we should search . and the directory the executable is in
  12822. shlibpath_var=PATH
  12823. ;;
  12824. darwin* | rhapsody*)
  12825. dynamic_linker="$host_os dyld"
  12826. version_type=darwin
  12827. need_lib_prefix=no
  12828. need_version=no
  12829. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12830. soname_spec='${libname}${release}${major}$shared_ext'
  12831. shlibpath_overrides_runpath=yes
  12832. shlibpath_var=DYLD_LIBRARY_PATH
  12833. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12834. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12835. ;;
  12836. dgux*)
  12837. version_type=linux # correct to gnu/linux during the next big refactor
  12838. need_lib_prefix=no
  12839. need_version=no
  12840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12841. soname_spec='${libname}${release}${shared_ext}$major'
  12842. shlibpath_var=LD_LIBRARY_PATH
  12843. ;;
  12844. freebsd* | dragonfly*)
  12845. # DragonFly does not have aout. When/if they implement a new
  12846. # versioning mechanism, adjust this.
  12847. if test -x /usr/bin/objformat; then
  12848. objformat=`/usr/bin/objformat`
  12849. else
  12850. case $host_os in
  12851. freebsd[23].*) objformat=aout ;;
  12852. *) objformat=elf ;;
  12853. esac
  12854. fi
  12855. version_type=freebsd-$objformat
  12856. case $version_type in
  12857. freebsd-elf*)
  12858. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12859. need_version=no
  12860. need_lib_prefix=no
  12861. ;;
  12862. freebsd-*)
  12863. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12864. need_version=yes
  12865. ;;
  12866. esac
  12867. shlibpath_var=LD_LIBRARY_PATH
  12868. case $host_os in
  12869. freebsd2.*)
  12870. shlibpath_overrides_runpath=yes
  12871. ;;
  12872. freebsd3.[01]* | freebsdelf3.[01]*)
  12873. shlibpath_overrides_runpath=yes
  12874. hardcode_into_libs=yes
  12875. ;;
  12876. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12877. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12878. shlibpath_overrides_runpath=no
  12879. hardcode_into_libs=yes
  12880. ;;
  12881. *) # from 4.6 on, and DragonFly
  12882. shlibpath_overrides_runpath=yes
  12883. hardcode_into_libs=yes
  12884. ;;
  12885. esac
  12886. ;;
  12887. gnu*)
  12888. version_type=linux # correct to gnu/linux during the next big refactor
  12889. need_lib_prefix=no
  12890. need_version=no
  12891. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12892. soname_spec='${libname}${release}${shared_ext}$major'
  12893. shlibpath_var=LD_LIBRARY_PATH
  12894. shlibpath_overrides_runpath=no
  12895. hardcode_into_libs=yes
  12896. ;;
  12897. haiku*)
  12898. version_type=linux # correct to gnu/linux during the next big refactor
  12899. need_lib_prefix=no
  12900. need_version=no
  12901. dynamic_linker="$host_os runtime_loader"
  12902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12903. soname_spec='${libname}${release}${shared_ext}$major'
  12904. shlibpath_var=LIBRARY_PATH
  12905. shlibpath_overrides_runpath=yes
  12906. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12907. hardcode_into_libs=yes
  12908. ;;
  12909. hpux9* | hpux10* | hpux11*)
  12910. # Give a soname corresponding to the major version so that dld.sl refuses to
  12911. # link against other versions.
  12912. version_type=sunos
  12913. need_lib_prefix=no
  12914. need_version=no
  12915. case $host_cpu in
  12916. ia64*)
  12917. shrext_cmds='.so'
  12918. hardcode_into_libs=yes
  12919. dynamic_linker="$host_os dld.so"
  12920. shlibpath_var=LD_LIBRARY_PATH
  12921. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12922. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12923. soname_spec='${libname}${release}${shared_ext}$major'
  12924. if test "X$HPUX_IA64_MODE" = X32; then
  12925. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12926. else
  12927. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12928. fi
  12929. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12930. ;;
  12931. hppa*64*)
  12932. shrext_cmds='.sl'
  12933. hardcode_into_libs=yes
  12934. dynamic_linker="$host_os dld.sl"
  12935. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12936. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12937. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12938. soname_spec='${libname}${release}${shared_ext}$major'
  12939. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12940. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12941. ;;
  12942. *)
  12943. shrext_cmds='.sl'
  12944. dynamic_linker="$host_os dld.sl"
  12945. shlibpath_var=SHLIB_PATH
  12946. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12947. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12948. soname_spec='${libname}${release}${shared_ext}$major'
  12949. ;;
  12950. esac
  12951. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12952. postinstall_cmds='chmod 555 $lib'
  12953. # or fails outright, so override atomically:
  12954. install_override_mode=555
  12955. ;;
  12956. interix[3-9]*)
  12957. version_type=linux # correct to gnu/linux during the next big refactor
  12958. need_lib_prefix=no
  12959. need_version=no
  12960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12961. soname_spec='${libname}${release}${shared_ext}$major'
  12962. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12963. shlibpath_var=LD_LIBRARY_PATH
  12964. shlibpath_overrides_runpath=no
  12965. hardcode_into_libs=yes
  12966. ;;
  12967. irix5* | irix6* | nonstopux*)
  12968. case $host_os in
  12969. nonstopux*) version_type=nonstopux ;;
  12970. *)
  12971. if test "$lt_cv_prog_gnu_ld" = yes; then
  12972. version_type=linux # correct to gnu/linux during the next big refactor
  12973. else
  12974. version_type=irix
  12975. fi ;;
  12976. esac
  12977. need_lib_prefix=no
  12978. need_version=no
  12979. soname_spec='${libname}${release}${shared_ext}$major'
  12980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12981. case $host_os in
  12982. irix5* | nonstopux*)
  12983. libsuff= shlibsuff=
  12984. ;;
  12985. *)
  12986. case $LD in # libtool.m4 will add one of these switches to LD
  12987. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12988. libsuff= shlibsuff= libmagic=32-bit;;
  12989. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12990. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12991. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12992. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12993. *) libsuff= shlibsuff= libmagic=never-match;;
  12994. esac
  12995. ;;
  12996. esac
  12997. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12998. shlibpath_overrides_runpath=no
  12999. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13000. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13001. hardcode_into_libs=yes
  13002. ;;
  13003. # No shared lib support for Linux oldld, aout, or coff.
  13004. linux*oldld* | linux*aout* | linux*coff*)
  13005. dynamic_linker=no
  13006. ;;
  13007. # This must be glibc/ELF.
  13008. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13009. version_type=linux # correct to gnu/linux during the next big refactor
  13010. need_lib_prefix=no
  13011. need_version=no
  13012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13013. soname_spec='${libname}${release}${shared_ext}$major'
  13014. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13015. shlibpath_var=LD_LIBRARY_PATH
  13016. shlibpath_overrides_runpath=no
  13017. # Some binutils ld are patched to set DT_RUNPATH
  13018. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13019. $as_echo_n "(cached) " >&6
  13020. else
  13021. lt_cv_shlibpath_overrides_runpath=no
  13022. save_LDFLAGS=$LDFLAGS
  13023. save_libdir=$libdir
  13024. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13025. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13027. /* end confdefs.h. */
  13028. int
  13029. main ()
  13030. {
  13031. ;
  13032. return 0;
  13033. }
  13034. _ACEOF
  13035. if ac_fn_cxx_try_link "$LINENO"; then :
  13036. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13037. lt_cv_shlibpath_overrides_runpath=yes
  13038. fi
  13039. fi
  13040. rm -f core conftest.err conftest.$ac_objext \
  13041. conftest$ac_exeext conftest.$ac_ext
  13042. LDFLAGS=$save_LDFLAGS
  13043. libdir=$save_libdir
  13044. fi
  13045. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13046. # This implies no fast_install, which is unacceptable.
  13047. # Some rework will be needed to allow for fast_install
  13048. # before this can be enabled.
  13049. hardcode_into_libs=yes
  13050. # Append ld.so.conf contents to the search path
  13051. if test -f /etc/ld.so.conf; then
  13052. 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' ' '`
  13053. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13054. fi
  13055. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13056. # powerpc, because MkLinux only supported shared libraries with the
  13057. # GNU dynamic linker. Since this was broken with cross compilers,
  13058. # most powerpc-linux boxes support dynamic linking these days and
  13059. # people can always --disable-shared, the test was removed, and we
  13060. # assume the GNU/Linux dynamic linker is in use.
  13061. dynamic_linker='GNU/Linux ld.so'
  13062. ;;
  13063. netbsd*)
  13064. version_type=sunos
  13065. need_lib_prefix=no
  13066. need_version=no
  13067. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13069. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13070. dynamic_linker='NetBSD (a.out) ld.so'
  13071. else
  13072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13073. soname_spec='${libname}${release}${shared_ext}$major'
  13074. dynamic_linker='NetBSD ld.elf_so'
  13075. fi
  13076. shlibpath_var=LD_LIBRARY_PATH
  13077. shlibpath_overrides_runpath=yes
  13078. hardcode_into_libs=yes
  13079. ;;
  13080. newsos6)
  13081. version_type=linux # correct to gnu/linux during the next big refactor
  13082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13083. shlibpath_var=LD_LIBRARY_PATH
  13084. shlibpath_overrides_runpath=yes
  13085. ;;
  13086. *nto* | *qnx*)
  13087. version_type=qnx
  13088. need_lib_prefix=no
  13089. need_version=no
  13090. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13091. soname_spec='${libname}${release}${shared_ext}$major'
  13092. shlibpath_var=LD_LIBRARY_PATH
  13093. shlibpath_overrides_runpath=no
  13094. hardcode_into_libs=yes
  13095. dynamic_linker='ldqnx.so'
  13096. ;;
  13097. openbsd*)
  13098. version_type=sunos
  13099. sys_lib_dlsearch_path_spec="/usr/lib"
  13100. need_lib_prefix=no
  13101. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13102. case $host_os in
  13103. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13104. *) need_version=no ;;
  13105. esac
  13106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13107. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13108. shlibpath_var=LD_LIBRARY_PATH
  13109. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13110. case $host_os in
  13111. openbsd2.[89] | openbsd2.[89].*)
  13112. shlibpath_overrides_runpath=no
  13113. ;;
  13114. *)
  13115. shlibpath_overrides_runpath=yes
  13116. ;;
  13117. esac
  13118. else
  13119. shlibpath_overrides_runpath=yes
  13120. fi
  13121. ;;
  13122. os2*)
  13123. libname_spec='$name'
  13124. shrext_cmds=".dll"
  13125. need_lib_prefix=no
  13126. library_names_spec='$libname${shared_ext} $libname.a'
  13127. dynamic_linker='OS/2 ld.exe'
  13128. shlibpath_var=LIBPATH
  13129. ;;
  13130. osf3* | osf4* | osf5*)
  13131. version_type=osf
  13132. need_lib_prefix=no
  13133. need_version=no
  13134. soname_spec='${libname}${release}${shared_ext}$major'
  13135. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13136. shlibpath_var=LD_LIBRARY_PATH
  13137. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13138. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13139. ;;
  13140. rdos*)
  13141. dynamic_linker=no
  13142. ;;
  13143. solaris*)
  13144. version_type=linux # correct to gnu/linux during the next big refactor
  13145. need_lib_prefix=no
  13146. need_version=no
  13147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13148. soname_spec='${libname}${release}${shared_ext}$major'
  13149. shlibpath_var=LD_LIBRARY_PATH
  13150. shlibpath_overrides_runpath=yes
  13151. hardcode_into_libs=yes
  13152. # ldd complains unless libraries are executable
  13153. postinstall_cmds='chmod +x $lib'
  13154. ;;
  13155. sunos4*)
  13156. version_type=sunos
  13157. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13158. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13159. shlibpath_var=LD_LIBRARY_PATH
  13160. shlibpath_overrides_runpath=yes
  13161. if test "$with_gnu_ld" = yes; then
  13162. need_lib_prefix=no
  13163. fi
  13164. need_version=yes
  13165. ;;
  13166. sysv4 | sysv4.3*)
  13167. version_type=linux # correct to gnu/linux during the next big refactor
  13168. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13169. soname_spec='${libname}${release}${shared_ext}$major'
  13170. shlibpath_var=LD_LIBRARY_PATH
  13171. case $host_vendor in
  13172. sni)
  13173. shlibpath_overrides_runpath=no
  13174. need_lib_prefix=no
  13175. runpath_var=LD_RUN_PATH
  13176. ;;
  13177. siemens)
  13178. need_lib_prefix=no
  13179. ;;
  13180. motorola)
  13181. need_lib_prefix=no
  13182. need_version=no
  13183. shlibpath_overrides_runpath=no
  13184. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13185. ;;
  13186. esac
  13187. ;;
  13188. sysv4*MP*)
  13189. if test -d /usr/nec ;then
  13190. version_type=linux # correct to gnu/linux during the next big refactor
  13191. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13192. soname_spec='$libname${shared_ext}.$major'
  13193. shlibpath_var=LD_LIBRARY_PATH
  13194. fi
  13195. ;;
  13196. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13197. version_type=freebsd-elf
  13198. need_lib_prefix=no
  13199. need_version=no
  13200. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13201. soname_spec='${libname}${release}${shared_ext}$major'
  13202. shlibpath_var=LD_LIBRARY_PATH
  13203. shlibpath_overrides_runpath=yes
  13204. hardcode_into_libs=yes
  13205. if test "$with_gnu_ld" = yes; then
  13206. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13207. else
  13208. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13209. case $host_os in
  13210. sco3.2v5*)
  13211. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13212. ;;
  13213. esac
  13214. fi
  13215. sys_lib_dlsearch_path_spec='/usr/lib'
  13216. ;;
  13217. tpf*)
  13218. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13219. version_type=linux # correct to gnu/linux during the next big refactor
  13220. need_lib_prefix=no
  13221. need_version=no
  13222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13223. shlibpath_var=LD_LIBRARY_PATH
  13224. shlibpath_overrides_runpath=no
  13225. hardcode_into_libs=yes
  13226. ;;
  13227. uts4*)
  13228. version_type=linux # correct to gnu/linux during the next big refactor
  13229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13230. soname_spec='${libname}${release}${shared_ext}$major'
  13231. shlibpath_var=LD_LIBRARY_PATH
  13232. ;;
  13233. *)
  13234. dynamic_linker=no
  13235. ;;
  13236. esac
  13237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13238. $as_echo "$dynamic_linker" >&6; }
  13239. test "$dynamic_linker" = no && can_build_shared=no
  13240. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13241. if test "$GCC" = yes; then
  13242. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13243. fi
  13244. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13245. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13246. fi
  13247. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13248. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13249. fi
  13250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13251. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13252. hardcode_action_CXX=
  13253. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13254. test -n "$runpath_var_CXX" ||
  13255. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13256. # We can hardcode non-existent directories.
  13257. if test "$hardcode_direct_CXX" != no &&
  13258. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13259. # have to relink, otherwise we might link with an installed library
  13260. # when we should be linking with a yet-to-be-installed one
  13261. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13262. test "$hardcode_minus_L_CXX" != no; then
  13263. # Linking always hardcodes the temporary library directory.
  13264. hardcode_action_CXX=relink
  13265. else
  13266. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13267. hardcode_action_CXX=immediate
  13268. fi
  13269. else
  13270. # We cannot hardcode anything, or else we can only hardcode existing
  13271. # directories.
  13272. hardcode_action_CXX=unsupported
  13273. fi
  13274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13275. $as_echo "$hardcode_action_CXX" >&6; }
  13276. if test "$hardcode_action_CXX" = relink ||
  13277. test "$inherit_rpath_CXX" = yes; then
  13278. # Fast installation is not supported
  13279. enable_fast_install=no
  13280. elif test "$shlibpath_overrides_runpath" = yes ||
  13281. test "$enable_shared" = no; then
  13282. # Fast installation is not necessary
  13283. enable_fast_install=needless
  13284. fi
  13285. fi # test -n "$compiler"
  13286. CC=$lt_save_CC
  13287. CFLAGS=$lt_save_CFLAGS
  13288. LDCXX=$LD
  13289. LD=$lt_save_LD
  13290. GCC=$lt_save_GCC
  13291. with_gnu_ld=$lt_save_with_gnu_ld
  13292. lt_cv_path_LDCXX=$lt_cv_path_LD
  13293. lt_cv_path_LD=$lt_save_path_LD
  13294. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13295. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13296. fi # test "$_lt_caught_CXX_error" != yes
  13297. ac_ext=c
  13298. ac_cpp='$CPP $CPPFLAGS'
  13299. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13300. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13301. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13302. # Find a good install program. We prefer a C program (faster),
  13303. # so one script is as good as another. But avoid the broken or
  13304. # incompatible versions:
  13305. # SysV /etc/install, /usr/sbin/install
  13306. # SunOS /usr/etc/install
  13307. # IRIX /sbin/install
  13308. # AIX /bin/install
  13309. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13310. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13311. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13312. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13313. # OS/2's system install, which has a completely different semantic
  13314. # ./install, which can be erroneously created by make from ./install.sh.
  13315. # Reject install programs that cannot install multiple files.
  13316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13317. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13318. if test -z "$INSTALL"; then
  13319. if ${ac_cv_path_install+:} false; then :
  13320. $as_echo_n "(cached) " >&6
  13321. else
  13322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13323. for as_dir in $PATH
  13324. do
  13325. IFS=$as_save_IFS
  13326. test -z "$as_dir" && as_dir=.
  13327. # Account for people who put trailing slashes in PATH elements.
  13328. case $as_dir/ in @%:@((
  13329. ./ | .// | /[cC]/* | \
  13330. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13331. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13332. /usr/ucb/* ) ;;
  13333. *)
  13334. # OSF1 and SCO ODT 3.0 have their own names for install.
  13335. # Don't use installbsd from OSF since it installs stuff as root
  13336. # by default.
  13337. for ac_prog in ginstall scoinst install; do
  13338. for ac_exec_ext in '' $ac_executable_extensions; do
  13339. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13340. if test $ac_prog = install &&
  13341. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13342. # AIX install. It has an incompatible calling convention.
  13343. :
  13344. elif test $ac_prog = install &&
  13345. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13346. # program-specific install script used by HP pwplus--don't use.
  13347. :
  13348. else
  13349. rm -rf conftest.one conftest.two conftest.dir
  13350. echo one > conftest.one
  13351. echo two > conftest.two
  13352. mkdir conftest.dir
  13353. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13354. test -s conftest.one && test -s conftest.two &&
  13355. test -s conftest.dir/conftest.one &&
  13356. test -s conftest.dir/conftest.two
  13357. then
  13358. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13359. break 3
  13360. fi
  13361. fi
  13362. fi
  13363. done
  13364. done
  13365. ;;
  13366. esac
  13367. done
  13368. IFS=$as_save_IFS
  13369. rm -rf conftest.one conftest.two conftest.dir
  13370. fi
  13371. if test "${ac_cv_path_install+set}" = set; then
  13372. INSTALL=$ac_cv_path_install
  13373. else
  13374. # As a last resort, use the slow shell script. Don't cache a
  13375. # value for INSTALL within a source directory, because that will
  13376. # break other packages using the cache if that directory is
  13377. # removed, or if the value is a relative name.
  13378. INSTALL=$ac_install_sh
  13379. fi
  13380. fi
  13381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13382. $as_echo "$INSTALL" >&6; }
  13383. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13384. # It thinks the first close brace ends the variable substitution.
  13385. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13386. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13387. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13389. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13390. set x ${MAKE-make}
  13391. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13392. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13393. $as_echo_n "(cached) " >&6
  13394. else
  13395. cat >conftest.make <<\_ACEOF
  13396. SHELL = /bin/sh
  13397. all:
  13398. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13399. _ACEOF
  13400. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13401. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13402. *@@@%%%=?*=@@@%%%*)
  13403. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13404. *)
  13405. eval ac_cv_prog_make_${ac_make}_set=no;;
  13406. esac
  13407. rm -f conftest.make
  13408. fi
  13409. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13411. $as_echo "yes" >&6; }
  13412. SET_MAKE=
  13413. else
  13414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13415. $as_echo "no" >&6; }
  13416. SET_MAKE="MAKE=${MAKE-make}"
  13417. fi
  13418. if test -n "$ac_tool_prefix"; then
  13419. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13420. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13422. $as_echo_n "checking for $ac_word... " >&6; }
  13423. if ${ac_cv_prog_WINDRES+:} false; then :
  13424. $as_echo_n "(cached) " >&6
  13425. else
  13426. if test -n "$WINDRES"; then
  13427. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13428. else
  13429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13430. for as_dir in $PATH
  13431. do
  13432. IFS=$as_save_IFS
  13433. test -z "$as_dir" && as_dir=.
  13434. for ac_exec_ext in '' $ac_executable_extensions; do
  13435. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13436. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13437. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13438. break 2
  13439. fi
  13440. done
  13441. done
  13442. IFS=$as_save_IFS
  13443. fi
  13444. fi
  13445. WINDRES=$ac_cv_prog_WINDRES
  13446. if test -n "$WINDRES"; then
  13447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13448. $as_echo "$WINDRES" >&6; }
  13449. else
  13450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13451. $as_echo "no" >&6; }
  13452. fi
  13453. fi
  13454. if test -z "$ac_cv_prog_WINDRES"; then
  13455. ac_ct_WINDRES=$WINDRES
  13456. # Extract the first word of "windres", so it can be a program name with args.
  13457. set dummy windres; ac_word=$2
  13458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13459. $as_echo_n "checking for $ac_word... " >&6; }
  13460. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13461. $as_echo_n "(cached) " >&6
  13462. else
  13463. if test -n "$ac_ct_WINDRES"; then
  13464. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13465. else
  13466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13467. for as_dir in $PATH
  13468. do
  13469. IFS=$as_save_IFS
  13470. test -z "$as_dir" && as_dir=.
  13471. for ac_exec_ext in '' $ac_executable_extensions; do
  13472. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13473. ac_cv_prog_ac_ct_WINDRES="windres"
  13474. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13475. break 2
  13476. fi
  13477. done
  13478. done
  13479. IFS=$as_save_IFS
  13480. fi
  13481. fi
  13482. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13483. if test -n "$ac_ct_WINDRES"; then
  13484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13485. $as_echo "$ac_ct_WINDRES" >&6; }
  13486. else
  13487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13488. $as_echo "no" >&6; }
  13489. fi
  13490. if test "x$ac_ct_WINDRES" = x; then
  13491. WINDRES=":"
  13492. else
  13493. case $cross_compiling:$ac_tool_warned in
  13494. yes:)
  13495. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13496. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13497. ac_tool_warned=yes ;;
  13498. esac
  13499. WINDRES=$ac_ct_WINDRES
  13500. fi
  13501. else
  13502. WINDRES="$ac_cv_prog_WINDRES"
  13503. fi
  13504. case "$host" in
  13505. *-*-mingw32*)
  13506. # Except on msys, where make can't handle full pathnames (bug 1972)
  13507. ;;
  13508. *)
  13509. srcdir=`cd $srcdir && pwd`
  13510. ;;
  13511. esac
  13512. INCLUDE="-I$srcdir/include"
  13513. if test x$srcdir != x.; then
  13514. INCLUDE="-Iinclude $INCLUDE"
  13515. elif test -d .hg; then
  13516. as_fn_error $? "
  13517. *** When building from Mercurial you should configure and build in a
  13518. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13519. " "$LINENO" 5
  13520. fi
  13521. BASE_CFLAGS=""
  13522. BASE_LDFLAGS=""
  13523. case "$host" in
  13524. *-*-cygwin*)
  13525. # We build SDL on cygwin without the UNIX emulation layer
  13526. save_CFLAGS="$CFLAGS"
  13527. have_no_cygwin=no
  13528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13529. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13530. CFLAGS="$save_CFLAGS -mno-cygwin"
  13531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13532. /* end confdefs.h. */
  13533. int
  13534. main ()
  13535. {
  13536. ;
  13537. return 0;
  13538. }
  13539. _ACEOF
  13540. if ac_fn_c_try_compile "$LINENO"; then :
  13541. have_no_cygwin=yes
  13542. fi
  13543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13545. $as_echo "$have_no_cygwin" >&6; }
  13546. CFLAGS="$save_CFLAGS"
  13547. if test x$have_no_cygwin = xyes; then
  13548. BASE_CFLAGS="-mno-cygwin"
  13549. BASE_LDFLAGS="-mno-cygwin"
  13550. fi
  13551. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13552. ;;
  13553. esac
  13554. # Uncomment the following line if you want to force SDL and applications
  13555. # built with it to be compiled for a particular architecture.
  13556. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13557. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13558. # The default optimization for SDL is -O3 (Bug #31)
  13559. if test "x$orig_CFLAGS" = x; then
  13560. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13561. fi
  13562. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13563. BUILD_LDFLAGS="$LDFLAGS"
  13564. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13565. ## These are common directories to find software packages
  13566. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13567. # if test -d $path/include; then
  13568. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13569. # fi
  13570. # if test -d $path/lib; then
  13571. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13572. # fi
  13573. #done
  13574. SDL_CFLAGS="$BASE_CFLAGS"
  13575. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13576. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13577. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13578. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13579. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13580. find_lib()
  13581. {
  13582. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13583. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13584. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13585. if test "$cross_compiling" = yes; then
  13586. host_lib_path=""
  13587. else
  13588. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13589. fi
  13590. for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
  13591. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13592. if test x$lib != x; then
  13593. echo $lib
  13594. return
  13595. fi
  13596. done
  13597. }
  13598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13599. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13600. if ${ac_cv_c_const+:} false; then :
  13601. $as_echo_n "(cached) " >&6
  13602. else
  13603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13604. /* end confdefs.h. */
  13605. int
  13606. main ()
  13607. {
  13608. #ifndef __cplusplus
  13609. /* Ultrix mips cc rejects this sort of thing. */
  13610. typedef int charset[2];
  13611. const charset cs = { 0, 0 };
  13612. /* SunOS 4.1.1 cc rejects this. */
  13613. char const *const *pcpcc;
  13614. char **ppc;
  13615. /* NEC SVR4.0.2 mips cc rejects this. */
  13616. struct point {int x, y;};
  13617. static struct point const zero = {0,0};
  13618. /* AIX XL C 1.02.0.0 rejects this.
  13619. It does not let you subtract one const X* pointer from another in
  13620. an arm of an if-expression whose if-part is not a constant
  13621. expression */
  13622. const char *g = "string";
  13623. pcpcc = &g + (g ? g-g : 0);
  13624. /* HPUX 7.0 cc rejects these. */
  13625. ++pcpcc;
  13626. ppc = (char**) pcpcc;
  13627. pcpcc = (char const *const *) ppc;
  13628. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13629. char tx;
  13630. char *t = &tx;
  13631. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13632. *t++ = 0;
  13633. if (s) return 0;
  13634. }
  13635. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13636. int x[] = {25, 17};
  13637. const int *foo = &x[0];
  13638. ++foo;
  13639. }
  13640. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13641. typedef const int *iptr;
  13642. iptr p = 0;
  13643. ++p;
  13644. }
  13645. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13646. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13647. struct s { int j; const int *ap[3]; } bx;
  13648. struct s *b = &bx; b->j = 5;
  13649. }
  13650. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13651. const int foo = 10;
  13652. if (!foo) return 0;
  13653. }
  13654. return !cs[0] && !zero.x;
  13655. #endif
  13656. ;
  13657. return 0;
  13658. }
  13659. _ACEOF
  13660. if ac_fn_c_try_compile "$LINENO"; then :
  13661. ac_cv_c_const=yes
  13662. else
  13663. ac_cv_c_const=no
  13664. fi
  13665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13666. fi
  13667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13668. $as_echo "$ac_cv_c_const" >&6; }
  13669. if test $ac_cv_c_const = no; then
  13670. $as_echo "@%:@define const /**/" >>confdefs.h
  13671. fi
  13672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13673. $as_echo_n "checking for inline... " >&6; }
  13674. if ${ac_cv_c_inline+:} false; then :
  13675. $as_echo_n "(cached) " >&6
  13676. else
  13677. ac_cv_c_inline=no
  13678. for ac_kw in inline __inline__ __inline; do
  13679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13680. /* end confdefs.h. */
  13681. #ifndef __cplusplus
  13682. typedef int foo_t;
  13683. static $ac_kw foo_t static_foo () {return 0; }
  13684. $ac_kw foo_t foo () {return 0; }
  13685. #endif
  13686. _ACEOF
  13687. if ac_fn_c_try_compile "$LINENO"; then :
  13688. ac_cv_c_inline=$ac_kw
  13689. fi
  13690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13691. test "$ac_cv_c_inline" != no && break
  13692. done
  13693. fi
  13694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13695. $as_echo "$ac_cv_c_inline" >&6; }
  13696. case $ac_cv_c_inline in
  13697. inline | yes) ;;
  13698. *)
  13699. case $ac_cv_c_inline in
  13700. no) ac_val=;;
  13701. *) ac_val=$ac_cv_c_inline;;
  13702. esac
  13703. cat >>confdefs.h <<_ACEOF
  13704. #ifndef __cplusplus
  13705. #define inline $ac_val
  13706. #endif
  13707. _ACEOF
  13708. ;;
  13709. esac
  13710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13711. $as_echo_n "checking for working volatile... " >&6; }
  13712. if ${ac_cv_c_volatile+:} false; then :
  13713. $as_echo_n "(cached) " >&6
  13714. else
  13715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13716. /* end confdefs.h. */
  13717. int
  13718. main ()
  13719. {
  13720. volatile int x;
  13721. int * volatile y = (int *) 0;
  13722. return !x && !y;
  13723. ;
  13724. return 0;
  13725. }
  13726. _ACEOF
  13727. if ac_fn_c_try_compile "$LINENO"; then :
  13728. ac_cv_c_volatile=yes
  13729. else
  13730. ac_cv_c_volatile=no
  13731. fi
  13732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13733. fi
  13734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13735. $as_echo "$ac_cv_c_volatile" >&6; }
  13736. if test $ac_cv_c_volatile = no; then
  13737. $as_echo "@%:@define volatile /**/" >>confdefs.h
  13738. fi
  13739. @%:@ Check whether --enable-assertions was given.
  13740. if test "${enable_assertions+set}" = set; then :
  13741. enableval=$enable_assertions;
  13742. else
  13743. enable_assertions=auto
  13744. fi
  13745. case "$enable_assertions" in
  13746. auto) # Use optimization settings to determine assertion level
  13747. ;;
  13748. disabled)
  13749. $as_echo "@%:@define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13750. ;;
  13751. release)
  13752. $as_echo "@%:@define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13753. ;;
  13754. enabled)
  13755. $as_echo "@%:@define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13756. ;;
  13757. paranoid)
  13758. $as_echo "@%:@define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13759. ;;
  13760. *)
  13761. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13762. ;;
  13763. esac
  13764. @%:@ Check whether --enable-dependency-tracking was given.
  13765. if test "${enable_dependency_tracking+set}" = set; then :
  13766. enableval=$enable_dependency_tracking;
  13767. else
  13768. enable_dependency_tracking=yes
  13769. fi
  13770. if test x$enable_dependency_tracking = xyes; then
  13771. have_gcc_mmd_mt=no
  13772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13773. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13775. /* end confdefs.h. */
  13776. #if !defined(__GNUC__) || __GNUC__ < 3
  13777. #error Dependency tracking requires GCC 3.0 or newer
  13778. #endif
  13779. int
  13780. main ()
  13781. {
  13782. ;
  13783. return 0;
  13784. }
  13785. _ACEOF
  13786. if ac_fn_c_try_compile "$LINENO"; then :
  13787. have_gcc_mmd_mt=yes
  13788. fi
  13789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13791. $as_echo "$have_gcc_mmd_mt" >&6; }
  13792. if test x$have_gcc_mmd_mt = xyes; then
  13793. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13794. fi
  13795. fi
  13796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13797. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13798. have_no_undefined=no
  13799. case "$host" in
  13800. *-*-openbsd*)
  13801. ;;
  13802. *)
  13803. save_LDFLAGS="$LDFLAGS"
  13804. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13806. /* end confdefs.h. */
  13807. int
  13808. main ()
  13809. {
  13810. ;
  13811. return 0;
  13812. }
  13813. _ACEOF
  13814. if ac_fn_c_try_link "$LINENO"; then :
  13815. have_no_undefined=yes
  13816. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13817. fi
  13818. rm -f core conftest.err conftest.$ac_objext \
  13819. conftest$ac_exeext conftest.$ac_ext
  13820. LDFLAGS="$save_LDFLAGS"
  13821. ;;
  13822. esac
  13823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13824. $as_echo "$have_no_undefined" >&6; }
  13825. @%:@ Check whether --enable-libc was given.
  13826. if test "${enable_libc+set}" = set; then :
  13827. enableval=$enable_libc;
  13828. else
  13829. enable_libc=yes
  13830. fi
  13831. if test x$enable_libc = xyes; then
  13832. $as_echo "@%:@define HAVE_LIBC 1" >>confdefs.h
  13833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13834. $as_echo_n "checking for ANSI C header files... " >&6; }
  13835. if ${ac_cv_header_stdc+:} false; then :
  13836. $as_echo_n "(cached) " >&6
  13837. else
  13838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13839. /* end confdefs.h. */
  13840. #include <stdlib.h>
  13841. #include <stdarg.h>
  13842. #include <string.h>
  13843. #include <float.h>
  13844. int
  13845. main ()
  13846. {
  13847. ;
  13848. return 0;
  13849. }
  13850. _ACEOF
  13851. if ac_fn_c_try_compile "$LINENO"; then :
  13852. ac_cv_header_stdc=yes
  13853. else
  13854. ac_cv_header_stdc=no
  13855. fi
  13856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13857. if test $ac_cv_header_stdc = yes; then
  13858. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13860. /* end confdefs.h. */
  13861. #include <string.h>
  13862. _ACEOF
  13863. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13864. $EGREP "memchr" >/dev/null 2>&1; then :
  13865. else
  13866. ac_cv_header_stdc=no
  13867. fi
  13868. rm -f conftest*
  13869. fi
  13870. if test $ac_cv_header_stdc = yes; then
  13871. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13873. /* end confdefs.h. */
  13874. #include <stdlib.h>
  13875. _ACEOF
  13876. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13877. $EGREP "free" >/dev/null 2>&1; then :
  13878. else
  13879. ac_cv_header_stdc=no
  13880. fi
  13881. rm -f conftest*
  13882. fi
  13883. if test $ac_cv_header_stdc = yes; then
  13884. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13885. if test "$cross_compiling" = yes; then :
  13886. :
  13887. else
  13888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13889. /* end confdefs.h. */
  13890. #include <ctype.h>
  13891. #include <stdlib.h>
  13892. #if ((' ' & 0x0FF) == 0x020)
  13893. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13894. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13895. #else
  13896. # define ISLOWER(c) \
  13897. (('a' <= (c) && (c) <= 'i') \
  13898. || ('j' <= (c) && (c) <= 'r') \
  13899. || ('s' <= (c) && (c) <= 'z'))
  13900. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13901. #endif
  13902. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13903. int
  13904. main ()
  13905. {
  13906. int i;
  13907. for (i = 0; i < 256; i++)
  13908. if (XOR (islower (i), ISLOWER (i))
  13909. || toupper (i) != TOUPPER (i))
  13910. return 2;
  13911. return 0;
  13912. }
  13913. _ACEOF
  13914. if ac_fn_c_try_run "$LINENO"; then :
  13915. else
  13916. ac_cv_header_stdc=no
  13917. fi
  13918. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13919. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13920. fi
  13921. fi
  13922. fi
  13923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13924. $as_echo "$ac_cv_header_stdc" >&6; }
  13925. if test $ac_cv_header_stdc = yes; then
  13926. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  13927. fi
  13928. for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h
  13929. do :
  13930. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13931. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13932. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13933. cat >>confdefs.h <<_ACEOF
  13934. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13935. _ACEOF
  13936. fi
  13937. done
  13938. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13939. if test "x$ac_cv_type_size_t" = xyes; then :
  13940. else
  13941. cat >>confdefs.h <<_ACEOF
  13942. @%:@define size_t unsigned int
  13943. _ACEOF
  13944. fi
  13945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13946. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13947. if ${ac_cv_define_M_PI+:} false; then :
  13948. $as_echo_n "(cached) " >&6
  13949. else
  13950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13951. /* end confdefs.h. */
  13952. #include <math.h>
  13953. #ifdef M_PI
  13954. YES_IS_DEFINED
  13955. #endif
  13956. _ACEOF
  13957. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13958. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13959. ac_cv_define_M_PI=yes
  13960. else
  13961. ac_cv_define_M_PI=no
  13962. fi
  13963. rm -f conftest*
  13964. fi
  13965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13966. $as_echo "$ac_cv_define_M_PI" >&6; }
  13967. if test "$ac_cv_define_M_PI" = "yes" ; then
  13968. $as_echo "@%:@define HAVE_M_PI /**/" >>confdefs.h
  13969. fi
  13970. case "$host" in
  13971. *-*-cygwin* | *-*-mingw32*)
  13972. ;;
  13973. *)
  13974. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13975. # for constant arguments. Useless!
  13976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13977. $as_echo_n "checking for working alloca.h... " >&6; }
  13978. if ${ac_cv_working_alloca_h+:} false; then :
  13979. $as_echo_n "(cached) " >&6
  13980. else
  13981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13982. /* end confdefs.h. */
  13983. @%:@include <alloca.h>
  13984. int
  13985. main ()
  13986. {
  13987. char *p = (char *) alloca (2 * sizeof (int));
  13988. if (p) return 0;
  13989. ;
  13990. return 0;
  13991. }
  13992. _ACEOF
  13993. if ac_fn_c_try_link "$LINENO"; then :
  13994. ac_cv_working_alloca_h=yes
  13995. else
  13996. ac_cv_working_alloca_h=no
  13997. fi
  13998. rm -f core conftest.err conftest.$ac_objext \
  13999. conftest$ac_exeext conftest.$ac_ext
  14000. fi
  14001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14002. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14003. if test $ac_cv_working_alloca_h = yes; then
  14004. $as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h
  14005. fi
  14006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14007. $as_echo_n "checking for alloca... " >&6; }
  14008. if ${ac_cv_func_alloca_works+:} false; then :
  14009. $as_echo_n "(cached) " >&6
  14010. else
  14011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14012. /* end confdefs.h. */
  14013. #ifdef __GNUC__
  14014. # define alloca __builtin_alloca
  14015. #else
  14016. # ifdef _MSC_VER
  14017. # include <malloc.h>
  14018. # define alloca _alloca
  14019. # else
  14020. # ifdef HAVE_ALLOCA_H
  14021. # include <alloca.h>
  14022. # else
  14023. # ifdef _AIX
  14024. #pragma alloca
  14025. # else
  14026. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14027. void *alloca (size_t);
  14028. # endif
  14029. # endif
  14030. # endif
  14031. # endif
  14032. #endif
  14033. int
  14034. main ()
  14035. {
  14036. char *p = (char *) alloca (1);
  14037. if (p) return 0;
  14038. ;
  14039. return 0;
  14040. }
  14041. _ACEOF
  14042. if ac_fn_c_try_link "$LINENO"; then :
  14043. ac_cv_func_alloca_works=yes
  14044. else
  14045. ac_cv_func_alloca_works=no
  14046. fi
  14047. rm -f core conftest.err conftest.$ac_objext \
  14048. conftest$ac_exeext conftest.$ac_ext
  14049. fi
  14050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14051. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14052. if test $ac_cv_func_alloca_works = yes; then
  14053. $as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
  14054. else
  14055. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14056. # that cause trouble. Some versions do not even contain alloca or
  14057. # contain a buggy version. If you still want to use their alloca,
  14058. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14059. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14060. $as_echo "@%:@define C_ALLOCA 1" >>confdefs.h
  14061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14062. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14063. if ${ac_cv_os_cray+:} false; then :
  14064. $as_echo_n "(cached) " >&6
  14065. else
  14066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14067. /* end confdefs.h. */
  14068. #if defined CRAY && ! defined CRAY2
  14069. webecray
  14070. #else
  14071. wenotbecray
  14072. #endif
  14073. _ACEOF
  14074. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14075. $EGREP "webecray" >/dev/null 2>&1; then :
  14076. ac_cv_os_cray=yes
  14077. else
  14078. ac_cv_os_cray=no
  14079. fi
  14080. rm -f conftest*
  14081. fi
  14082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14083. $as_echo "$ac_cv_os_cray" >&6; }
  14084. if test $ac_cv_os_cray = yes; then
  14085. for ac_func in _getb67 GETB67 getb67; do
  14086. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14087. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14088. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14089. cat >>confdefs.h <<_ACEOF
  14090. @%:@define CRAY_STACKSEG_END $ac_func
  14091. _ACEOF
  14092. break
  14093. fi
  14094. done
  14095. fi
  14096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14097. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14098. if ${ac_cv_c_stack_direction+:} false; then :
  14099. $as_echo_n "(cached) " >&6
  14100. else
  14101. if test "$cross_compiling" = yes; then :
  14102. ac_cv_c_stack_direction=0
  14103. else
  14104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14105. /* end confdefs.h. */
  14106. $ac_includes_default
  14107. int
  14108. find_stack_direction (int *addr, int depth)
  14109. {
  14110. int dir, dummy = 0;
  14111. if (! addr)
  14112. addr = &dummy;
  14113. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14114. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14115. return dir + dummy;
  14116. }
  14117. int
  14118. main (int argc, char **argv)
  14119. {
  14120. return find_stack_direction (0, argc + !argv + 20) < 0;
  14121. }
  14122. _ACEOF
  14123. if ac_fn_c_try_run "$LINENO"; then :
  14124. ac_cv_c_stack_direction=1
  14125. else
  14126. ac_cv_c_stack_direction=-1
  14127. fi
  14128. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14129. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14130. fi
  14131. fi
  14132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14133. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14134. cat >>confdefs.h <<_ACEOF
  14135. @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
  14136. _ACEOF
  14137. fi
  14138. ;;
  14139. esac
  14140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14141. $as_echo_n "checking for working memcmp... " >&6; }
  14142. if ${ac_cv_func_memcmp_working+:} false; then :
  14143. $as_echo_n "(cached) " >&6
  14144. else
  14145. if test "$cross_compiling" = yes; then :
  14146. ac_cv_func_memcmp_working=no
  14147. else
  14148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14149. /* end confdefs.h. */
  14150. $ac_includes_default
  14151. int
  14152. main ()
  14153. {
  14154. /* Some versions of memcmp are not 8-bit clean. */
  14155. char c0 = '\100', c1 = '\200', c2 = '\201';
  14156. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14157. return 1;
  14158. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14159. or more and with at least one buffer not starting on a 4-byte boundary.
  14160. William Lewis provided this test program. */
  14161. {
  14162. char foo[21];
  14163. char bar[21];
  14164. int i;
  14165. for (i = 0; i < 4; i++)
  14166. {
  14167. char *a = foo + i;
  14168. char *b = bar + i;
  14169. strcpy (a, "--------01111111");
  14170. strcpy (b, "--------10000000");
  14171. if (memcmp (a, b, 16) >= 0)
  14172. return 1;
  14173. }
  14174. return 0;
  14175. }
  14176. ;
  14177. return 0;
  14178. }
  14179. _ACEOF
  14180. if ac_fn_c_try_run "$LINENO"; then :
  14181. ac_cv_func_memcmp_working=yes
  14182. else
  14183. ac_cv_func_memcmp_working=no
  14184. fi
  14185. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14186. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14187. fi
  14188. fi
  14189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14190. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14191. test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
  14192. *" memcmp.$ac_objext "* ) ;;
  14193. *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
  14194. ;;
  14195. esac
  14196. if test x$ac_cv_func_memcmp_working = xyes; then
  14197. $as_echo "@%:@define HAVE_MEMCMP 1" >>confdefs.h
  14198. fi
  14199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14200. $as_echo_n "checking for working strtod... " >&6; }
  14201. if ${ac_cv_func_strtod+:} false; then :
  14202. $as_echo_n "(cached) " >&6
  14203. else
  14204. if test "$cross_compiling" = yes; then :
  14205. ac_cv_func_strtod=no
  14206. else
  14207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14208. /* end confdefs.h. */
  14209. $ac_includes_default
  14210. #ifndef strtod
  14211. double strtod ();
  14212. #endif
  14213. int
  14214. main()
  14215. {
  14216. {
  14217. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14218. char *string = " +69";
  14219. char *term;
  14220. double value;
  14221. value = strtod (string, &term);
  14222. if (value != 69 || term != (string + 4))
  14223. return 1;
  14224. }
  14225. {
  14226. /* Under Solaris 2.4, strtod returns the wrong value for the
  14227. terminating character under some conditions. */
  14228. char *string = "NaN";
  14229. char *term;
  14230. strtod (string, &term);
  14231. if (term != string && *(term - 1) == 0)
  14232. return 1;
  14233. }
  14234. return 0;
  14235. }
  14236. _ACEOF
  14237. if ac_fn_c_try_run "$LINENO"; then :
  14238. ac_cv_func_strtod=yes
  14239. else
  14240. ac_cv_func_strtod=no
  14241. fi
  14242. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14243. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14244. fi
  14245. fi
  14246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14247. $as_echo "$ac_cv_func_strtod" >&6; }
  14248. if test $ac_cv_func_strtod = no; then
  14249. case " $LIB@&t@OBJS " in
  14250. *" strtod.$ac_objext "* ) ;;
  14251. *) LIB@&t@OBJS="$LIB@&t@OBJS strtod.$ac_objext"
  14252. ;;
  14253. esac
  14254. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14255. if test "x$ac_cv_func_pow" = xyes; then :
  14256. fi
  14257. if test $ac_cv_func_pow = no; then
  14258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14259. $as_echo_n "checking for pow in -lm... " >&6; }
  14260. if ${ac_cv_lib_m_pow+:} false; then :
  14261. $as_echo_n "(cached) " >&6
  14262. else
  14263. ac_check_lib_save_LIBS=$LIBS
  14264. LIBS="-lm $LIBS"
  14265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14266. /* end confdefs.h. */
  14267. /* Override any GCC internal prototype to avoid an error.
  14268. Use char because int might match the return type of a GCC
  14269. builtin and then its argument prototype would still apply. */
  14270. #ifdef __cplusplus
  14271. extern "C"
  14272. #endif
  14273. char pow ();
  14274. int
  14275. main ()
  14276. {
  14277. return pow ();
  14278. ;
  14279. return 0;
  14280. }
  14281. _ACEOF
  14282. if ac_fn_c_try_link "$LINENO"; then :
  14283. ac_cv_lib_m_pow=yes
  14284. else
  14285. ac_cv_lib_m_pow=no
  14286. fi
  14287. rm -f core conftest.err conftest.$ac_objext \
  14288. conftest$ac_exeext conftest.$ac_ext
  14289. LIBS=$ac_check_lib_save_LIBS
  14290. fi
  14291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14292. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14293. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14294. POW_LIB=-lm
  14295. else
  14296. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14297. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14298. fi
  14299. fi
  14300. fi
  14301. if test x$ac_cv_func_strtod = xyes; then
  14302. $as_echo "@%:@define HAVE_STRTOD 1" >>confdefs.h
  14303. fi
  14304. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14305. if test "x$ac_cv_func_mprotect" = xyes; then :
  14306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14307. /* end confdefs.h. */
  14308. #include <sys/types.h>
  14309. #include <sys/mman.h>
  14310. int
  14311. main ()
  14312. {
  14313. ;
  14314. return 0;
  14315. }
  14316. _ACEOF
  14317. if ac_fn_c_try_compile "$LINENO"; then :
  14318. $as_echo "@%:@define HAVE_MPROTECT 1" >>confdefs.h
  14319. fi
  14320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14321. fi
  14322. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname
  14323. do :
  14324. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14325. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14326. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14327. cat >>confdefs.h <<_ACEOF
  14328. @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14329. _ACEOF
  14330. fi
  14331. done
  14332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14333. $as_echo_n "checking for pow in -lm... " >&6; }
  14334. if ${ac_cv_lib_m_pow+:} false; then :
  14335. $as_echo_n "(cached) " >&6
  14336. else
  14337. ac_check_lib_save_LIBS=$LIBS
  14338. LIBS="-lm $LIBS"
  14339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14340. /* end confdefs.h. */
  14341. /* Override any GCC internal prototype to avoid an error.
  14342. Use char because int might match the return type of a GCC
  14343. builtin and then its argument prototype would still apply. */
  14344. #ifdef __cplusplus
  14345. extern "C"
  14346. #endif
  14347. char pow ();
  14348. int
  14349. main ()
  14350. {
  14351. return pow ();
  14352. ;
  14353. return 0;
  14354. }
  14355. _ACEOF
  14356. if ac_fn_c_try_link "$LINENO"; then :
  14357. ac_cv_lib_m_pow=yes
  14358. else
  14359. ac_cv_lib_m_pow=no
  14360. fi
  14361. rm -f core conftest.err conftest.$ac_objext \
  14362. conftest$ac_exeext conftest.$ac_ext
  14363. LIBS=$ac_check_lib_save_LIBS
  14364. fi
  14365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14366. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14367. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14368. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14369. fi
  14370. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
  14371. do :
  14372. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14373. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14374. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14375. cat >>confdefs.h <<_ACEOF
  14376. @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14377. _ACEOF
  14378. fi
  14379. done
  14380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14381. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14382. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14383. $as_echo_n "(cached) " >&6
  14384. else
  14385. ac_check_lib_save_LIBS=$LIBS
  14386. LIBS="-liconv $LIBS"
  14387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14388. /* end confdefs.h. */
  14389. /* Override any GCC internal prototype to avoid an error.
  14390. Use char because int might match the return type of a GCC
  14391. builtin and then its argument prototype would still apply. */
  14392. #ifdef __cplusplus
  14393. extern "C"
  14394. #endif
  14395. char iconv_open ();
  14396. int
  14397. main ()
  14398. {
  14399. return iconv_open ();
  14400. ;
  14401. return 0;
  14402. }
  14403. _ACEOF
  14404. if ac_fn_c_try_link "$LINENO"; then :
  14405. ac_cv_lib_iconv_iconv_open=yes
  14406. else
  14407. ac_cv_lib_iconv_iconv_open=no
  14408. fi
  14409. rm -f core conftest.err conftest.$ac_objext \
  14410. conftest$ac_exeext conftest.$ac_ext
  14411. LIBS=$ac_check_lib_save_LIBS
  14412. fi
  14413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14414. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14415. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14416. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14417. fi
  14418. for ac_func in iconv
  14419. do :
  14420. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14421. if test "x$ac_cv_func_iconv" = xyes; then :
  14422. cat >>confdefs.h <<_ACEOF
  14423. @%:@define HAVE_ICONV 1
  14424. _ACEOF
  14425. fi
  14426. done
  14427. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14428. "
  14429. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14430. $as_echo "@%:@define HAVE_SA_SIGACTION 1" >>confdefs.h
  14431. fi
  14432. fi
  14433. @%:@ Check whether --enable-gcc-atomics was given.
  14434. if test "${enable_gcc_atomics+set}" = set; then :
  14435. enableval=$enable_gcc_atomics;
  14436. else
  14437. enable_gcc_atomics=yes
  14438. fi
  14439. if test x$enable_gcc_atomics = xyes; then
  14440. have_gcc_atomics=no
  14441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14442. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14444. /* end confdefs.h. */
  14445. int
  14446. main ()
  14447. {
  14448. int a;
  14449. void *x, *y, *z;
  14450. __sync_lock_test_and_set(&a, 4);
  14451. __sync_lock_test_and_set(&x, y);
  14452. __sync_fetch_and_add(&a, 1);
  14453. __sync_bool_compare_and_swap(&a, 5, 10);
  14454. __sync_bool_compare_and_swap(&x, y, z);
  14455. ;
  14456. return 0;
  14457. }
  14458. _ACEOF
  14459. if ac_fn_c_try_link "$LINENO"; then :
  14460. have_gcc_atomics=yes
  14461. fi
  14462. rm -f core conftest.err conftest.$ac_objext \
  14463. conftest$ac_exeext conftest.$ac_ext
  14464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14465. $as_echo "$have_gcc_atomics" >&6; }
  14466. if test x$have_gcc_atomics = xyes; then
  14467. $as_echo "@%:@define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14468. else
  14469. # See if we have the minimum operation needed for GCC atomics
  14470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14471. /* end confdefs.h. */
  14472. int
  14473. main ()
  14474. {
  14475. int a;
  14476. __sync_lock_test_and_set(&a, 1);
  14477. __sync_lock_release(&a);
  14478. ;
  14479. return 0;
  14480. }
  14481. _ACEOF
  14482. if ac_fn_c_try_link "$LINENO"; then :
  14483. have_gcc_sync_lock_test_and_set=yes
  14484. fi
  14485. rm -f core conftest.err conftest.$ac_objext \
  14486. conftest$ac_exeext conftest.$ac_ext
  14487. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14488. $as_echo "@%:@define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14489. fi
  14490. fi
  14491. fi
  14492. # Standard C sources
  14493. SOURCES="$SOURCES $srcdir/src/*.c"
  14494. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14495. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14496. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14497. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14498. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14499. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14500. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14501. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14502. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14503. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14504. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14505. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14506. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14507. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14508. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14509. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14510. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14511. @%:@ Check whether --enable-atomic was given.
  14512. if test "${enable_atomic+set}" = set; then :
  14513. enableval=$enable_atomic;
  14514. else
  14515. enable_atomic=yes
  14516. fi
  14517. if test x$enable_atomic != xyes; then
  14518. $as_echo "@%:@define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14519. else
  14520. SUMMARY_modules="${SUMMARY_modules} atomic"
  14521. fi
  14522. @%:@ Check whether --enable-audio was given.
  14523. if test "${enable_audio+set}" = set; then :
  14524. enableval=$enable_audio;
  14525. else
  14526. enable_audio=yes
  14527. fi
  14528. if test x$enable_audio != xyes; then
  14529. $as_echo "@%:@define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14530. else
  14531. SUMMARY_modules="${SUMMARY_modules} audio"
  14532. fi
  14533. @%:@ Check whether --enable-video was given.
  14534. if test "${enable_video+set}" = set; then :
  14535. enableval=$enable_video;
  14536. else
  14537. enable_video=yes
  14538. fi
  14539. if test x$enable_video != xyes; then
  14540. $as_echo "@%:@define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14541. else
  14542. SUMMARY_modules="${SUMMARY_modules} video"
  14543. fi
  14544. @%:@ Check whether --enable-render was given.
  14545. if test "${enable_render+set}" = set; then :
  14546. enableval=$enable_render;
  14547. else
  14548. enable_render=yes
  14549. fi
  14550. if test x$enable_render != xyes; then
  14551. $as_echo "@%:@define SDL_RENDER_DISABLED 1" >>confdefs.h
  14552. else
  14553. SUMMARY_modules="${SUMMARY_modules} render"
  14554. fi
  14555. @%:@ Check whether --enable-events was given.
  14556. if test "${enable_events+set}" = set; then :
  14557. enableval=$enable_events;
  14558. else
  14559. enable_events=yes
  14560. fi
  14561. if test x$enable_events != xyes; then
  14562. $as_echo "@%:@define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14563. else
  14564. SUMMARY_modules="${SUMMARY_modules} events"
  14565. fi
  14566. @%:@ Check whether --enable-joystick was given.
  14567. if test "${enable_joystick+set}" = set; then :
  14568. enableval=$enable_joystick;
  14569. else
  14570. enable_joystick=yes
  14571. fi
  14572. if test x$enable_joystick != xyes; then
  14573. $as_echo "@%:@define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14574. else
  14575. SUMMARY_modules="${SUMMARY_modules} joystick"
  14576. fi
  14577. @%:@ Check whether --enable-haptic was given.
  14578. if test "${enable_haptic+set}" = set; then :
  14579. enableval=$enable_haptic;
  14580. else
  14581. enable_haptic=yes
  14582. fi
  14583. if test x$enable_haptic != xyes; then
  14584. $as_echo "@%:@define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14585. else
  14586. SUMMARY_modules="${SUMMARY_modules} haptic"
  14587. fi
  14588. @%:@ Check whether --enable-power was given.
  14589. if test "${enable_power+set}" = set; then :
  14590. enableval=$enable_power;
  14591. else
  14592. enable_power=yes
  14593. fi
  14594. if test x$enable_power != xyes; then
  14595. $as_echo "@%:@define SDL_POWER_DISABLED 1" >>confdefs.h
  14596. else
  14597. SUMMARY_modules="${SUMMARY_modules} power"
  14598. fi
  14599. @%:@ Check whether --enable-filesystem was given.
  14600. if test "${enable_filesystem+set}" = set; then :
  14601. enableval=$enable_filesystem;
  14602. else
  14603. enable_filesystem=yes
  14604. fi
  14605. if test x$enable_filesystem != xyes; then
  14606. $as_echo "@%:@define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14607. else
  14608. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14609. fi
  14610. @%:@ Check whether --enable-threads was given.
  14611. if test "${enable_threads+set}" = set; then :
  14612. enableval=$enable_threads;
  14613. else
  14614. enable_threads=yes
  14615. fi
  14616. if test x$enable_threads != xyes; then
  14617. $as_echo "@%:@define SDL_THREADS_DISABLED 1" >>confdefs.h
  14618. else
  14619. SUMMARY_modules="${SUMMARY_modules} threads"
  14620. fi
  14621. @%:@ Check whether --enable-timers was given.
  14622. if test "${enable_timers+set}" = set; then :
  14623. enableval=$enable_timers;
  14624. else
  14625. enable_timers=yes
  14626. fi
  14627. if test x$enable_timers != xyes; then
  14628. $as_echo "@%:@define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14629. else
  14630. SUMMARY_modules="${SUMMARY_modules} timers"
  14631. fi
  14632. @%:@ Check whether --enable-file was given.
  14633. if test "${enable_file+set}" = set; then :
  14634. enableval=$enable_file;
  14635. else
  14636. enable_file=yes
  14637. fi
  14638. if test x$enable_file != xyes; then
  14639. $as_echo "@%:@define SDL_FILE_DISABLED 1" >>confdefs.h
  14640. else
  14641. SUMMARY_modules="${SUMMARY_modules} file"
  14642. fi
  14643. @%:@ Check whether --enable-loadso was given.
  14644. if test "${enable_loadso+set}" = set; then :
  14645. enableval=$enable_loadso;
  14646. else
  14647. enable_loadso=yes
  14648. fi
  14649. if test x$enable_loadso != xyes; then
  14650. $as_echo "@%:@define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14651. else
  14652. SUMMARY_modules="${SUMMARY_modules} loadso"
  14653. fi
  14654. @%:@ Check whether --enable-cpuinfo was given.
  14655. if test "${enable_cpuinfo+set}" = set; then :
  14656. enableval=$enable_cpuinfo;
  14657. else
  14658. enable_cpuinfo=yes
  14659. fi
  14660. if test x$enable_cpuinfo != xyes; then
  14661. $as_echo "@%:@define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14662. else
  14663. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14664. fi
  14665. @%:@ Check whether --enable-assembly was given.
  14666. if test "${enable_assembly+set}" = set; then :
  14667. enableval=$enable_assembly;
  14668. else
  14669. enable_assembly=yes
  14670. fi
  14671. if test x$enable_assembly = xyes; then
  14672. SUMMARY_modules="${SUMMARY_modules} assembly"
  14673. $as_echo "@%:@define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14674. # Make sure that we don't generate floating point code that would
  14675. # cause illegal instruction exceptions on older processors
  14676. case "$host" in
  14677. *-*-darwin*)
  14678. # Don't need to worry about Apple hardware, it's all SSE capable
  14679. default_ssemath=yes
  14680. ;;
  14681. *64-*-*)
  14682. # x86 64-bit architectures all have SSE instructions
  14683. default_ssemath=yes
  14684. ;;
  14685. *)
  14686. default_ssemath=no
  14687. ;;
  14688. esac
  14689. @%:@ Check whether --enable-ssemath was given.
  14690. if test "${enable_ssemath+set}" = set; then :
  14691. enableval=$enable_ssemath;
  14692. else
  14693. enable_ssemath=$default_ssemath
  14694. fi
  14695. if test x$enable_ssemath = xno; then
  14696. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
  14697. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14698. fi
  14699. fi
  14700. @%:@ Check whether --enable-mmx was given.
  14701. if test "${enable_mmx+set}" = set; then :
  14702. enableval=$enable_mmx;
  14703. else
  14704. enable_mmx=yes
  14705. fi
  14706. if test x$enable_mmx = xyes; then
  14707. save_CFLAGS="$CFLAGS"
  14708. have_gcc_mmx=no
  14709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14710. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14711. mmx_CFLAGS="-mmmx"
  14712. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14714. /* end confdefs.h. */
  14715. #ifdef __MINGW32__
  14716. #include <_mingw.h>
  14717. #ifdef __MINGW64_VERSION_MAJOR
  14718. #include <intrin.h>
  14719. #else
  14720. #include <mmintrin.h>
  14721. #endif
  14722. #else
  14723. #include <mmintrin.h>
  14724. #endif
  14725. #ifndef __MMX__
  14726. #error Assembler CPP flag not enabled
  14727. #endif
  14728. int
  14729. main ()
  14730. {
  14731. ;
  14732. return 0;
  14733. }
  14734. _ACEOF
  14735. if ac_fn_c_try_compile "$LINENO"; then :
  14736. have_gcc_mmx=yes
  14737. fi
  14738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14740. $as_echo "$have_gcc_mmx" >&6; }
  14741. CFLAGS="$save_CFLAGS"
  14742. if test x$have_gcc_mmx = xyes; then
  14743. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14744. SUMMARY_math="${SUMMARY_math} mmx"
  14745. fi
  14746. fi
  14747. @%:@ Check whether --enable-3dnow was given.
  14748. if test "${enable_3dnow+set}" = set; then :
  14749. enableval=$enable_3dnow;
  14750. else
  14751. enable_3dnow=yes
  14752. fi
  14753. if test x$enable_3dnow = xyes; then
  14754. save_CFLAGS="$CFLAGS"
  14755. have_gcc_3dnow=no
  14756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14757. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14758. amd3dnow_CFLAGS="-m3dnow"
  14759. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14761. /* end confdefs.h. */
  14762. #include <mm3dnow.h>
  14763. #ifndef __3dNOW__
  14764. #error Assembler CPP flag not enabled
  14765. #endif
  14766. int
  14767. main ()
  14768. {
  14769. void *p = 0;
  14770. _m_prefetch(p);
  14771. ;
  14772. return 0;
  14773. }
  14774. _ACEOF
  14775. if ac_fn_c_try_link "$LINENO"; then :
  14776. have_gcc_3dnow=yes
  14777. fi
  14778. rm -f core conftest.err conftest.$ac_objext \
  14779. conftest$ac_exeext conftest.$ac_ext
  14780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14781. $as_echo "$have_gcc_3dnow" >&6; }
  14782. CFLAGS="$save_CFLAGS"
  14783. if test x$have_gcc_3dnow = xyes; then
  14784. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14785. SUMMARY_math="${SUMMARY_math} 3dnow"
  14786. fi
  14787. fi
  14788. @%:@ Check whether --enable-sse was given.
  14789. if test "${enable_sse+set}" = set; then :
  14790. enableval=$enable_sse;
  14791. else
  14792. enable_sse=yes
  14793. fi
  14794. if test x$enable_sse = xyes; then
  14795. save_CFLAGS="$CFLAGS"
  14796. have_gcc_sse=no
  14797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14798. $as_echo_n "checking for GCC -msse option... " >&6; }
  14799. sse_CFLAGS="-msse"
  14800. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14802. /* end confdefs.h. */
  14803. #ifdef __MINGW32__
  14804. #include <_mingw.h>
  14805. #ifdef __MINGW64_VERSION_MAJOR
  14806. #include <intrin.h>
  14807. #else
  14808. #include <xmmintrin.h>
  14809. #endif
  14810. #else
  14811. #include <xmmintrin.h>
  14812. #endif
  14813. #ifndef __SSE__
  14814. #error Assembler CPP flag not enabled
  14815. #endif
  14816. int
  14817. main ()
  14818. {
  14819. ;
  14820. return 0;
  14821. }
  14822. _ACEOF
  14823. if ac_fn_c_try_compile "$LINENO"; then :
  14824. have_gcc_sse=yes
  14825. fi
  14826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14828. $as_echo "$have_gcc_sse" >&6; }
  14829. CFLAGS="$save_CFLAGS"
  14830. if test x$have_gcc_sse = xyes; then
  14831. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14832. SUMMARY_math="${SUMMARY_math} sse"
  14833. fi
  14834. fi
  14835. @%:@ Check whether --enable-sse2 was given.
  14836. if test "${enable_sse2+set}" = set; then :
  14837. enableval=$enable_sse2;
  14838. else
  14839. enable_sse2=$default_ssemath
  14840. fi
  14841. if test x$enable_sse2 = xyes; then
  14842. save_CFLAGS="$CFLAGS"
  14843. have_gcc_sse2=no
  14844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14845. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14846. sse2_CFLAGS="-msse2"
  14847. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14849. /* end confdefs.h. */
  14850. #ifdef __MINGW32__
  14851. #include <_mingw.h>
  14852. #ifdef __MINGW64_VERSION_MAJOR
  14853. #include <intrin.h>
  14854. #else
  14855. #include <emmintrin.h>
  14856. #endif
  14857. #else
  14858. #include <emmintrin.h>
  14859. #endif
  14860. #ifndef __SSE2__
  14861. #error Assembler CPP flag not enabled
  14862. #endif
  14863. int
  14864. main ()
  14865. {
  14866. ;
  14867. return 0;
  14868. }
  14869. _ACEOF
  14870. if ac_fn_c_try_compile "$LINENO"; then :
  14871. have_gcc_sse2=yes
  14872. fi
  14873. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14875. $as_echo "$have_gcc_sse2" >&6; }
  14876. CFLAGS="$save_CFLAGS"
  14877. if test x$have_gcc_sse2 = xyes; then
  14878. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14879. SUMMARY_math="${SUMMARY_math} sse2"
  14880. fi
  14881. fi
  14882. @%:@ Check whether --enable-altivec was given.
  14883. if test "${enable_altivec+set}" = set; then :
  14884. enableval=$enable_altivec;
  14885. else
  14886. enable_altivec=yes
  14887. fi
  14888. if test x$enable_altivec = xyes; then
  14889. save_CFLAGS="$CFLAGS"
  14890. have_gcc_altivec=no
  14891. have_altivec_h_hdr=no
  14892. altivec_CFLAGS="-maltivec"
  14893. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14895. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14897. /* end confdefs.h. */
  14898. #include <altivec.h>
  14899. vector unsigned int vzero() {
  14900. return vec_splat_u32(0);
  14901. }
  14902. int
  14903. main ()
  14904. {
  14905. ;
  14906. return 0;
  14907. }
  14908. _ACEOF
  14909. if ac_fn_c_try_compile "$LINENO"; then :
  14910. have_gcc_altivec=yes
  14911. have_altivec_h_hdr=yes
  14912. fi
  14913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14915. $as_echo "$have_gcc_altivec" >&6; }
  14916. if test x$have_gcc_altivec = xno; then
  14917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14918. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14920. /* end confdefs.h. */
  14921. vector unsigned int vzero() {
  14922. return vec_splat_u32(0);
  14923. }
  14924. int
  14925. main ()
  14926. {
  14927. ;
  14928. return 0;
  14929. }
  14930. _ACEOF
  14931. if ac_fn_c_try_compile "$LINENO"; then :
  14932. have_gcc_altivec=yes
  14933. fi
  14934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14936. $as_echo "$have_gcc_altivec" >&6; }
  14937. fi
  14938. if test x$have_gcc_altivec = xno; then
  14939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  14940. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  14941. altivec_CFLAGS="-faltivec"
  14942. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14944. /* end confdefs.h. */
  14945. #include <altivec.h>
  14946. vector unsigned int vzero() {
  14947. return vec_splat_u32(0);
  14948. }
  14949. int
  14950. main ()
  14951. {
  14952. ;
  14953. return 0;
  14954. }
  14955. _ACEOF
  14956. if ac_fn_c_try_compile "$LINENO"; then :
  14957. have_gcc_altivec=yes
  14958. have_altivec_h_hdr=yes
  14959. fi
  14960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14962. $as_echo "$have_gcc_altivec" >&6; }
  14963. fi
  14964. if test x$have_gcc_altivec = xno; then
  14965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  14966. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  14967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14968. /* end confdefs.h. */
  14969. vector unsigned int vzero() {
  14970. return vec_splat_u32(0);
  14971. }
  14972. int
  14973. main ()
  14974. {
  14975. ;
  14976. return 0;
  14977. }
  14978. _ACEOF
  14979. if ac_fn_c_try_compile "$LINENO"; then :
  14980. have_gcc_altivec=yes
  14981. fi
  14982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14984. $as_echo "$have_gcc_altivec" >&6; }
  14985. fi
  14986. CFLAGS="$save_CFLAGS"
  14987. if test x$have_gcc_altivec = xyes; then
  14988. $as_echo "@%:@define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  14989. if test x$have_altivec_h_hdr = xyes; then
  14990. $as_echo "@%:@define HAVE_ALTIVEC_H 1" >>confdefs.h
  14991. fi
  14992. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  14993. SUMMARY_math="${SUMMARY_math} altivec"
  14994. fi
  14995. fi
  14996. fi
  14997. CheckOSS()
  14998. {
  14999. @%:@ Check whether --enable-oss was given.
  15000. if test "${enable_oss+set}" = set; then :
  15001. enableval=$enable_oss;
  15002. else
  15003. enable_oss=maybe
  15004. fi
  15005. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15006. # use sndio instead. So on there, we default to disabled. You can force
  15007. # it on if you really want, though.
  15008. if test x$enable_oss = xmaybe; then
  15009. enable_oss=yes
  15010. case "$host" in
  15011. *-*-openbsd*)
  15012. enable_oss=no;;
  15013. esac
  15014. fi
  15015. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15017. $as_echo_n "checking for OSS audio support... " >&6; }
  15018. have_oss=no
  15019. if test x$have_oss != xyes; then
  15020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15021. /* end confdefs.h. */
  15022. #include <sys/soundcard.h>
  15023. int
  15024. main ()
  15025. {
  15026. int arg = SNDCTL_DSP_SETFRAGMENT;
  15027. ;
  15028. return 0;
  15029. }
  15030. _ACEOF
  15031. if ac_fn_c_try_compile "$LINENO"; then :
  15032. have_oss=yes
  15033. fi
  15034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15035. fi
  15036. if test x$have_oss != xyes; then
  15037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15038. /* end confdefs.h. */
  15039. #include <soundcard.h>
  15040. int
  15041. main ()
  15042. {
  15043. int arg = SNDCTL_DSP_SETFRAGMENT;
  15044. ;
  15045. return 0;
  15046. }
  15047. _ACEOF
  15048. if ac_fn_c_try_compile "$LINENO"; then :
  15049. have_oss=yes
  15050. $as_echo "@%:@define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15051. fi
  15052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15053. fi
  15054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15055. $as_echo "$have_oss" >&6; }
  15056. if test x$have_oss = xyes; then
  15057. SUMMARY_audio="${SUMMARY_audio} oss"
  15058. $as_echo "@%:@define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15059. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15060. have_audio=yes
  15061. # We may need to link with ossaudio emulation library
  15062. case "$host" in
  15063. *-*-openbsd*|*-*-netbsd*)
  15064. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15065. esac
  15066. fi
  15067. fi
  15068. }
  15069. CheckALSA()
  15070. {
  15071. @%:@ Check whether --enable-alsa was given.
  15072. if test "${enable_alsa+set}" = set; then :
  15073. enableval=$enable_alsa;
  15074. else
  15075. enable_alsa=yes
  15076. fi
  15077. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15078. alsa_save_CFLAGS="$CFLAGS"
  15079. alsa_save_LDFLAGS="$LDFLAGS"
  15080. alsa_save_LIBS="$LIBS"
  15081. alsa_found=yes
  15082. @%:@ Check whether --with-alsa-prefix was given.
  15083. if test "${with_alsa_prefix+set}" = set; then :
  15084. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15085. else
  15086. alsa_prefix=""
  15087. fi
  15088. @%:@ Check whether --with-alsa-inc-prefix was given.
  15089. if test "${with_alsa_inc_prefix+set}" = set; then :
  15090. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15091. else
  15092. alsa_inc_prefix=""
  15093. fi
  15094. @%:@ Check whether --enable-alsatest was given.
  15095. if test "${enable_alsatest+set}" = set; then :
  15096. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15097. else
  15098. enable_alsatest=yes
  15099. fi
  15100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15101. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15102. if test "$alsa_inc_prefix" != "" ; then
  15103. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15104. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15105. fi
  15106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15107. $as_echo "$ALSA_CFLAGS" >&6; }
  15108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15109. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15110. if test "$alsa_prefix" != "" ; then
  15111. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15112. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15113. fi
  15114. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15115. LIBS=`echo $LIBS | sed 's/-lm//'`
  15116. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15117. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15118. LIBS=`echo $LIBS | sed 's/ //'`
  15119. LIBS="$ALSA_LIBS $LIBS"
  15120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15121. $as_echo "$ALSA_LIBS" >&6; }
  15122. min_alsa_version=0.9.0
  15123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15124. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15125. no_alsa=""
  15126. alsa_min_major_version=`echo $min_alsa_version | \
  15127. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15128. alsa_min_minor_version=`echo $min_alsa_version | \
  15129. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15130. alsa_min_micro_version=`echo $min_alsa_version | \
  15131. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15132. ac_ext=c
  15133. ac_cpp='$CPP $CPPFLAGS'
  15134. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15135. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15136. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15138. /* end confdefs.h. */
  15139. #include <alsa/asoundlib.h>
  15140. int
  15141. main ()
  15142. {
  15143. /* ensure backward compatibility */
  15144. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15145. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15146. #endif
  15147. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15148. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15149. #endif
  15150. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15151. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15152. #endif
  15153. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15154. exit(0);
  15155. # else
  15156. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15157. # error not present
  15158. # endif
  15159. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15160. exit(0);
  15161. # else
  15162. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15163. # error not present
  15164. # endif
  15165. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15166. # error not present
  15167. # endif
  15168. # endif
  15169. # endif
  15170. exit(0);
  15171. ;
  15172. return 0;
  15173. }
  15174. _ACEOF
  15175. if ac_fn_c_try_compile "$LINENO"; then :
  15176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15177. $as_echo "found." >&6; }
  15178. else
  15179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15180. $as_echo "not present." >&6; }
  15181. alsa_found=no
  15182. fi
  15183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15184. ac_ext=c
  15185. ac_cpp='$CPP $CPPFLAGS'
  15186. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15187. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15188. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15189. if test "x$enable_alsatest" = "xyes"; then
  15190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15191. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15192. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15193. $as_echo_n "(cached) " >&6
  15194. else
  15195. ac_check_lib_save_LIBS=$LIBS
  15196. LIBS="-lasound $LIBS"
  15197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15198. /* end confdefs.h. */
  15199. /* Override any GCC internal prototype to avoid an error.
  15200. Use char because int might match the return type of a GCC
  15201. builtin and then its argument prototype would still apply. */
  15202. #ifdef __cplusplus
  15203. extern "C"
  15204. #endif
  15205. char snd_ctl_open ();
  15206. int
  15207. main ()
  15208. {
  15209. return snd_ctl_open ();
  15210. ;
  15211. return 0;
  15212. }
  15213. _ACEOF
  15214. if ac_fn_c_try_link "$LINENO"; then :
  15215. ac_cv_lib_asound_snd_ctl_open=yes
  15216. else
  15217. ac_cv_lib_asound_snd_ctl_open=no
  15218. fi
  15219. rm -f core conftest.err conftest.$ac_objext \
  15220. conftest$ac_exeext conftest.$ac_ext
  15221. LIBS=$ac_check_lib_save_LIBS
  15222. fi
  15223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15224. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15225. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15226. cat >>confdefs.h <<_ACEOF
  15227. @%:@define HAVE_LIBASOUND 1
  15228. _ACEOF
  15229. LIBS="-lasound $LIBS"
  15230. else
  15231. alsa_found=no
  15232. fi
  15233. fi
  15234. if test "x$alsa_found" = "xyes" ; then
  15235. have_alsa=yes
  15236. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15237. LIBS=`echo $LIBS | sed 's/ //'`
  15238. LIBS="-lasound $LIBS"
  15239. fi
  15240. if test "x$alsa_found" = "xno" ; then
  15241. have_alsa=no
  15242. CFLAGS="$alsa_save_CFLAGS"
  15243. LDFLAGS="$alsa_save_LDFLAGS"
  15244. LIBS="$alsa_save_LIBS"
  15245. ALSA_CFLAGS=""
  15246. ALSA_LIBS=""
  15247. fi
  15248. # Restore all flags from before the ALSA detection runs
  15249. CFLAGS="$alsa_save_CFLAGS"
  15250. LDFLAGS="$alsa_save_LDFLAGS"
  15251. LIBS="$alsa_save_LIBS"
  15252. if test x$have_alsa = xyes; then
  15253. @%:@ Check whether --enable-alsa-shared was given.
  15254. if test "${enable_alsa_shared+set}" = set; then :
  15255. enableval=$enable_alsa_shared;
  15256. else
  15257. enable_alsa_shared=yes
  15258. fi
  15259. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15260. $as_echo "@%:@define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15261. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15262. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15263. if test x$have_loadso != xyes && \
  15264. test x$enable_alsa_shared = xyes; then
  15265. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15266. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15267. fi
  15268. if test x$have_loadso = xyes && \
  15269. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15270. echo "-- dynamic libasound -> $alsa_lib"
  15271. cat >>confdefs.h <<_ACEOF
  15272. @%:@define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15273. _ACEOF
  15274. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15275. else
  15276. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15277. SUMMARY_audio="${SUMMARY_audio} alsa"
  15278. fi
  15279. have_audio=yes
  15280. fi
  15281. fi
  15282. }
  15283. CheckESD()
  15284. {
  15285. @%:@ Check whether --enable-esd was given.
  15286. if test "${enable_esd+set}" = set; then :
  15287. enableval=$enable_esd;
  15288. else
  15289. enable_esd=yes
  15290. fi
  15291. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15292. @%:@ Check whether --with-esd-prefix was given.
  15293. if test "${with_esd_prefix+set}" = set; then :
  15294. withval=$with_esd_prefix; esd_prefix="$withval"
  15295. else
  15296. esd_prefix=""
  15297. fi
  15298. @%:@ Check whether --with-esd-exec-prefix was given.
  15299. if test "${with_esd_exec_prefix+set}" = set; then :
  15300. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15301. else
  15302. esd_exec_prefix=""
  15303. fi
  15304. @%:@ Check whether --enable-esdtest was given.
  15305. if test "${enable_esdtest+set}" = set; then :
  15306. enableval=$enable_esdtest;
  15307. else
  15308. enable_esdtest=yes
  15309. fi
  15310. if test x$esd_exec_prefix != x ; then
  15311. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15312. if test x${ESD_CONFIG+set} != xset ; then
  15313. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15314. fi
  15315. fi
  15316. if test x$esd_prefix != x ; then
  15317. esd_args="$esd_args --prefix=$esd_prefix"
  15318. if test x${ESD_CONFIG+set} != xset ; then
  15319. ESD_CONFIG=$esd_prefix/bin/esd-config
  15320. fi
  15321. fi
  15322. # Extract the first word of "esd-config", so it can be a program name with args.
  15323. set dummy esd-config; ac_word=$2
  15324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15325. $as_echo_n "checking for $ac_word... " >&6; }
  15326. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15327. $as_echo_n "(cached) " >&6
  15328. else
  15329. case $ESD_CONFIG in
  15330. [\\/]* | ?:[\\/]*)
  15331. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15332. ;;
  15333. *)
  15334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15335. for as_dir in $PATH
  15336. do
  15337. IFS=$as_save_IFS
  15338. test -z "$as_dir" && as_dir=.
  15339. for ac_exec_ext in '' $ac_executable_extensions; do
  15340. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15341. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15342. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15343. break 2
  15344. fi
  15345. done
  15346. done
  15347. IFS=$as_save_IFS
  15348. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15349. ;;
  15350. esac
  15351. fi
  15352. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15353. if test -n "$ESD_CONFIG"; then
  15354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15355. $as_echo "$ESD_CONFIG" >&6; }
  15356. else
  15357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15358. $as_echo "no" >&6; }
  15359. fi
  15360. min_esd_version=0.2.8
  15361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15362. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15363. no_esd=""
  15364. if test "$ESD_CONFIG" = "no" ; then
  15365. no_esd=yes
  15366. else
  15367. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15368. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15369. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15370. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15371. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15372. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15373. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15374. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15375. if test "x$enable_esdtest" = "xyes" ; then
  15376. ac_save_CFLAGS="$CFLAGS"
  15377. ac_save_LIBS="$LIBS"
  15378. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15379. LIBS="$LIBS $ESD_LIBS"
  15380. rm -f conf.esdtest
  15381. if test "$cross_compiling" = yes; then :
  15382. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15383. else
  15384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15385. /* end confdefs.h. */
  15386. #include <stdio.h>
  15387. #include <stdlib.h>
  15388. #include <string.h>
  15389. #include <esd.h>
  15390. char*
  15391. my_strdup (char *str)
  15392. {
  15393. char *new_str;
  15394. if (str)
  15395. {
  15396. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15397. strcpy (new_str, str);
  15398. }
  15399. else
  15400. new_str = NULL;
  15401. return new_str;
  15402. }
  15403. int main ()
  15404. {
  15405. int major, minor, micro;
  15406. char *tmp_version;
  15407. system ("touch conf.esdtest");
  15408. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15409. tmp_version = my_strdup("$min_esd_version");
  15410. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15411. printf("%s, bad version string\n", "$min_esd_version");
  15412. exit(1);
  15413. }
  15414. if (($esd_major_version > major) ||
  15415. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15416. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15417. {
  15418. return 0;
  15419. }
  15420. else
  15421. {
  15422. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15423. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15424. printf("*** best to upgrade to the required version.\n");
  15425. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15426. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15427. printf("*** config.cache before re-running configure\n");
  15428. return 1;
  15429. }
  15430. }
  15431. _ACEOF
  15432. if ac_fn_c_try_run "$LINENO"; then :
  15433. else
  15434. no_esd=yes
  15435. fi
  15436. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15437. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15438. fi
  15439. CFLAGS="$ac_save_CFLAGS"
  15440. LIBS="$ac_save_LIBS"
  15441. fi
  15442. fi
  15443. if test "x$no_esd" = x ; then
  15444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15445. $as_echo "yes" >&6; }
  15446. have_esd=yes
  15447. else
  15448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15449. $as_echo "no" >&6; }
  15450. if test "$ESD_CONFIG" = "no" ; then
  15451. echo "*** The esd-config script installed by ESD could not be found"
  15452. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15453. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15454. echo "*** full path to esd-config."
  15455. else
  15456. if test -f conf.esdtest ; then
  15457. :
  15458. else
  15459. echo "*** Could not run ESD test program, checking why..."
  15460. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15461. LIBS="$LIBS $ESD_LIBS"
  15462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15463. /* end confdefs.h. */
  15464. #include <stdio.h>
  15465. #include <esd.h>
  15466. int
  15467. main ()
  15468. {
  15469. return 0;
  15470. ;
  15471. return 0;
  15472. }
  15473. _ACEOF
  15474. if ac_fn_c_try_link "$LINENO"; then :
  15475. echo "*** The test program compiled, but did not run. This usually means"
  15476. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15477. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15478. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15479. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15480. echo "*** is required on your system"
  15481. echo "***"
  15482. echo "*** If you have an old version installed, it is best to remove it, although"
  15483. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15484. else
  15485. echo "*** The test program failed to compile or link. See the file config.log for the"
  15486. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15487. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15488. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15489. fi
  15490. rm -f core conftest.err conftest.$ac_objext \
  15491. conftest$ac_exeext conftest.$ac_ext
  15492. CFLAGS="$ac_save_CFLAGS"
  15493. LIBS="$ac_save_LIBS"
  15494. fi
  15495. fi
  15496. ESD_CFLAGS=""
  15497. ESD_LIBS=""
  15498. have_esd=no
  15499. fi
  15500. rm -f conf.esdtest
  15501. if test x$have_esd = xyes; then
  15502. @%:@ Check whether --enable-esd-shared was given.
  15503. if test "${enable_esd_shared+set}" = set; then :
  15504. enableval=$enable_esd_shared;
  15505. else
  15506. enable_esd_shared=yes
  15507. fi
  15508. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15509. $as_echo "@%:@define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15510. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15511. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15512. if test x$have_loadso != xyes && \
  15513. test x$enable_esd_shared = xyes; then
  15514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15515. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15516. fi
  15517. if test x$have_loadso = xyes && \
  15518. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15519. echo "-- dynamic libesd -> $esd_lib"
  15520. cat >>confdefs.h <<_ACEOF
  15521. @%:@define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15522. _ACEOF
  15523. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15524. else
  15525. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15526. SUMMARY_audio="${SUMMARY_audio} esd"
  15527. fi
  15528. have_audio=yes
  15529. fi
  15530. fi
  15531. }
  15532. CheckPulseAudio()
  15533. {
  15534. @%:@ Check whether --enable-pulseaudio was given.
  15535. if test "${enable_pulseaudio+set}" = set; then :
  15536. enableval=$enable_pulseaudio;
  15537. else
  15538. enable_pulseaudio=yes
  15539. fi
  15540. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15541. audio_pulseaudio=no
  15542. PULSEAUDIO_REQUIRED_VERSION=0.9
  15543. # Extract the first word of "pkg-config", so it can be a program name with args.
  15544. set dummy pkg-config; ac_word=$2
  15545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15546. $as_echo_n "checking for $ac_word... " >&6; }
  15547. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15548. $as_echo_n "(cached) " >&6
  15549. else
  15550. case $PKG_CONFIG in
  15551. [\\/]* | ?:[\\/]*)
  15552. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15553. ;;
  15554. *)
  15555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15556. for as_dir in $PATH
  15557. do
  15558. IFS=$as_save_IFS
  15559. test -z "$as_dir" && as_dir=.
  15560. for ac_exec_ext in '' $ac_executable_extensions; do
  15561. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15562. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15563. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15564. break 2
  15565. fi
  15566. done
  15567. done
  15568. IFS=$as_save_IFS
  15569. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15570. ;;
  15571. esac
  15572. fi
  15573. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15574. if test -n "$PKG_CONFIG"; then
  15575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15576. $as_echo "$PKG_CONFIG" >&6; }
  15577. else
  15578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15579. $as_echo "no" >&6; }
  15580. fi
  15581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15582. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15583. if test x$PKG_CONFIG != xno; then
  15584. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15585. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15586. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15587. audio_pulseaudio=yes
  15588. fi
  15589. fi
  15590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15591. $as_echo "$audio_pulseaudio" >&6; }
  15592. if test x$audio_pulseaudio = xyes; then
  15593. @%:@ Check whether --enable-pulseaudio-shared was given.
  15594. if test "${enable_pulseaudio_shared+set}" = set; then :
  15595. enableval=$enable_pulseaudio_shared;
  15596. else
  15597. enable_pulseaudio_shared=yes
  15598. fi
  15599. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15600. $as_echo "@%:@define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15601. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15602. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15603. if test x$have_loadso != xyes && \
  15604. test x$enable_pulseaudio_shared = xyes; then
  15605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15606. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15607. fi
  15608. if test x$have_loadso = xyes && \
  15609. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15610. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15611. cat >>confdefs.h <<_ACEOF
  15612. @%:@define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15613. _ACEOF
  15614. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15615. case "$host" in
  15616. # On Solaris, pulseaudio must be linked deferred explicitly
  15617. # to prevent undefined symbol failures.
  15618. *-*-solaris*)
  15619. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15620. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15621. esac
  15622. else
  15623. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15624. SUMMARY_audio="${SUMMARY_audio} pulse"
  15625. fi
  15626. have_audio=yes
  15627. fi
  15628. fi
  15629. }
  15630. CheckARTSC()
  15631. {
  15632. @%:@ Check whether --enable-arts was given.
  15633. if test "${enable_arts+set}" = set; then :
  15634. enableval=$enable_arts;
  15635. else
  15636. enable_arts=yes
  15637. fi
  15638. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15639. # Extract the first word of "artsc-config", so it can be a program name with args.
  15640. set dummy artsc-config; ac_word=$2
  15641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15642. $as_echo_n "checking for $ac_word... " >&6; }
  15643. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15644. $as_echo_n "(cached) " >&6
  15645. else
  15646. case $ARTSCONFIG in
  15647. [\\/]* | ?:[\\/]*)
  15648. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15649. ;;
  15650. *)
  15651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15652. for as_dir in $PATH
  15653. do
  15654. IFS=$as_save_IFS
  15655. test -z "$as_dir" && as_dir=.
  15656. for ac_exec_ext in '' $ac_executable_extensions; do
  15657. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15658. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15659. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15660. break 2
  15661. fi
  15662. done
  15663. done
  15664. IFS=$as_save_IFS
  15665. ;;
  15666. esac
  15667. fi
  15668. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15669. if test -n "$ARTSCONFIG"; then
  15670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15671. $as_echo "$ARTSCONFIG" >&6; }
  15672. else
  15673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15674. $as_echo "no" >&6; }
  15675. fi
  15676. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15677. : # arts isn't installed
  15678. else
  15679. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15680. ARTS_LIBS=`$ARTSCONFIG --libs`
  15681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15682. $as_echo_n "checking for aRts development environment... " >&6; }
  15683. audio_arts=no
  15684. save_CFLAGS="$CFLAGS"
  15685. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15687. /* end confdefs.h. */
  15688. #include <artsc.h>
  15689. int
  15690. main ()
  15691. {
  15692. arts_stream_t stream;
  15693. ;
  15694. return 0;
  15695. }
  15696. _ACEOF
  15697. if ac_fn_c_try_compile "$LINENO"; then :
  15698. audio_arts=yes
  15699. fi
  15700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15701. CFLAGS="$save_CFLAGS"
  15702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15703. $as_echo "$audio_arts" >&6; }
  15704. if test x$audio_arts = xyes; then
  15705. @%:@ Check whether --enable-arts-shared was given.
  15706. if test "${enable_arts_shared+set}" = set; then :
  15707. enableval=$enable_arts_shared;
  15708. else
  15709. enable_arts_shared=yes
  15710. fi
  15711. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15712. $as_echo "@%:@define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15713. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15714. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15715. if test x$have_loadso != xyes && \
  15716. test x$enable_arts_shared = xyes; then
  15717. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15718. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15719. fi
  15720. if test x$have_loadso = xyes && \
  15721. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15722. echo "-- dynamic libartsc -> $arts_lib"
  15723. cat >>confdefs.h <<_ACEOF
  15724. @%:@define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15725. _ACEOF
  15726. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15727. else
  15728. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15729. SUMMARY_audio="${SUMMARY_audio} arts"
  15730. fi
  15731. have_audio=yes
  15732. fi
  15733. fi
  15734. fi
  15735. }
  15736. CheckNAS()
  15737. {
  15738. @%:@ Check whether --enable-nas was given.
  15739. if test "${enable_nas+set}" = set; then :
  15740. enableval=$enable_nas;
  15741. else
  15742. enable_nas=yes
  15743. fi
  15744. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15745. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15746. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15747. have_nas_hdr=yes
  15748. fi
  15749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15750. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15751. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15752. $as_echo_n "(cached) " >&6
  15753. else
  15754. ac_check_lib_save_LIBS=$LIBS
  15755. LIBS="-laudio $LIBS"
  15756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15757. /* end confdefs.h. */
  15758. /* Override any GCC internal prototype to avoid an error.
  15759. Use char because int might match the return type of a GCC
  15760. builtin and then its argument prototype would still apply. */
  15761. #ifdef __cplusplus
  15762. extern "C"
  15763. #endif
  15764. char AuOpenServer ();
  15765. int
  15766. main ()
  15767. {
  15768. return AuOpenServer ();
  15769. ;
  15770. return 0;
  15771. }
  15772. _ACEOF
  15773. if ac_fn_c_try_link "$LINENO"; then :
  15774. ac_cv_lib_audio_AuOpenServer=yes
  15775. else
  15776. ac_cv_lib_audio_AuOpenServer=no
  15777. fi
  15778. rm -f core conftest.err conftest.$ac_objext \
  15779. conftest$ac_exeext conftest.$ac_ext
  15780. LIBS=$ac_check_lib_save_LIBS
  15781. fi
  15782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15783. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15784. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15785. have_nas_lib=yes
  15786. fi
  15787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15788. $as_echo_n "checking for NAS audio support... " >&6; }
  15789. have_nas=no
  15790. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15791. have_nas=yes
  15792. NAS_LIBS="-laudio"
  15793. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15794. have_nas=yes
  15795. NAS_CFLAGS="-I/usr/X11R6/include/"
  15796. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15797. fi
  15798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15799. $as_echo "$have_nas" >&6; }
  15800. if test x$have_nas = xyes; then
  15801. @%:@ Check whether --enable-nas-shared was given.
  15802. if test "${enable_nas_shared+set}" = set; then :
  15803. enableval=$enable_nas_shared;
  15804. else
  15805. enable_nas_shared=yes
  15806. fi
  15807. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15808. if test x$have_loadso != xyes && \
  15809. test x$enable_nas_shared = xyes; then
  15810. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15811. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15812. fi
  15813. if test x$have_loadso = xyes && \
  15814. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15815. echo "-- dynamic libaudio -> $nas_lib"
  15816. cat >>confdefs.h <<_ACEOF
  15817. @%:@define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15818. _ACEOF
  15819. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  15820. else
  15821. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15822. SUMMARY_audio="${SUMMARY_audio} nas"
  15823. fi
  15824. $as_echo "@%:@define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15825. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15826. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15827. have_audio=yes
  15828. fi
  15829. fi
  15830. }
  15831. CheckSNDIO()
  15832. {
  15833. @%:@ Check whether --enable-sndio was given.
  15834. if test "${enable_sndio+set}" = set; then :
  15835. enableval=$enable_sndio;
  15836. else
  15837. enable_sndio=yes
  15838. fi
  15839. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15840. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15841. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15842. have_sndio_hdr=yes
  15843. fi
  15844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15845. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15846. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15847. $as_echo_n "(cached) " >&6
  15848. else
  15849. ac_check_lib_save_LIBS=$LIBS
  15850. LIBS="-lsndio $LIBS"
  15851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15852. /* end confdefs.h. */
  15853. /* Override any GCC internal prototype to avoid an error.
  15854. Use char because int might match the return type of a GCC
  15855. builtin and then its argument prototype would still apply. */
  15856. #ifdef __cplusplus
  15857. extern "C"
  15858. #endif
  15859. char sio_open ();
  15860. int
  15861. main ()
  15862. {
  15863. return sio_open ();
  15864. ;
  15865. return 0;
  15866. }
  15867. _ACEOF
  15868. if ac_fn_c_try_link "$LINENO"; then :
  15869. ac_cv_lib_sndio_sio_open=yes
  15870. else
  15871. ac_cv_lib_sndio_sio_open=no
  15872. fi
  15873. rm -f core conftest.err conftest.$ac_objext \
  15874. conftest$ac_exeext conftest.$ac_ext
  15875. LIBS=$ac_check_lib_save_LIBS
  15876. fi
  15877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15878. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15879. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15880. have_sndio_lib=yes
  15881. fi
  15882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15883. $as_echo_n "checking for sndio audio support... " >&6; }
  15884. have_sndio=no
  15885. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15886. have_sndio=yes
  15887. SNDIO_LIBS="-lsndio"
  15888. fi
  15889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15890. $as_echo "$have_sndio" >&6; }
  15891. if test x$have_sndio = xyes; then
  15892. @%:@ Check whether --enable-sndio-shared was given.
  15893. if test "${enable_sndio_shared+set}" = set; then :
  15894. enableval=$enable_sndio_shared;
  15895. else
  15896. enable_sndio_shared=yes
  15897. fi
  15898. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15899. if test x$have_loadso != xyes && \
  15900. test x$enable_sndio_shared = xyes; then
  15901. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15902. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15903. fi
  15904. if test x$have_loadso = xyes && \
  15905. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15906. echo "-- dynamic libsndio -> $sndio_lib"
  15907. cat >>confdefs.h <<_ACEOF
  15908. @%:@define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15909. _ACEOF
  15910. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  15911. else
  15912. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15913. SUMMARY_audio="${SUMMARY_audio} sndio"
  15914. fi
  15915. $as_echo "@%:@define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  15916. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  15917. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  15918. have_audio=yes
  15919. fi
  15920. fi
  15921. }
  15922. CheckDiskAudio()
  15923. {
  15924. @%:@ Check whether --enable-diskaudio was given.
  15925. if test "${enable_diskaudio+set}" = set; then :
  15926. enableval=$enable_diskaudio;
  15927. else
  15928. enable_diskaudio=yes
  15929. fi
  15930. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  15931. $as_echo "@%:@define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  15932. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  15933. SUMMARY_audio="${SUMMARY_audio} disk"
  15934. fi
  15935. }
  15936. CheckDummyAudio()
  15937. {
  15938. @%:@ Check whether --enable-dummyaudio was given.
  15939. if test "${enable_dummyaudio+set}" = set; then :
  15940. enableval=$enable_dummyaudio;
  15941. else
  15942. enable_dummyaudio=yes
  15943. fi
  15944. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  15945. $as_echo "@%:@define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  15946. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  15947. SUMMARY_audio="${SUMMARY_audio} dummy"
  15948. fi
  15949. }
  15950. CheckVisibilityHidden()
  15951. {
  15952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  15953. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  15954. have_gcc_fvisibility=no
  15955. visibility_CFLAGS="-fvisibility=hidden"
  15956. save_CFLAGS="$CFLAGS"
  15957. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  15958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15959. /* end confdefs.h. */
  15960. #if !defined(__GNUC__) || __GNUC__ < 4
  15961. #error SDL only uses visibility attributes in GCC 4 or newer
  15962. #endif
  15963. int
  15964. main ()
  15965. {
  15966. ;
  15967. return 0;
  15968. }
  15969. _ACEOF
  15970. if ac_fn_c_try_compile "$LINENO"; then :
  15971. have_gcc_fvisibility=yes
  15972. fi
  15973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  15975. $as_echo "$have_gcc_fvisibility" >&6; }
  15976. CFLAGS="$save_CFLAGS"
  15977. if test x$have_gcc_fvisibility = xyes; then
  15978. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  15979. fi
  15980. }
  15981. CheckStackBoundary()
  15982. {
  15983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  15984. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  15985. have_gcc_preferred_stack_boundary=no
  15986. save_CFLAGS="$CFLAGS"
  15987. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  15988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15989. /* end confdefs.h. */
  15990. int x = 0;
  15991. int
  15992. main ()
  15993. {
  15994. ;
  15995. return 0;
  15996. }
  15997. _ACEOF
  15998. if ac_fn_c_try_compile "$LINENO"; then :
  15999. have_gcc_preferred_stack_boundary=yes
  16000. fi
  16001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16003. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16004. CFLAGS="$save_CFLAGS"
  16005. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16006. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16007. fi
  16008. }
  16009. CheckWarnAll()
  16010. {
  16011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16012. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16013. have_gcc_Wall=no
  16014. save_CFLAGS="$CFLAGS"
  16015. CFLAGS="$save_CFLAGS -Wall"
  16016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16017. /* end confdefs.h. */
  16018. int x = 0;
  16019. int
  16020. main ()
  16021. {
  16022. ;
  16023. return 0;
  16024. }
  16025. _ACEOF
  16026. if ac_fn_c_try_compile "$LINENO"; then :
  16027. have_gcc_Wall=yes
  16028. fi
  16029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16031. $as_echo "$have_gcc_Wall" >&6; }
  16032. CFLAGS="$save_CFLAGS"
  16033. if test x$have_gcc_Wall = xyes; then
  16034. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16036. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16037. need_gcc_Wno_multichar=no
  16038. case "$host" in
  16039. *-*-haiku*)
  16040. need_gcc_Wno_multichar=yes
  16041. ;;
  16042. esac
  16043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16044. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16045. if test x$need_gcc_Wno_multichar = xyes; then
  16046. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16047. fi
  16048. fi
  16049. }
  16050. CheckWarnShadow()
  16051. {
  16052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wshadow option" >&5
  16053. $as_echo_n "checking for GCC -Wshadow option... " >&6; }
  16054. have_gcc_Wshadow=no
  16055. save_CFLAGS="$CFLAGS"
  16056. CFLAGS="$save_CFLAGS -Wshadow"
  16057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16058. /* end confdefs.h. */
  16059. int x = 0;
  16060. int
  16061. main ()
  16062. {
  16063. ;
  16064. return 0;
  16065. }
  16066. _ACEOF
  16067. if ac_fn_c_try_compile "$LINENO"; then :
  16068. have_gcc_Wshadow=yes
  16069. fi
  16070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wshadow" >&5
  16072. $as_echo "$have_gcc_Wshadow" >&6; }
  16073. CFLAGS="$save_CFLAGS"
  16074. if test x$have_gcc_Wshadow = xyes; then
  16075. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wshadow"
  16076. fi
  16077. }
  16078. CheckWayland()
  16079. {
  16080. @%:@ Check whether --enable-video-wayland was given.
  16081. if test "${enable_video_wayland+set}" = set; then :
  16082. enableval=$enable_video_wayland;
  16083. else
  16084. enable_video_wayland=yes
  16085. fi
  16086. @%:@ Check whether --enable-video-wayland-qt-touch was given.
  16087. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16088. enableval=$enable_video_wayland_qt_touch;
  16089. else
  16090. enable_video_wayland_qt_touch=yes
  16091. fi
  16092. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16093. # Extract the first word of "pkg-config", so it can be a program name with args.
  16094. set dummy pkg-config; ac_word=$2
  16095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16096. $as_echo_n "checking for $ac_word... " >&6; }
  16097. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16098. $as_echo_n "(cached) " >&6
  16099. else
  16100. case $PKG_CONFIG in
  16101. [\\/]* | ?:[\\/]*)
  16102. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16103. ;;
  16104. *)
  16105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16106. for as_dir in $PATH
  16107. do
  16108. IFS=$as_save_IFS
  16109. test -z "$as_dir" && as_dir=.
  16110. for ac_exec_ext in '' $ac_executable_extensions; do
  16111. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16112. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16114. break 2
  16115. fi
  16116. done
  16117. done
  16118. IFS=$as_save_IFS
  16119. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16120. ;;
  16121. esac
  16122. fi
  16123. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16124. if test -n "$PKG_CONFIG"; then
  16125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16126. $as_echo "$PKG_CONFIG" >&6; }
  16127. else
  16128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16129. $as_echo "no" >&6; }
  16130. fi
  16131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16132. $as_echo_n "checking for Wayland support... " >&6; }
  16133. video_wayland=no
  16134. if test x$PKG_CONFIG != xno && \
  16135. test x$video_opengl_egl = xyes && \
  16136. test x$video_opengles_v2 = xyes; then
  16137. if $PKG_CONFIG --exists wayland-client wayland-egl wayland-cursor egl xkbcommon ; then
  16138. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16139. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16140. video_wayland=yes
  16141. fi
  16142. fi
  16143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16144. $as_echo "$video_wayland" >&6; }
  16145. if test x$video_wayland = xyes; then
  16146. $as_echo "@%:@define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16147. if test x$enable_video_wayland_qt_touch = xyes; then
  16148. $as_echo "@%:@define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16149. fi
  16150. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16151. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS"
  16152. @%:@ Check whether --enable-wayland-shared was given.
  16153. if test "${enable_wayland_shared+set}" = set; then :
  16154. enableval=$enable_wayland_shared;
  16155. else
  16156. enable_wayland_shared=maybe
  16157. fi
  16158. case "$host" in
  16159. *)
  16160. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16161. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16162. if test x$wayland_egl_lib = x; then
  16163. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16164. fi
  16165. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16166. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16167. ;;
  16168. esac
  16169. if test x$enable_wayland_shared = xmaybe; then
  16170. enable_wayland_shared=yes
  16171. fi
  16172. if test x$have_loadso != xyes && \
  16173. test x$enable_wayland_shared = xyes; then
  16174. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16175. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16176. enable_wayland_shared=no
  16177. fi
  16178. if test x$have_loadso = xyes && \
  16179. test x$enable_wayland_shared = xyes && \
  16180. test x$wayland_client_lib != x && \
  16181. test x$wayland_egl_lib != x && \
  16182. test x$wayland_cursor_lib != x && \
  16183. test x$xkbcommon_lib != x; then
  16184. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16185. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16186. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16187. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16188. cat >>confdefs.h <<_ACEOF
  16189. @%:@define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16190. _ACEOF
  16191. cat >>confdefs.h <<_ACEOF
  16192. @%:@define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16193. _ACEOF
  16194. cat >>confdefs.h <<_ACEOF
  16195. @%:@define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16196. _ACEOF
  16197. cat >>confdefs.h <<_ACEOF
  16198. @%:@define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16199. _ACEOF
  16200. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16201. else
  16202. enable_wayland_shared=no
  16203. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16204. SUMMARY_video="${SUMMARY_video} wayland"
  16205. fi
  16206. have_video=yes
  16207. fi
  16208. fi
  16209. }
  16210. CheckMir()
  16211. {
  16212. @%:@ Check whether --enable-video-mir was given.
  16213. if test "${enable_video_mir+set}" = set; then :
  16214. enableval=$enable_video_mir;
  16215. else
  16216. enable_video_mir=yes
  16217. fi
  16218. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16219. # Extract the first word of "pkg-config", so it can be a program name with args.
  16220. set dummy pkg-config; ac_word=$2
  16221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16222. $as_echo_n "checking for $ac_word... " >&6; }
  16223. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16224. $as_echo_n "(cached) " >&6
  16225. else
  16226. case $PKG_CONFIG in
  16227. [\\/]* | ?:[\\/]*)
  16228. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16229. ;;
  16230. *)
  16231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16232. for as_dir in $PATH
  16233. do
  16234. IFS=$as_save_IFS
  16235. test -z "$as_dir" && as_dir=.
  16236. for ac_exec_ext in '' $ac_executable_extensions; do
  16237. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16238. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16239. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16240. break 2
  16241. fi
  16242. done
  16243. done
  16244. IFS=$as_save_IFS
  16245. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16246. ;;
  16247. esac
  16248. fi
  16249. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16250. if test -n "$PKG_CONFIG"; then
  16251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16252. $as_echo "$PKG_CONFIG" >&6; }
  16253. else
  16254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16255. $as_echo "no" >&6; }
  16256. fi
  16257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16258. $as_echo_n "checking for Mir support... " >&6; }
  16259. video_mir=no
  16260. if test x$PKG_CONFIG != xno; then
  16261. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16262. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16263. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16264. save_CFLAGS="$CFLAGS"
  16265. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16267. /* end confdefs.h. */
  16268. #include <mir_toolkit/mir_client_library.h>
  16269. int
  16270. main ()
  16271. {
  16272. MirMotionToolType tool = mir_motion_tool_type_mouse;
  16273. ;
  16274. return 0;
  16275. }
  16276. _ACEOF
  16277. if ac_fn_c_try_compile "$LINENO"; then :
  16278. video_mir=yes
  16279. fi
  16280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16281. CFLAGS="$save_CFLAGS"
  16282. fi
  16283. fi
  16284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16285. $as_echo "$video_mir" >&6; }
  16286. if test x$video_mir = xyes; then
  16287. $as_echo "@%:@define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16288. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16289. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16290. @%:@ Check whether --enable-mir-shared was given.
  16291. if test "${enable_mir_shared+set}" = set; then :
  16292. enableval=$enable_mir_shared;
  16293. else
  16294. enable_mir_shared=maybe
  16295. fi
  16296. case "$host" in
  16297. *)
  16298. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16299. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16300. ;;
  16301. esac
  16302. if test x$enable_mir_shared = xmaybe; then
  16303. enable_mir_shared=yes
  16304. fi
  16305. if test x$have_loadso != xyes && \
  16306. test x$enable_mir_shared = xyes; then
  16307. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16308. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16309. enable_mir_shared=no
  16310. fi
  16311. if test x$have_loadso = xyes && \
  16312. test x$enable_mir_shared = xyes && \
  16313. test x$mirclient_lib != x && \
  16314. test x$xkbcommon_lib != x; then
  16315. echo "-- dynamic libmirclient -> $mirclient_lib"
  16316. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16317. cat >>confdefs.h <<_ACEOF
  16318. @%:@define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16319. _ACEOF
  16320. cat >>confdefs.h <<_ACEOF
  16321. @%:@define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16322. _ACEOF
  16323. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16324. else
  16325. enable_mir_shared=no
  16326. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16327. SUMMARY_video="${SUMMARY_video} mir"
  16328. fi
  16329. have_video=yes
  16330. fi
  16331. fi
  16332. }
  16333. CheckNativeClient()
  16334. {
  16335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16336. /* end confdefs.h. */
  16337. #if !defined(__native_client__)
  16338. #error "NO NACL"
  16339. #endif
  16340. int
  16341. main ()
  16342. {
  16343. ;
  16344. return 0;
  16345. }
  16346. _ACEOF
  16347. if ac_fn_c_try_compile "$LINENO"; then :
  16348. $as_echo "@%:@define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16349. $as_echo "@%:@define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16350. $as_echo "@%:@define HAVE_POW 1" >>confdefs.h
  16351. $as_echo "@%:@define HAVE_OPENGLES2 1" >>confdefs.h
  16352. $as_echo "@%:@define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16353. $as_echo "@%:@define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16354. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16355. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16356. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16357. SUMMARY_audio="${SUMMARY_audio} nacl"
  16358. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16359. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16360. fi
  16361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16362. }
  16363. CheckX11()
  16364. {
  16365. @%:@ Check whether --enable-video-x11 was given.
  16366. if test "${enable_video_x11+set}" = set; then :
  16367. enableval=$enable_video_x11;
  16368. else
  16369. enable_video_x11=yes
  16370. fi
  16371. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16372. case "$host" in
  16373. *-*-darwin*)
  16374. # This isn't necessary for X11, but fixes GLX detection
  16375. if test "x$x_includes" = xNONE && \
  16376. test "x$x_libraries" = xNONE && \
  16377. test -d /usr/X11R6/include && \
  16378. test -d /usr/X11R6/lib; then
  16379. x_includes="/usr/X11R6/include"
  16380. x_libraries="/usr/X11R6/lib"
  16381. fi
  16382. ;;
  16383. esac
  16384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16385. $as_echo_n "checking for X... " >&6; }
  16386. @%:@ Check whether --with-x was given.
  16387. if test "${with_x+set}" = set; then :
  16388. withval=$with_x;
  16389. fi
  16390. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16391. if test "x$with_x" = xno; then
  16392. # The user explicitly disabled X.
  16393. have_x=disabled
  16394. else
  16395. case $x_includes,$x_libraries in #(
  16396. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16397. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16398. $as_echo_n "(cached) " >&6
  16399. else
  16400. # One or both of the vars are not set, and there is no cached value.
  16401. ac_x_includes=no ac_x_libraries=no
  16402. rm -f -r conftest.dir
  16403. if mkdir conftest.dir; then
  16404. cd conftest.dir
  16405. cat >Imakefile <<'_ACEOF'
  16406. incroot:
  16407. @echo incroot='${INCROOT}'
  16408. usrlibdir:
  16409. @echo usrlibdir='${USRLIBDIR}'
  16410. libdir:
  16411. @echo libdir='${LIBDIR}'
  16412. _ACEOF
  16413. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16414. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16415. for ac_var in incroot usrlibdir libdir; do
  16416. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16417. done
  16418. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16419. for ac_extension in a so sl dylib la dll; do
  16420. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16421. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16422. ac_im_usrlibdir=$ac_im_libdir; break
  16423. fi
  16424. done
  16425. # Screen out bogus values from the imake configuration. They are
  16426. # bogus both because they are the default anyway, and because
  16427. # using them would break gcc on systems where it needs fixed includes.
  16428. case $ac_im_incroot in
  16429. /usr/include) ac_x_includes= ;;
  16430. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16431. esac
  16432. case $ac_im_usrlibdir in
  16433. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16434. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16435. esac
  16436. fi
  16437. cd ..
  16438. rm -f -r conftest.dir
  16439. fi
  16440. # Standard set of common directories for X headers.
  16441. # Check X11 before X11Rn because it is often a symlink to the current release.
  16442. ac_x_header_dirs='
  16443. /usr/X11/include
  16444. /usr/X11R7/include
  16445. /usr/X11R6/include
  16446. /usr/X11R5/include
  16447. /usr/X11R4/include
  16448. /usr/include/X11
  16449. /usr/include/X11R7
  16450. /usr/include/X11R6
  16451. /usr/include/X11R5
  16452. /usr/include/X11R4
  16453. /usr/local/X11/include
  16454. /usr/local/X11R7/include
  16455. /usr/local/X11R6/include
  16456. /usr/local/X11R5/include
  16457. /usr/local/X11R4/include
  16458. /usr/local/include/X11
  16459. /usr/local/include/X11R7
  16460. /usr/local/include/X11R6
  16461. /usr/local/include/X11R5
  16462. /usr/local/include/X11R4
  16463. /usr/X386/include
  16464. /usr/x386/include
  16465. /usr/XFree86/include/X11
  16466. /usr/include
  16467. /usr/local/include
  16468. /usr/unsupported/include
  16469. /usr/athena/include
  16470. /usr/local/x11r5/include
  16471. /usr/lpp/Xamples/include
  16472. /usr/openwin/include
  16473. /usr/openwin/share/include'
  16474. if test "$ac_x_includes" = no; then
  16475. # Guess where to find include files, by looking for Xlib.h.
  16476. # First, try using that file with no special directory specified.
  16477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16478. /* end confdefs.h. */
  16479. @%:@include <X11/Xlib.h>
  16480. _ACEOF
  16481. if ac_fn_c_try_cpp "$LINENO"; then :
  16482. # We can compile using X headers with no special include directory.
  16483. ac_x_includes=
  16484. else
  16485. for ac_dir in $ac_x_header_dirs; do
  16486. if test -r "$ac_dir/X11/Xlib.h"; then
  16487. ac_x_includes=$ac_dir
  16488. break
  16489. fi
  16490. done
  16491. fi
  16492. rm -f conftest.err conftest.i conftest.$ac_ext
  16493. fi # $ac_x_includes = no
  16494. if test "$ac_x_libraries" = no; then
  16495. # Check for the libraries.
  16496. # See if we find them without any special options.
  16497. # Don't add to $LIBS permanently.
  16498. ac_save_LIBS=$LIBS
  16499. LIBS="-lX11 $LIBS"
  16500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16501. /* end confdefs.h. */
  16502. @%:@include <X11/Xlib.h>
  16503. int
  16504. main ()
  16505. {
  16506. XrmInitialize ()
  16507. ;
  16508. return 0;
  16509. }
  16510. _ACEOF
  16511. if ac_fn_c_try_link "$LINENO"; then :
  16512. LIBS=$ac_save_LIBS
  16513. # We can link X programs with no special library path.
  16514. ac_x_libraries=
  16515. else
  16516. LIBS=$ac_save_LIBS
  16517. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16518. do
  16519. # Don't even attempt the hair of trying to link an X program!
  16520. for ac_extension in a so sl dylib la dll; do
  16521. if test -r "$ac_dir/libX11.$ac_extension"; then
  16522. ac_x_libraries=$ac_dir
  16523. break 2
  16524. fi
  16525. done
  16526. done
  16527. fi
  16528. rm -f core conftest.err conftest.$ac_objext \
  16529. conftest$ac_exeext conftest.$ac_ext
  16530. fi # $ac_x_libraries = no
  16531. case $ac_x_includes,$ac_x_libraries in #(
  16532. no,* | *,no | *\'*)
  16533. # Didn't find X, or a directory has "'" in its name.
  16534. ac_cv_have_x="have_x=no";; #(
  16535. *)
  16536. # Record where we found X for the cache.
  16537. ac_cv_have_x="have_x=yes\
  16538. ac_x_includes='$ac_x_includes'\
  16539. ac_x_libraries='$ac_x_libraries'"
  16540. esac
  16541. fi
  16542. ;; #(
  16543. *) have_x=yes;;
  16544. esac
  16545. eval "$ac_cv_have_x"
  16546. fi # $with_x != no
  16547. if test "$have_x" != yes; then
  16548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16549. $as_echo "$have_x" >&6; }
  16550. no_x=yes
  16551. else
  16552. # If each of the values was on the command line, it overrides each guess.
  16553. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16554. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16555. # Update the cache value to reflect the command line values.
  16556. ac_cv_have_x="have_x=yes\
  16557. ac_x_includes='$x_includes'\
  16558. ac_x_libraries='$x_libraries'"
  16559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16560. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16561. fi
  16562. if test "$no_x" = yes; then
  16563. # Not all programs may use this symbol, but it does not hurt to define it.
  16564. $as_echo "@%:@define X_DISPLAY_MISSING 1" >>confdefs.h
  16565. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16566. else
  16567. if test -n "$x_includes"; then
  16568. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16569. fi
  16570. # It would also be nice to do this for all -L options, not just this one.
  16571. if test -n "$x_libraries"; then
  16572. X_LIBS="$X_LIBS -L$x_libraries"
  16573. # For Solaris; some versions of Sun CC require a space after -R and
  16574. # others require no space. Words are not sufficient . . . .
  16575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16576. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16577. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16578. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16579. ac_c_werror_flag=yes
  16580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16581. /* end confdefs.h. */
  16582. int
  16583. main ()
  16584. {
  16585. ;
  16586. return 0;
  16587. }
  16588. _ACEOF
  16589. if ac_fn_c_try_link "$LINENO"; then :
  16590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16591. $as_echo "no" >&6; }
  16592. X_LIBS="$X_LIBS -R$x_libraries"
  16593. else
  16594. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16596. /* end confdefs.h. */
  16597. int
  16598. main ()
  16599. {
  16600. ;
  16601. return 0;
  16602. }
  16603. _ACEOF
  16604. if ac_fn_c_try_link "$LINENO"; then :
  16605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16606. $as_echo "yes" >&6; }
  16607. X_LIBS="$X_LIBS -R $x_libraries"
  16608. else
  16609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16610. $as_echo "neither works" >&6; }
  16611. fi
  16612. rm -f core conftest.err conftest.$ac_objext \
  16613. conftest$ac_exeext conftest.$ac_ext
  16614. fi
  16615. rm -f core conftest.err conftest.$ac_objext \
  16616. conftest$ac_exeext conftest.$ac_ext
  16617. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16618. LIBS=$ac_xsave_LIBS
  16619. fi
  16620. # Check for system-dependent libraries X programs must link with.
  16621. # Do this before checking for the system-independent R6 libraries
  16622. # (-lICE), since we may need -lsocket or whatever for X linking.
  16623. if test "$ISC" = yes; then
  16624. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16625. else
  16626. # Martyn Johnson says this is needed for Ultrix, if the X
  16627. # libraries were built with DECnet support. And Karl Berry says
  16628. # the Alpha needs dnet_stub (dnet does not exist).
  16629. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16631. /* end confdefs.h. */
  16632. /* Override any GCC internal prototype to avoid an error.
  16633. Use char because int might match the return type of a GCC
  16634. builtin and then its argument prototype would still apply. */
  16635. #ifdef __cplusplus
  16636. extern "C"
  16637. #endif
  16638. char XOpenDisplay ();
  16639. int
  16640. main ()
  16641. {
  16642. return XOpenDisplay ();
  16643. ;
  16644. return 0;
  16645. }
  16646. _ACEOF
  16647. if ac_fn_c_try_link "$LINENO"; then :
  16648. else
  16649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16650. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16651. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16652. $as_echo_n "(cached) " >&6
  16653. else
  16654. ac_check_lib_save_LIBS=$LIBS
  16655. LIBS="-ldnet $LIBS"
  16656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16657. /* end confdefs.h. */
  16658. /* Override any GCC internal prototype to avoid an error.
  16659. Use char because int might match the return type of a GCC
  16660. builtin and then its argument prototype would still apply. */
  16661. #ifdef __cplusplus
  16662. extern "C"
  16663. #endif
  16664. char dnet_ntoa ();
  16665. int
  16666. main ()
  16667. {
  16668. return dnet_ntoa ();
  16669. ;
  16670. return 0;
  16671. }
  16672. _ACEOF
  16673. if ac_fn_c_try_link "$LINENO"; then :
  16674. ac_cv_lib_dnet_dnet_ntoa=yes
  16675. else
  16676. ac_cv_lib_dnet_dnet_ntoa=no
  16677. fi
  16678. rm -f core conftest.err conftest.$ac_objext \
  16679. conftest$ac_exeext conftest.$ac_ext
  16680. LIBS=$ac_check_lib_save_LIBS
  16681. fi
  16682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16683. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16684. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16685. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16686. fi
  16687. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16689. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16690. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16691. $as_echo_n "(cached) " >&6
  16692. else
  16693. ac_check_lib_save_LIBS=$LIBS
  16694. LIBS="-ldnet_stub $LIBS"
  16695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16696. /* end confdefs.h. */
  16697. /* Override any GCC internal prototype to avoid an error.
  16698. Use char because int might match the return type of a GCC
  16699. builtin and then its argument prototype would still apply. */
  16700. #ifdef __cplusplus
  16701. extern "C"
  16702. #endif
  16703. char dnet_ntoa ();
  16704. int
  16705. main ()
  16706. {
  16707. return dnet_ntoa ();
  16708. ;
  16709. return 0;
  16710. }
  16711. _ACEOF
  16712. if ac_fn_c_try_link "$LINENO"; then :
  16713. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16714. else
  16715. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16716. fi
  16717. rm -f core conftest.err conftest.$ac_objext \
  16718. conftest$ac_exeext conftest.$ac_ext
  16719. LIBS=$ac_check_lib_save_LIBS
  16720. fi
  16721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16722. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16723. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16724. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16725. fi
  16726. fi
  16727. fi
  16728. rm -f core conftest.err conftest.$ac_objext \
  16729. conftest$ac_exeext conftest.$ac_ext
  16730. LIBS="$ac_xsave_LIBS"
  16731. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16732. # to get the SysV transport functions.
  16733. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16734. # needs -lnsl.
  16735. # The nsl library prevents programs from opening the X display
  16736. # on Irix 5.2, according to T.E. Dickey.
  16737. # The functions gethostbyname, getservbyname, and inet_addr are
  16738. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16739. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16740. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16741. fi
  16742. if test $ac_cv_func_gethostbyname = no; then
  16743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16744. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16745. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16746. $as_echo_n "(cached) " >&6
  16747. else
  16748. ac_check_lib_save_LIBS=$LIBS
  16749. LIBS="-lnsl $LIBS"
  16750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16751. /* end confdefs.h. */
  16752. /* Override any GCC internal prototype to avoid an error.
  16753. Use char because int might match the return type of a GCC
  16754. builtin and then its argument prototype would still apply. */
  16755. #ifdef __cplusplus
  16756. extern "C"
  16757. #endif
  16758. char gethostbyname ();
  16759. int
  16760. main ()
  16761. {
  16762. return gethostbyname ();
  16763. ;
  16764. return 0;
  16765. }
  16766. _ACEOF
  16767. if ac_fn_c_try_link "$LINENO"; then :
  16768. ac_cv_lib_nsl_gethostbyname=yes
  16769. else
  16770. ac_cv_lib_nsl_gethostbyname=no
  16771. fi
  16772. rm -f core conftest.err conftest.$ac_objext \
  16773. conftest$ac_exeext conftest.$ac_ext
  16774. LIBS=$ac_check_lib_save_LIBS
  16775. fi
  16776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16777. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16778. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16779. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16780. fi
  16781. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16783. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16784. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  16785. $as_echo_n "(cached) " >&6
  16786. else
  16787. ac_check_lib_save_LIBS=$LIBS
  16788. LIBS="-lbsd $LIBS"
  16789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16790. /* end confdefs.h. */
  16791. /* Override any GCC internal prototype to avoid an error.
  16792. Use char because int might match the return type of a GCC
  16793. builtin and then its argument prototype would still apply. */
  16794. #ifdef __cplusplus
  16795. extern "C"
  16796. #endif
  16797. char gethostbyname ();
  16798. int
  16799. main ()
  16800. {
  16801. return gethostbyname ();
  16802. ;
  16803. return 0;
  16804. }
  16805. _ACEOF
  16806. if ac_fn_c_try_link "$LINENO"; then :
  16807. ac_cv_lib_bsd_gethostbyname=yes
  16808. else
  16809. ac_cv_lib_bsd_gethostbyname=no
  16810. fi
  16811. rm -f core conftest.err conftest.$ac_objext \
  16812. conftest$ac_exeext conftest.$ac_ext
  16813. LIBS=$ac_check_lib_save_LIBS
  16814. fi
  16815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  16816. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  16817. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  16818. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  16819. fi
  16820. fi
  16821. fi
  16822. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  16823. # socket/setsockopt and other routines are undefined under SCO ODT
  16824. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  16825. # on later versions), says Simon Leinen: it contains gethostby*
  16826. # variants that don't use the name server (or something). -lsocket
  16827. # must be given before -lnsl if both are needed. We assume that
  16828. # if connect needs -lnsl, so does gethostbyname.
  16829. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  16830. if test "x$ac_cv_func_connect" = xyes; then :
  16831. fi
  16832. if test $ac_cv_func_connect = no; then
  16833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  16834. $as_echo_n "checking for connect in -lsocket... " >&6; }
  16835. if ${ac_cv_lib_socket_connect+:} false; then :
  16836. $as_echo_n "(cached) " >&6
  16837. else
  16838. ac_check_lib_save_LIBS=$LIBS
  16839. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  16840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16841. /* end confdefs.h. */
  16842. /* Override any GCC internal prototype to avoid an error.
  16843. Use char because int might match the return type of a GCC
  16844. builtin and then its argument prototype would still apply. */
  16845. #ifdef __cplusplus
  16846. extern "C"
  16847. #endif
  16848. char connect ();
  16849. int
  16850. main ()
  16851. {
  16852. return connect ();
  16853. ;
  16854. return 0;
  16855. }
  16856. _ACEOF
  16857. if ac_fn_c_try_link "$LINENO"; then :
  16858. ac_cv_lib_socket_connect=yes
  16859. else
  16860. ac_cv_lib_socket_connect=no
  16861. fi
  16862. rm -f core conftest.err conftest.$ac_objext \
  16863. conftest$ac_exeext conftest.$ac_ext
  16864. LIBS=$ac_check_lib_save_LIBS
  16865. fi
  16866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  16867. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  16868. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  16869. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  16870. fi
  16871. fi
  16872. # Guillermo Gomez says -lposix is necessary on A/UX.
  16873. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  16874. if test "x$ac_cv_func_remove" = xyes; then :
  16875. fi
  16876. if test $ac_cv_func_remove = no; then
  16877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  16878. $as_echo_n "checking for remove in -lposix... " >&6; }
  16879. if ${ac_cv_lib_posix_remove+:} false; then :
  16880. $as_echo_n "(cached) " >&6
  16881. else
  16882. ac_check_lib_save_LIBS=$LIBS
  16883. LIBS="-lposix $LIBS"
  16884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16885. /* end confdefs.h. */
  16886. /* Override any GCC internal prototype to avoid an error.
  16887. Use char because int might match the return type of a GCC
  16888. builtin and then its argument prototype would still apply. */
  16889. #ifdef __cplusplus
  16890. extern "C"
  16891. #endif
  16892. char remove ();
  16893. int
  16894. main ()
  16895. {
  16896. return remove ();
  16897. ;
  16898. return 0;
  16899. }
  16900. _ACEOF
  16901. if ac_fn_c_try_link "$LINENO"; then :
  16902. ac_cv_lib_posix_remove=yes
  16903. else
  16904. ac_cv_lib_posix_remove=no
  16905. fi
  16906. rm -f core conftest.err conftest.$ac_objext \
  16907. conftest$ac_exeext conftest.$ac_ext
  16908. LIBS=$ac_check_lib_save_LIBS
  16909. fi
  16910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  16911. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  16912. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  16913. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  16914. fi
  16915. fi
  16916. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  16917. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  16918. if test "x$ac_cv_func_shmat" = xyes; then :
  16919. fi
  16920. if test $ac_cv_func_shmat = no; then
  16921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  16922. $as_echo_n "checking for shmat in -lipc... " >&6; }
  16923. if ${ac_cv_lib_ipc_shmat+:} false; then :
  16924. $as_echo_n "(cached) " >&6
  16925. else
  16926. ac_check_lib_save_LIBS=$LIBS
  16927. LIBS="-lipc $LIBS"
  16928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16929. /* end confdefs.h. */
  16930. /* Override any GCC internal prototype to avoid an error.
  16931. Use char because int might match the return type of a GCC
  16932. builtin and then its argument prototype would still apply. */
  16933. #ifdef __cplusplus
  16934. extern "C"
  16935. #endif
  16936. char shmat ();
  16937. int
  16938. main ()
  16939. {
  16940. return shmat ();
  16941. ;
  16942. return 0;
  16943. }
  16944. _ACEOF
  16945. if ac_fn_c_try_link "$LINENO"; then :
  16946. ac_cv_lib_ipc_shmat=yes
  16947. else
  16948. ac_cv_lib_ipc_shmat=no
  16949. fi
  16950. rm -f core conftest.err conftest.$ac_objext \
  16951. conftest$ac_exeext conftest.$ac_ext
  16952. LIBS=$ac_check_lib_save_LIBS
  16953. fi
  16954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  16955. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  16956. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  16957. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  16958. fi
  16959. fi
  16960. fi
  16961. # Check for libraries that X11R6 Xt/Xaw programs need.
  16962. ac_save_LDFLAGS=$LDFLAGS
  16963. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  16964. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  16965. # check for ICE first), but we must link in the order -lSM -lICE or
  16966. # we get undefined symbols. So assume we have SM if we have ICE.
  16967. # These have to be linked with before -lX11, unlike the other
  16968. # libraries we check for below, so use a different variable.
  16969. # John Interrante, Karl Berry
  16970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  16971. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  16972. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  16973. $as_echo_n "(cached) " >&6
  16974. else
  16975. ac_check_lib_save_LIBS=$LIBS
  16976. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  16977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16978. /* end confdefs.h. */
  16979. /* Override any GCC internal prototype to avoid an error.
  16980. Use char because int might match the return type of a GCC
  16981. builtin and then its argument prototype would still apply. */
  16982. #ifdef __cplusplus
  16983. extern "C"
  16984. #endif
  16985. char IceConnectionNumber ();
  16986. int
  16987. main ()
  16988. {
  16989. return IceConnectionNumber ();
  16990. ;
  16991. return 0;
  16992. }
  16993. _ACEOF
  16994. if ac_fn_c_try_link "$LINENO"; then :
  16995. ac_cv_lib_ICE_IceConnectionNumber=yes
  16996. else
  16997. ac_cv_lib_ICE_IceConnectionNumber=no
  16998. fi
  16999. rm -f core conftest.err conftest.$ac_objext \
  17000. conftest$ac_exeext conftest.$ac_ext
  17001. LIBS=$ac_check_lib_save_LIBS
  17002. fi
  17003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17004. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17005. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17006. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17007. fi
  17008. LDFLAGS=$ac_save_LDFLAGS
  17009. fi
  17010. if test x$have_x = xyes; then
  17011. @%:@ Check whether --enable-x11-shared was given.
  17012. if test "${enable_x11_shared+set}" = set; then :
  17013. enableval=$enable_x11_shared;
  17014. else
  17015. enable_x11_shared=maybe
  17016. fi
  17017. case "$host" in
  17018. *-*-darwin*)
  17019. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17020. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17021. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17022. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17023. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17024. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17025. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17026. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17027. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17028. ;;
  17029. *-*-openbsd*)
  17030. x11_lib='libX11.so'
  17031. x11ext_lib='libXext.so'
  17032. xcursor_lib='libXcursor.so'
  17033. xinerama_lib='libXinerama.so'
  17034. xinput_lib='libXi.so'
  17035. xrandr_lib='libXrandr.so'
  17036. xrender_lib='libXrender.so'
  17037. xss_lib='libXss.so'
  17038. xvidmode_lib='libXxf86vm.so'
  17039. ;;
  17040. *)
  17041. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17042. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17043. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17044. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17045. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17046. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17047. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17048. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17049. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17050. ;;
  17051. esac
  17052. if test x$ac_cv_func_shmat != xyes; then
  17053. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17054. fi
  17055. CFLAGS="$CFLAGS $X_CFLAGS"
  17056. LDFLAGS="$LDFLAGS $X_LIBS"
  17057. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17058. #include <X11/Xproto.h>
  17059. "
  17060. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17061. have_xext_h_hdr=yes
  17062. else
  17063. have_xext_h_hdr=no
  17064. fi
  17065. if test x$have_xext_h_hdr != xyes; then
  17066. as_fn_error $? "
  17067. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17068. " "$LINENO" 5
  17069. fi
  17070. $as_echo "@%:@define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17071. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17072. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17073. # Needed so SDL applications can include SDL_syswm.h
  17074. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17075. if test x$enable_x11_shared = xmaybe; then
  17076. enable_x11_shared=yes
  17077. fi
  17078. if test x$have_loadso != xyes && \
  17079. test x$enable_x11_shared = xyes; then
  17080. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17081. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17082. enable_x11_shared=no
  17083. fi
  17084. if test x$have_loadso = xyes && \
  17085. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17086. echo "-- dynamic libX11 -> $x11_lib"
  17087. echo "-- dynamic libX11ext -> $x11ext_lib"
  17088. cat >>confdefs.h <<_ACEOF
  17089. @%:@define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17090. _ACEOF
  17091. cat >>confdefs.h <<_ACEOF
  17092. @%:@define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17093. _ACEOF
  17094. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17095. else
  17096. enable_x11_shared=no
  17097. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17098. SUMMARY_video="${SUMMARY_video} x11"
  17099. fi
  17100. have_video=yes
  17101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17102. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17103. have_const_param_XextAddDisplay=no
  17104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17105. /* end confdefs.h. */
  17106. #include <X11/Xlib.h>
  17107. #include <X11/Xproto.h>
  17108. #include <X11/extensions/Xext.h>
  17109. #include <X11/extensions/extutil.h>
  17110. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17111. int
  17112. main ()
  17113. {
  17114. ;
  17115. return 0;
  17116. }
  17117. _ACEOF
  17118. if ac_fn_c_try_compile "$LINENO"; then :
  17119. have_const_param_XextAddDisplay=yes
  17120. $as_echo "@%:@define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17121. fi
  17122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17124. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to _XData32" >&5
  17126. $as_echo_n "checking for const parameter to _XData32... " >&6; }
  17127. have_const_param_xdata32=no
  17128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17129. /* end confdefs.h. */
  17130. #include <X11/Xlibint.h>
  17131. extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len);
  17132. int
  17133. main ()
  17134. {
  17135. ;
  17136. return 0;
  17137. }
  17138. _ACEOF
  17139. if ac_fn_c_try_compile "$LINENO"; then :
  17140. have_const_param_xdata32=yes
  17141. $as_echo "@%:@define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 1" >>confdefs.h
  17142. fi
  17143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_xdata32" >&5
  17145. $as_echo "$have_const_param_xdata32" >&6; }
  17146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17147. $as_echo_n "checking for XGenericEvent... " >&6; }
  17148. have_XGenericEvent=no
  17149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17150. /* end confdefs.h. */
  17151. #include <X11/Xlib.h>
  17152. int
  17153. main ()
  17154. {
  17155. Display *display;
  17156. XEvent event;
  17157. XGenericEventCookie *cookie = &event.xcookie;
  17158. XNextEvent(display, &event);
  17159. XGetEventData(display, cookie);
  17160. XFreeEventData(display, cookie);
  17161. ;
  17162. return 0;
  17163. }
  17164. _ACEOF
  17165. if ac_fn_c_try_compile "$LINENO"; then :
  17166. have_XGenericEvent=yes
  17167. $as_echo "@%:@define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17168. fi
  17169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17171. $as_echo "$have_XGenericEvent" >&6; }
  17172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17173. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17174. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17175. $as_echo_n "(cached) " >&6
  17176. else
  17177. ac_check_lib_save_LIBS=$LIBS
  17178. LIBS="-lX11 $LIBS"
  17179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17180. /* end confdefs.h. */
  17181. /* Override any GCC internal prototype to avoid an error.
  17182. Use char because int might match the return type of a GCC
  17183. builtin and then its argument prototype would still apply. */
  17184. #ifdef __cplusplus
  17185. extern "C"
  17186. #endif
  17187. char XkbKeycodeToKeysym ();
  17188. int
  17189. main ()
  17190. {
  17191. return XkbKeycodeToKeysym ();
  17192. ;
  17193. return 0;
  17194. }
  17195. _ACEOF
  17196. if ac_fn_c_try_link "$LINENO"; then :
  17197. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17198. else
  17199. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17200. fi
  17201. rm -f core conftest.err conftest.$ac_objext \
  17202. conftest$ac_exeext conftest.$ac_ext
  17203. LIBS=$ac_check_lib_save_LIBS
  17204. fi
  17205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17206. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17207. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17208. $as_echo "@%:@define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17209. fi
  17210. @%:@ Check whether --enable-video-x11-xcursor was given.
  17211. if test "${enable_video_x11_xcursor+set}" = set; then :
  17212. enableval=$enable_video_x11_xcursor;
  17213. else
  17214. enable_video_x11_xcursor=yes
  17215. fi
  17216. if test x$enable_video_x11_xcursor = xyes; then
  17217. definitely_enable_video_x11_xcursor=no
  17218. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17219. "
  17220. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17221. have_xcursor_h_hdr=yes
  17222. else
  17223. have_xcursor_h_hdr=no
  17224. fi
  17225. if test x$have_xcursor_h_hdr = xyes; then
  17226. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17227. echo "-- dynamic libXcursor -> $xcursor_lib"
  17228. cat >>confdefs.h <<_ACEOF
  17229. @%:@define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17230. _ACEOF
  17231. definitely_enable_video_x11_xcursor=yes
  17232. else
  17233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17234. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17235. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17236. $as_echo_n "(cached) " >&6
  17237. else
  17238. ac_check_lib_save_LIBS=$LIBS
  17239. LIBS="-lXcursor $LIBS"
  17240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17241. /* end confdefs.h. */
  17242. /* Override any GCC internal prototype to avoid an error.
  17243. Use char because int might match the return type of a GCC
  17244. builtin and then its argument prototype would still apply. */
  17245. #ifdef __cplusplus
  17246. extern "C"
  17247. #endif
  17248. char XcursorImageCreate ();
  17249. int
  17250. main ()
  17251. {
  17252. return XcursorImageCreate ();
  17253. ;
  17254. return 0;
  17255. }
  17256. _ACEOF
  17257. if ac_fn_c_try_link "$LINENO"; then :
  17258. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17259. else
  17260. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17261. fi
  17262. rm -f core conftest.err conftest.$ac_objext \
  17263. conftest$ac_exeext conftest.$ac_ext
  17264. LIBS=$ac_check_lib_save_LIBS
  17265. fi
  17266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17267. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17268. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17269. have_xcursor_lib=yes
  17270. fi
  17271. if test x$have_xcursor_lib = xyes ; then
  17272. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17273. definitely_enable_video_x11_xcursor=yes
  17274. fi
  17275. fi
  17276. fi
  17277. fi
  17278. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17279. $as_echo "@%:@define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17280. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17281. fi
  17282. @%:@ Check whether --enable-video-x11-xinerama was given.
  17283. if test "${enable_video_x11_xinerama+set}" = set; then :
  17284. enableval=$enable_video_x11_xinerama;
  17285. else
  17286. enable_video_x11_xinerama=yes
  17287. fi
  17288. if test x$enable_video_x11_xinerama = xyes; then
  17289. definitely_enable_video_x11_xinerama=no
  17290. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17291. "
  17292. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17293. have_xinerama_h_hdr=yes
  17294. else
  17295. have_xinerama_h_hdr=no
  17296. fi
  17297. if test x$have_xinerama_h_hdr = xyes; then
  17298. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17299. echo "-- dynamic libXinerama -> $xinerama_lib"
  17300. cat >>confdefs.h <<_ACEOF
  17301. @%:@define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17302. _ACEOF
  17303. definitely_enable_video_x11_xinerama=yes
  17304. else
  17305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17306. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17307. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17308. $as_echo_n "(cached) " >&6
  17309. else
  17310. ac_check_lib_save_LIBS=$LIBS
  17311. LIBS="-lXinerama $LIBS"
  17312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17313. /* end confdefs.h. */
  17314. /* Override any GCC internal prototype to avoid an error.
  17315. Use char because int might match the return type of a GCC
  17316. builtin and then its argument prototype would still apply. */
  17317. #ifdef __cplusplus
  17318. extern "C"
  17319. #endif
  17320. char XineramaQueryExtension ();
  17321. int
  17322. main ()
  17323. {
  17324. return XineramaQueryExtension ();
  17325. ;
  17326. return 0;
  17327. }
  17328. _ACEOF
  17329. if ac_fn_c_try_link "$LINENO"; then :
  17330. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17331. else
  17332. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17333. fi
  17334. rm -f core conftest.err conftest.$ac_objext \
  17335. conftest$ac_exeext conftest.$ac_ext
  17336. LIBS=$ac_check_lib_save_LIBS
  17337. fi
  17338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17339. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17340. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17341. have_xinerama_lib=yes
  17342. fi
  17343. if test x$have_xinerama_lib = xyes ; then
  17344. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17345. definitely_enable_video_x11_xinerama=yes
  17346. fi
  17347. fi
  17348. fi
  17349. fi
  17350. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17351. $as_echo "@%:@define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17352. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17353. fi
  17354. @%:@ Check whether --enable-video-x11-xinput was given.
  17355. if test "${enable_video_x11_xinput+set}" = set; then :
  17356. enableval=$enable_video_x11_xinput;
  17357. else
  17358. enable_video_x11_xinput=yes
  17359. fi
  17360. if test x$enable_video_x11_xinput = xyes; then
  17361. definitely_enable_video_x11_xinput=no
  17362. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17363. "
  17364. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17365. have_xinput_h_hdr=yes
  17366. else
  17367. have_xinput_h_hdr=no
  17368. fi
  17369. if test x$have_xinput_h_hdr = xyes; then
  17370. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17371. echo "-- dynamic libXi -> $xinput_lib"
  17372. cat >>confdefs.h <<_ACEOF
  17373. @%:@define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17374. _ACEOF
  17375. definitely_enable_video_x11_xinput=yes
  17376. else
  17377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17378. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17379. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17380. $as_echo_n "(cached) " >&6
  17381. else
  17382. ac_check_lib_save_LIBS=$LIBS
  17383. LIBS="-lXi $LIBS"
  17384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17385. /* end confdefs.h. */
  17386. /* Override any GCC internal prototype to avoid an error.
  17387. Use char because int might match the return type of a GCC
  17388. builtin and then its argument prototype would still apply. */
  17389. #ifdef __cplusplus
  17390. extern "C"
  17391. #endif
  17392. char XOpenDevice ();
  17393. int
  17394. main ()
  17395. {
  17396. return XOpenDevice ();
  17397. ;
  17398. return 0;
  17399. }
  17400. _ACEOF
  17401. if ac_fn_c_try_link "$LINENO"; then :
  17402. ac_cv_lib_Xi_XOpenDevice=yes
  17403. else
  17404. ac_cv_lib_Xi_XOpenDevice=no
  17405. fi
  17406. rm -f core conftest.err conftest.$ac_objext \
  17407. conftest$ac_exeext conftest.$ac_ext
  17408. LIBS=$ac_check_lib_save_LIBS
  17409. fi
  17410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17411. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17412. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17413. have_xinput_lib=yes
  17414. fi
  17415. if test x$have_xinput_lib = xyes ; then
  17416. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17417. definitely_enable_video_x11_xinput=yes
  17418. fi
  17419. fi
  17420. fi
  17421. fi
  17422. if test x$definitely_enable_video_x11_xinput = xyes; then
  17423. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17424. $as_echo "@%:@define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17426. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17427. have_xinput2_multitouch=no
  17428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17429. /* end confdefs.h. */
  17430. #include <X11/Xlib.h>
  17431. #include <X11/Xproto.h>
  17432. #include <X11/extensions/XInput2.h>
  17433. int
  17434. main ()
  17435. {
  17436. int event_type = XI_TouchBegin;
  17437. XITouchClassInfo *t;
  17438. ;
  17439. return 0;
  17440. }
  17441. _ACEOF
  17442. if ac_fn_c_try_compile "$LINENO"; then :
  17443. have_xinput2_multitouch=yes
  17444. $as_echo "@%:@define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17445. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17446. fi
  17447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17449. $as_echo "$have_xinput2_multitouch" >&6; }
  17450. fi
  17451. @%:@ Check whether --enable-video-x11-xrandr was given.
  17452. if test "${enable_video_x11_xrandr+set}" = set; then :
  17453. enableval=$enable_video_x11_xrandr;
  17454. else
  17455. enable_video_x11_xrandr=yes
  17456. fi
  17457. if test x$enable_video_x11_xrandr = xyes; then
  17458. definitely_enable_video_x11_xrandr=no
  17459. have_xrandr_h_hdr=no
  17460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17461. /* end confdefs.h. */
  17462. #include <X11/Xlib.h>
  17463. #include <X11/extensions/Xrandr.h>
  17464. int
  17465. main ()
  17466. {
  17467. XRRScreenResources *res = NULL;
  17468. ;
  17469. return 0;
  17470. }
  17471. _ACEOF
  17472. if ac_fn_c_try_compile "$LINENO"; then :
  17473. have_xrandr_h_hdr=yes
  17474. fi
  17475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17476. if test x$have_xrandr_h_hdr = xyes; then
  17477. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17478. echo "-- dynamic libXrandr -> $xrandr_lib"
  17479. cat >>confdefs.h <<_ACEOF
  17480. @%:@define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17481. _ACEOF
  17482. definitely_enable_video_x11_xrandr=yes
  17483. else
  17484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17485. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17486. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17487. $as_echo_n "(cached) " >&6
  17488. else
  17489. ac_check_lib_save_LIBS=$LIBS
  17490. LIBS="-lXrandr $LIBS"
  17491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17492. /* end confdefs.h. */
  17493. /* Override any GCC internal prototype to avoid an error.
  17494. Use char because int might match the return type of a GCC
  17495. builtin and then its argument prototype would still apply. */
  17496. #ifdef __cplusplus
  17497. extern "C"
  17498. #endif
  17499. char XRRQueryExtension ();
  17500. int
  17501. main ()
  17502. {
  17503. return XRRQueryExtension ();
  17504. ;
  17505. return 0;
  17506. }
  17507. _ACEOF
  17508. if ac_fn_c_try_link "$LINENO"; then :
  17509. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17510. else
  17511. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17512. fi
  17513. rm -f core conftest.err conftest.$ac_objext \
  17514. conftest$ac_exeext conftest.$ac_ext
  17515. LIBS=$ac_check_lib_save_LIBS
  17516. fi
  17517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17518. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17519. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17520. have_xrandr_lib=yes
  17521. fi
  17522. if test x$have_xrandr_lib = xyes ; then
  17523. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17524. definitely_enable_video_x11_xrandr=yes
  17525. fi
  17526. fi
  17527. fi
  17528. fi
  17529. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17530. $as_echo "@%:@define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17531. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17532. fi
  17533. @%:@ Check whether --enable-video-x11-scrnsaver was given.
  17534. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17535. enableval=$enable_video_x11_scrnsaver;
  17536. else
  17537. enable_video_x11_scrnsaver=yes
  17538. fi
  17539. if test x$enable_video_x11_scrnsaver = xyes; then
  17540. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17541. "
  17542. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17543. have_scrnsaver_h_hdr=yes
  17544. else
  17545. have_scrnsaver_h_hdr=no
  17546. fi
  17547. if test x$have_scrnsaver_h_hdr = xyes; then
  17548. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17549. echo "-- dynamic libXss -> $xss_lib"
  17550. cat >>confdefs.h <<_ACEOF
  17551. @%:@define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17552. _ACEOF
  17553. definitely_enable_video_x11_scrnsaver=yes
  17554. else
  17555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17556. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17557. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17558. $as_echo_n "(cached) " >&6
  17559. else
  17560. ac_check_lib_save_LIBS=$LIBS
  17561. LIBS="-lXss $LIBS"
  17562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17563. /* end confdefs.h. */
  17564. /* Override any GCC internal prototype to avoid an error.
  17565. Use char because int might match the return type of a GCC
  17566. builtin and then its argument prototype would still apply. */
  17567. #ifdef __cplusplus
  17568. extern "C"
  17569. #endif
  17570. char XScreenSaverSuspend ();
  17571. int
  17572. main ()
  17573. {
  17574. return XScreenSaverSuspend ();
  17575. ;
  17576. return 0;
  17577. }
  17578. _ACEOF
  17579. if ac_fn_c_try_link "$LINENO"; then :
  17580. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17581. else
  17582. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17583. fi
  17584. rm -f core conftest.err conftest.$ac_objext \
  17585. conftest$ac_exeext conftest.$ac_ext
  17586. LIBS=$ac_check_lib_save_LIBS
  17587. fi
  17588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17589. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17590. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17591. have_xss_lib=yes
  17592. fi
  17593. if test x$have_xss_lib = xyes ; then
  17594. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17595. definitely_enable_video_x11_scrnsaver=yes
  17596. fi
  17597. fi
  17598. fi
  17599. fi
  17600. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17601. $as_echo "@%:@define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17602. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17603. fi
  17604. @%:@ Check whether --enable-video-x11-xshape was given.
  17605. if test "${enable_video_x11_xshape+set}" = set; then :
  17606. enableval=$enable_video_x11_xshape;
  17607. else
  17608. enable_video_x11_xshape=yes
  17609. fi
  17610. if test x$enable_video_x11_xshape = xyes; then
  17611. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17612. "
  17613. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17614. have_shape_h_hdr=yes
  17615. else
  17616. have_shape_h_hdr=no
  17617. fi
  17618. if test x$have_shape_h_hdr = xyes; then
  17619. $as_echo "@%:@define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17620. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17621. fi
  17622. fi
  17623. @%:@ Check whether --enable-video-x11-vm was given.
  17624. if test "${enable_video_x11_vm+set}" = set; then :
  17625. enableval=$enable_video_x11_vm;
  17626. else
  17627. enable_video_x11_vm=yes
  17628. fi
  17629. if test x$enable_video_x11_vm = xyes; then
  17630. definitely_enable_video_x11_vm=no
  17631. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17632. "
  17633. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17634. have_vm_h_hdr=yes
  17635. else
  17636. have_vm_h_hdr=no
  17637. fi
  17638. if test x$have_vm_h_hdr = xyes; then
  17639. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17640. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17641. cat >>confdefs.h <<_ACEOF
  17642. @%:@define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17643. _ACEOF
  17644. definitely_enable_video_x11_vm=yes
  17645. else
  17646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17647. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17648. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17649. $as_echo_n "(cached) " >&6
  17650. else
  17651. ac_check_lib_save_LIBS=$LIBS
  17652. LIBS="-lXxf86vm $LIBS"
  17653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17654. /* end confdefs.h. */
  17655. /* Override any GCC internal prototype to avoid an error.
  17656. Use char because int might match the return type of a GCC
  17657. builtin and then its argument prototype would still apply. */
  17658. #ifdef __cplusplus
  17659. extern "C"
  17660. #endif
  17661. char XF86VidModeQueryVersion ();
  17662. int
  17663. main ()
  17664. {
  17665. return XF86VidModeQueryVersion ();
  17666. ;
  17667. return 0;
  17668. }
  17669. _ACEOF
  17670. if ac_fn_c_try_link "$LINENO"; then :
  17671. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17672. else
  17673. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17674. fi
  17675. rm -f core conftest.err conftest.$ac_objext \
  17676. conftest$ac_exeext conftest.$ac_ext
  17677. LIBS=$ac_check_lib_save_LIBS
  17678. fi
  17679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17680. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17681. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17682. have_vm_lib=yes
  17683. fi
  17684. if test x$have_vm_lib = xyes ; then
  17685. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17686. definitely_enable_video_x11_vm=yes
  17687. fi
  17688. fi
  17689. fi
  17690. fi
  17691. if test x$definitely_enable_video_x11_vm = xyes; then
  17692. $as_echo "@%:@define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17693. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  17694. fi
  17695. fi
  17696. fi
  17697. }
  17698. CheckVivanteVideo()
  17699. {
  17700. @%:@ Check whether --enable-video-vivante was given.
  17701. if test "${enable_video_vivante+set}" = set; then :
  17702. enableval=$enable_video_vivante;
  17703. else
  17704. enable_video_vivante=yes
  17705. fi
  17706. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  17707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  17708. $as_echo_n "checking for Vivante VDK API... " >&6; }
  17709. have_vivante_vdk=no
  17710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17711. /* end confdefs.h. */
  17712. #define LINUX
  17713. #define EGL_API_FB
  17714. #include <gc_vdk.h>
  17715. int
  17716. main ()
  17717. {
  17718. ;
  17719. return 0;
  17720. }
  17721. _ACEOF
  17722. if ac_fn_c_try_compile "$LINENO"; then :
  17723. have_vivante_vdk=yes
  17724. fi
  17725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  17727. $as_echo "$have_vivante_vdk" >&6; }
  17728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  17729. $as_echo_n "checking for Vivante FB API... " >&6; }
  17730. have_vivante_egl=no
  17731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17732. /* end confdefs.h. */
  17733. #define LINUX
  17734. #define EGL_API_FB
  17735. #include <EGL/eglvivante.h>
  17736. int
  17737. main ()
  17738. {
  17739. ;
  17740. return 0;
  17741. }
  17742. _ACEOF
  17743. if ac_fn_c_try_compile "$LINENO"; then :
  17744. have_vivante_egl=yes
  17745. fi
  17746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  17748. $as_echo "$have_vivante_egl" >&6; }
  17749. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  17750. $as_echo "@%:@define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  17751. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  17752. if test x$have_vivante_vdk = xyes; then
  17753. $as_echo "@%:@define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  17754. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  17755. fi
  17756. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  17757. SUMMARY_video="${SUMMARY_video} vivante"
  17758. have_video=yes
  17759. fi
  17760. fi
  17761. }
  17762. CheckHaikuVideo()
  17763. {
  17764. if test x$enable_video = xyes; then
  17765. $as_echo "@%:@define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  17766. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  17767. have_video=yes
  17768. SUMMARY_video="${SUMMARY_video} haiku"
  17769. fi
  17770. }
  17771. CheckCOCOA()
  17772. {
  17773. @%:@ Check whether --enable-video-cocoa was given.
  17774. if test "${enable_video_cocoa+set}" = set; then :
  17775. enableval=$enable_video_cocoa;
  17776. else
  17777. enable_video_cocoa=yes
  17778. fi
  17779. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  17780. save_CFLAGS="$CFLAGS"
  17781. CFLAGS="$CFLAGS -x objective-c"
  17782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  17783. $as_echo_n "checking for Cocoa framework... " >&6; }
  17784. have_cocoa=no
  17785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17786. /* end confdefs.h. */
  17787. #import <Cocoa/Cocoa.h>
  17788. int
  17789. main ()
  17790. {
  17791. ;
  17792. return 0;
  17793. }
  17794. _ACEOF
  17795. if ac_fn_c_try_compile "$LINENO"; then :
  17796. have_cocoa=yes
  17797. fi
  17798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  17800. $as_echo "$have_cocoa" >&6; }
  17801. CFLAGS="$save_CFLAGS"
  17802. if test x$have_cocoa = xyes; then
  17803. $as_echo "@%:@define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  17804. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  17805. SUMMARY_video="${SUMMARY_video} cocoa"
  17806. have_video=yes
  17807. fi
  17808. fi
  17809. }
  17810. CheckDirectFB()
  17811. {
  17812. @%:@ Check whether --enable-video-directfb was given.
  17813. if test "${enable_video_directfb+set}" = set; then :
  17814. enableval=$enable_video_directfb;
  17815. else
  17816. enable_video_directfb=no
  17817. fi
  17818. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  17819. video_directfb=no
  17820. DIRECTFB_REQUIRED_VERSION=1.0.0
  17821. for ac_prog in directfb-config
  17822. do
  17823. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17824. set dummy $ac_prog; ac_word=$2
  17825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17826. $as_echo_n "checking for $ac_word... " >&6; }
  17827. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  17828. $as_echo_n "(cached) " >&6
  17829. else
  17830. case $DIRECTFBCONFIG in
  17831. [\\/]* | ?:[\\/]*)
  17832. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  17833. ;;
  17834. *)
  17835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17836. as_dummy="$prefix/bin:$PATH"
  17837. for as_dir in $as_dummy
  17838. do
  17839. IFS=$as_save_IFS
  17840. test -z "$as_dir" && as_dir=.
  17841. for ac_exec_ext in '' $ac_executable_extensions; do
  17842. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17843. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17845. break 2
  17846. fi
  17847. done
  17848. done
  17849. IFS=$as_save_IFS
  17850. ;;
  17851. esac
  17852. fi
  17853. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  17854. if test -n "$DIRECTFBCONFIG"; then
  17855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  17856. $as_echo "$DIRECTFBCONFIG" >&6; }
  17857. else
  17858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17859. $as_echo "no" >&6; }
  17860. fi
  17861. test -n "$DIRECTFBCONFIG" && break
  17862. done
  17863. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  17864. if test x$DIRECTFBCONFIG = xno; then
  17865. # Extract the first word of "pkg-config", so it can be a program name with args.
  17866. set dummy pkg-config; ac_word=$2
  17867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17868. $as_echo_n "checking for $ac_word... " >&6; }
  17869. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17870. $as_echo_n "(cached) " >&6
  17871. else
  17872. case $PKG_CONFIG in
  17873. [\\/]* | ?:[\\/]*)
  17874. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17875. ;;
  17876. *)
  17877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17878. for as_dir in $PATH
  17879. do
  17880. IFS=$as_save_IFS
  17881. test -z "$as_dir" && as_dir=.
  17882. for ac_exec_ext in '' $ac_executable_extensions; do
  17883. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17884. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17886. break 2
  17887. fi
  17888. done
  17889. done
  17890. IFS=$as_save_IFS
  17891. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17892. ;;
  17893. esac
  17894. fi
  17895. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17896. if test -n "$PKG_CONFIG"; then
  17897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17898. $as_echo "$PKG_CONFIG" >&6; }
  17899. else
  17900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17901. $as_echo "no" >&6; }
  17902. fi
  17903. if test x$PKG_CONFIG != xno; then
  17904. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  17905. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  17906. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  17907. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  17908. video_directfb=yes
  17909. fi
  17910. fi
  17911. else
  17912. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  17913. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17914. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  17915. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17916. if test $HAVE_VERSION -ge $NEED_VERSION; then
  17917. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  17918. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  17919. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  17920. video_directfb=yes
  17921. fi
  17922. fi
  17923. if test x$video_directfb = xyes; then
  17924. # SuSE 11.1 installs directfb-config without directfb-devel
  17925. save_CPPFLAGS="$CPPFLAGS"
  17926. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  17927. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  17928. if test "x$ac_cv_header_directfb_h" = xyes; then :
  17929. have_directfb_hdr=yes
  17930. else
  17931. have_directfb_hdr=no
  17932. fi
  17933. CPPFLAGS="$save_CPPFLAGS"
  17934. video_directfb=$have_directfb_hdr
  17935. fi
  17936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  17937. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  17938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  17939. $as_echo "$video_directfb" >&6; }
  17940. if test x$video_directfb = xyes; then
  17941. @%:@ Check whether --enable-directfb-shared was given.
  17942. if test "${enable_directfb_shared+set}" = set; then :
  17943. enableval=$enable_directfb_shared;
  17944. else
  17945. enable_directfb_shared=yes
  17946. fi
  17947. $as_echo "@%:@define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  17948. $as_echo "@%:@define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  17949. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  17950. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  17951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  17952. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  17953. directfb_shared=no
  17954. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  17955. # | sed 's/.*\/\(.*\)/\1/; q'`]
  17956. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  17957. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  17958. if test x$have_loadso != xyes && \
  17959. test x$enable_directfb_shared = xyes; then
  17960. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  17961. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  17962. fi
  17963. if test x$have_loadso = xyes && \
  17964. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  17965. directfb_shared=yes
  17966. echo "-- $directfb_lib_spec -> $directfb_lib"
  17967. cat >>confdefs.h <<_ACEOF
  17968. @%:@define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  17969. _ACEOF
  17970. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  17971. else
  17972. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  17973. SUMMARY_video="${SUMMARY_video} directfb"
  17974. fi
  17975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  17976. $as_echo "$directfb_shared" >&6; }
  17977. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  17978. have_video=yes
  17979. fi
  17980. fi
  17981. }
  17982. CheckFusionSound()
  17983. {
  17984. @%:@ Check whether --enable-fusionsound was given.
  17985. if test "${enable_fusionsound+set}" = set; then :
  17986. enableval=$enable_fusionsound;
  17987. else
  17988. enable_fusionsound=no
  17989. fi
  17990. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17991. fusionsound=no
  17992. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  17993. # Extract the first word of "pkg-config", so it can be a program name with args.
  17994. set dummy pkg-config; ac_word=$2
  17995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17996. $as_echo_n "checking for $ac_word... " >&6; }
  17997. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17998. $as_echo_n "(cached) " >&6
  17999. else
  18000. case $PKG_CONFIG in
  18001. [\\/]* | ?:[\\/]*)
  18002. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18003. ;;
  18004. *)
  18005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18006. for as_dir in $PATH
  18007. do
  18008. IFS=$as_save_IFS
  18009. test -z "$as_dir" && as_dir=.
  18010. for ac_exec_ext in '' $ac_executable_extensions; do
  18011. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18012. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18013. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18014. break 2
  18015. fi
  18016. done
  18017. done
  18018. IFS=$as_save_IFS
  18019. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18020. ;;
  18021. esac
  18022. fi
  18023. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18024. if test -n "$PKG_CONFIG"; then
  18025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18026. $as_echo "$PKG_CONFIG" >&6; }
  18027. else
  18028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18029. $as_echo "no" >&6; }
  18030. fi
  18031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  18032. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  18033. if test x$PKG_CONFIG != xno; then
  18034. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  18035. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  18036. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  18037. fusionsound=yes
  18038. fi
  18039. fi
  18040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  18041. $as_echo "$fusionsound" >&6; }
  18042. if test x$fusionsound = xyes; then
  18043. $as_echo "@%:@define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  18044. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  18045. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  18046. @%:@ Check whether --enable-fusionsound-shared was given.
  18047. if test "${enable_fusionsound_shared+set}" = set; then :
  18048. enableval=$enable_fusionsound_shared;
  18049. else
  18050. enable_fusionsound_shared=yes
  18051. fi
  18052. fusionsound_shared=no
  18053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  18054. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  18055. if test x$have_loadso != xyes && \
  18056. test x$enable_fusionsound_shared = xyes; then
  18057. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  18058. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  18059. fi
  18060. if test x$have_loadso = xyes && \
  18061. test x$enable_fusionsound_shared = xyes; then
  18062. cat >>confdefs.h <<_ACEOF
  18063. @%:@define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  18064. _ACEOF
  18065. fusionsound_shared=yes
  18066. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  18067. else
  18068. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  18069. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  18070. fi
  18071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  18072. $as_echo "$fusionsound_shared" >&6; }
  18073. have_audio=yes
  18074. fi
  18075. fi
  18076. }
  18077. CheckDummyVideo()
  18078. {
  18079. @%:@ Check whether --enable-video-dummy was given.
  18080. if test "${enable_video_dummy+set}" = set; then :
  18081. enableval=$enable_video_dummy;
  18082. else
  18083. enable_video_dummy=yes
  18084. fi
  18085. if test x$enable_video_dummy = xyes; then
  18086. $as_echo "@%:@define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18087. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18088. have_video=yes
  18089. SUMMARY_video="${SUMMARY_video} dummy"
  18090. fi
  18091. }
  18092. @%:@ Check whether --enable-video-opengl was given.
  18093. if test "${enable_video_opengl+set}" = set; then :
  18094. enableval=$enable_video_opengl;
  18095. else
  18096. enable_video_opengl=yes
  18097. fi
  18098. CheckOpenGLX11()
  18099. {
  18100. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18102. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18103. video_opengl=no
  18104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18105. /* end confdefs.h. */
  18106. #include <GL/gl.h>
  18107. #include <GL/glx.h>
  18108. int
  18109. main ()
  18110. {
  18111. ;
  18112. return 0;
  18113. }
  18114. _ACEOF
  18115. if ac_fn_c_try_compile "$LINENO"; then :
  18116. video_opengl=yes
  18117. fi
  18118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18120. $as_echo "$video_opengl" >&6; }
  18121. if test x$video_opengl = xyes; then
  18122. $as_echo "@%:@define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18123. $as_echo "@%:@define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18124. $as_echo "@%:@define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18125. SUMMARY_video="${SUMMARY_video} opengl"
  18126. fi
  18127. fi
  18128. }
  18129. @%:@ Check whether --enable-video-opengles was given.
  18130. if test "${enable_video_opengles+set}" = set; then :
  18131. enableval=$enable_video_opengles;
  18132. else
  18133. enable_video_opengles=yes
  18134. fi
  18135. @%:@ Check whether --enable-video-opengles1 was given.
  18136. if test "${enable_video_opengles1+set}" = set; then :
  18137. enableval=$enable_video_opengles1;
  18138. else
  18139. enable_video_opengles1=yes
  18140. fi
  18141. @%:@ Check whether --enable-video-opengles2 was given.
  18142. if test "${enable_video_opengles2+set}" = set; then :
  18143. enableval=$enable_video_opengles2;
  18144. else
  18145. enable_video_opengles2=yes
  18146. fi
  18147. CheckOpenGLESX11()
  18148. {
  18149. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18151. $as_echo_n "checking for EGL support... " >&6; }
  18152. video_opengl_egl=no
  18153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18154. /* end confdefs.h. */
  18155. #define LINUX
  18156. #define EGL_API_FB
  18157. #include <EGL/egl.h>
  18158. #include <EGL/eglext.h>
  18159. int
  18160. main ()
  18161. {
  18162. ;
  18163. return 0;
  18164. }
  18165. _ACEOF
  18166. if ac_fn_c_try_compile "$LINENO"; then :
  18167. video_opengl_egl=yes
  18168. fi
  18169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18171. $as_echo "$video_opengl_egl" >&6; }
  18172. if test x$video_opengl_egl = xyes; then
  18173. $as_echo "@%:@define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18174. fi
  18175. if test x$enable_video_opengles1 = xyes; then
  18176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18177. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18178. video_opengles_v1=no
  18179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18180. /* end confdefs.h. */
  18181. #include <GLES/gl.h>
  18182. #include <GLES/glext.h>
  18183. int
  18184. main ()
  18185. {
  18186. ;
  18187. return 0;
  18188. }
  18189. _ACEOF
  18190. if ac_fn_c_try_compile "$LINENO"; then :
  18191. video_opengles_v1=yes
  18192. fi
  18193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18195. $as_echo "$video_opengles_v1" >&6; }
  18196. if test x$video_opengles_v1 = xyes; then
  18197. $as_echo "@%:@define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18198. $as_echo "@%:@define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18199. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18200. fi
  18201. fi
  18202. if test x$enable_video_opengles2 = xyes; then
  18203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18204. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18205. video_opengles_v2=no
  18206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18207. /* end confdefs.h. */
  18208. #include <GLES2/gl2.h>
  18209. #include <GLES2/gl2ext.h>
  18210. int
  18211. main ()
  18212. {
  18213. ;
  18214. return 0;
  18215. }
  18216. _ACEOF
  18217. if ac_fn_c_try_compile "$LINENO"; then :
  18218. video_opengles_v2=yes
  18219. fi
  18220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18222. $as_echo "$video_opengles_v2" >&6; }
  18223. if test x$video_opengles_v2 = xyes; then
  18224. $as_echo "@%:@define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18225. $as_echo "@%:@define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18226. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18227. fi
  18228. fi
  18229. fi
  18230. }
  18231. CheckWINDOWSGL()
  18232. {
  18233. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18234. $as_echo "@%:@define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18235. $as_echo "@%:@define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18236. $as_echo "@%:@define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18237. SUMMARY_video="${SUMMARY_video} opengl"
  18238. fi
  18239. }
  18240. CheckWINDOWSGLES()
  18241. {
  18242. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18244. $as_echo_n "checking for EGL support... " >&6; }
  18245. video_opengl_egl=no
  18246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18247. /* end confdefs.h. */
  18248. #include <EGL/egl.h>
  18249. int
  18250. main ()
  18251. {
  18252. ;
  18253. return 0;
  18254. }
  18255. _ACEOF
  18256. if ac_fn_c_try_compile "$LINENO"; then :
  18257. video_opengl_egl=yes
  18258. fi
  18259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18261. $as_echo "$video_opengl_egl" >&6; }
  18262. if test x$video_opengl_egl = xyes; then
  18263. $as_echo "@%:@define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18264. $as_echo "@%:@define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18265. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18266. fi
  18267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18268. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18269. video_opengles_v2=no
  18270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18271. /* end confdefs.h. */
  18272. #include <GLES2/gl2.h>
  18273. #include <GLES2/gl2ext.h>
  18274. int
  18275. main ()
  18276. {
  18277. ;
  18278. return 0;
  18279. }
  18280. _ACEOF
  18281. if ac_fn_c_try_compile "$LINENO"; then :
  18282. video_opengles_v2=yes
  18283. fi
  18284. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18286. $as_echo "$video_opengles_v2" >&6; }
  18287. if test x$video_opengles_v2 = xyes; then
  18288. $as_echo "@%:@define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18289. $as_echo "@%:@define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18290. $as_echo "@%:@define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18291. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18292. fi
  18293. fi
  18294. }
  18295. CheckHaikuGL()
  18296. {
  18297. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18298. $as_echo "@%:@define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18299. $as_echo "@%:@define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18300. $as_echo "@%:@define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18301. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18302. SUMMARY_video="${SUMMARY_video} opengl"
  18303. fi
  18304. }
  18305. CheckMacGL()
  18306. {
  18307. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18308. $as_echo "@%:@define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18309. $as_echo "@%:@define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18310. $as_echo "@%:@define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18311. SUMMARY_video="${SUMMARY_video} opengl"
  18312. fi
  18313. }
  18314. CheckInputEvents()
  18315. {
  18316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18317. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18318. use_input_events=no
  18319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18320. /* end confdefs.h. */
  18321. #include <linux/input.h>
  18322. int
  18323. main ()
  18324. {
  18325. #ifndef EVIOCGNAME
  18326. #error EVIOCGNAME() ioctl not available
  18327. #endif
  18328. ;
  18329. return 0;
  18330. }
  18331. _ACEOF
  18332. if ac_fn_c_try_compile "$LINENO"; then :
  18333. use_input_events=yes
  18334. fi
  18335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18337. $as_echo "$use_input_events" >&6; }
  18338. if test x$use_input_events = xyes; then
  18339. $as_echo "@%:@define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18340. SUMMARY_input="${SUMMARY_input} linuxev"
  18341. fi
  18342. }
  18343. CheckInputKD()
  18344. {
  18345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18346. $as_echo_n "checking for Linux kd.h... " >&6; }
  18347. use_input_kd=no
  18348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18349. /* end confdefs.h. */
  18350. #include <linux/kd.h>
  18351. #include <linux/keyboard.h>
  18352. int
  18353. main ()
  18354. {
  18355. struct kbentry kbe;
  18356. kbe.kb_table = KG_CTRL;
  18357. ioctl(0, KDGKBENT, &kbe);
  18358. ;
  18359. return 0;
  18360. }
  18361. _ACEOF
  18362. if ac_fn_c_try_compile "$LINENO"; then :
  18363. use_input_kd=yes
  18364. fi
  18365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18367. $as_echo "$use_input_kd" >&6; }
  18368. if test x$use_input_kd = xyes; then
  18369. $as_echo "@%:@define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18370. SUMMARY_input="${SUMMARY_input} linuxkd"
  18371. fi
  18372. }
  18373. CheckLibUDev()
  18374. {
  18375. @%:@ Check whether --enable-libudev was given.
  18376. if test "${enable_libudev+set}" = set; then :
  18377. enableval=$enable_libudev;
  18378. else
  18379. enable_libudev=yes
  18380. fi
  18381. if test x$enable_libudev = xyes; then
  18382. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18383. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18384. have_libudev_h_hdr=yes
  18385. else
  18386. have_libudev_h_hdr=no
  18387. fi
  18388. if test x$have_libudev_h_hdr = xyes; then
  18389. $as_echo "@%:@define HAVE_LIBUDEV_H 1" >>confdefs.h
  18390. fi
  18391. fi
  18392. }
  18393. CheckDBus()
  18394. {
  18395. @%:@ Check whether --enable-dbus was given.
  18396. if test "${enable_dbus+set}" = set; then :
  18397. enableval=$enable_dbus;
  18398. else
  18399. enable_dbus=yes
  18400. fi
  18401. if test x$enable_dbus = xyes; then
  18402. # Extract the first word of "pkg-config", so it can be a program name with args.
  18403. set dummy pkg-config; ac_word=$2
  18404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18405. $as_echo_n "checking for $ac_word... " >&6; }
  18406. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18407. $as_echo_n "(cached) " >&6
  18408. else
  18409. case $PKG_CONFIG in
  18410. [\\/]* | ?:[\\/]*)
  18411. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18412. ;;
  18413. *)
  18414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18415. for as_dir in $PATH
  18416. do
  18417. IFS=$as_save_IFS
  18418. test -z "$as_dir" && as_dir=.
  18419. for ac_exec_ext in '' $ac_executable_extensions; do
  18420. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18421. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18422. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18423. break 2
  18424. fi
  18425. done
  18426. done
  18427. IFS=$as_save_IFS
  18428. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18429. ;;
  18430. esac
  18431. fi
  18432. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18433. if test -n "$PKG_CONFIG"; then
  18434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18435. $as_echo "$PKG_CONFIG" >&6; }
  18436. else
  18437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18438. $as_echo "no" >&6; }
  18439. fi
  18440. if test x$PKG_CONFIG != xno; then
  18441. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18442. save_CFLAGS="$CFLAGS"
  18443. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18444. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18445. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18446. have_dbus_dbus_h_hdr=yes
  18447. else
  18448. have_dbus_dbus_h_hdr=no
  18449. fi
  18450. CFLAGS="$save_CFLAGS"
  18451. if test x$have_dbus_dbus_h_hdr = xyes; then
  18452. $as_echo "@%:@define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18453. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18454. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  18455. fi
  18456. fi
  18457. fi
  18458. }
  18459. CheckIBus()
  18460. {
  18461. @%:@ Check whether --enable-ibus was given.
  18462. if test "${enable_ibus+set}" = set; then :
  18463. enableval=$enable_ibus;
  18464. else
  18465. enable_ibus=yes
  18466. fi
  18467. if test x$enable_ibus = xyes; then
  18468. # Extract the first word of "pkg-config", so it can be a program name with args.
  18469. set dummy pkg-config; ac_word=$2
  18470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18471. $as_echo_n "checking for $ac_word... " >&6; }
  18472. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18473. $as_echo_n "(cached) " >&6
  18474. else
  18475. case $PKG_CONFIG in
  18476. [\\/]* | ?:[\\/]*)
  18477. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18478. ;;
  18479. *)
  18480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18481. for as_dir in $PATH
  18482. do
  18483. IFS=$as_save_IFS
  18484. test -z "$as_dir" && as_dir=.
  18485. for ac_exec_ext in '' $ac_executable_extensions; do
  18486. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18487. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18488. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18489. break 2
  18490. fi
  18491. done
  18492. done
  18493. IFS=$as_save_IFS
  18494. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18495. ;;
  18496. esac
  18497. fi
  18498. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18499. if test -n "$PKG_CONFIG"; then
  18500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18501. $as_echo "$PKG_CONFIG" >&6; }
  18502. else
  18503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18504. $as_echo "no" >&6; }
  18505. fi
  18506. if test x$PKG_CONFIG != xno; then
  18507. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  18508. save_CFLAGS="$CFLAGS"
  18509. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  18510. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  18511. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  18512. have_ibus_ibus_h_hdr=yes
  18513. else
  18514. have_ibus_ibus_h_hdr=no
  18515. fi
  18516. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  18517. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  18518. have_inotify_inotify_h_hdr=yes
  18519. else
  18520. have_inotify_inotify_h_hdr=no
  18521. fi
  18522. CFLAGS="$save_CFLAGS"
  18523. if test x$have_ibus_ibus_h_hdr = xyes; then
  18524. if test x$enable_dbus != xyes; then
  18525. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  18526. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  18527. have_ibus_ibus_h_hdr=no
  18528. elif test x$have_inotify_inotify_h_hdr != xyes; then
  18529. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  18530. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  18531. have_ibus_ibus_h_hdr=no
  18532. else
  18533. $as_echo "@%:@define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  18534. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  18535. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  18536. fi
  18537. fi
  18538. fi
  18539. fi
  18540. }
  18541. CheckTslib()
  18542. {
  18543. @%:@ Check whether --enable-input-tslib was given.
  18544. if test "${enable_input_tslib+set}" = set; then :
  18545. enableval=$enable_input_tslib;
  18546. else
  18547. enable_input_tslib=yes
  18548. fi
  18549. if test x$enable_input_tslib = xyes; then
  18550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  18551. $as_echo_n "checking for Touchscreen library support... " >&6; }
  18552. enable_input_tslib=no
  18553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18554. /* end confdefs.h. */
  18555. #include "tslib.h"
  18556. int
  18557. main ()
  18558. {
  18559. ;
  18560. return 0;
  18561. }
  18562. _ACEOF
  18563. if ac_fn_c_try_compile "$LINENO"; then :
  18564. enable_input_tslib=yes
  18565. fi
  18566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  18568. $as_echo "$enable_input_tslib" >&6; }
  18569. if test x$enable_input_tslib = xyes; then
  18570. $as_echo "@%:@define SDL_INPUT_TSLIB 1" >>confdefs.h
  18571. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  18572. SUMMARY_input="${SUMMARY_input} ts"
  18573. fi
  18574. fi
  18575. }
  18576. CheckPTHREAD()
  18577. {
  18578. @%:@ Check whether --enable-pthreads was given.
  18579. if test "${enable_pthreads+set}" = set; then :
  18580. enableval=$enable_pthreads;
  18581. else
  18582. enable_pthreads=yes
  18583. fi
  18584. @%:@ Check whether --enable-pthread-sem was given.
  18585. if test "${enable_pthread_sem+set}" = set; then :
  18586. enableval=$enable_pthread_sem;
  18587. else
  18588. enable_pthread_sem=yes
  18589. fi
  18590. case "$host" in
  18591. *-*-androideabi*)
  18592. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18593. pthread_lib=""
  18594. ;;
  18595. *-*-linux*|*-*-uclinux*)
  18596. pthread_cflags="-D_REENTRANT"
  18597. pthread_lib="-lpthread"
  18598. ;;
  18599. *-*-bsdi*)
  18600. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18601. pthread_lib=""
  18602. ;;
  18603. *-*-darwin*)
  18604. pthread_cflags="-D_THREAD_SAFE"
  18605. # causes Carbon.p complaints?
  18606. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18607. ;;
  18608. *-*-freebsd*|*-*-dragonfly*)
  18609. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18610. pthread_lib="-pthread"
  18611. ;;
  18612. *-*-netbsd*)
  18613. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18614. pthread_lib="-lpthread"
  18615. ;;
  18616. *-*-openbsd*)
  18617. pthread_cflags="-D_REENTRANT"
  18618. pthread_lib="-pthread"
  18619. ;;
  18620. *-*-solaris2.9)
  18621. # From Solaris 9+, posix4's preferred name is rt.
  18622. pthread_cflags="-D_REENTRANT"
  18623. pthread_lib="-lpthread -lrt"
  18624. ;;
  18625. *-*-solaris2.10)
  18626. # Solaris 10+ merged pthread into libc.
  18627. pthread_cflags="-D_REENTRANT"
  18628. pthread_lib="-lrt"
  18629. ;;
  18630. *-*-solaris*)
  18631. # Solaris 11+ merged rt into libc.
  18632. pthread_cflags="-D_REENTRANT"
  18633. pthread_lib=""
  18634. ;;
  18635. *-*-sysv5*)
  18636. pthread_cflags="-D_REENTRANT -Kthread"
  18637. pthread_lib=""
  18638. ;;
  18639. *-*-aix*)
  18640. pthread_cflags="-D_REENTRANT -mthreads"
  18641. pthread_lib="-lpthread"
  18642. ;;
  18643. *-*-hpux11*)
  18644. pthread_cflags="-D_REENTRANT"
  18645. pthread_lib="-L/usr/lib -lpthread"
  18646. ;;
  18647. *-*-haiku*)
  18648. pthread_cflags="-D_REENTRANT"
  18649. pthread_lib=""
  18650. ;;
  18651. *)
  18652. pthread_cflags="-D_REENTRANT"
  18653. pthread_lib="-lpthread"
  18654. ;;
  18655. esac
  18656. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  18657. # Save the original compiler flags and libraries
  18658. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18659. # Add the pthread compiler flags and libraries
  18660. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18661. # Check to see if we have pthread support on this system
  18662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  18663. $as_echo_n "checking for pthreads... " >&6; }
  18664. use_pthreads=no
  18665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18666. /* end confdefs.h. */
  18667. #include <pthread.h>
  18668. int
  18669. main ()
  18670. {
  18671. pthread_attr_t type;
  18672. pthread_attr_init(&type);
  18673. ;
  18674. return 0;
  18675. }
  18676. _ACEOF
  18677. if ac_fn_c_try_link "$LINENO"; then :
  18678. use_pthreads=yes
  18679. fi
  18680. rm -f core conftest.err conftest.$ac_objext \
  18681. conftest$ac_exeext conftest.$ac_ext
  18682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18683. $as_echo "$use_pthreads" >&6; }
  18684. # Restore the compiler flags and libraries
  18685. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18686. # Do futher testing if we have pthread support...
  18687. if test x$use_pthreads = xyes; then
  18688. $as_echo "@%:@define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18689. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18690. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18691. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18692. SDL_LIBS="$SDL_LIBS $pthread_lib"
  18693. # Save the original compiler flags and libraries
  18694. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18695. # Add the pthread compiler flags and libraries
  18696. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18697. # Check to see if recursive mutexes are available
  18698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18699. $as_echo_n "checking for recursive mutexes... " >&6; }
  18700. has_recursive_mutexes=no
  18701. if test x$has_recursive_mutexes = xno; then
  18702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18703. /* end confdefs.h. */
  18704. #include <pthread.h>
  18705. int
  18706. main ()
  18707. {
  18708. pthread_mutexattr_t attr;
  18709. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18710. ;
  18711. return 0;
  18712. }
  18713. _ACEOF
  18714. if ac_fn_c_try_compile "$LINENO"; then :
  18715. has_recursive_mutexes=yes
  18716. $as_echo "@%:@define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18717. fi
  18718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18719. fi
  18720. if test x$has_recursive_mutexes = xno; then
  18721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18722. /* end confdefs.h. */
  18723. #include <pthread.h>
  18724. int
  18725. main ()
  18726. {
  18727. pthread_mutexattr_t attr;
  18728. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  18729. ;
  18730. return 0;
  18731. }
  18732. _ACEOF
  18733. if ac_fn_c_try_compile "$LINENO"; then :
  18734. has_recursive_mutexes=yes
  18735. $as_echo "@%:@define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  18736. fi
  18737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18738. fi
  18739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  18740. $as_echo "$has_recursive_mutexes" >&6; }
  18741. # Check to see if pthread semaphore support is missing
  18742. if test x$enable_pthread_sem = xyes; then
  18743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  18744. $as_echo_n "checking for pthread semaphores... " >&6; }
  18745. have_pthread_sem=no
  18746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18747. /* end confdefs.h. */
  18748. #include <pthread.h>
  18749. #include <semaphore.h>
  18750. int
  18751. main ()
  18752. {
  18753. ;
  18754. return 0;
  18755. }
  18756. _ACEOF
  18757. if ac_fn_c_try_compile "$LINENO"; then :
  18758. have_pthread_sem=yes
  18759. fi
  18760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  18762. $as_echo "$have_pthread_sem" >&6; }
  18763. fi
  18764. if test x$have_pthread_sem = xyes; then
  18765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  18766. $as_echo_n "checking for sem_timedwait... " >&6; }
  18767. have_sem_timedwait=no
  18768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18769. /* end confdefs.h. */
  18770. #include <pthread.h>
  18771. #include <semaphore.h>
  18772. int
  18773. main ()
  18774. {
  18775. sem_timedwait(NULL, NULL);
  18776. ;
  18777. return 0;
  18778. }
  18779. _ACEOF
  18780. if ac_fn_c_try_link "$LINENO"; then :
  18781. have_sem_timedwait=yes
  18782. $as_echo "@%:@define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  18783. fi
  18784. rm -f core conftest.err conftest.$ac_objext \
  18785. conftest$ac_exeext conftest.$ac_ext
  18786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  18787. $as_echo "$have_sem_timedwait" >&6; }
  18788. fi
  18789. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  18790. "
  18791. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  18792. have_pthread_np_h=yes
  18793. else
  18794. have_pthread_np_h=no
  18795. fi
  18796. if test x$have_pthread_np_h = xyes; then
  18797. $as_echo "@%:@define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  18798. fi
  18799. # Check to see if pthread naming is available
  18800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  18801. $as_echo_n "checking for pthread_setname_np... " >&6; }
  18802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18803. /* end confdefs.h. */
  18804. /* Override any GCC internal prototype to avoid an error.
  18805. Use char because int might match the return type of a GCC
  18806. builtin and then its argument prototype would still apply. */
  18807. #ifdef __cplusplus
  18808. extern "C"
  18809. #endif
  18810. char pthread_setname_np ();
  18811. int
  18812. main ()
  18813. {
  18814. return pthread_setname_np ();
  18815. ;
  18816. return 0;
  18817. }
  18818. _ACEOF
  18819. if ac_fn_c_try_link "$LINENO"; then :
  18820. has_pthread_setname_np=yes
  18821. $as_echo "@%:@define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  18822. else
  18823. has_pthread_setname_np=no
  18824. fi
  18825. rm -f core conftest.err conftest.$ac_objext \
  18826. conftest$ac_exeext conftest.$ac_ext
  18827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  18828. $as_echo "$has_pthread_setname_np" >&6; }
  18829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  18830. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  18831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18832. /* end confdefs.h. */
  18833. /* Override any GCC internal prototype to avoid an error.
  18834. Use char because int might match the return type of a GCC
  18835. builtin and then its argument prototype would still apply. */
  18836. #ifdef __cplusplus
  18837. extern "C"
  18838. #endif
  18839. char pthread_set_name_np ();
  18840. int
  18841. main ()
  18842. {
  18843. return pthread_set_name_np ();
  18844. ;
  18845. return 0;
  18846. }
  18847. _ACEOF
  18848. if ac_fn_c_try_link "$LINENO"; then :
  18849. has_pthread_set_name_np=yes
  18850. $as_echo "@%:@define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  18851. else
  18852. has_pthread_set_name_np=no
  18853. fi
  18854. rm -f core conftest.err conftest.$ac_objext \
  18855. conftest$ac_exeext conftest.$ac_ext
  18856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  18857. $as_echo "$has_pthread_set_name_np" >&6; }
  18858. # Restore the compiler flags and libraries
  18859. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18860. # Basic thread creation functions
  18861. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  18862. # Semaphores
  18863. # We can fake these with mutexes and condition variables if necessary
  18864. if test x$have_pthread_sem = xyes; then
  18865. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  18866. else
  18867. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  18868. fi
  18869. # Mutexes
  18870. # We can fake these with semaphores if necessary
  18871. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  18872. # Condition variables
  18873. # We can fake these with semaphores and mutexes if necessary
  18874. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  18875. # Thread local storage
  18876. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  18877. have_threads=yes
  18878. fi
  18879. fi
  18880. }
  18881. CheckWINDOWS()
  18882. {
  18883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  18884. $as_echo_n "checking Windows compiler... " >&6; }
  18885. have_win32_gcc=no
  18886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18887. /* end confdefs.h. */
  18888. #include <windows.h>
  18889. int
  18890. main ()
  18891. {
  18892. ;
  18893. return 0;
  18894. }
  18895. _ACEOF
  18896. if ac_fn_c_try_compile "$LINENO"; then :
  18897. have_win32_gcc=yes
  18898. fi
  18899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  18901. $as_echo "$have_win32_gcc" >&6; }
  18902. if test x$have_win32_gcc != xyes; then
  18903. as_fn_error $? "
  18904. *** Your compiler ($CC) does not produce Windows executables!
  18905. " "$LINENO" 5
  18906. fi
  18907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  18908. $as_echo_n "checking Windows CE... " >&6; }
  18909. have_wince=no
  18910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18911. /* end confdefs.h. */
  18912. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  18913. #error This is not Windows CE
  18914. #endif
  18915. int
  18916. main ()
  18917. {
  18918. ;
  18919. return 0;
  18920. }
  18921. _ACEOF
  18922. if ac_fn_c_try_compile "$LINENO"; then :
  18923. have_wince=yes
  18924. as_fn_error $? "
  18925. *** Sorry, Windows CE is no longer supported.
  18926. " "$LINENO" 5
  18927. fi
  18928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  18930. $as_echo "$have_wince" >&6; }
  18931. # This fixes Windows stack alignment with newer GCC
  18932. CheckStackBoundary
  18933. }
  18934. CheckDIRECTX()
  18935. {
  18936. @%:@ Check whether --enable-directx was given.
  18937. if test "${enable_directx+set}" = set; then :
  18938. enableval=$enable_directx;
  18939. else
  18940. enable_directx=yes
  18941. fi
  18942. if test x$enable_directx = xyes; then
  18943. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  18944. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  18945. have_d3d=yes
  18946. fi
  18947. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  18948. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  18949. have_d3d11=yes
  18950. fi
  18951. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  18952. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  18953. have_ddraw=yes
  18954. fi
  18955. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  18956. if test "x$ac_cv_header_dsound_h" = xyes; then :
  18957. have_dsound=yes
  18958. fi
  18959. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  18960. if test "x$ac_cv_header_dinput_h" = xyes; then :
  18961. have_dinput=yes
  18962. fi
  18963. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  18964. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  18965. have_dxgi=yes
  18966. fi
  18967. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  18968. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  18969. have_xaudio2=yes
  18970. fi
  18971. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  18972. if test "x$ac_cv_header_xinput_h" = xyes; then :
  18973. have_xinput=yes
  18974. fi
  18975. if test x$have_ddraw = xyes; then
  18976. $as_echo "@%:@define HAVE_DDRAW_H 1" >>confdefs.h
  18977. fi
  18978. if test x$have_dinput = xyes; then
  18979. $as_echo "@%:@define HAVE_DINPUT_H 1" >>confdefs.h
  18980. fi
  18981. if test x$have_dsound = xyes; then
  18982. $as_echo "@%:@define HAVE_DSOUND_H 1" >>confdefs.h
  18983. fi
  18984. if test x$have_dxgi = xyes; then
  18985. $as_echo "@%:@define HAVE_DXGI_H 1" >>confdefs.h
  18986. fi
  18987. if test x$have_xinput = xyes; then
  18988. $as_echo "@%:@define HAVE_XINPUT_H 1" >>confdefs.h
  18989. fi
  18990. SUMMARY_video="${SUMMARY_video} directx"
  18991. SUMMARY_audio="${SUMMARY_audio} directx"
  18992. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  18993. # FIXME: ...so force it off for now.
  18994. case "$host" in
  18995. *-*-cygwin*)
  18996. have_dinput=false
  18997. ;;
  18998. esac
  18999. fi
  19000. }
  19001. CheckDLOPEN()
  19002. {
  19003. @%:@ Check whether --enable-sdl-dlopen was given.
  19004. if test "${enable_sdl_dlopen+set}" = set; then :
  19005. enableval=$enable_sdl_dlopen;
  19006. else
  19007. enable_sdl_dlopen=yes
  19008. fi
  19009. if test x$enable_sdl_dlopen = xyes; then
  19010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19011. $as_echo_n "checking for dlopen... " >&6; }
  19012. have_dlopen=no
  19013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19014. /* end confdefs.h. */
  19015. #include <dlfcn.h>
  19016. int
  19017. main ()
  19018. {
  19019. void *handle = dlopen("", RTLD_NOW);
  19020. const char *loaderror = (char *) dlerror();
  19021. ;
  19022. return 0;
  19023. }
  19024. _ACEOF
  19025. if ac_fn_c_try_compile "$LINENO"; then :
  19026. have_dlopen=yes
  19027. fi
  19028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19030. $as_echo "$have_dlopen" >&6; }
  19031. if test x$have_dlopen = xyes; then
  19032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19033. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19034. if ${ac_cv_lib_c_dlopen+:} false; then :
  19035. $as_echo_n "(cached) " >&6
  19036. else
  19037. ac_check_lib_save_LIBS=$LIBS
  19038. LIBS="-lc $LIBS"
  19039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19040. /* end confdefs.h. */
  19041. /* Override any GCC internal prototype to avoid an error.
  19042. Use char because int might match the return type of a GCC
  19043. builtin and then its argument prototype would still apply. */
  19044. #ifdef __cplusplus
  19045. extern "C"
  19046. #endif
  19047. char dlopen ();
  19048. int
  19049. main ()
  19050. {
  19051. return dlopen ();
  19052. ;
  19053. return 0;
  19054. }
  19055. _ACEOF
  19056. if ac_fn_c_try_link "$LINENO"; then :
  19057. ac_cv_lib_c_dlopen=yes
  19058. else
  19059. ac_cv_lib_c_dlopen=no
  19060. fi
  19061. rm -f core conftest.err conftest.$ac_objext \
  19062. conftest$ac_exeext conftest.$ac_ext
  19063. LIBS=$ac_check_lib_save_LIBS
  19064. fi
  19065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19066. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19067. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19068. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19069. else
  19070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19071. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19072. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19073. $as_echo_n "(cached) " >&6
  19074. else
  19075. ac_check_lib_save_LIBS=$LIBS
  19076. LIBS="-ldl $LIBS"
  19077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19078. /* end confdefs.h. */
  19079. /* Override any GCC internal prototype to avoid an error.
  19080. Use char because int might match the return type of a GCC
  19081. builtin and then its argument prototype would still apply. */
  19082. #ifdef __cplusplus
  19083. extern "C"
  19084. #endif
  19085. char dlopen ();
  19086. int
  19087. main ()
  19088. {
  19089. return dlopen ();
  19090. ;
  19091. return 0;
  19092. }
  19093. _ACEOF
  19094. if ac_fn_c_try_link "$LINENO"; then :
  19095. ac_cv_lib_dl_dlopen=yes
  19096. else
  19097. ac_cv_lib_dl_dlopen=no
  19098. fi
  19099. rm -f core conftest.err conftest.$ac_objext \
  19100. conftest$ac_exeext conftest.$ac_ext
  19101. LIBS=$ac_check_lib_save_LIBS
  19102. fi
  19103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19104. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19105. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19106. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19107. else
  19108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19109. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19110. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19111. $as_echo_n "(cached) " >&6
  19112. else
  19113. ac_check_lib_save_LIBS=$LIBS
  19114. LIBS="-lltdl $LIBS"
  19115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19116. /* end confdefs.h. */
  19117. /* Override any GCC internal prototype to avoid an error.
  19118. Use char because int might match the return type of a GCC
  19119. builtin and then its argument prototype would still apply. */
  19120. #ifdef __cplusplus
  19121. extern "C"
  19122. #endif
  19123. char dlopen ();
  19124. int
  19125. main ()
  19126. {
  19127. return dlopen ();
  19128. ;
  19129. return 0;
  19130. }
  19131. _ACEOF
  19132. if ac_fn_c_try_link "$LINENO"; then :
  19133. ac_cv_lib_ltdl_dlopen=yes
  19134. else
  19135. ac_cv_lib_ltdl_dlopen=no
  19136. fi
  19137. rm -f core conftest.err conftest.$ac_objext \
  19138. conftest$ac_exeext conftest.$ac_ext
  19139. LIBS=$ac_check_lib_save_LIBS
  19140. fi
  19141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19142. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19143. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19144. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19145. fi
  19146. fi
  19147. fi
  19148. $as_echo "@%:@define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19149. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19150. have_loadso=yes
  19151. fi
  19152. fi
  19153. }
  19154. CheckUSBHID()
  19155. {
  19156. case "$host" in
  19157. *-*-*bsd*)
  19158. if test x$enable_joystick = xyes; then
  19159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19160. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19161. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19162. $as_echo_n "(cached) " >&6
  19163. else
  19164. ac_check_lib_save_LIBS=$LIBS
  19165. LIBS="-lusbhid $LIBS"
  19166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19167. /* end confdefs.h. */
  19168. /* Override any GCC internal prototype to avoid an error.
  19169. Use char because int might match the return type of a GCC
  19170. builtin and then its argument prototype would still apply. */
  19171. #ifdef __cplusplus
  19172. extern "C"
  19173. #endif
  19174. char hid_init ();
  19175. int
  19176. main ()
  19177. {
  19178. return hid_init ();
  19179. ;
  19180. return 0;
  19181. }
  19182. _ACEOF
  19183. if ac_fn_c_try_link "$LINENO"; then :
  19184. ac_cv_lib_usbhid_hid_init=yes
  19185. else
  19186. ac_cv_lib_usbhid_hid_init=no
  19187. fi
  19188. rm -f core conftest.err conftest.$ac_objext \
  19189. conftest$ac_exeext conftest.$ac_ext
  19190. LIBS=$ac_check_lib_save_LIBS
  19191. fi
  19192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19193. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19194. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19195. have_libusbhid=yes
  19196. fi
  19197. if test x$have_libusbhid = xyes; then
  19198. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19199. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19200. USB_CFLAGS="-DHAVE_USBHID_H"
  19201. fi
  19202. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19203. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19204. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19205. fi
  19206. USB_LIBS="$USB_LIBS -lusbhid"
  19207. else
  19208. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19209. if test "x$ac_cv_header_usb_h" = xyes; then :
  19210. USB_CFLAGS="-DHAVE_USB_H"
  19211. fi
  19212. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19213. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19214. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19215. fi
  19216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19217. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19218. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19219. $as_echo_n "(cached) " >&6
  19220. else
  19221. ac_check_lib_save_LIBS=$LIBS
  19222. LIBS="-lusb $LIBS"
  19223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19224. /* end confdefs.h. */
  19225. /* Override any GCC internal prototype to avoid an error.
  19226. Use char because int might match the return type of a GCC
  19227. builtin and then its argument prototype would still apply. */
  19228. #ifdef __cplusplus
  19229. extern "C"
  19230. #endif
  19231. char hid_init ();
  19232. int
  19233. main ()
  19234. {
  19235. return hid_init ();
  19236. ;
  19237. return 0;
  19238. }
  19239. _ACEOF
  19240. if ac_fn_c_try_link "$LINENO"; then :
  19241. ac_cv_lib_usb_hid_init=yes
  19242. else
  19243. ac_cv_lib_usb_hid_init=no
  19244. fi
  19245. rm -f core conftest.err conftest.$ac_objext \
  19246. conftest$ac_exeext conftest.$ac_ext
  19247. LIBS=$ac_check_lib_save_LIBS
  19248. fi
  19249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19250. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19251. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19252. USB_LIBS="$USB_LIBS -lusb"
  19253. fi
  19254. fi
  19255. save_CFLAGS="$CFLAGS"
  19256. CFLAGS="$CFLAGS $USB_CFLAGS"
  19257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19258. $as_echo_n "checking for usbhid... " >&6; }
  19259. have_usbhid=no
  19260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19261. /* end confdefs.h. */
  19262. #include <sys/types.h>
  19263. #if defined(HAVE_USB_H)
  19264. #include <usb.h>
  19265. #endif
  19266. #ifdef __DragonFly__
  19267. # include <bus/usb/usb.h>
  19268. # include <bus/usb/usbhid.h>
  19269. #else
  19270. # include <dev/usb/usb.h>
  19271. # include <dev/usb/usbhid.h>
  19272. #endif
  19273. #if defined(HAVE_USBHID_H)
  19274. #include <usbhid.h>
  19275. #elif defined(HAVE_LIBUSB_H)
  19276. #include <libusb.h>
  19277. #elif defined(HAVE_LIBUSBHID_H)
  19278. #include <libusbhid.h>
  19279. #endif
  19280. int
  19281. main ()
  19282. {
  19283. struct report_desc *repdesc;
  19284. struct usb_ctl_report *repbuf;
  19285. hid_kind_t hidkind;
  19286. ;
  19287. return 0;
  19288. }
  19289. _ACEOF
  19290. if ac_fn_c_try_compile "$LINENO"; then :
  19291. have_usbhid=yes
  19292. fi
  19293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  19295. $as_echo "$have_usbhid" >&6; }
  19296. if test x$have_usbhid = xyes; then
  19297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  19298. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  19299. have_usbhid_ucr_data=no
  19300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19301. /* end confdefs.h. */
  19302. #include <sys/types.h>
  19303. #if defined(HAVE_USB_H)
  19304. #include <usb.h>
  19305. #endif
  19306. #ifdef __DragonFly__
  19307. # include <bus/usb/usb.h>
  19308. # include <bus/usb/usbhid.h>
  19309. #else
  19310. # include <dev/usb/usb.h>
  19311. # include <dev/usb/usbhid.h>
  19312. #endif
  19313. #if defined(HAVE_USBHID_H)
  19314. #include <usbhid.h>
  19315. #elif defined(HAVE_LIBUSB_H)
  19316. #include <libusb.h>
  19317. #elif defined(HAVE_LIBUSBHID_H)
  19318. #include <libusbhid.h>
  19319. #endif
  19320. int
  19321. main ()
  19322. {
  19323. struct usb_ctl_report buf;
  19324. if (buf.ucr_data) { }
  19325. ;
  19326. return 0;
  19327. }
  19328. _ACEOF
  19329. if ac_fn_c_try_compile "$LINENO"; then :
  19330. have_usbhid_ucr_data=yes
  19331. fi
  19332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19333. if test x$have_usbhid_ucr_data = xyes; then
  19334. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  19335. fi
  19336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  19337. $as_echo "$have_usbhid_ucr_data" >&6; }
  19338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  19339. $as_echo_n "checking for new usbhid API... " >&6; }
  19340. have_usbhid_new=no
  19341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19342. /* end confdefs.h. */
  19343. #include <sys/types.h>
  19344. #if defined(HAVE_USB_H)
  19345. #include <usb.h>
  19346. #endif
  19347. #ifdef __DragonFly__
  19348. #include <bus/usb/usb.h>
  19349. #include <bus/usb/usbhid.h>
  19350. #else
  19351. #include <dev/usb/usb.h>
  19352. #include <dev/usb/usbhid.h>
  19353. #endif
  19354. #if defined(HAVE_USBHID_H)
  19355. #include <usbhid.h>
  19356. #elif defined(HAVE_LIBUSB_H)
  19357. #include <libusb.h>
  19358. #elif defined(HAVE_LIBUSBHID_H)
  19359. #include <libusbhid.h>
  19360. #endif
  19361. int
  19362. main ()
  19363. {
  19364. report_desc_t d;
  19365. hid_start_parse(d, 1, 1);
  19366. ;
  19367. return 0;
  19368. }
  19369. _ACEOF
  19370. if ac_fn_c_try_compile "$LINENO"; then :
  19371. have_usbhid_new=yes
  19372. fi
  19373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19374. if test x$have_usbhid_new = xyes; then
  19375. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  19376. fi
  19377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  19378. $as_echo "$have_usbhid_new" >&6; }
  19379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  19380. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  19381. have_machine_joystick=no
  19382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19383. /* end confdefs.h. */
  19384. #include <machine/joystick.h>
  19385. int
  19386. main ()
  19387. {
  19388. struct joystick t;
  19389. ;
  19390. return 0;
  19391. }
  19392. _ACEOF
  19393. if ac_fn_c_try_compile "$LINENO"; then :
  19394. have_machine_joystick=yes
  19395. fi
  19396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19397. if test x$have_machine_joystick = xyes; then
  19398. $as_echo "@%:@define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  19399. fi
  19400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  19401. $as_echo "$have_machine_joystick" >&6; }
  19402. $as_echo "@%:@define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  19403. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  19404. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  19405. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  19406. have_joystick=yes
  19407. fi
  19408. CFLAGS="$save_CFLAGS"
  19409. fi
  19410. ;;
  19411. esac
  19412. }
  19413. CheckClockGettime()
  19414. {
  19415. @%:@ Check whether --enable-clock_gettime was given.
  19416. if test "${enable_clock_gettime+set}" = set; then :
  19417. enableval=$enable_clock_gettime;
  19418. else
  19419. enable_clock_gettime=yes
  19420. fi
  19421. if test x$enable_clock_gettime = xyes; then
  19422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  19423. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  19424. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  19425. $as_echo_n "(cached) " >&6
  19426. else
  19427. ac_check_lib_save_LIBS=$LIBS
  19428. LIBS="-lrt $LIBS"
  19429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19430. /* end confdefs.h. */
  19431. /* Override any GCC internal prototype to avoid an error.
  19432. Use char because int might match the return type of a GCC
  19433. builtin and then its argument prototype would still apply. */
  19434. #ifdef __cplusplus
  19435. extern "C"
  19436. #endif
  19437. char clock_gettime ();
  19438. int
  19439. main ()
  19440. {
  19441. return clock_gettime ();
  19442. ;
  19443. return 0;
  19444. }
  19445. _ACEOF
  19446. if ac_fn_c_try_link "$LINENO"; then :
  19447. ac_cv_lib_rt_clock_gettime=yes
  19448. else
  19449. ac_cv_lib_rt_clock_gettime=no
  19450. fi
  19451. rm -f core conftest.err conftest.$ac_objext \
  19452. conftest$ac_exeext conftest.$ac_ext
  19453. LIBS=$ac_check_lib_save_LIBS
  19454. fi
  19455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  19456. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  19457. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  19458. have_clock_gettime=yes
  19459. fi
  19460. if test x$have_clock_gettime = xyes; then
  19461. $as_echo "@%:@define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19462. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  19463. else
  19464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  19465. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  19466. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  19467. $as_echo_n "(cached) " >&6
  19468. else
  19469. ac_check_lib_save_LIBS=$LIBS
  19470. LIBS="-lc $LIBS"
  19471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19472. /* end confdefs.h. */
  19473. /* Override any GCC internal prototype to avoid an error.
  19474. Use char because int might match the return type of a GCC
  19475. builtin and then its argument prototype would still apply. */
  19476. #ifdef __cplusplus
  19477. extern "C"
  19478. #endif
  19479. char clock_gettime ();
  19480. int
  19481. main ()
  19482. {
  19483. return clock_gettime ();
  19484. ;
  19485. return 0;
  19486. }
  19487. _ACEOF
  19488. if ac_fn_c_try_link "$LINENO"; then :
  19489. ac_cv_lib_c_clock_gettime=yes
  19490. else
  19491. ac_cv_lib_c_clock_gettime=no
  19492. fi
  19493. rm -f core conftest.err conftest.$ac_objext \
  19494. conftest$ac_exeext conftest.$ac_ext
  19495. LIBS=$ac_check_lib_save_LIBS
  19496. fi
  19497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  19498. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  19499. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  19500. have_clock_gettime=yes
  19501. fi
  19502. if test x$have_clock_gettime = xyes; then
  19503. $as_echo "@%:@define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19504. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19505. fi
  19506. fi
  19507. fi
  19508. }
  19509. CheckLinuxVersion()
  19510. {
  19511. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  19512. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  19513. have_linux_version_h=yes
  19514. fi
  19515. if test x$have_linux_version_h = xyes; then
  19516. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  19517. fi
  19518. }
  19519. CheckRPATH()
  19520. {
  19521. @%:@ Check whether --enable-rpath was given.
  19522. if test "${enable_rpath+set}" = set; then :
  19523. enableval=$enable_rpath;
  19524. else
  19525. enable_rpath=yes
  19526. fi
  19527. }
  19528. case "$host" in
  19529. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  19530. case "$host" in
  19531. *-raspberry-linux*)
  19532. # Raspberry Pi
  19533. ARCH=linux
  19534. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19535. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19536. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19537. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19538. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  19539. if test x$enable_video = xyes; then
  19540. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19541. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19542. fi
  19543. ;;
  19544. *-*-androideabi*)
  19545. # Android
  19546. ARCH=android
  19547. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  19548. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  19549. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  19550. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  19551. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  19552. if test x$enable_video = xyes; then
  19553. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  19554. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  19555. SUMMARY_video="${SUMMARY_video} android"
  19556. fi
  19557. ;;
  19558. *-*-linux*) ARCH=linux ;;
  19559. *-*-uclinux*) ARCH=linux ;;
  19560. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  19561. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  19562. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  19563. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  19564. *-*-bsdi*) ARCH=bsdi ;;
  19565. *-*-freebsd*) ARCH=freebsd ;;
  19566. *-*-dragonfly*) ARCH=freebsd ;;
  19567. *-*-netbsd*) ARCH=netbsd ;;
  19568. *-*-openbsd*) ARCH=openbsd ;;
  19569. *-*-sysv5*) ARCH=sysv5 ;;
  19570. *-*-solaris*) ARCH=solaris ;;
  19571. *-*-hpux*) ARCH=hpux ;;
  19572. *-*-aix*) ARCH=aix ;;
  19573. *-*-minix*) ARCH=minix ;;
  19574. esac
  19575. CheckVisibilityHidden
  19576. CheckDummyVideo
  19577. CheckDiskAudio
  19578. CheckDummyAudio
  19579. CheckDLOPEN
  19580. CheckOSS
  19581. CheckALSA
  19582. CheckPulseAudio
  19583. CheckARTSC
  19584. CheckESD
  19585. CheckNAS
  19586. CheckSNDIO
  19587. CheckX11
  19588. CheckDirectFB
  19589. CheckFusionSound
  19590. CheckOpenGLX11
  19591. CheckOpenGLESX11
  19592. CheckMir
  19593. CheckWayland
  19594. CheckLibUDev
  19595. CheckDBus
  19596. CheckIBus
  19597. CheckInputEvents
  19598. CheckInputKD
  19599. CheckTslib
  19600. CheckUSBHID
  19601. CheckPTHREAD
  19602. CheckClockGettime
  19603. CheckLinuxVersion
  19604. CheckRPATH
  19605. CheckVivanteVideo
  19606. # Set up files for the audio library
  19607. if test x$enable_audio = xyes; then
  19608. case $ARCH in
  19609. sysv5|solaris|hpux)
  19610. $as_echo "@%:@define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  19611. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  19612. have_audio=yes
  19613. ;;
  19614. netbsd) # Don't use this on OpenBSD, it's busted.
  19615. $as_echo "@%:@define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  19616. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  19617. have_audio=yes
  19618. ;;
  19619. aix)
  19620. $as_echo "@%:@define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  19621. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  19622. have_audio=yes
  19623. ;;
  19624. android)
  19625. $as_echo "@%:@define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  19626. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  19627. SUMMARY_audio="${SUMMARY_audio} android"
  19628. have_audio=yes
  19629. ;;
  19630. esac
  19631. fi
  19632. # Set up files for the joystick library
  19633. if test x$enable_joystick = xyes; then
  19634. case $ARCH in
  19635. linux)
  19636. $as_echo "@%:@define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  19637. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  19638. have_joystick=yes
  19639. ;;
  19640. android)
  19641. $as_echo "@%:@define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  19642. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  19643. have_joystick=yes
  19644. ;;
  19645. esac
  19646. fi
  19647. # Set up files for the haptic library
  19648. if test x$enable_haptic = xyes; then
  19649. if test x$use_input_events = xyes; then
  19650. case $ARCH in
  19651. linux)
  19652. $as_echo "@%:@define SDL_HAPTIC_LINUX 1" >>confdefs.h
  19653. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  19654. have_haptic=yes
  19655. ;;
  19656. esac
  19657. fi
  19658. fi
  19659. # Set up files for the power library
  19660. if test x$enable_power = xyes; then
  19661. case $ARCH in
  19662. linux)
  19663. $as_echo "@%:@define SDL_POWER_LINUX 1" >>confdefs.h
  19664. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  19665. have_power=yes
  19666. ;;
  19667. android)
  19668. $as_echo "@%:@define SDL_POWER_ANDROID 1" >>confdefs.h
  19669. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  19670. have_power=yes
  19671. ;;
  19672. esac
  19673. fi
  19674. # Set up files for the filesystem library
  19675. if test x$enable_filesystem = xyes; then
  19676. $as_echo "@%:@define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  19677. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  19678. have_filesystem=yes
  19679. fi
  19680. # Set up files for the timer library
  19681. if test x$enable_timers = xyes; then
  19682. $as_echo "@%:@define SDL_TIMER_UNIX 1" >>confdefs.h
  19683. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19684. have_timers=yes
  19685. fi
  19686. # Set up files for udev hotplugging support
  19687. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  19688. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  19689. fi
  19690. # Set up files for evdev input
  19691. if test x$use_input_events = xyes; then
  19692. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  19693. fi
  19694. ;;
  19695. *-*-cygwin* | *-*-mingw32*)
  19696. ARCH=win32
  19697. if test "$build" != "$host"; then # cross-compiling
  19698. # Default cross-compile location
  19699. ac_default_prefix=/usr/local/cross-tools/$host
  19700. else
  19701. # Look for the location of the tools and install there
  19702. if test "$BUILD_PREFIX" != ""; then
  19703. ac_default_prefix=$BUILD_PREFIX
  19704. fi
  19705. fi
  19706. CheckDummyVideo
  19707. CheckDiskAudio
  19708. CheckDummyAudio
  19709. CheckWINDOWS
  19710. CheckWINDOWSGL
  19711. CheckWINDOWSGLES
  19712. CheckDIRECTX
  19713. # Set up the core platform files
  19714. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  19715. # Set up files for the video library
  19716. if test x$enable_video = xyes; then
  19717. $as_echo "@%:@define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  19718. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  19719. have_video=yes
  19720. @%:@ Check whether --enable-render-d3d was given.
  19721. if test "${enable_render_d3d+set}" = set; then :
  19722. enableval=$enable_render_d3d;
  19723. else
  19724. enable_render_d3d=yes
  19725. fi
  19726. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  19727. $as_echo "@%:@define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  19728. fi
  19729. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  19730. $as_echo "@%:@define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  19731. fi
  19732. fi
  19733. # Set up files for the audio library
  19734. if test x$enable_audio = xyes; then
  19735. $as_echo "@%:@define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  19736. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  19737. if test x$have_dsound = xyes; then
  19738. $as_echo "@%:@define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  19739. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  19740. fi
  19741. if test x$have_xaudio2 = xyes; then
  19742. $as_echo "@%:@define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  19743. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  19744. fi
  19745. have_audio=yes
  19746. fi
  19747. # Set up files for the joystick library
  19748. if test x$enable_joystick = xyes; then
  19749. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  19750. if test x$have_xinput = xyes; then
  19751. $as_echo "@%:@define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  19752. fi
  19753. if test x$have_dinput = xyes; then
  19754. $as_echo "@%:@define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  19755. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  19756. fi
  19757. else
  19758. $as_echo "@%:@define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  19759. fi
  19760. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  19761. have_joystick=yes
  19762. fi
  19763. if test x$enable_haptic = xyes; then
  19764. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  19765. if test x$have_xinput = xyes; then
  19766. $as_echo "@%:@define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  19767. fi
  19768. if test x$have_dinput = xyes; then
  19769. $as_echo "@%:@define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  19770. fi
  19771. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  19772. have_haptic=yes
  19773. fi
  19774. fi
  19775. if test x$enable_power = xyes; then
  19776. $as_echo "@%:@define SDL_POWER_WINDOWS 1" >>confdefs.h
  19777. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  19778. have_power=yes
  19779. fi
  19780. if test x$enable_filesystem = xyes; then
  19781. $as_echo "@%:@define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  19782. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  19783. have_filesystem=yes
  19784. fi
  19785. # Set up files for the thread library
  19786. if test x$enable_threads = xyes; then
  19787. $as_echo "@%:@define SDL_THREAD_WINDOWS 1" >>confdefs.h
  19788. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  19789. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  19790. have_threads=yes
  19791. fi
  19792. # Set up files for the timer library
  19793. if test x$enable_timers = xyes; then
  19794. $as_echo "@%:@define SDL_TIMER_WINDOWS 1" >>confdefs.h
  19795. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  19796. have_timers=yes
  19797. fi
  19798. # Set up files for the shared object loading library
  19799. if test x$enable_loadso = xyes; then
  19800. $as_echo "@%:@define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  19801. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  19802. have_loadso=yes
  19803. fi
  19804. # Set up the system libraries we need
  19805. if test -f /lib/w32api/libuuid.a; then
  19806. LIBUUID=/lib/w32api/libuuid.a
  19807. else
  19808. LIBUUID=-luuid
  19809. fi
  19810. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -XCClinker -static-libgcc"
  19811. # The Windows platform requires special setup
  19812. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  19813. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  19814. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  19815. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  19816. # Check to see if this is a mingw or cygwin build
  19817. have_mingw32=
  19818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  19819. $as_echo_n "checking for main in -lmingw32... " >&6; }
  19820. if ${ac_cv_lib_mingw32_main+:} false; then :
  19821. $as_echo_n "(cached) " >&6
  19822. else
  19823. ac_check_lib_save_LIBS=$LIBS
  19824. LIBS="-lmingw32 $LIBS"
  19825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19826. /* end confdefs.h. */
  19827. int
  19828. main ()
  19829. {
  19830. return main ();
  19831. ;
  19832. return 0;
  19833. }
  19834. _ACEOF
  19835. if ac_fn_c_try_link "$LINENO"; then :
  19836. ac_cv_lib_mingw32_main=yes
  19837. else
  19838. ac_cv_lib_mingw32_main=no
  19839. fi
  19840. rm -f core conftest.err conftest.$ac_objext \
  19841. conftest$ac_exeext conftest.$ac_ext
  19842. LIBS=$ac_check_lib_save_LIBS
  19843. fi
  19844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  19845. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  19846. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  19847. have_mingw32=yes
  19848. fi
  19849. if test x$have_mingw32 = xyes; then
  19850. SDL_LIBS="-lmingw32 $SDL_LIBS"
  19851. else
  19852. SDL_LIBS="-lcygwin $SDL_LIBS"
  19853. fi
  19854. ;;
  19855. *-*-beos*)
  19856. as_fn_error $? "
  19857. *** BeOS support has been removed as of SDL 2.0.2.
  19858. " "$LINENO" 5
  19859. ;;
  19860. *-*-haiku*)
  19861. ARCH=haiku
  19862. ac_default_prefix=/boot/system
  19863. CheckDummyVideo
  19864. CheckDiskAudio
  19865. CheckDummyAudio
  19866. CheckHaikuVideo
  19867. CheckHaikuGL
  19868. CheckPTHREAD
  19869. # Set up files for the audio library
  19870. if test x$enable_audio = xyes; then
  19871. $as_echo "@%:@define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  19872. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  19873. have_audio=yes
  19874. fi
  19875. # Set up files for the joystick library
  19876. if test x$enable_joystick = xyes; then
  19877. $as_echo "@%:@define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  19878. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  19879. have_joystick=yes
  19880. fi
  19881. # Set up files for the timer library
  19882. if test x$enable_timers = xyes; then
  19883. $as_echo "@%:@define SDL_TIMER_HAIKU 1" >>confdefs.h
  19884. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  19885. have_timers=yes
  19886. fi
  19887. # Set up files for the shared object loading library
  19888. if test x$enable_loadso = xyes; then
  19889. $as_echo "@%:@define SDL_LOADSO_HAIKU 1" >>confdefs.h
  19890. SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
  19891. have_loadso=yes
  19892. fi
  19893. # Set up files for the system power library
  19894. if test x$enable_power = xyes; then
  19895. $as_echo "@%:@define SDL_POWER_HAIKU 1" >>confdefs.h
  19896. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  19897. have_power=yes
  19898. fi
  19899. # Set up files for the system filesystem library
  19900. if test x$enable_filesystem = xyes; then
  19901. $as_echo "@%:@define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  19902. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  19903. have_filesystem=yes
  19904. fi
  19905. # The Haiku platform requires special setup.
  19906. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  19907. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  19908. ;;
  19909. arm*-apple-darwin*)
  19910. # iOS - We are not writing anything to confdefs.h because you have to replace
  19911. # SDL_config.h for SDL_config_iphoneos.h anyway
  19912. ARCH=ios
  19913. CheckVisibilityHidden
  19914. CheckDummyVideo
  19915. CheckDiskAudio
  19916. CheckDummyAudio
  19917. CheckDLOPEN
  19918. CheckCOCOA
  19919. CheckPTHREAD
  19920. # Set up files for the audio library
  19921. if test x$enable_audio = xyes; then
  19922. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19923. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  19924. have_audio=yes
  19925. fi
  19926. # Set up files for the joystick library
  19927. if test x$enable_joystick = xyes; then
  19928. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  19929. have_joystick=yes
  19930. fi
  19931. # Set up files for the haptic library
  19932. #if test x$enable_haptic = xyes; then
  19933. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19934. # have_haptic=yes
  19935. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19936. #fi
  19937. # Set up files for the power library
  19938. if test x$enable_power = xyes; then
  19939. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  19940. have_power=yes
  19941. fi
  19942. # Set up files for the filesystem library
  19943. if test x$enable_filesystem = xyes; then
  19944. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  19945. have_filesystem=yes
  19946. fi
  19947. # Set up files for the timer library
  19948. if test x$enable_timers = xyes; then
  19949. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19950. have_timers=yes
  19951. fi
  19952. # Set up additional files for the file library
  19953. if test x$enable_file = xyes; then
  19954. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19955. fi
  19956. # The iOS platform requires special setup.
  19957. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  19958. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19959. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  19960. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  19961. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  19962. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  19963. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  19964. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  19965. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  19966. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  19967. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  19968. ;;
  19969. *-*-darwin* )
  19970. # This could be either full "Mac OS X", or plain "Darwin" which is
  19971. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  19972. # Next line is broken, and a few files below require Mac OS X (full)
  19973. ARCH=macosx
  19974. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  19975. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  19976. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  19977. CheckVisibilityHidden
  19978. CheckDummyVideo
  19979. CheckDiskAudio
  19980. CheckDummyAudio
  19981. CheckDLOPEN
  19982. CheckCOCOA
  19983. CheckX11
  19984. CheckMacGL
  19985. CheckOpenGLX11
  19986. CheckPTHREAD
  19987. # Set up files for the audio library
  19988. if test x$enable_audio = xyes; then
  19989. $as_echo "@%:@define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  19990. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19991. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  19992. have_audio=yes
  19993. fi
  19994. # Set up files for the joystick library
  19995. if test x$enable_joystick = xyes; then
  19996. $as_echo "@%:@define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  19997. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  19998. have_joystick=yes
  19999. fi
  20000. # Set up files for the haptic library
  20001. if test x$enable_haptic = xyes; then
  20002. $as_echo "@%:@define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20003. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20004. have_haptic=yes
  20005. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20006. fi
  20007. # Set up files for the power library
  20008. if test x$enable_power = xyes; then
  20009. $as_echo "@%:@define SDL_POWER_MACOSX 1" >>confdefs.h
  20010. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20011. have_power=yes
  20012. fi
  20013. # Set up files for the filesystem library
  20014. if test x$enable_filesystem = xyes; then
  20015. $as_echo "@%:@define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20016. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20017. have_filesystem=yes
  20018. fi
  20019. # Set up files for the timer library
  20020. if test x$enable_timers = xyes; then
  20021. $as_echo "@%:@define SDL_TIMER_UNIX 1" >>confdefs.h
  20022. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20023. have_timers=yes
  20024. fi
  20025. # Set up additional files for the file library
  20026. if test x$enable_file = xyes; then
  20027. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20028. fi
  20029. # The Mac OS X platform requires special setup.
  20030. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20031. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20032. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20033. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20034. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20035. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20036. # If audio is used, add the AudioUnit framework
  20037. if test x$enable_audio = xyes; then
  20038. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
  20039. fi
  20040. ;;
  20041. *-nacl|*-pnacl)
  20042. ARCH=nacl
  20043. CheckNativeClient
  20044. CheckDummyAudio
  20045. CheckDummyVideo
  20046. CheckInputEvents
  20047. CheckPTHREAD
  20048. # Set up files for the timer library
  20049. if test x$enable_timers = xyes; then
  20050. $as_echo "@%:@define SDL_TIMER_UNIX 1" >>confdefs.h
  20051. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20052. have_timers=yes
  20053. fi
  20054. if test x$enable_filesystem = xyes; then
  20055. $as_echo "@%:@define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20056. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20057. have_filesystem=yes
  20058. fi
  20059. ;;
  20060. *)
  20061. as_fn_error $? "
  20062. *** Unsupported host: Please add to configure.in
  20063. " "$LINENO" 5
  20064. ;;
  20065. esac
  20066. CheckWarnAll
  20067. CheckWarnShadow
  20068. # Verify that we have all the platform specific files we need
  20069. if test x$have_joystick != xyes; then
  20070. if test x$enable_joystick = xyes; then
  20071. $as_echo "@%:@define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20072. fi
  20073. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20074. fi
  20075. if test x$have_haptic != xyes; then
  20076. if test x$enable_haptic = xyes; then
  20077. $as_echo "@%:@define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20078. fi
  20079. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20080. fi
  20081. if test x$have_threads != xyes; then
  20082. if test x$enable_threads = xyes; then
  20083. $as_echo "@%:@define SDL_THREADS_DISABLED 1" >>confdefs.h
  20084. fi
  20085. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  20086. fi
  20087. if test x$have_timers != xyes; then
  20088. if test x$enable_timers = xyes; then
  20089. $as_echo "@%:@define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20090. fi
  20091. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20092. fi
  20093. if test x$have_filesystem != xyes; then
  20094. if test x$enable_filesystem = xyes; then
  20095. $as_echo "@%:@define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20096. fi
  20097. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20098. fi
  20099. if test x$have_loadso != xyes; then
  20100. if test x$enable_loadso = xyes; then
  20101. $as_echo "@%:@define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20102. fi
  20103. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20104. fi
  20105. if test x$SDLMAIN_SOURCES = x; then
  20106. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20107. fi
  20108. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20109. OBJECTS=`echo $SOURCES`
  20110. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20111. for EXT in asm cc m c S; do
  20112. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20113. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20114. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20115. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20116. done
  20117. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20118. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20119. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20120. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20121. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20122. \\$(WINDRES) \\$< \\$@,g"`
  20123. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20124. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20125. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20126. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20127. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20128. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20129. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20130. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20131. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20132. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20133. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20134. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20135. # Set runtime shared library paths as needed
  20136. if test "x$enable_rpath" = "xyes"; then
  20137. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  20138. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  20139. fi
  20140. if test $ARCH = solaris; then
  20141. SDL_RLD_FLAGS="-R\${libdir}"
  20142. fi
  20143. else
  20144. SDL_RLD_FLAGS=""
  20145. fi
  20146. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  20147. if test x$enable_shared = xyes; then
  20148. ENABLE_SHARED_TRUE=
  20149. ENABLE_SHARED_FALSE="#"
  20150. else
  20151. ENABLE_SHARED_TRUE="#"
  20152. ENABLE_SHARED_FALSE=
  20153. fi
  20154. if test x$enable_static = xyes; then
  20155. ENABLE_STATIC_TRUE=
  20156. ENABLE_STATIC_FALSE="#"
  20157. else
  20158. ENABLE_STATIC_TRUE="#"
  20159. ENABLE_STATIC_FALSE=
  20160. fi
  20161. cat >Makefile.rules <<__EOF__
  20162. # Build rules for objects
  20163. -include \$(OBJECTS:.lo=.d)
  20164. # Special dependency for SDL.c, since it depends on SDL_revision.h
  20165. $srcdir/src/SDL.c: update-revision
  20166. $DEPENDS
  20167. $VERSION_DEPENDS
  20168. $SDLMAIN_DEPENDS
  20169. $SDLTEST_DEPENDS
  20170. __EOF__
  20171. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config SDL2.spec sdl2.pc"
  20172. ac_config_commands="$ac_config_commands sdl2_config"
  20173. SUMMARY="SDL2 Configure Summary:\n"
  20174. if test x$enable_shared = xyes; then
  20175. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  20176. fi
  20177. if test x$enable_static = xyes; then
  20178. SUMMARY="${SUMMARY}Building Static Libraries\n"
  20179. fi
  20180. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  20181. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  20182. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  20183. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  20184. if test x$have_x = xyes; then
  20185. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  20186. fi
  20187. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  20188. if test x$enable_libudev = xyes; then
  20189. SUMMARY="${SUMMARY}Using libudev : YES\n"
  20190. else
  20191. SUMMARY="${SUMMARY}Using libudev : NO\n"
  20192. fi
  20193. if test x$have_dbus_dbus_h_hdr = xyes; then
  20194. SUMMARY="${SUMMARY}Using dbus : YES\n"
  20195. else
  20196. SUMMARY="${SUMMARY}Using dbus : NO\n"
  20197. fi
  20198. if test x$have_ibus_ibus_h_hdr = xyes; then
  20199. SUMMARY="${SUMMARY}Using ibus : YES\n"
  20200. else
  20201. SUMMARY="${SUMMARY}Using ibus : NO\n"
  20202. fi
  20203. ac_config_commands="$ac_config_commands summary"
  20204. cat >confcache <<\_ACEOF
  20205. # This file is a shell script that caches the results of configure
  20206. # tests run on this system so they can be shared between configure
  20207. # scripts and configure runs, see configure's option --config-cache.
  20208. # It is not useful on other systems. If it contains results you don't
  20209. # want to keep, you may remove or edit it.
  20210. #
  20211. # config.status only pays attention to the cache file if you give it
  20212. # the --recheck option to rerun configure.
  20213. #
  20214. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20215. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20216. # following values.
  20217. _ACEOF
  20218. # The following way of writing the cache mishandles newlines in values,
  20219. # but we know of no workaround that is simple, portable, and efficient.
  20220. # So, we kill variables containing newlines.
  20221. # Ultrix sh set writes to stderr and can't be redirected directly,
  20222. # and sets the high bit in the cache file unless we assign to the vars.
  20223. (
  20224. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20225. eval ac_val=\$$ac_var
  20226. case $ac_val in #(
  20227. *${as_nl}*)
  20228. case $ac_var in #(
  20229. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  20230. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20231. esac
  20232. case $ac_var in #(
  20233. _ | IFS | as_nl) ;; #(
  20234. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20235. *) { eval $ac_var=; unset $ac_var;} ;;
  20236. esac ;;
  20237. esac
  20238. done
  20239. (set) 2>&1 |
  20240. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20241. *${as_nl}ac_space=\ *)
  20242. # `set' does not quote correctly, so add quotes: double-quote
  20243. # substitution turns \\\\ into \\, and sed turns \\ into \.
  20244. sed -n \
  20245. "s/'/'\\\\''/g;
  20246. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20247. ;; #(
  20248. *)
  20249. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20250. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20251. ;;
  20252. esac |
  20253. sort
  20254. ) |
  20255. sed '
  20256. /^ac_cv_env_/b end
  20257. t clear
  20258. :clear
  20259. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20260. t end
  20261. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20262. :end' >>confcache
  20263. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20264. if test -w "$cache_file"; then
  20265. if test "x$cache_file" != "x/dev/null"; then
  20266. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  20267. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20268. if test ! -f "$cache_file" || test -h "$cache_file"; then
  20269. cat confcache >"$cache_file"
  20270. else
  20271. case $cache_file in #(
  20272. */* | ?:*)
  20273. mv -f confcache "$cache_file"$$ &&
  20274. mv -f "$cache_file"$$ "$cache_file" ;; #(
  20275. *)
  20276. mv -f confcache "$cache_file" ;;
  20277. esac
  20278. fi
  20279. fi
  20280. else
  20281. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  20282. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20283. fi
  20284. fi
  20285. rm -f confcache
  20286. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20287. # Let make expand exec_prefix.
  20288. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20289. DEFS=-DHAVE_CONFIG_H
  20290. ac_libobjs=
  20291. ac_ltlibobjs=
  20292. U=
  20293. for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
  20294. # 1. Remove the extension, and $U if already installed.
  20295. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20296. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20297. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20298. # will be set to the directory where LIBOBJS objects are built.
  20299. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20300. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  20301. done
  20302. LIB@&t@OBJS=$ac_libobjs
  20303. LTLIBOBJS=$ac_ltlibobjs
  20304. : "${CONFIG_STATUS=./config.status}"
  20305. ac_write_fail=0
  20306. ac_clean_files_save=$ac_clean_files
  20307. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20308. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  20309. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20310. as_write_fail=0
  20311. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  20312. #! $SHELL
  20313. # Generated by $as_me.
  20314. # Run this file to recreate the current configuration.
  20315. # Compiler output produced by configure, useful for debugging
  20316. # configure, is in config.log if it exists.
  20317. debug=false
  20318. ac_cs_recheck=false
  20319. ac_cs_silent=false
  20320. SHELL=\${CONFIG_SHELL-$SHELL}
  20321. export SHELL
  20322. _ASEOF
  20323. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  20324. ## -------------------- ##
  20325. ## M4sh Initialization. ##
  20326. ## -------------------- ##
  20327. # Be more Bourne compatible
  20328. DUALCASE=1; export DUALCASE # for MKS sh
  20329. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20330. emulate sh
  20331. NULLCMD=:
  20332. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20333. # is contrary to our usage. Disable this feature.
  20334. alias -g '${1+"$@"}'='"$@"'
  20335. setopt NO_GLOB_SUBST
  20336. else
  20337. case `(set -o) 2>/dev/null` in @%:@(
  20338. *posix*) :
  20339. set -o posix ;; @%:@(
  20340. *) :
  20341. ;;
  20342. esac
  20343. fi
  20344. as_nl='
  20345. '
  20346. export as_nl
  20347. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  20348. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20349. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20350. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20351. # Prefer a ksh shell builtin over an external printf program on Solaris,
  20352. # but without wasting forks for bash or zsh.
  20353. if test -z "$BASH_VERSION$ZSH_VERSION" \
  20354. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  20355. as_echo='print -r --'
  20356. as_echo_n='print -rn --'
  20357. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20358. as_echo='printf %s\n'
  20359. as_echo_n='printf %s'
  20360. else
  20361. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20362. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20363. as_echo_n='/usr/ucb/echo -n'
  20364. else
  20365. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20366. as_echo_n_body='eval
  20367. arg=$1;
  20368. case $arg in @%:@(
  20369. *"$as_nl"*)
  20370. expr "X$arg" : "X\\(.*\\)$as_nl";
  20371. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20372. esac;
  20373. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20374. '
  20375. export as_echo_n_body
  20376. as_echo_n='sh -c $as_echo_n_body as_echo'
  20377. fi
  20378. export as_echo_body
  20379. as_echo='sh -c $as_echo_body as_echo'
  20380. fi
  20381. # The user is always right.
  20382. if test "${PATH_SEPARATOR+set}" != set; then
  20383. PATH_SEPARATOR=:
  20384. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20385. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20386. PATH_SEPARATOR=';'
  20387. }
  20388. fi
  20389. # IFS
  20390. # We need space, tab and new line, in precisely that order. Quoting is
  20391. # there to prevent editors from complaining about space-tab.
  20392. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20393. # splitting by setting IFS to empty value.)
  20394. IFS=" "" $as_nl"
  20395. # Find who we are. Look in the path if we contain no directory separator.
  20396. as_myself=
  20397. case $0 in @%:@((
  20398. *[\\/]* ) as_myself=$0 ;;
  20399. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20400. for as_dir in $PATH
  20401. do
  20402. IFS=$as_save_IFS
  20403. test -z "$as_dir" && as_dir=.
  20404. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20405. done
  20406. IFS=$as_save_IFS
  20407. ;;
  20408. esac
  20409. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20410. # in which case we are not to be found in the path.
  20411. if test "x$as_myself" = x; then
  20412. as_myself=$0
  20413. fi
  20414. if test ! -f "$as_myself"; then
  20415. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20416. exit 1
  20417. fi
  20418. # Unset variables that we do not need and which cause bugs (e.g. in
  20419. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  20420. # suppresses any "Segmentation fault" message there. '((' could
  20421. # trigger a bug in pdksh 5.2.14.
  20422. for as_var in BASH_ENV ENV MAIL MAILPATH
  20423. do eval test x\${$as_var+set} = xset \
  20424. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  20425. done
  20426. PS1='$ '
  20427. PS2='> '
  20428. PS4='+ '
  20429. # NLS nuisances.
  20430. LC_ALL=C
  20431. export LC_ALL
  20432. LANGUAGE=C
  20433. export LANGUAGE
  20434. # CDPATH.
  20435. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20436. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  20437. @%:@ ----------------------------------------
  20438. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  20439. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  20440. @%:@ script with STATUS, using 1 if that was 0.
  20441. as_fn_error ()
  20442. {
  20443. as_status=$1; test $as_status -eq 0 && as_status=1
  20444. if test "$4"; then
  20445. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  20446. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  20447. fi
  20448. $as_echo "$as_me: error: $2" >&2
  20449. as_fn_exit $as_status
  20450. } @%:@ as_fn_error
  20451. @%:@ as_fn_set_status STATUS
  20452. @%:@ -----------------------
  20453. @%:@ Set @S|@? to STATUS, without forking.
  20454. as_fn_set_status ()
  20455. {
  20456. return $1
  20457. } @%:@ as_fn_set_status
  20458. @%:@ as_fn_exit STATUS
  20459. @%:@ -----------------
  20460. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  20461. as_fn_exit ()
  20462. {
  20463. set +e
  20464. as_fn_set_status $1
  20465. exit $1
  20466. } @%:@ as_fn_exit
  20467. @%:@ as_fn_unset VAR
  20468. @%:@ ---------------
  20469. @%:@ Portably unset VAR.
  20470. as_fn_unset ()
  20471. {
  20472. { eval $1=; unset $1;}
  20473. }
  20474. as_unset=as_fn_unset
  20475. @%:@ as_fn_append VAR VALUE
  20476. @%:@ ----------------------
  20477. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  20478. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  20479. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  20480. @%:@ implementations.
  20481. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  20482. eval 'as_fn_append ()
  20483. {
  20484. eval $1+=\$2
  20485. }'
  20486. else
  20487. as_fn_append ()
  20488. {
  20489. eval $1=\$$1\$2
  20490. }
  20491. fi # as_fn_append
  20492. @%:@ as_fn_arith ARG...
  20493. @%:@ ------------------
  20494. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  20495. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  20496. @%:@ must be portable across @S|@(()) and expr.
  20497. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  20498. eval 'as_fn_arith ()
  20499. {
  20500. as_val=$(( $* ))
  20501. }'
  20502. else
  20503. as_fn_arith ()
  20504. {
  20505. as_val=`expr "$@" || test $? -eq 1`
  20506. }
  20507. fi # as_fn_arith
  20508. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20509. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20510. as_expr=expr
  20511. else
  20512. as_expr=false
  20513. fi
  20514. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20515. as_basename=basename
  20516. else
  20517. as_basename=false
  20518. fi
  20519. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20520. as_dirname=dirname
  20521. else
  20522. as_dirname=false
  20523. fi
  20524. as_me=`$as_basename -- "$0" ||
  20525. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20526. X"$0" : 'X\(//\)$' \| \
  20527. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20528. $as_echo X/"$0" |
  20529. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20530. s//\1/
  20531. q
  20532. }
  20533. /^X\/\(\/\/\)$/{
  20534. s//\1/
  20535. q
  20536. }
  20537. /^X\/\(\/\).*/{
  20538. s//\1/
  20539. q
  20540. }
  20541. s/.*/./; q'`
  20542. # Avoid depending upon Character Ranges.
  20543. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20544. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20545. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20546. as_cr_digits='0123456789'
  20547. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20548. ECHO_C= ECHO_N= ECHO_T=
  20549. case `echo -n x` in @%:@(((((
  20550. -n*)
  20551. case `echo 'xy\c'` in
  20552. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20553. xy) ECHO_C='\c';;
  20554. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  20555. ECHO_T=' ';;
  20556. esac;;
  20557. *)
  20558. ECHO_N='-n';;
  20559. esac
  20560. rm -f conf$$ conf$$.exe conf$$.file
  20561. if test -d conf$$.dir; then
  20562. rm -f conf$$.dir/conf$$.file
  20563. else
  20564. rm -f conf$$.dir
  20565. mkdir conf$$.dir 2>/dev/null
  20566. fi
  20567. if (echo >conf$$.file) 2>/dev/null; then
  20568. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20569. as_ln_s='ln -s'
  20570. # ... but there are two gotchas:
  20571. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20572. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20573. # In both cases, we have to default to `cp -pR'.
  20574. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20575. as_ln_s='cp -pR'
  20576. elif ln conf$$.file conf$$ 2>/dev/null; then
  20577. as_ln_s=ln
  20578. else
  20579. as_ln_s='cp -pR'
  20580. fi
  20581. else
  20582. as_ln_s='cp -pR'
  20583. fi
  20584. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20585. rmdir conf$$.dir 2>/dev/null
  20586. @%:@ as_fn_mkdir_p
  20587. @%:@ -------------
  20588. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  20589. as_fn_mkdir_p ()
  20590. {
  20591. case $as_dir in #(
  20592. -*) as_dir=./$as_dir;;
  20593. esac
  20594. test -d "$as_dir" || eval $as_mkdir_p || {
  20595. as_dirs=
  20596. while :; do
  20597. case $as_dir in #(
  20598. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20599. *) as_qdir=$as_dir;;
  20600. esac
  20601. as_dirs="'$as_qdir' $as_dirs"
  20602. as_dir=`$as_dirname -- "$as_dir" ||
  20603. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20604. X"$as_dir" : 'X\(//\)[^/]' \| \
  20605. X"$as_dir" : 'X\(//\)$' \| \
  20606. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20607. $as_echo X"$as_dir" |
  20608. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20609. s//\1/
  20610. q
  20611. }
  20612. /^X\(\/\/\)[^/].*/{
  20613. s//\1/
  20614. q
  20615. }
  20616. /^X\(\/\/\)$/{
  20617. s//\1/
  20618. q
  20619. }
  20620. /^X\(\/\).*/{
  20621. s//\1/
  20622. q
  20623. }
  20624. s/.*/./; q'`
  20625. test -d "$as_dir" && break
  20626. done
  20627. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20628. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  20629. } @%:@ as_fn_mkdir_p
  20630. if mkdir -p . 2>/dev/null; then
  20631. as_mkdir_p='mkdir -p "$as_dir"'
  20632. else
  20633. test -d ./-p && rmdir ./-p
  20634. as_mkdir_p=false
  20635. fi
  20636. @%:@ as_fn_executable_p FILE
  20637. @%:@ -----------------------
  20638. @%:@ Test if FILE is an executable regular file.
  20639. as_fn_executable_p ()
  20640. {
  20641. test -f "$1" && test -x "$1"
  20642. } @%:@ as_fn_executable_p
  20643. as_test_x='test -x'
  20644. as_executable_p=as_fn_executable_p
  20645. # Sed expression to map a string onto a valid CPP name.
  20646. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20647. # Sed expression to map a string onto a valid variable name.
  20648. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20649. exec 6>&1
  20650. ## ----------------------------------- ##
  20651. ## Main body of $CONFIG_STATUS script. ##
  20652. ## ----------------------------------- ##
  20653. _ASEOF
  20654. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  20655. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20656. # Save the log message, to keep $0 and so on meaningful, and to
  20657. # report actual input values of CONFIG_FILES etc. instead of their
  20658. # values after options handling.
  20659. ac_log="
  20660. This file was extended by $as_me, which was
  20661. generated by GNU Autoconf 2.69. Invocation command line was
  20662. CONFIG_FILES = $CONFIG_FILES
  20663. CONFIG_HEADERS = $CONFIG_HEADERS
  20664. CONFIG_LINKS = $CONFIG_LINKS
  20665. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20666. $ $0 $@
  20667. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20668. "
  20669. _ACEOF
  20670. case $ac_config_files in *"
  20671. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  20672. esac
  20673. case $ac_config_headers in *"
  20674. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  20675. esac
  20676. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20677. # Files that config.status was made for.
  20678. config_files="$ac_config_files"
  20679. config_headers="$ac_config_headers"
  20680. config_commands="$ac_config_commands"
  20681. _ACEOF
  20682. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20683. ac_cs_usage="\
  20684. \`$as_me' instantiates files and other configuration actions
  20685. from templates according to the current configuration. Unless the files
  20686. and actions are specified as TAGs, all are instantiated by default.
  20687. Usage: $0 [OPTION]... [TAG]...
  20688. -h, --help print this help, then exit
  20689. -V, --version print version number and configuration settings, then exit
  20690. --config print configuration, then exit
  20691. -q, --quiet, --silent
  20692. do not print progress messages
  20693. -d, --debug don't remove temporary files
  20694. --recheck update $as_me by reconfiguring in the same conditions
  20695. --file=FILE[:TEMPLATE]
  20696. instantiate the configuration file FILE
  20697. --header=FILE[:TEMPLATE]
  20698. instantiate the configuration header FILE
  20699. Configuration files:
  20700. $config_files
  20701. Configuration headers:
  20702. $config_headers
  20703. Configuration commands:
  20704. $config_commands
  20705. Report bugs to the package provider."
  20706. _ACEOF
  20707. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20708. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  20709. ac_cs_version="\\
  20710. config.status
  20711. configured by $0, generated by GNU Autoconf 2.69,
  20712. with options \\"\$ac_cs_config\\"
  20713. Copyright (C) 2012 Free Software Foundation, Inc.
  20714. This config.status script is free software; the Free Software Foundation
  20715. gives unlimited permission to copy, distribute and modify it."
  20716. ac_pwd='$ac_pwd'
  20717. srcdir='$srcdir'
  20718. INSTALL='$INSTALL'
  20719. AWK='$AWK'
  20720. test -n "\$AWK" || AWK=awk
  20721. _ACEOF
  20722. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20723. # The default lists apply if the user does not specify any file.
  20724. ac_need_defaults=:
  20725. while test $# != 0
  20726. do
  20727. case $1 in
  20728. --*=?*)
  20729. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20730. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20731. ac_shift=:
  20732. ;;
  20733. --*=)
  20734. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20735. ac_optarg=
  20736. ac_shift=:
  20737. ;;
  20738. *)
  20739. ac_option=$1
  20740. ac_optarg=$2
  20741. ac_shift=shift
  20742. ;;
  20743. esac
  20744. case $ac_option in
  20745. # Handling of the options.
  20746. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20747. ac_cs_recheck=: ;;
  20748. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20749. $as_echo "$ac_cs_version"; exit ;;
  20750. --config | --confi | --conf | --con | --co | --c )
  20751. $as_echo "$ac_cs_config"; exit ;;
  20752. --debug | --debu | --deb | --de | --d | -d )
  20753. debug=: ;;
  20754. --file | --fil | --fi | --f )
  20755. $ac_shift
  20756. case $ac_optarg in
  20757. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20758. '') as_fn_error $? "missing file argument" ;;
  20759. esac
  20760. as_fn_append CONFIG_FILES " '$ac_optarg'"
  20761. ac_need_defaults=false;;
  20762. --header | --heade | --head | --hea )
  20763. $ac_shift
  20764. case $ac_optarg in
  20765. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20766. esac
  20767. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  20768. ac_need_defaults=false;;
  20769. --he | --h)
  20770. # Conflict between --help and --header
  20771. as_fn_error $? "ambiguous option: \`$1'
  20772. Try \`$0 --help' for more information.";;
  20773. --help | --hel | -h )
  20774. $as_echo "$ac_cs_usage"; exit ;;
  20775. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20776. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20777. ac_cs_silent=: ;;
  20778. # This is an error.
  20779. -*) as_fn_error $? "unrecognized option: \`$1'
  20780. Try \`$0 --help' for more information." ;;
  20781. *) as_fn_append ac_config_targets " $1"
  20782. ac_need_defaults=false ;;
  20783. esac
  20784. shift
  20785. done
  20786. ac_configure_extra_args=
  20787. if $ac_cs_silent; then
  20788. exec 6>/dev/null
  20789. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20790. fi
  20791. _ACEOF
  20792. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20793. if \$ac_cs_recheck; then
  20794. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20795. shift
  20796. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  20797. CONFIG_SHELL='$SHELL'
  20798. export CONFIG_SHELL
  20799. exec "\$@"
  20800. fi
  20801. _ACEOF
  20802. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20803. exec 5>>config.log
  20804. {
  20805. echo
  20806. sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
  20807. @%:@@%:@ Running $as_me. @%:@@%:@
  20808. _ASBOX
  20809. $as_echo "$ac_log"
  20810. } >&5
  20811. _ACEOF
  20812. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20813. #
  20814. # INIT-COMMANDS
  20815. #
  20816. # The HP-UX ksh and POSIX shell print the target directory to stdout
  20817. # if CDPATH is set.
  20818. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20819. sed_quote_subst='$sed_quote_subst'
  20820. double_quote_subst='$double_quote_subst'
  20821. delay_variable_subst='$delay_variable_subst'
  20822. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  20823. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  20824. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  20825. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  20826. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  20827. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  20828. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  20829. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  20830. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  20831. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  20832. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  20833. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  20834. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  20835. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  20836. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  20837. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  20838. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  20839. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  20840. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  20841. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  20842. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  20843. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  20844. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  20845. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  20846. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  20847. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  20848. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  20849. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  20850. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  20851. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  20852. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  20853. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  20854. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  20855. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  20856. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  20857. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  20858. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  20859. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  20860. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  20861. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  20862. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  20863. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  20864. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  20865. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  20866. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  20867. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  20868. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20869. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20870. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  20871. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  20872. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  20873. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  20874. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  20875. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  20876. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  20877. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  20878. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  20879. 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"`'
  20880. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  20881. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  20882. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  20883. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  20884. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  20885. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  20886. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  20887. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  20888. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  20889. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  20890. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  20891. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  20892. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  20893. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  20894. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  20895. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  20896. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  20897. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  20898. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20899. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  20900. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  20901. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  20902. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  20903. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  20904. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  20905. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20906. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  20907. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20908. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  20909. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20910. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  20911. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20912. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20913. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  20914. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  20915. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  20916. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  20917. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  20918. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20919. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  20920. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  20921. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  20922. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  20923. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  20924. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  20925. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  20926. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  20927. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  20928. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  20929. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  20930. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  20931. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  20932. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  20933. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  20934. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20935. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  20936. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  20937. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  20938. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  20939. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  20940. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20941. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20942. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  20943. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  20944. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  20945. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  20946. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  20947. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  20948. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  20949. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  20950. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  20951. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  20952. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  20953. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  20954. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  20955. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  20956. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  20957. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  20958. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  20959. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  20960. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20961. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20962. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20963. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  20964. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  20965. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20966. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  20967. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  20968. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  20969. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  20970. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  20971. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  20972. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20973. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20974. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  20975. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20976. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20977. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20978. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20979. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20980. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20981. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  20982. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20983. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20984. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20985. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  20986. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  20987. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  20988. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  20989. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  20990. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  20991. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  20992. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  20993. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  20994. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20995. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20996. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20997. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20998. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20999. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21000. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21001. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21002. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21003. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21004. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21005. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21006. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21007. LTCC='$LTCC'
  21008. LTCFLAGS='$LTCFLAGS'
  21009. compiler='$compiler_DEFAULT'
  21010. # A function that is used when there is no print builtin or printf.
  21011. func_fallback_echo ()
  21012. {
  21013. eval 'cat <<_LTECHO_EOF
  21014. \$1
  21015. _LTECHO_EOF'
  21016. }
  21017. # Quote evaled strings.
  21018. for var in AS \
  21019. DLLTOOL \
  21020. OBJDUMP \
  21021. SHELL \
  21022. ECHO \
  21023. PATH_SEPARATOR \
  21024. SED \
  21025. GREP \
  21026. EGREP \
  21027. FGREP \
  21028. LD \
  21029. NM \
  21030. LN_S \
  21031. lt_SP2NL \
  21032. lt_NL2SP \
  21033. reload_flag \
  21034. deplibs_check_method \
  21035. file_magic_cmd \
  21036. file_magic_glob \
  21037. want_nocaseglob \
  21038. sharedlib_from_linklib_cmd \
  21039. AR \
  21040. AR_FLAGS \
  21041. archiver_list_spec \
  21042. STRIP \
  21043. RANLIB \
  21044. CC \
  21045. CFLAGS \
  21046. compiler \
  21047. lt_cv_sys_global_symbol_pipe \
  21048. lt_cv_sys_global_symbol_to_cdecl \
  21049. lt_cv_sys_global_symbol_to_c_name_address \
  21050. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21051. nm_file_list_spec \
  21052. lt_prog_compiler_no_builtin_flag \
  21053. lt_prog_compiler_pic \
  21054. lt_prog_compiler_wl \
  21055. lt_prog_compiler_static \
  21056. lt_cv_prog_compiler_c_o \
  21057. need_locks \
  21058. MANIFEST_TOOL \
  21059. DSYMUTIL \
  21060. NMEDIT \
  21061. LIPO \
  21062. OTOOL \
  21063. OTOOL64 \
  21064. shrext_cmds \
  21065. export_dynamic_flag_spec \
  21066. whole_archive_flag_spec \
  21067. compiler_needs_object \
  21068. with_gnu_ld \
  21069. allow_undefined_flag \
  21070. no_undefined_flag \
  21071. hardcode_libdir_flag_spec \
  21072. hardcode_libdir_separator \
  21073. exclude_expsyms \
  21074. include_expsyms \
  21075. file_list_spec \
  21076. variables_saved_for_relink \
  21077. libname_spec \
  21078. library_names_spec \
  21079. soname_spec \
  21080. install_override_mode \
  21081. finish_eval \
  21082. old_striplib \
  21083. striplib \
  21084. compiler_lib_search_dirs \
  21085. predep_objects \
  21086. postdep_objects \
  21087. predeps \
  21088. postdeps \
  21089. compiler_lib_search_path \
  21090. LD_CXX \
  21091. reload_flag_CXX \
  21092. compiler_CXX \
  21093. lt_prog_compiler_no_builtin_flag_CXX \
  21094. lt_prog_compiler_pic_CXX \
  21095. lt_prog_compiler_wl_CXX \
  21096. lt_prog_compiler_static_CXX \
  21097. lt_cv_prog_compiler_c_o_CXX \
  21098. export_dynamic_flag_spec_CXX \
  21099. whole_archive_flag_spec_CXX \
  21100. compiler_needs_object_CXX \
  21101. with_gnu_ld_CXX \
  21102. allow_undefined_flag_CXX \
  21103. no_undefined_flag_CXX \
  21104. hardcode_libdir_flag_spec_CXX \
  21105. hardcode_libdir_separator_CXX \
  21106. exclude_expsyms_CXX \
  21107. include_expsyms_CXX \
  21108. file_list_spec_CXX \
  21109. compiler_lib_search_dirs_CXX \
  21110. predep_objects_CXX \
  21111. postdep_objects_CXX \
  21112. predeps_CXX \
  21113. postdeps_CXX \
  21114. compiler_lib_search_path_CXX; do
  21115. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21116. *[\\\\\\\`\\"\\\$]*)
  21117. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  21118. ;;
  21119. *)
  21120. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21121. ;;
  21122. esac
  21123. done
  21124. # Double-quote double-evaled strings.
  21125. for var in reload_cmds \
  21126. old_postinstall_cmds \
  21127. old_postuninstall_cmds \
  21128. old_archive_cmds \
  21129. extract_expsyms_cmds \
  21130. old_archive_from_new_cmds \
  21131. old_archive_from_expsyms_cmds \
  21132. archive_cmds \
  21133. archive_expsym_cmds \
  21134. module_cmds \
  21135. module_expsym_cmds \
  21136. export_symbols_cmds \
  21137. prelink_cmds \
  21138. postlink_cmds \
  21139. postinstall_cmds \
  21140. postuninstall_cmds \
  21141. finish_cmds \
  21142. sys_lib_search_path_spec \
  21143. sys_lib_dlsearch_path_spec \
  21144. reload_cmds_CXX \
  21145. old_archive_cmds_CXX \
  21146. old_archive_from_new_cmds_CXX \
  21147. old_archive_from_expsyms_cmds_CXX \
  21148. archive_cmds_CXX \
  21149. archive_expsym_cmds_CXX \
  21150. module_cmds_CXX \
  21151. module_expsym_cmds_CXX \
  21152. export_symbols_cmds_CXX \
  21153. prelink_cmds_CXX \
  21154. postlink_cmds_CXX; do
  21155. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21156. *[\\\\\\\`\\"\\\$]*)
  21157. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  21158. ;;
  21159. *)
  21160. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21161. ;;
  21162. esac
  21163. done
  21164. ac_aux_dir='$ac_aux_dir'
  21165. xsi_shell='$xsi_shell'
  21166. lt_shell_append='$lt_shell_append'
  21167. # See if we are running on zsh, and set the options which allow our
  21168. # commands through without removal of \ escapes INIT.
  21169. if test -n "\${ZSH_VERSION+set}" ; then
  21170. setopt NO_GLOB_SUBST
  21171. fi
  21172. PACKAGE='$PACKAGE'
  21173. VERSION='$VERSION'
  21174. TIMESTAMP='$TIMESTAMP'
  21175. RM='$RM'
  21176. ofile='$ofile'
  21177. SUMMARY="$SUMMARY"
  21178. _ACEOF
  21179. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21180. # Handling of arguments.
  21181. for ac_config_target in $ac_config_targets
  21182. do
  21183. case $ac_config_target in
  21184. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  21185. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  21186. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  21187. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  21188. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  21189. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  21190. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  21191. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  21192. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  21193. esac
  21194. done
  21195. # If the user did not use the arguments to specify the items to instantiate,
  21196. # then the envvar interface is used. Set only those that are not.
  21197. # We use the long form for the default assignment because of an extremely
  21198. # bizarre bug on SunOS 4.1.3.
  21199. if $ac_need_defaults; then
  21200. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21201. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21202. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21203. fi
  21204. # Have a temporary directory for convenience. Make it in the build tree
  21205. # simply because there is no reason against having it here, and in addition,
  21206. # creating and moving files from /tmp can sometimes cause problems.
  21207. # Hook for its removal unless debugging.
  21208. # Note that there is a small window in which the directory will not be cleaned:
  21209. # after its creation but before its name has been assigned to `$tmp'.
  21210. $debug ||
  21211. {
  21212. tmp= ac_tmp=
  21213. trap 'exit_status=$?
  21214. : "${ac_tmp:=$tmp}"
  21215. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  21216. ' 0
  21217. trap 'as_fn_exit 1' 1 2 13 15
  21218. }
  21219. # Create a (secure) tmp directory for tmp files.
  21220. {
  21221. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21222. test -d "$tmp"
  21223. } ||
  21224. {
  21225. tmp=./conf$$-$RANDOM
  21226. (umask 077 && mkdir "$tmp")
  21227. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  21228. ac_tmp=$tmp
  21229. # Set up the scripts for CONFIG_FILES section.
  21230. # No need to generate them if there are no CONFIG_FILES.
  21231. # This happens for instance with `./config.status config.h'.
  21232. if test -n "$CONFIG_FILES"; then
  21233. ac_cr=`echo X | tr X '\015'`
  21234. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  21235. # But we know of no other shell where ac_cr would be empty at this
  21236. # point, so we can use a bashism as a fallback.
  21237. if test "x$ac_cr" = x; then
  21238. eval ac_cr=\$\'\\r\'
  21239. fi
  21240. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21241. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21242. ac_cs_awk_cr='\\r'
  21243. else
  21244. ac_cs_awk_cr=$ac_cr
  21245. fi
  21246. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  21247. _ACEOF
  21248. {
  21249. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21250. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21251. echo "_ACEOF"
  21252. } >conf$$subs.sh ||
  21253. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21254. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  21255. ac_delim='%!_!# '
  21256. for ac_last_try in false false false false false :; do
  21257. . ./conf$$subs.sh ||
  21258. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21259. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21260. if test $ac_delim_n = $ac_delim_num; then
  21261. break
  21262. elif $ac_last_try; then
  21263. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21264. else
  21265. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21266. fi
  21267. done
  21268. rm -f conf$$subs.sh
  21269. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21270. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  21271. _ACEOF
  21272. sed -n '
  21273. h
  21274. s/^/S["/; s/!.*/"]=/
  21275. p
  21276. g
  21277. s/^[^!]*!//
  21278. :repl
  21279. t repl
  21280. s/'"$ac_delim"'$//
  21281. t delim
  21282. :nl
  21283. h
  21284. s/\(.\{148\}\)..*/\1/
  21285. t more1
  21286. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21287. p
  21288. n
  21289. b repl
  21290. :more1
  21291. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21292. p
  21293. g
  21294. s/.\{148\}//
  21295. t nl
  21296. :delim
  21297. h
  21298. s/\(.\{148\}\)..*/\1/
  21299. t more2
  21300. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21301. p
  21302. b
  21303. :more2
  21304. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21305. p
  21306. g
  21307. s/.\{148\}//
  21308. t delim
  21309. ' <conf$$subs.awk | sed '
  21310. /^[^""]/{
  21311. N
  21312. s/\n//
  21313. }
  21314. ' >>$CONFIG_STATUS || ac_write_fail=1
  21315. rm -f conf$$subs.awk
  21316. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21317. _ACAWK
  21318. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  21319. for (key in S) S_is_set[key] = 1
  21320. FS = ""
  21321. }
  21322. {
  21323. line = $ 0
  21324. nfields = split(line, field, "@")
  21325. substed = 0
  21326. len = length(field[1])
  21327. for (i = 2; i < nfields; i++) {
  21328. key = field[i]
  21329. keylen = length(key)
  21330. if (S_is_set[key]) {
  21331. value = S[key]
  21332. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21333. len += length(value) + length(field[++i])
  21334. substed = 1
  21335. } else
  21336. len += 1 + keylen
  21337. }
  21338. print line
  21339. }
  21340. _ACAWK
  21341. _ACEOF
  21342. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21343. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21344. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21345. else
  21346. cat
  21347. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  21348. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  21349. _ACEOF
  21350. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  21351. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  21352. # trailing colons and then remove the whole line if VPATH becomes empty
  21353. # (actually we leave an empty line to preserve line numbers).
  21354. if test "x$srcdir" = x.; then
  21355. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  21356. h
  21357. s///
  21358. s/^/:/
  21359. s/[ ]*$/:/
  21360. s/:\$(srcdir):/:/g
  21361. s/:\${srcdir}:/:/g
  21362. s/:@srcdir@:/:/g
  21363. s/^:*//
  21364. s/:*$//
  21365. x
  21366. s/\(=[ ]*\).*/\1/
  21367. G
  21368. s/\n//
  21369. s/^[^=]*=[ ]*$//
  21370. }'
  21371. fi
  21372. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21373. fi # test -n "$CONFIG_FILES"
  21374. # Set up the scripts for CONFIG_HEADERS section.
  21375. # No need to generate them if there are no CONFIG_HEADERS.
  21376. # This happens for instance with `./config.status Makefile'.
  21377. if test -n "$CONFIG_HEADERS"; then
  21378. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  21379. BEGIN {
  21380. _ACEOF
  21381. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21382. # here-document in config.status, that substitutes the proper values into
  21383. # config.h.in to produce config.h.
  21384. # Create a delimiter string that does not exist in confdefs.h, to ease
  21385. # handling of long lines.
  21386. ac_delim='%!_!# '
  21387. for ac_last_try in false false :; do
  21388. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  21389. if test -z "$ac_tt"; then
  21390. break
  21391. elif $ac_last_try; then
  21392. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  21393. else
  21394. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21395. fi
  21396. done
  21397. # For the awk script, D is an array of macro values keyed by name,
  21398. # likewise P contains macro parameters if any. Preserve backslash
  21399. # newline sequences.
  21400. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21401. sed -n '
  21402. s/.\{148\}/&'"$ac_delim"'/g
  21403. t rset
  21404. :rset
  21405. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21406. t def
  21407. d
  21408. :def
  21409. s/\\$//
  21410. t bsnl
  21411. s/["\\]/\\&/g
  21412. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21413. D["\1"]=" \3"/p
  21414. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21415. d
  21416. :bsnl
  21417. s/["\\]/\\&/g
  21418. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21419. D["\1"]=" \3\\\\\\n"\\/p
  21420. t cont
  21421. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21422. t cont
  21423. d
  21424. :cont
  21425. n
  21426. s/.\{148\}/&'"$ac_delim"'/g
  21427. t clear
  21428. :clear
  21429. s/\\$//
  21430. t bsnlc
  21431. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21432. d
  21433. :bsnlc
  21434. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21435. b cont
  21436. ' <confdefs.h | sed '
  21437. s/'"$ac_delim"'/"\\\
  21438. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21439. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21440. for (key in D) D_is_set[key] = 1
  21441. FS = ""
  21442. }
  21443. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21444. line = \$ 0
  21445. split(line, arg, " ")
  21446. if (arg[1] == "#") {
  21447. defundef = arg[2]
  21448. mac1 = arg[3]
  21449. } else {
  21450. defundef = substr(arg[1], 2)
  21451. mac1 = arg[2]
  21452. }
  21453. split(mac1, mac2, "(") #)
  21454. macro = mac2[1]
  21455. prefix = substr(line, 1, index(line, defundef) - 1)
  21456. if (D_is_set[macro]) {
  21457. # Preserve the white space surrounding the "#".
  21458. print prefix "define", macro P[macro] D[macro]
  21459. next
  21460. } else {
  21461. # Replace #undef with comments. This is necessary, for example,
  21462. # in the case of _POSIX_SOURCE, which is predefined and required
  21463. # on some systems where configure will not decide to define it.
  21464. if (defundef == "undef") {
  21465. print "/*", prefix defundef, macro, "*/"
  21466. next
  21467. }
  21468. }
  21469. }
  21470. { print }
  21471. _ACAWK
  21472. _ACEOF
  21473. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21474. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  21475. fi # test -n "$CONFIG_HEADERS"
  21476. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21477. shift
  21478. for ac_tag
  21479. do
  21480. case $ac_tag in
  21481. :[FHLC]) ac_mode=$ac_tag; continue;;
  21482. esac
  21483. case $ac_mode$ac_tag in
  21484. :[FHL]*:*);;
  21485. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  21486. :[FH]-) ac_tag=-:-;;
  21487. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21488. esac
  21489. ac_save_IFS=$IFS
  21490. IFS=:
  21491. set x $ac_tag
  21492. IFS=$ac_save_IFS
  21493. shift
  21494. ac_file=$1
  21495. shift
  21496. case $ac_mode in
  21497. :L) ac_source=$1;;
  21498. :[FH])
  21499. ac_file_inputs=
  21500. for ac_f
  21501. do
  21502. case $ac_f in
  21503. -) ac_f="$ac_tmp/stdin";;
  21504. *) # Look for the file first in the build tree, then in the source tree
  21505. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21506. # because $ac_f cannot contain `:'.
  21507. test -f "$ac_f" ||
  21508. case $ac_f in
  21509. [\\/$]*) false;;
  21510. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21511. esac ||
  21512. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  21513. esac
  21514. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21515. as_fn_append ac_file_inputs " '$ac_f'"
  21516. done
  21517. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21518. # use $as_me), people would be surprised to read:
  21519. # /* config.h. Generated by config.status. */
  21520. configure_input='Generated from '`
  21521. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21522. `' by configure.'
  21523. if test x"$ac_file" != x-; then
  21524. configure_input="$ac_file. $configure_input"
  21525. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  21526. $as_echo "$as_me: creating $ac_file" >&6;}
  21527. fi
  21528. # Neutralize special characters interpreted by sed in replacement strings.
  21529. case $configure_input in #(
  21530. *\&* | *\|* | *\\* )
  21531. ac_sed_conf_input=`$as_echo "$configure_input" |
  21532. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21533. *) ac_sed_conf_input=$configure_input;;
  21534. esac
  21535. case $ac_tag in
  21536. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  21537. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  21538. esac
  21539. ;;
  21540. esac
  21541. ac_dir=`$as_dirname -- "$ac_file" ||
  21542. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21543. X"$ac_file" : 'X\(//\)[^/]' \| \
  21544. X"$ac_file" : 'X\(//\)$' \| \
  21545. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21546. $as_echo X"$ac_file" |
  21547. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21548. s//\1/
  21549. q
  21550. }
  21551. /^X\(\/\/\)[^/].*/{
  21552. s//\1/
  21553. q
  21554. }
  21555. /^X\(\/\/\)$/{
  21556. s//\1/
  21557. q
  21558. }
  21559. /^X\(\/\).*/{
  21560. s//\1/
  21561. q
  21562. }
  21563. s/.*/./; q'`
  21564. as_dir="$ac_dir"; as_fn_mkdir_p
  21565. ac_builddir=.
  21566. case "$ac_dir" in
  21567. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21568. *)
  21569. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21570. # A ".." for each directory in $ac_dir_suffix.
  21571. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21572. case $ac_top_builddir_sub in
  21573. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21574. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21575. esac ;;
  21576. esac
  21577. ac_abs_top_builddir=$ac_pwd
  21578. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21579. # for backward compatibility:
  21580. ac_top_builddir=$ac_top_build_prefix
  21581. case $srcdir in
  21582. .) # We are building in place.
  21583. ac_srcdir=.
  21584. ac_top_srcdir=$ac_top_builddir_sub
  21585. ac_abs_top_srcdir=$ac_pwd ;;
  21586. [\\/]* | ?:[\\/]* ) # Absolute name.
  21587. ac_srcdir=$srcdir$ac_dir_suffix;
  21588. ac_top_srcdir=$srcdir
  21589. ac_abs_top_srcdir=$srcdir ;;
  21590. *) # Relative name.
  21591. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21592. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21593. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21594. esac
  21595. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21596. case $ac_mode in
  21597. :F)
  21598. #
  21599. # CONFIG_FILE
  21600. #
  21601. case $INSTALL in
  21602. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21603. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21604. esac
  21605. _ACEOF
  21606. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21607. # If the template does not know about datarootdir, expand it.
  21608. # FIXME: This hack should be removed a few years after 2.60.
  21609. ac_datarootdir_hack=; ac_datarootdir_seen=
  21610. ac_sed_dataroot='
  21611. /datarootdir/ {
  21612. p
  21613. q
  21614. }
  21615. /@datadir@/p
  21616. /@docdir@/p
  21617. /@infodir@/p
  21618. /@localedir@/p
  21619. /@mandir@/p'
  21620. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21621. *datarootdir*) ac_datarootdir_seen=yes;;
  21622. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21623. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21624. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21625. _ACEOF
  21626. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21627. ac_datarootdir_hack='
  21628. s&@datadir@&$datadir&g
  21629. s&@docdir@&$docdir&g
  21630. s&@infodir@&$infodir&g
  21631. s&@localedir@&$localedir&g
  21632. s&@mandir@&$mandir&g
  21633. s&\\\${datarootdir}&$datarootdir&g' ;;
  21634. esac
  21635. _ACEOF
  21636. # Neutralize VPATH when `$srcdir' = `.'.
  21637. # Shell code in configure.ac might set extrasub.
  21638. # FIXME: do we really want to maintain this feature?
  21639. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21640. ac_sed_extra="$ac_vpsub
  21641. $extrasub
  21642. _ACEOF
  21643. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21644. :t
  21645. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21646. s|@configure_input@|$ac_sed_conf_input|;t t
  21647. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21648. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21649. s&@srcdir@&$ac_srcdir&;t t
  21650. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21651. s&@top_srcdir@&$ac_top_srcdir&;t t
  21652. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21653. s&@builddir@&$ac_builddir&;t t
  21654. s&@abs_builddir@&$ac_abs_builddir&;t t
  21655. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21656. s&@INSTALL@&$ac_INSTALL&;t t
  21657. $ac_datarootdir_hack
  21658. "
  21659. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  21660. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21661. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21662. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  21663. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  21664. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  21665. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21666. which seems to be undefined. Please make sure it is defined" >&5
  21667. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21668. which seems to be undefined. Please make sure it is defined" >&2;}
  21669. rm -f "$ac_tmp/stdin"
  21670. case $ac_file in
  21671. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  21672. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  21673. esac \
  21674. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21675. ;;
  21676. :H)
  21677. #
  21678. # CONFIG_HEADER
  21679. #
  21680. if test x"$ac_file" != x-; then
  21681. {
  21682. $as_echo "/* $configure_input */" \
  21683. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  21684. } >"$ac_tmp/config.h" \
  21685. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21686. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  21687. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  21688. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  21689. else
  21690. rm -f "$ac_file"
  21691. mv "$ac_tmp/config.h" "$ac_file" \
  21692. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21693. fi
  21694. else
  21695. $as_echo "/* $configure_input */" \
  21696. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  21697. || as_fn_error $? "could not create -" "$LINENO" 5
  21698. fi
  21699. ;;
  21700. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  21701. $as_echo "$as_me: executing $ac_file commands" >&6;}
  21702. ;;
  21703. esac
  21704. case $ac_file$ac_mode in
  21705. "libtool":C)
  21706. # See if we are running on zsh, and set the options which allow our
  21707. # commands through without removal of \ escapes.
  21708. if test -n "${ZSH_VERSION+set}" ; then
  21709. setopt NO_GLOB_SUBST
  21710. fi
  21711. cfgfile="${ofile}T"
  21712. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  21713. $RM "$cfgfile"
  21714. cat <<_LT_EOF >> "$cfgfile"
  21715. #! $SHELL
  21716. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  21717. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  21718. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  21719. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  21720. #
  21721. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  21722. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  21723. # Foundation, Inc.
  21724. # Written by Gordon Matzigkeit, 1996
  21725. #
  21726. # This file is part of GNU Libtool.
  21727. #
  21728. # GNU Libtool is free software; you can redistribute it and/or
  21729. # modify it under the terms of the GNU General Public License as
  21730. # published by the Free Software Foundation; either version 2 of
  21731. # the License, or (at your option) any later version.
  21732. #
  21733. # As a special exception to the GNU General Public License,
  21734. # if you distribute this file as part of a program or library that
  21735. # is built using GNU Libtool, you may include this file under the
  21736. # same distribution terms that you use for the rest of that program.
  21737. #
  21738. # GNU Libtool is distributed in the hope that it will be useful,
  21739. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21740. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21741. # GNU General Public License for more details.
  21742. #
  21743. # You should have received a copy of the GNU General Public License
  21744. # along with GNU Libtool; see the file COPYING. If not, a copy
  21745. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  21746. # obtained by writing to the Free Software Foundation, Inc.,
  21747. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21748. # The names of the tagged configurations supported by this script.
  21749. available_tags="CXX "
  21750. # ### BEGIN LIBTOOL CONFIG
  21751. # Which release of libtool.m4 was used?
  21752. macro_version=$macro_version
  21753. macro_revision=$macro_revision
  21754. # Assembler program.
  21755. AS=$lt_AS
  21756. # DLL creation program.
  21757. DLLTOOL=$lt_DLLTOOL
  21758. # Object dumper program.
  21759. OBJDUMP=$lt_OBJDUMP
  21760. # Whether or not to build shared libraries.
  21761. build_libtool_libs=$enable_shared
  21762. # Whether or not to build static libraries.
  21763. build_old_libs=$enable_static
  21764. # What type of objects to build.
  21765. pic_mode=$pic_mode
  21766. # Whether or not to optimize for fast installation.
  21767. fast_install=$enable_fast_install
  21768. # Shell to use when invoking shell scripts.
  21769. SHELL=$lt_SHELL
  21770. # An echo program that protects backslashes.
  21771. ECHO=$lt_ECHO
  21772. # The PATH separator for the build system.
  21773. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  21774. # The host system.
  21775. host_alias=$host_alias
  21776. host=$host
  21777. host_os=$host_os
  21778. # The build system.
  21779. build_alias=$build_alias
  21780. build=$build
  21781. build_os=$build_os
  21782. # A sed program that does not truncate output.
  21783. SED=$lt_SED
  21784. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  21785. Xsed="\$SED -e 1s/^X//"
  21786. # A grep program that handles long lines.
  21787. GREP=$lt_GREP
  21788. # An ERE matcher.
  21789. EGREP=$lt_EGREP
  21790. # A literal string matcher.
  21791. FGREP=$lt_FGREP
  21792. # A BSD- or MS-compatible name lister.
  21793. NM=$lt_NM
  21794. # Whether we need soft or hard links.
  21795. LN_S=$lt_LN_S
  21796. # What is the maximum length of a command?
  21797. max_cmd_len=$max_cmd_len
  21798. # Object file suffix (normally "o").
  21799. objext=$ac_objext
  21800. # Executable file suffix (normally "").
  21801. exeext=$exeext
  21802. # whether the shell understands "unset".
  21803. lt_unset=$lt_unset
  21804. # turn spaces into newlines.
  21805. SP2NL=$lt_lt_SP2NL
  21806. # turn newlines into spaces.
  21807. NL2SP=$lt_lt_NL2SP
  21808. # convert \$build file names to \$host format.
  21809. to_host_file_cmd=$lt_cv_to_host_file_cmd
  21810. # convert \$build files to toolchain format.
  21811. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  21812. # Method to check whether dependent libraries are shared objects.
  21813. deplibs_check_method=$lt_deplibs_check_method
  21814. # Command to use when deplibs_check_method = "file_magic".
  21815. file_magic_cmd=$lt_file_magic_cmd
  21816. # How to find potential files when deplibs_check_method = "file_magic".
  21817. file_magic_glob=$lt_file_magic_glob
  21818. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  21819. want_nocaseglob=$lt_want_nocaseglob
  21820. # Command to associate shared and link libraries.
  21821. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  21822. # The archiver.
  21823. AR=$lt_AR
  21824. # Flags to create an archive.
  21825. AR_FLAGS=$lt_AR_FLAGS
  21826. # How to feed a file listing to the archiver.
  21827. archiver_list_spec=$lt_archiver_list_spec
  21828. # A symbol stripping program.
  21829. STRIP=$lt_STRIP
  21830. # Commands used to install an old-style archive.
  21831. RANLIB=$lt_RANLIB
  21832. old_postinstall_cmds=$lt_old_postinstall_cmds
  21833. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  21834. # Whether to use a lock for old archive extraction.
  21835. lock_old_archive_extraction=$lock_old_archive_extraction
  21836. # A C compiler.
  21837. LTCC=$lt_CC
  21838. # LTCC compiler flags.
  21839. LTCFLAGS=$lt_CFLAGS
  21840. # Take the output of nm and produce a listing of raw symbols and C names.
  21841. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21842. # Transform the output of nm in a proper C declaration.
  21843. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21844. # Transform the output of nm in a C name address pair.
  21845. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21846. # Transform the output of nm in a C name address pair when lib prefix is needed.
  21847. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  21848. # Specify filename containing input files for \$NM.
  21849. nm_file_list_spec=$lt_nm_file_list_spec
  21850. # The root where to search for dependent libraries,and in which our libraries should be installed.
  21851. lt_sysroot=$lt_sysroot
  21852. # The name of the directory that contains temporary libtool files.
  21853. objdir=$objdir
  21854. # Used to examine libraries when file_magic_cmd begins with "file".
  21855. MAGIC_CMD=$MAGIC_CMD
  21856. # Must we lock files when doing compilation?
  21857. need_locks=$lt_need_locks
  21858. # Manifest tool.
  21859. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  21860. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  21861. DSYMUTIL=$lt_DSYMUTIL
  21862. # Tool to change global to local symbols on Mac OS X.
  21863. NMEDIT=$lt_NMEDIT
  21864. # Tool to manipulate fat objects and archives on Mac OS X.
  21865. LIPO=$lt_LIPO
  21866. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  21867. OTOOL=$lt_OTOOL
  21868. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  21869. OTOOL64=$lt_OTOOL64
  21870. # Old archive suffix (normally "a").
  21871. libext=$libext
  21872. # Shared library suffix (normally ".so").
  21873. shrext_cmds=$lt_shrext_cmds
  21874. # The commands to extract the exported symbol list from a shared archive.
  21875. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21876. # Variables whose values should be saved in libtool wrapper scripts and
  21877. # restored at link time.
  21878. variables_saved_for_relink=$lt_variables_saved_for_relink
  21879. # Do we need the "lib" prefix for modules?
  21880. need_lib_prefix=$need_lib_prefix
  21881. # Do we need a version for libraries?
  21882. need_version=$need_version
  21883. # Library versioning type.
  21884. version_type=$version_type
  21885. # Shared library runtime path variable.
  21886. runpath_var=$runpath_var
  21887. # Shared library path variable.
  21888. shlibpath_var=$shlibpath_var
  21889. # Is shlibpath searched before the hard-coded library search path?
  21890. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  21891. # Format of library name prefix.
  21892. libname_spec=$lt_libname_spec
  21893. # List of archive names. First name is the real one, the rest are links.
  21894. # The last name is the one that the linker finds with -lNAME
  21895. library_names_spec=$lt_library_names_spec
  21896. # The coded name of the library, if different from the real name.
  21897. soname_spec=$lt_soname_spec
  21898. # Permission mode override for installation of shared libraries.
  21899. install_override_mode=$lt_install_override_mode
  21900. # Command to use after installation of a shared archive.
  21901. postinstall_cmds=$lt_postinstall_cmds
  21902. # Command to use after uninstallation of a shared archive.
  21903. postuninstall_cmds=$lt_postuninstall_cmds
  21904. # Commands used to finish a libtool library installation in a directory.
  21905. finish_cmds=$lt_finish_cmds
  21906. # As "finish_cmds", except a single script fragment to be evaled but
  21907. # not shown.
  21908. finish_eval=$lt_finish_eval
  21909. # Whether we should hardcode library paths into libraries.
  21910. hardcode_into_libs=$hardcode_into_libs
  21911. # Compile-time system search path for libraries.
  21912. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  21913. # Run-time system search path for libraries.
  21914. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  21915. # Whether dlopen is supported.
  21916. dlopen_support=$enable_dlopen
  21917. # Whether dlopen of programs is supported.
  21918. dlopen_self=$enable_dlopen_self
  21919. # Whether dlopen of statically linked programs is supported.
  21920. dlopen_self_static=$enable_dlopen_self_static
  21921. # Commands to strip libraries.
  21922. old_striplib=$lt_old_striplib
  21923. striplib=$lt_striplib
  21924. # The linker used to build libraries.
  21925. LD=$lt_LD
  21926. # How to create reloadable object files.
  21927. reload_flag=$lt_reload_flag
  21928. reload_cmds=$lt_reload_cmds
  21929. # Commands used to build an old-style archive.
  21930. old_archive_cmds=$lt_old_archive_cmds
  21931. # A language specific compiler.
  21932. CC=$lt_compiler
  21933. # Is the compiler the GNU compiler?
  21934. with_gcc=$GCC
  21935. # Compiler flag to turn off builtin functions.
  21936. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  21937. # Additional compiler flags for building library objects.
  21938. pic_flag=$lt_lt_prog_compiler_pic
  21939. # How to pass a linker flag through the compiler.
  21940. wl=$lt_lt_prog_compiler_wl
  21941. # Compiler flag to prevent dynamic linking.
  21942. link_static_flag=$lt_lt_prog_compiler_static
  21943. # Does compiler simultaneously support -c and -o options?
  21944. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  21945. # Whether or not to add -lc for building shared libraries.
  21946. build_libtool_need_lc=$archive_cmds_need_lc
  21947. # Whether or not to disallow shared libs when runtime libs are static.
  21948. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  21949. # Compiler flag to allow reflexive dlopens.
  21950. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  21951. # Compiler flag to generate shared objects directly from archives.
  21952. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  21953. # Whether the compiler copes with passing no objects directly.
  21954. compiler_needs_object=$lt_compiler_needs_object
  21955. # Create an old-style archive from a shared archive.
  21956. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  21957. # Create a temporary old-style archive to link instead of a shared archive.
  21958. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  21959. # Commands used to build a shared archive.
  21960. archive_cmds=$lt_archive_cmds
  21961. archive_expsym_cmds=$lt_archive_expsym_cmds
  21962. # Commands used to build a loadable module if different from building
  21963. # a shared archive.
  21964. module_cmds=$lt_module_cmds
  21965. module_expsym_cmds=$lt_module_expsym_cmds
  21966. # Whether we are building with GNU ld or not.
  21967. with_gnu_ld=$lt_with_gnu_ld
  21968. # Flag that allows shared libraries with undefined symbols to be built.
  21969. allow_undefined_flag=$lt_allow_undefined_flag
  21970. # Flag that enforces no undefined symbols.
  21971. no_undefined_flag=$lt_no_undefined_flag
  21972. # Flag to hardcode \$libdir into a binary during linking.
  21973. # This must work even if \$libdir does not exist
  21974. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  21975. # Whether we need a single "-rpath" flag with a separated argument.
  21976. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  21977. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21978. # DIR into the resulting binary.
  21979. hardcode_direct=$hardcode_direct
  21980. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21981. # DIR into the resulting binary and the resulting library dependency is
  21982. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  21983. # library is relocated.
  21984. hardcode_direct_absolute=$hardcode_direct_absolute
  21985. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21986. # into the resulting binary.
  21987. hardcode_minus_L=$hardcode_minus_L
  21988. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21989. # into the resulting binary.
  21990. hardcode_shlibpath_var=$hardcode_shlibpath_var
  21991. # Set to "yes" if building a shared library automatically hardcodes DIR
  21992. # into the library and all subsequent libraries and executables linked
  21993. # against it.
  21994. hardcode_automatic=$hardcode_automatic
  21995. # Set to yes if linker adds runtime paths of dependent libraries
  21996. # to runtime path list.
  21997. inherit_rpath=$inherit_rpath
  21998. # Whether libtool must link a program against all its dependency libraries.
  21999. link_all_deplibs=$link_all_deplibs
  22000. # Set to "yes" if exported symbols are required.
  22001. always_export_symbols=$always_export_symbols
  22002. # The commands to list exported symbols.
  22003. export_symbols_cmds=$lt_export_symbols_cmds
  22004. # Symbols that should not be listed in the preloaded symbols.
  22005. exclude_expsyms=$lt_exclude_expsyms
  22006. # Symbols that must always be exported.
  22007. include_expsyms=$lt_include_expsyms
  22008. # Commands necessary for linking programs (against libraries) with templates.
  22009. prelink_cmds=$lt_prelink_cmds
  22010. # Commands necessary for finishing linking programs.
  22011. postlink_cmds=$lt_postlink_cmds
  22012. # Specify filename containing input files.
  22013. file_list_spec=$lt_file_list_spec
  22014. # How to hardcode a shared library path into an executable.
  22015. hardcode_action=$hardcode_action
  22016. # The directories searched by this compiler when creating a shared library.
  22017. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22018. # Dependencies to place before and after the objects being linked to
  22019. # create a shared library.
  22020. predep_objects=$lt_predep_objects
  22021. postdep_objects=$lt_postdep_objects
  22022. predeps=$lt_predeps
  22023. postdeps=$lt_postdeps
  22024. # The library search path used internally by the compiler when linking
  22025. # a shared library.
  22026. compiler_lib_search_path=$lt_compiler_lib_search_path
  22027. # ### END LIBTOOL CONFIG
  22028. _LT_EOF
  22029. case $host_os in
  22030. aix3*)
  22031. cat <<\_LT_EOF >> "$cfgfile"
  22032. # AIX sometimes has problems with the GCC collect2 program. For some
  22033. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22034. # vanish in a puff of smoke.
  22035. if test "X${COLLECT_NAMES+set}" != Xset; then
  22036. COLLECT_NAMES=
  22037. export COLLECT_NAMES
  22038. fi
  22039. _LT_EOF
  22040. ;;
  22041. esac
  22042. ltmain="$ac_aux_dir/ltmain.sh"
  22043. # We use sed instead of cat because bash on DJGPP gets confused if
  22044. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22045. # text mode, it properly converts lines to CR/LF. This bash problem
  22046. # is reportedly fixed, but why not run on old versions too?
  22047. sed '$q' "$ltmain" >> "$cfgfile" \
  22048. || (rm -f "$cfgfile"; exit 1)
  22049. if test x"$xsi_shell" = xyes; then
  22050. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22051. func_dirname ()\
  22052. {\
  22053. \ case ${1} in\
  22054. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22055. \ * ) func_dirname_result="${3}" ;;\
  22056. \ esac\
  22057. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22058. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22059. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22060. test 0 -eq $? || _lt_function_replace_fail=:
  22061. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22062. func_basename ()\
  22063. {\
  22064. \ func_basename_result="${1##*/}"\
  22065. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22066. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22067. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22068. test 0 -eq $? || _lt_function_replace_fail=:
  22069. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22070. func_dirname_and_basename ()\
  22071. {\
  22072. \ case ${1} in\
  22073. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22074. \ * ) func_dirname_result="${3}" ;;\
  22075. \ esac\
  22076. \ func_basename_result="${1##*/}"\
  22077. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22078. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22079. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22080. test 0 -eq $? || _lt_function_replace_fail=:
  22081. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22082. func_stripname ()\
  22083. {\
  22084. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22085. \ # positional parameters, so assign one to ordinary parameter first.\
  22086. \ func_stripname_result=${3}\
  22087. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22088. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22089. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22090. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22091. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22092. test 0 -eq $? || _lt_function_replace_fail=:
  22093. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22094. func_split_long_opt ()\
  22095. {\
  22096. \ func_split_long_opt_name=${1%%=*}\
  22097. \ func_split_long_opt_arg=${1#*=}\
  22098. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22099. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22100. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22101. test 0 -eq $? || _lt_function_replace_fail=:
  22102. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  22103. func_split_short_opt ()\
  22104. {\
  22105. \ func_split_short_opt_arg=${1#??}\
  22106. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  22107. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22108. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22109. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22110. test 0 -eq $? || _lt_function_replace_fail=:
  22111. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  22112. func_lo2o ()\
  22113. {\
  22114. \ case ${1} in\
  22115. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  22116. \ *) func_lo2o_result=${1} ;;\
  22117. \ esac\
  22118. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  22119. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22120. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22121. test 0 -eq $? || _lt_function_replace_fail=:
  22122. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  22123. func_xform ()\
  22124. {\
  22125. func_xform_result=${1%.*}.lo\
  22126. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  22127. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22128. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22129. test 0 -eq $? || _lt_function_replace_fail=:
  22130. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  22131. func_arith ()\
  22132. {\
  22133. func_arith_result=$(( $* ))\
  22134. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  22135. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22136. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22137. test 0 -eq $? || _lt_function_replace_fail=:
  22138. sed -e '/^func_len ()$/,/^} # func_len /c\
  22139. func_len ()\
  22140. {\
  22141. func_len_result=${#1}\
  22142. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  22143. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22144. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22145. test 0 -eq $? || _lt_function_replace_fail=:
  22146. fi
  22147. if test x"$lt_shell_append" = xyes; then
  22148. sed -e '/^func_append ()$/,/^} # func_append /c\
  22149. func_append ()\
  22150. {\
  22151. eval "${1}+=\\${2}"\
  22152. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  22153. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22154. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22155. test 0 -eq $? || _lt_function_replace_fail=:
  22156. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  22157. func_append_quoted ()\
  22158. {\
  22159. \ func_quote_for_eval "${2}"\
  22160. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  22161. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  22162. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22163. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22164. test 0 -eq $? || _lt_function_replace_fail=:
  22165. # Save a `func_append' function call where possible by direct use of '+='
  22166. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  22167. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22168. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22169. test 0 -eq $? || _lt_function_replace_fail=:
  22170. else
  22171. # Save a `func_append' function call even when '+=' is not available
  22172. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  22173. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22174. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22175. test 0 -eq $? || _lt_function_replace_fail=:
  22176. fi
  22177. if test x"$_lt_function_replace_fail" = x":"; then
  22178. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  22179. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  22180. fi
  22181. mv -f "$cfgfile" "$ofile" ||
  22182. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  22183. chmod +x "$ofile"
  22184. cat <<_LT_EOF >> "$ofile"
  22185. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  22186. # The linker used to build libraries.
  22187. LD=$lt_LD_CXX
  22188. # How to create reloadable object files.
  22189. reload_flag=$lt_reload_flag_CXX
  22190. reload_cmds=$lt_reload_cmds_CXX
  22191. # Commands used to build an old-style archive.
  22192. old_archive_cmds=$lt_old_archive_cmds_CXX
  22193. # A language specific compiler.
  22194. CC=$lt_compiler_CXX
  22195. # Is the compiler the GNU compiler?
  22196. with_gcc=$GCC_CXX
  22197. # Compiler flag to turn off builtin functions.
  22198. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  22199. # Additional compiler flags for building library objects.
  22200. pic_flag=$lt_lt_prog_compiler_pic_CXX
  22201. # How to pass a linker flag through the compiler.
  22202. wl=$lt_lt_prog_compiler_wl_CXX
  22203. # Compiler flag to prevent dynamic linking.
  22204. link_static_flag=$lt_lt_prog_compiler_static_CXX
  22205. # Does compiler simultaneously support -c and -o options?
  22206. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  22207. # Whether or not to add -lc for building shared libraries.
  22208. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  22209. # Whether or not to disallow shared libs when runtime libs are static.
  22210. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  22211. # Compiler flag to allow reflexive dlopens.
  22212. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  22213. # Compiler flag to generate shared objects directly from archives.
  22214. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  22215. # Whether the compiler copes with passing no objects directly.
  22216. compiler_needs_object=$lt_compiler_needs_object_CXX
  22217. # Create an old-style archive from a shared archive.
  22218. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  22219. # Create a temporary old-style archive to link instead of a shared archive.
  22220. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  22221. # Commands used to build a shared archive.
  22222. archive_cmds=$lt_archive_cmds_CXX
  22223. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  22224. # Commands used to build a loadable module if different from building
  22225. # a shared archive.
  22226. module_cmds=$lt_module_cmds_CXX
  22227. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  22228. # Whether we are building with GNU ld or not.
  22229. with_gnu_ld=$lt_with_gnu_ld_CXX
  22230. # Flag that allows shared libraries with undefined symbols to be built.
  22231. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  22232. # Flag that enforces no undefined symbols.
  22233. no_undefined_flag=$lt_no_undefined_flag_CXX
  22234. # Flag to hardcode \$libdir into a binary during linking.
  22235. # This must work even if \$libdir does not exist
  22236. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  22237. # Whether we need a single "-rpath" flag with a separated argument.
  22238. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  22239. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22240. # DIR into the resulting binary.
  22241. hardcode_direct=$hardcode_direct_CXX
  22242. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22243. # DIR into the resulting binary and the resulting library dependency is
  22244. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22245. # library is relocated.
  22246. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  22247. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22248. # into the resulting binary.
  22249. hardcode_minus_L=$hardcode_minus_L_CXX
  22250. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22251. # into the resulting binary.
  22252. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  22253. # Set to "yes" if building a shared library automatically hardcodes DIR
  22254. # into the library and all subsequent libraries and executables linked
  22255. # against it.
  22256. hardcode_automatic=$hardcode_automatic_CXX
  22257. # Set to yes if linker adds runtime paths of dependent libraries
  22258. # to runtime path list.
  22259. inherit_rpath=$inherit_rpath_CXX
  22260. # Whether libtool must link a program against all its dependency libraries.
  22261. link_all_deplibs=$link_all_deplibs_CXX
  22262. # Set to "yes" if exported symbols are required.
  22263. always_export_symbols=$always_export_symbols_CXX
  22264. # The commands to list exported symbols.
  22265. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  22266. # Symbols that should not be listed in the preloaded symbols.
  22267. exclude_expsyms=$lt_exclude_expsyms_CXX
  22268. # Symbols that must always be exported.
  22269. include_expsyms=$lt_include_expsyms_CXX
  22270. # Commands necessary for linking programs (against libraries) with templates.
  22271. prelink_cmds=$lt_prelink_cmds_CXX
  22272. # Commands necessary for finishing linking programs.
  22273. postlink_cmds=$lt_postlink_cmds_CXX
  22274. # Specify filename containing input files.
  22275. file_list_spec=$lt_file_list_spec_CXX
  22276. # How to hardcode a shared library path into an executable.
  22277. hardcode_action=$hardcode_action_CXX
  22278. # The directories searched by this compiler when creating a shared library.
  22279. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  22280. # Dependencies to place before and after the objects being linked to
  22281. # create a shared library.
  22282. predep_objects=$lt_predep_objects_CXX
  22283. postdep_objects=$lt_postdep_objects_CXX
  22284. predeps=$lt_predeps_CXX
  22285. postdeps=$lt_postdeps_CXX
  22286. # The library search path used internally by the compiler when linking
  22287. # a shared library.
  22288. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  22289. # ### END LIBTOOL TAG CONFIG: CXX
  22290. _LT_EOF
  22291. ;;
  22292. "sdl2_config":C) chmod a+x sdl2-config ;;
  22293. "summary":C) echo -en "$SUMMARY" ;;
  22294. esac
  22295. done # for ac_tag
  22296. as_fn_exit 0
  22297. _ACEOF
  22298. ac_clean_files=$ac_clean_files_save
  22299. test $ac_write_fail = 0 ||
  22300. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  22301. # configure is writing to config.log, and then calls config.status.
  22302. # config.status does its own redirection, appending to config.log.
  22303. # Unfortunately, on DOS this fails, as config.log is still kept open
  22304. # by configure, so config.status won't be able to write to it; its
  22305. # output is simply discarded. So we exec the FD to /dev/null,
  22306. # effectively closing config.log, so it can be properly (re)opened and
  22307. # appended to by config.status. When coming back to configure, we
  22308. # need to make the FD available again.
  22309. if test "$no_create" != yes; then
  22310. ac_cs_success=:
  22311. ac_config_status_args=
  22312. test "$silent" = yes &&
  22313. ac_config_status_args="$ac_config_status_args --quiet"
  22314. exec 5>/dev/null
  22315. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22316. exec 5>>config.log
  22317. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22318. # would make configure fail if this is the last instruction.
  22319. $ac_cs_success || as_fn_exit 1
  22320. fi
  22321. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22322. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22323. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22324. fi