PageRenderTime 57ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 2ms

/xfce4-power-manager-1.2.0/configure

#
Shell | 16889 lines | 16231 code | 279 blank | 379 comment | 393 complexity | ad2b61f1afc1805ed88c7d3acccba8e3 MD5 | raw file
Possible License(s): GPL-2.0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for xfce4-power-manager 1.2.0.
  4. #
  5. # Report bugs to <http://bugzilla.xfce.org/>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: http://bugzilla.xfce.org/ about your system, including
  260. $0: any error possibly output before this message. Then
  261. $0: install a modern shell, or manually run the script
  262. $0: under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='xfce4-power-manager'
  542. PACKAGE_TARNAME='xfce4-power-manager'
  543. PACKAGE_VERSION='1.2.0'
  544. PACKAGE_STRING='xfce4-power-manager 1.2.0'
  545. PACKAGE_BUGREPORT='http://bugzilla.xfce.org/'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_subst_vars='am__EXEEXT_FALSE
  583. am__EXEEXT_TRUE
  584. LTLIBOBJS
  585. LIBOBJS
  586. PLATFORM_LDFLAGS
  587. PLATFORM_CFLAGS
  588. PLATFORM_CPPFLAGS
  589. ENABLE_XML2PO_FALSE
  590. ENABLE_XML2PO_TRUE
  591. XML2PO
  592. HAVE_XSLTPROC_FALSE
  593. HAVE_XSLTPROC_TRUE
  594. XSLTPROC
  595. BUILD_PANEL_PLUGINS_FALSE
  596. BUILD_PANEL_PLUGINS_TRUE
  597. LIBXFCE4PANEL_REQUIRED_VERSION
  598. LIBXFCE4PANEL_LIBS
  599. LIBXFCE4PANEL_CFLAGS
  600. LIBXFCE4PANEL_VERSION
  601. DPMS_LIBS
  602. ENABLE_POLKIT_FALSE
  603. ENABLE_POLKIT_TRUE
  604. X11_REQUIRED_VERSION
  605. X11_LIBS
  606. X11_CFLAGS
  607. X11_VERSION
  608. XRANDR_REQUIRED_VERSION
  609. XRANDR_LIBS
  610. XRANDR_CFLAGS
  611. XRANDR_VERSION
  612. LIBNOTIFY_REQUIRED_VERSION
  613. LIBNOTIFY_LIBS
  614. LIBNOTIFY_CFLAGS
  615. LIBNOTIFY_VERSION
  616. LIBXFCE4UTIL_REQUIRED_VERSION
  617. LIBXFCE4UTIL_LIBS
  618. LIBXFCE4UTIL_CFLAGS
  619. LIBXFCE4UTIL_VERSION
  620. LIBXFCE4UI_REQUIRED_VERSION
  621. LIBXFCE4UI_LIBS
  622. LIBXFCE4UI_CFLAGS
  623. LIBXFCE4UI_VERSION
  624. XFCONF_REQUIRED_VERSION
  625. XFCONF_LIBS
  626. XFCONF_CFLAGS
  627. XFCONF_VERSION
  628. DBUS_GLIB_REQUIRED_VERSION
  629. DBUS_GLIB_LIBS
  630. DBUS_GLIB_CFLAGS
  631. DBUS_GLIB_VERSION
  632. DBUS_REQUIRED_VERSION
  633. DBUS_LIBS
  634. DBUS_CFLAGS
  635. DBUS_VERSION
  636. GMODULE_REQUIRED_VERSION
  637. GMODULE_LIBS
  638. GMODULE_CFLAGS
  639. GMODULE_VERSION
  640. GTHREAD_REQUIRED_VERSION
  641. GTHREAD_LIBS
  642. GTHREAD_CFLAGS
  643. GTHREAD_VERSION
  644. GOBJECT_REQUIRED_VERSION
  645. GOBJECT_LIBS
  646. GOBJECT_CFLAGS
  647. GOBJECT_VERSION
  648. GLIB_REQUIRED_VERSION
  649. GLIB_LIBS
  650. GLIB_CFLAGS
  651. GLIB_VERSION
  652. GTK_REQUIRED_VERSION
  653. GTK_LIBS
  654. GTK_CFLAGS
  655. GTK_VERSION
  656. PKG_CONFIG_LIBDIR
  657. PKG_CONFIG_PATH
  658. PKG_CONFIG
  659. XGETTEXT_ARGS
  660. MKINSTALLDIRS
  661. POSUB
  662. POFILES
  663. PO_IN_DATADIR_FALSE
  664. PO_IN_DATADIR_TRUE
  665. INTLLIBS
  666. INSTOBJEXT
  667. GMOFILES
  668. CATOBJEXT
  669. CATALOGS
  670. MSGFMT_OPTS
  671. GETTEXT_PACKAGE
  672. OTOOL64
  673. OTOOL
  674. LIPO
  675. NMEDIT
  676. DSYMUTIL
  677. MANIFEST_TOOL
  678. RANLIB
  679. ac_ct_AR
  680. AR
  681. DLLTOOL
  682. OBJDUMP
  683. LN_S
  684. NM
  685. ac_ct_DUMPBIN
  686. DUMPBIN
  687. LIBTOOL
  688. DATADIRNAME
  689. ALL_LINGUAS
  690. INTLTOOL_PERL
  691. GMSGFMT
  692. MSGFMT
  693. MSGMERGE
  694. XGETTEXT
  695. INTLTOOL_POLICY_RULE
  696. INTLTOOL_SERVICE_RULE
  697. INTLTOOL_THEME_RULE
  698. INTLTOOL_SCHEMAS_RULE
  699. INTLTOOL_CAVES_RULE
  700. INTLTOOL_XML_NOMERGE_RULE
  701. INTLTOOL_XML_RULE
  702. INTLTOOL_KBD_RULE
  703. INTLTOOL_XAM_RULE
  704. INTLTOOL_UI_RULE
  705. INTLTOOL_SOUNDLIST_RULE
  706. INTLTOOL_SHEET_RULE
  707. INTLTOOL_SERVER_RULE
  708. INTLTOOL_PONG_RULE
  709. INTLTOOL_OAF_RULE
  710. INTLTOOL_PROP_RULE
  711. INTLTOOL_KEYS_RULE
  712. INTLTOOL_DIRECTORY_RULE
  713. INTLTOOL_DESKTOP_RULE
  714. intltool__v_merge_options_0
  715. intltool__v_merge_options_
  716. INTLTOOL_V_MERGE_OPTIONS
  717. INTLTOOL__v_MERGE_0
  718. INTLTOOL__v_MERGE_
  719. INTLTOOL_V_MERGE
  720. INTLTOOL_EXTRACT
  721. INTLTOOL_MERGE
  722. INTLTOOL_UPDATE
  723. USE_NLS
  724. LD
  725. FGREP
  726. SED
  727. host_os
  728. host_vendor
  729. host_cpu
  730. host
  731. build_os
  732. build_vendor
  733. build_cpu
  734. build
  735. EGREP
  736. GREP
  737. CPP
  738. am__fastdepCC_FALSE
  739. am__fastdepCC_TRUE
  740. CCDEPMODE
  741. am__nodep
  742. AMDEPBACKSLASH
  743. AMDEP_FALSE
  744. AMDEP_TRUE
  745. am__quote
  746. am__include
  747. DEPDIR
  748. OBJEXT
  749. EXEEXT
  750. ac_ct_CC
  751. CPPFLAGS
  752. LDFLAGS
  753. CFLAGS
  754. CC
  755. AM_BACKSLASH
  756. AM_DEFAULT_VERBOSITY
  757. AM_DEFAULT_V
  758. AM_V
  759. MAINT
  760. MAINTAINER_MODE_FALSE
  761. MAINTAINER_MODE_TRUE
  762. am__untar
  763. am__tar
  764. AMTAR
  765. am__leading_dot
  766. SET_MAKE
  767. AWK
  768. mkdir_p
  769. MKDIR_P
  770. INSTALL_STRIP_PROGRAM
  771. STRIP
  772. install_sh
  773. MAKEINFO
  774. AUTOHEADER
  775. AUTOMAKE
  776. AUTOCONF
  777. ACLOCAL
  778. VERSION
  779. PACKAGE
  780. CYGPATH_W
  781. am__isrc
  782. INSTALL_DATA
  783. INSTALL_SCRIPT
  784. INSTALL_PROGRAM
  785. target_alias
  786. host_alias
  787. build_alias
  788. LIBS
  789. ECHO_T
  790. ECHO_N
  791. ECHO_C
  792. DEFS
  793. mandir
  794. localedir
  795. libdir
  796. psdir
  797. pdfdir
  798. dvidir
  799. htmldir
  800. infodir
  801. docdir
  802. oldincludedir
  803. includedir
  804. localstatedir
  805. sharedstatedir
  806. sysconfdir
  807. datadir
  808. datarootdir
  809. libexecdir
  810. sbindir
  811. bindir
  812. program_transform_name
  813. prefix
  814. exec_prefix
  815. PACKAGE_URL
  816. PACKAGE_BUGREPORT
  817. PACKAGE_STRING
  818. PACKAGE_VERSION
  819. PACKAGE_TARNAME
  820. PACKAGE_NAME
  821. PATH_SEPARATOR
  822. SHELL'
  823. ac_subst_files=''
  824. ac_user_opts='
  825. enable_option_checking
  826. enable_maintainer_mode
  827. enable_silent_rules
  828. enable_dependency_tracking
  829. with_gnu_ld
  830. enable_nls
  831. enable_static
  832. enable_shared
  833. with_pic
  834. enable_fast_install
  835. with_sysroot
  836. enable_libtool_lock
  837. with_locales_dir
  838. enable_polkit
  839. enable_dpms
  840. enable_network_manager
  841. enable_panel_plugins
  842. enable_xsltproc
  843. enable_xml2po
  844. enable_debug
  845. '
  846. ac_precious_vars='build_alias
  847. host_alias
  848. target_alias
  849. CC
  850. CFLAGS
  851. LDFLAGS
  852. LIBS
  853. CPPFLAGS
  854. CPP
  855. PKG_CONFIG
  856. PKG_CONFIG_PATH
  857. PKG_CONFIG_LIBDIR'
  858. # Initialize some variables set by options.
  859. ac_init_help=
  860. ac_init_version=false
  861. ac_unrecognized_opts=
  862. ac_unrecognized_sep=
  863. # The variables have the same names as the options, with
  864. # dashes changed to underlines.
  865. cache_file=/dev/null
  866. exec_prefix=NONE
  867. no_create=
  868. no_recursion=
  869. prefix=NONE
  870. program_prefix=NONE
  871. program_suffix=NONE
  872. program_transform_name=s,x,x,
  873. silent=
  874. site=
  875. srcdir=
  876. verbose=
  877. x_includes=NONE
  878. x_libraries=NONE
  879. # Installation directory options.
  880. # These are left unexpanded so users can "make install exec_prefix=/foo"
  881. # and all the variables that are supposed to be based on exec_prefix
  882. # by default will actually change.
  883. # Use braces instead of parens because sh, perl, etc. also accept them.
  884. # (The list follows the same order as the GNU Coding Standards.)
  885. bindir='${exec_prefix}/bin'
  886. sbindir='${exec_prefix}/sbin'
  887. libexecdir='${exec_prefix}/libexec'
  888. datarootdir='${prefix}/share'
  889. datadir='${datarootdir}'
  890. sysconfdir='${prefix}/etc'
  891. sharedstatedir='${prefix}/com'
  892. localstatedir='${prefix}/var'
  893. includedir='${prefix}/include'
  894. oldincludedir='/usr/include'
  895. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  896. infodir='${datarootdir}/info'
  897. htmldir='${docdir}'
  898. dvidir='${docdir}'
  899. pdfdir='${docdir}'
  900. psdir='${docdir}'
  901. libdir='${exec_prefix}/lib'
  902. localedir='${datarootdir}/locale'
  903. mandir='${datarootdir}/man'
  904. ac_prev=
  905. ac_dashdash=
  906. for ac_option
  907. do
  908. # If the previous option needs an argument, assign it.
  909. if test -n "$ac_prev"; then
  910. eval $ac_prev=\$ac_option
  911. ac_prev=
  912. continue
  913. fi
  914. case $ac_option in
  915. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  916. *=) ac_optarg= ;;
  917. *) ac_optarg=yes ;;
  918. esac
  919. # Accept the important Cygnus configure options, so we can diagnose typos.
  920. case $ac_dashdash$ac_option in
  921. --)
  922. ac_dashdash=yes ;;
  923. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  924. ac_prev=bindir ;;
  925. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  926. bindir=$ac_optarg ;;
  927. -build | --build | --buil | --bui | --bu)
  928. ac_prev=build_alias ;;
  929. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  930. build_alias=$ac_optarg ;;
  931. -cache-file | --cache-file | --cache-fil | --cache-fi \
  932. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  933. ac_prev=cache_file ;;
  934. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  935. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  936. cache_file=$ac_optarg ;;
  937. --config-cache | -C)
  938. cache_file=config.cache ;;
  939. -datadir | --datadir | --datadi | --datad)
  940. ac_prev=datadir ;;
  941. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  942. datadir=$ac_optarg ;;
  943. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  944. | --dataroo | --dataro | --datar)
  945. ac_prev=datarootdir ;;
  946. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  947. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  948. datarootdir=$ac_optarg ;;
  949. -disable-* | --disable-*)
  950. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  951. # Reject names that are not valid shell variable names.
  952. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  953. as_fn_error $? "invalid feature name: $ac_useropt"
  954. ac_useropt_orig=$ac_useropt
  955. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  956. case $ac_user_opts in
  957. *"
  958. "enable_$ac_useropt"
  959. "*) ;;
  960. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  961. ac_unrecognized_sep=', ';;
  962. esac
  963. eval enable_$ac_useropt=no ;;
  964. -docdir | --docdir | --docdi | --doc | --do)
  965. ac_prev=docdir ;;
  966. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  967. docdir=$ac_optarg ;;
  968. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  969. ac_prev=dvidir ;;
  970. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  971. dvidir=$ac_optarg ;;
  972. -enable-* | --enable-*)
  973. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  974. # Reject names that are not valid shell variable names.
  975. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  976. as_fn_error $? "invalid feature name: $ac_useropt"
  977. ac_useropt_orig=$ac_useropt
  978. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  979. case $ac_user_opts in
  980. *"
  981. "enable_$ac_useropt"
  982. "*) ;;
  983. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  984. ac_unrecognized_sep=', ';;
  985. esac
  986. eval enable_$ac_useropt=\$ac_optarg ;;
  987. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  988. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  989. | --exec | --exe | --ex)
  990. ac_prev=exec_prefix ;;
  991. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  992. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  993. | --exec=* | --exe=* | --ex=*)
  994. exec_prefix=$ac_optarg ;;
  995. -gas | --gas | --ga | --g)
  996. # Obsolete; use --with-gas.
  997. with_gas=yes ;;
  998. -help | --help | --hel | --he | -h)
  999. ac_init_help=long ;;
  1000. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1001. ac_init_help=recursive ;;
  1002. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1003. ac_init_help=short ;;
  1004. -host | --host | --hos | --ho)
  1005. ac_prev=host_alias ;;
  1006. -host=* | --host=* | --hos=* | --ho=*)
  1007. host_alias=$ac_optarg ;;
  1008. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1009. ac_prev=htmldir ;;
  1010. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1011. | --ht=*)
  1012. htmldir=$ac_optarg ;;
  1013. -includedir | --includedir | --includedi | --included | --include \
  1014. | --includ | --inclu | --incl | --inc)
  1015. ac_prev=includedir ;;
  1016. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1017. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1018. includedir=$ac_optarg ;;
  1019. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1020. ac_prev=infodir ;;
  1021. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1022. infodir=$ac_optarg ;;
  1023. -libdir | --libdir | --libdi | --libd)
  1024. ac_prev=libdir ;;
  1025. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1026. libdir=$ac_optarg ;;
  1027. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1028. | --libexe | --libex | --libe)
  1029. ac_prev=libexecdir ;;
  1030. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1031. | --libexe=* | --libex=* | --libe=*)
  1032. libexecdir=$ac_optarg ;;
  1033. -localedir | --localedir | --localedi | --localed | --locale)
  1034. ac_prev=localedir ;;
  1035. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1036. localedir=$ac_optarg ;;
  1037. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1038. | --localstate | --localstat | --localsta | --localst | --locals)
  1039. ac_prev=localstatedir ;;
  1040. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1041. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1042. localstatedir=$ac_optarg ;;
  1043. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1044. ac_prev=mandir ;;
  1045. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1046. mandir=$ac_optarg ;;
  1047. -nfp | --nfp | --nf)
  1048. # Obsolete; use --without-fp.
  1049. with_fp=no ;;
  1050. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1051. | --no-cr | --no-c | -n)
  1052. no_create=yes ;;
  1053. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1054. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1055. no_recursion=yes ;;
  1056. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1057. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1058. | --oldin | --oldi | --old | --ol | --o)
  1059. ac_prev=oldincludedir ;;
  1060. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1061. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1062. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1063. oldincludedir=$ac_optarg ;;
  1064. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1065. ac_prev=prefix ;;
  1066. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1067. prefix=$ac_optarg ;;
  1068. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1069. | --program-pre | --program-pr | --program-p)
  1070. ac_prev=program_prefix ;;
  1071. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1072. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1073. program_prefix=$ac_optarg ;;
  1074. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1075. | --program-suf | --program-su | --program-s)
  1076. ac_prev=program_suffix ;;
  1077. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1078. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1079. program_suffix=$ac_optarg ;;
  1080. -program-transform-name | --program-transform-name \
  1081. | --program-transform-nam | --program-transform-na \
  1082. | --program-transform-n | --program-transform- \
  1083. | --program-transform | --program-transfor \
  1084. | --program-transfo | --program-transf \
  1085. | --program-trans | --program-tran \
  1086. | --progr-tra | --program-tr | --program-t)
  1087. ac_prev=program_transform_name ;;
  1088. -program-transform-name=* | --program-transform-name=* \
  1089. | --program-transform-nam=* | --program-transform-na=* \
  1090. | --program-transform-n=* | --program-transform-=* \
  1091. | --program-transform=* | --program-transfor=* \
  1092. | --program-transfo=* | --program-transf=* \
  1093. | --program-trans=* | --program-tran=* \
  1094. | --progr-tra=* | --program-tr=* | --program-t=*)
  1095. program_transform_name=$ac_optarg ;;
  1096. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1097. ac_prev=pdfdir ;;
  1098. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1099. pdfdir=$ac_optarg ;;
  1100. -psdir | --psdir | --psdi | --psd | --ps)
  1101. ac_prev=psdir ;;
  1102. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1103. psdir=$ac_optarg ;;
  1104. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1105. | -silent | --silent | --silen | --sile | --sil)
  1106. silent=yes ;;
  1107. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1108. ac_prev=sbindir ;;
  1109. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1110. | --sbi=* | --sb=*)
  1111. sbindir=$ac_optarg ;;
  1112. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1113. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1114. | --sharedst | --shareds | --shared | --share | --shar \
  1115. | --sha | --sh)
  1116. ac_prev=sharedstatedir ;;
  1117. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1118. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1119. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1120. | --sha=* | --sh=*)
  1121. sharedstatedir=$ac_optarg ;;
  1122. -site | --site | --sit)
  1123. ac_prev=site ;;
  1124. -site=* | --site=* | --sit=*)
  1125. site=$ac_optarg ;;
  1126. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1127. ac_prev=srcdir ;;
  1128. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1129. srcdir=$ac_optarg ;;
  1130. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1131. | --syscon | --sysco | --sysc | --sys | --sy)
  1132. ac_prev=sysconfdir ;;
  1133. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1134. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1135. sysconfdir=$ac_optarg ;;
  1136. -target | --target | --targe | --targ | --tar | --ta | --t)
  1137. ac_prev=target_alias ;;
  1138. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1139. target_alias=$ac_optarg ;;
  1140. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1141. verbose=yes ;;
  1142. -version | --version | --versio | --versi | --vers | -V)
  1143. ac_init_version=: ;;
  1144. -with-* | --with-*)
  1145. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1146. # Reject names that are not valid shell variable names.
  1147. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1148. as_fn_error $? "invalid package name: $ac_useropt"
  1149. ac_useropt_orig=$ac_useropt
  1150. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1151. case $ac_user_opts in
  1152. *"
  1153. "with_$ac_useropt"
  1154. "*) ;;
  1155. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1156. ac_unrecognized_sep=', ';;
  1157. esac
  1158. eval with_$ac_useropt=\$ac_optarg ;;
  1159. -without-* | --without-*)
  1160. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1161. # Reject names that are not valid shell variable names.
  1162. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1163. as_fn_error $? "invalid package name: $ac_useropt"
  1164. ac_useropt_orig=$ac_useropt
  1165. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1166. case $ac_user_opts in
  1167. *"
  1168. "with_$ac_useropt"
  1169. "*) ;;
  1170. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1171. ac_unrecognized_sep=', ';;
  1172. esac
  1173. eval with_$ac_useropt=no ;;
  1174. --x)
  1175. # Obsolete; use --with-x.
  1176. with_x=yes ;;
  1177. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1178. | --x-incl | --x-inc | --x-in | --x-i)
  1179. ac_prev=x_includes ;;
  1180. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1181. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1182. x_includes=$ac_optarg ;;
  1183. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1184. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1185. ac_prev=x_libraries ;;
  1186. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1187. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1188. x_libraries=$ac_optarg ;;
  1189. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1190. Try \`$0 --help' for more information"
  1191. ;;
  1192. *=*)
  1193. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1194. # Reject names that are not valid shell variable names.
  1195. case $ac_envvar in #(
  1196. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1197. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1198. esac
  1199. eval $ac_envvar=\$ac_optarg
  1200. export $ac_envvar ;;
  1201. *)
  1202. # FIXME: should be removed in autoconf 3.0.
  1203. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1204. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1205. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1206. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1207. ;;
  1208. esac
  1209. done
  1210. if test -n "$ac_prev"; then
  1211. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1212. as_fn_error $? "missing argument to $ac_option"
  1213. fi
  1214. if test -n "$ac_unrecognized_opts"; then
  1215. case $enable_option_checking in
  1216. no) ;;
  1217. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1218. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1219. esac
  1220. fi
  1221. # Check all directory arguments for consistency.
  1222. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1223. datadir sysconfdir sharedstatedir localstatedir includedir \
  1224. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1225. libdir localedir mandir
  1226. do
  1227. eval ac_val=\$$ac_var
  1228. # Remove trailing slashes.
  1229. case $ac_val in
  1230. */ )
  1231. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1232. eval $ac_var=\$ac_val;;
  1233. esac
  1234. # Be sure to have absolute directory names.
  1235. case $ac_val in
  1236. [\\/$]* | ?:[\\/]* ) continue;;
  1237. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1238. esac
  1239. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1240. done
  1241. # There might be people who depend on the old broken behavior: `$host'
  1242. # used to hold the argument of --host etc.
  1243. # FIXME: To remove some day.
  1244. build=$build_alias
  1245. host=$host_alias
  1246. target=$target_alias
  1247. # FIXME: To remove some day.
  1248. if test "x$host_alias" != x; then
  1249. if test "x$build_alias" = x; then
  1250. cross_compiling=maybe
  1251. elif test "x$build_alias" != "x$host_alias"; then
  1252. cross_compiling=yes
  1253. fi
  1254. fi
  1255. ac_tool_prefix=
  1256. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1257. test "$silent" = yes && exec 6>/dev/null
  1258. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1259. ac_ls_di=`ls -di .` &&
  1260. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1261. as_fn_error $? "working directory cannot be determined"
  1262. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1263. as_fn_error $? "pwd does not report name of working directory"
  1264. # Find the source files, if location was not specified.
  1265. if test -z "$srcdir"; then
  1266. ac_srcdir_defaulted=yes
  1267. # Try the directory containing this script, then the parent directory.
  1268. ac_confdir=`$as_dirname -- "$as_myself" ||
  1269. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1270. X"$as_myself" : 'X\(//\)[^/]' \| \
  1271. X"$as_myself" : 'X\(//\)$' \| \
  1272. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1273. $as_echo X"$as_myself" |
  1274. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1275. s//\1/
  1276. q
  1277. }
  1278. /^X\(\/\/\)[^/].*/{
  1279. s//\1/
  1280. q
  1281. }
  1282. /^X\(\/\/\)$/{
  1283. s//\1/
  1284. q
  1285. }
  1286. /^X\(\/\).*/{
  1287. s//\1/
  1288. q
  1289. }
  1290. s/.*/./; q'`
  1291. srcdir=$ac_confdir
  1292. if test ! -r "$srcdir/$ac_unique_file"; then
  1293. srcdir=..
  1294. fi
  1295. else
  1296. ac_srcdir_defaulted=no
  1297. fi
  1298. if test ! -r "$srcdir/$ac_unique_file"; then
  1299. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1300. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1301. fi
  1302. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1303. ac_abs_confdir=`(
  1304. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1305. pwd)`
  1306. # When building in place, set srcdir=.
  1307. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1308. srcdir=.
  1309. fi
  1310. # Remove unnecessary trailing slashes from srcdir.
  1311. # Double slashes in file names in object file debugging info
  1312. # mess up M-x gdb in Emacs.
  1313. case $srcdir in
  1314. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1315. esac
  1316. for ac_var in $ac_precious_vars; do
  1317. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1318. eval ac_env_${ac_var}_value=\$${ac_var}
  1319. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1320. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1321. done
  1322. #
  1323. # Report the --help message.
  1324. #
  1325. if test "$ac_init_help" = "long"; then
  1326. # Omit some internal or obsolete options to make the list less imposing.
  1327. # This message is too long to be a string in the A/UX 3.1 sh.
  1328. cat <<_ACEOF
  1329. \`configure' configures xfce4-power-manager 1.2.0 to adapt to many kinds of systems.
  1330. Usage: $0 [OPTION]... [VAR=VALUE]...
  1331. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1332. VAR=VALUE. See below for descriptions of some of the useful variables.
  1333. Defaults for the options are specified in brackets.
  1334. Configuration:
  1335. -h, --help display this help and exit
  1336. --help=short display options specific to this package
  1337. --help=recursive display the short help of all the included packages
  1338. -V, --version display version information and exit
  1339. -q, --quiet, --silent do not print \`checking ...' messages
  1340. --cache-file=FILE cache test results in FILE [disabled]
  1341. -C, --config-cache alias for \`--cache-file=config.cache'
  1342. -n, --no-create do not create output files
  1343. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1344. Installation directories:
  1345. --prefix=PREFIX install architecture-independent files in PREFIX
  1346. [$ac_default_prefix]
  1347. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1348. [PREFIX]
  1349. By default, \`make install' will install all the files in
  1350. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1351. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1352. for instance \`--prefix=\$HOME'.
  1353. For better control, use the options below.
  1354. Fine tuning of the installation directories:
  1355. --bindir=DIR user executables [EPREFIX/bin]
  1356. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1357. --libexecdir=DIR program executables [EPREFIX/libexec]
  1358. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1359. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1360. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1361. --libdir=DIR object code libraries [EPREFIX/lib]
  1362. --includedir=DIR C header files [PREFIX/include]
  1363. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1364. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1365. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1366. --infodir=DIR info documentation [DATAROOTDIR/info]
  1367. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1368. --mandir=DIR man documentation [DATAROOTDIR/man]
  1369. --docdir=DIR documentation root
  1370. [DATAROOTDIR/doc/xfce4-power-manager]
  1371. --htmldir=DIR html documentation [DOCDIR]
  1372. --dvidir=DIR dvi documentation [DOCDIR]
  1373. --pdfdir=DIR pdf documentation [DOCDIR]
  1374. --psdir=DIR ps documentation [DOCDIR]
  1375. _ACEOF
  1376. cat <<\_ACEOF
  1377. Program names:
  1378. --program-prefix=PREFIX prepend PREFIX to installed program names
  1379. --program-suffix=SUFFIX append SUFFIX to installed program names
  1380. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1381. System types:
  1382. --build=BUILD configure for building on BUILD [guessed]
  1383. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1384. _ACEOF
  1385. fi
  1386. if test -n "$ac_init_help"; then
  1387. case $ac_init_help in
  1388. short | recursive ) echo "Configuration of xfce4-power-manager 1.2.0:";;
  1389. esac
  1390. cat <<\_ACEOF
  1391. Optional Features:
  1392. --disable-option-checking ignore unrecognized --enable/--with options
  1393. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1394. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1395. --enable-maintainer-mode enable make rules and dependencies not useful
  1396. (and sometimes confusing) to the casual installer
  1397. --enable-silent-rules less verbose build output (undo: `make V=1')
  1398. --disable-silent-rules verbose build output (undo: `make V=0')
  1399. --disable-dependency-tracking speeds up one-time build
  1400. --enable-dependency-tracking do not reject slow dependency extractors
  1401. --disable-nls do not use Native Language Support
  1402. --enable-static[=PKGS] build static libraries [default=no]
  1403. --enable-shared[=PKGS] build shared libraries [default=yes]
  1404. --enable-fast-install[=PKGS]
  1405. optimize for fast installation [default=yes]
  1406. --disable-libtool-lock avoid locking (might break parallel builds)
  1407. --disable-polkit Do not enable PolicyKit support (default=enabled)
  1408. --enable-dpms use dpms extension
  1409. --disable-dpms don't use dpms extension
  1410. --disable-network-manager
  1411. Disable network manager support
  1412. --disable-panel-plugins Do not build panel plugins (default=enabled)
  1413. --enable-xsltproc Use xsltproc to generate HTML documentation
  1414. [default=no]
  1415. --enable-xml2po Use xml2po to translate documentation [default=no]
  1416. --enable-debug[=no|minimum|yes|full]
  1417. Build with debugging support [default=[]]
  1418. --disable-debug Include no debugging support
  1419. Optional Packages:
  1420. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1421. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1422. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1423. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1424. both]
  1425. --with-sysroot=DIR Search for dependent libraries within DIR
  1426. (or the compiler's sysroot if not specified).
  1427. --with-locales-dir=DIR Install locales into DIR
  1428. Some influential environment variables:
  1429. CC C compiler command
  1430. CFLAGS C compiler flags
  1431. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1432. nonstandard directory <lib dir>
  1433. LIBS libraries to pass to the linker, e.g. -l<library>
  1434. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1435. you have headers in a nonstandard directory <include dir>
  1436. CPP C preprocessor
  1437. PKG_CONFIG path to pkg-config utility
  1438. PKG_CONFIG_PATH
  1439. directories to add to pkg-config's search path
  1440. PKG_CONFIG_LIBDIR
  1441. path overriding pkg-config's built-in search path
  1442. Use these variables to override the choices made by `configure' or to help
  1443. it to find libraries and programs with nonstandard names/locations.
  1444. Report bugs to <http://bugzilla.xfce.org/>.
  1445. _ACEOF
  1446. ac_status=$?
  1447. fi
  1448. if test "$ac_init_help" = "recursive"; then
  1449. # If there are subdirs, report their specific --help.
  1450. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1451. test -d "$ac_dir" ||
  1452. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1453. continue
  1454. ac_builddir=.
  1455. case "$ac_dir" in
  1456. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1457. *)
  1458. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1459. # A ".." for each directory in $ac_dir_suffix.
  1460. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1461. case $ac_top_builddir_sub in
  1462. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1463. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1464. esac ;;
  1465. esac
  1466. ac_abs_top_builddir=$ac_pwd
  1467. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1468. # for backward compatibility:
  1469. ac_top_builddir=$ac_top_build_prefix
  1470. case $srcdir in
  1471. .) # We are building in place.
  1472. ac_srcdir=.
  1473. ac_top_srcdir=$ac_top_builddir_sub
  1474. ac_abs_top_srcdir=$ac_pwd ;;
  1475. [\\/]* | ?:[\\/]* ) # Absolute name.
  1476. ac_srcdir=$srcdir$ac_dir_suffix;
  1477. ac_top_srcdir=$srcdir
  1478. ac_abs_top_srcdir=$srcdir ;;
  1479. *) # Relative name.
  1480. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1481. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1482. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1483. esac
  1484. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1485. cd "$ac_dir" || { ac_status=$?; continue; }
  1486. # Check for guested configure.
  1487. if test -f "$ac_srcdir/configure.gnu"; then
  1488. echo &&
  1489. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1490. elif test -f "$ac_srcdir/configure"; then
  1491. echo &&
  1492. $SHELL "$ac_srcdir/configure" --help=recursive
  1493. else
  1494. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1495. fi || ac_status=$?
  1496. cd "$ac_pwd" || { ac_status=$?; break; }
  1497. done
  1498. fi
  1499. test -n "$ac_init_help" && exit $ac_status
  1500. if $ac_init_version; then
  1501. cat <<\_ACEOF
  1502. xfce4-power-manager configure 1.2.0
  1503. generated by GNU Autoconf 2.69
  1504. Copyright (C) 2012 Free Software Foundation, Inc.
  1505. This configure script is free software; the Free Software Foundation
  1506. gives unlimited permission to copy, distribute and modify it.
  1507. _ACEOF
  1508. exit
  1509. fi
  1510. ## ------------------------ ##
  1511. ## Autoconf initialization. ##
  1512. ## ------------------------ ##
  1513. # ac_fn_c_try_compile LINENO
  1514. # --------------------------
  1515. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1516. ac_fn_c_try_compile ()
  1517. {
  1518. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1519. rm -f conftest.$ac_objext
  1520. if { { ac_try="$ac_compile"
  1521. case "(($ac_try" in
  1522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1523. *) ac_try_echo=$ac_try;;
  1524. esac
  1525. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1526. $as_echo "$ac_try_echo"; } >&5
  1527. (eval "$ac_compile") 2>conftest.err
  1528. ac_status=$?
  1529. if test -s conftest.err; then
  1530. grep -v '^ *+' conftest.err >conftest.er1
  1531. cat conftest.er1 >&5
  1532. mv -f conftest.er1 conftest.err
  1533. fi
  1534. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1535. test $ac_status = 0; } && {
  1536. test -z "$ac_c_werror_flag" ||
  1537. test ! -s conftest.err
  1538. } && test -s conftest.$ac_objext; then :
  1539. ac_retval=0
  1540. else
  1541. $as_echo "$as_me: failed program was:" >&5
  1542. sed 's/^/| /' conftest.$ac_ext >&5
  1543. ac_retval=1
  1544. fi
  1545. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1546. as_fn_set_status $ac_retval
  1547. } # ac_fn_c_try_compile
  1548. # ac_fn_c_try_cpp LINENO
  1549. # ----------------------
  1550. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1551. ac_fn_c_try_cpp ()
  1552. {
  1553. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1554. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1555. case "(($ac_try" in
  1556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1557. *) ac_try_echo=$ac_try;;
  1558. esac
  1559. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1560. $as_echo "$ac_try_echo"; } >&5
  1561. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1562. ac_status=$?
  1563. if test -s conftest.err; then
  1564. grep -v '^ *+' conftest.err >conftest.er1
  1565. cat conftest.er1 >&5
  1566. mv -f conftest.er1 conftest.err
  1567. fi
  1568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1569. test $ac_status = 0; } > conftest.i && {
  1570. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1571. test ! -s conftest.err
  1572. }; then :
  1573. ac_retval=0
  1574. else
  1575. $as_echo "$as_me: failed program was:" >&5
  1576. sed 's/^/| /' conftest.$ac_ext >&5
  1577. ac_retval=1
  1578. fi
  1579. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1580. as_fn_set_status $ac_retval
  1581. } # ac_fn_c_try_cpp
  1582. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1583. # -------------------------------------------------------
  1584. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1585. # the include files in INCLUDES and setting the cache variable VAR
  1586. # accordingly.
  1587. ac_fn_c_check_header_mongrel ()
  1588. {
  1589. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1590. if eval \${$3+:} false; then :
  1591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1592. $as_echo_n "checking for $2... " >&6; }
  1593. if eval \${$3+:} false; then :
  1594. $as_echo_n "(cached) " >&6
  1595. fi
  1596. eval ac_res=\$$3
  1597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1598. $as_echo "$ac_res" >&6; }
  1599. else
  1600. # Is the header compilable?
  1601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1602. $as_echo_n "checking $2 usability... " >&6; }
  1603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1604. /* end confdefs.h. */
  1605. $4
  1606. #include <$2>
  1607. _ACEOF
  1608. if ac_fn_c_try_compile "$LINENO"; then :
  1609. ac_header_compiler=yes
  1610. else
  1611. ac_header_compiler=no
  1612. fi
  1613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1615. $as_echo "$ac_header_compiler" >&6; }
  1616. # Is the header present?
  1617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1618. $as_echo_n "checking $2 presence... " >&6; }
  1619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1620. /* end confdefs.h. */
  1621. #include <$2>
  1622. _ACEOF
  1623. if ac_fn_c_try_cpp "$LINENO"; then :
  1624. ac_header_preproc=yes
  1625. else
  1626. ac_header_preproc=no
  1627. fi
  1628. rm -f conftest.err conftest.i conftest.$ac_ext
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1630. $as_echo "$ac_header_preproc" >&6; }
  1631. # So? What about this header?
  1632. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1633. yes:no: )
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1635. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1637. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1638. ;;
  1639. no:yes:* )
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1641. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1642. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1643. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1645. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1646. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1647. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1648. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1649. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1650. ( $as_echo "## ---------------------------------------- ##
  1651. ## Report this to http://bugzilla.xfce.org/ ##
  1652. ## ---------------------------------------- ##"
  1653. ) | sed "s/^/$as_me: WARNING: /" >&2
  1654. ;;
  1655. esac
  1656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1657. $as_echo_n "checking for $2... " >&6; }
  1658. if eval \${$3+:} false; then :
  1659. $as_echo_n "(cached) " >&6
  1660. else
  1661. eval "$3=\$ac_header_compiler"
  1662. fi
  1663. eval ac_res=\$$3
  1664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1665. $as_echo "$ac_res" >&6; }
  1666. fi
  1667. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1668. } # ac_fn_c_check_header_mongrel
  1669. # ac_fn_c_try_run LINENO
  1670. # ----------------------
  1671. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1672. # that executables *can* be run.
  1673. ac_fn_c_try_run ()
  1674. {
  1675. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1676. if { { ac_try="$ac_link"
  1677. case "(($ac_try" in
  1678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1679. *) ac_try_echo=$ac_try;;
  1680. esac
  1681. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1682. $as_echo "$ac_try_echo"; } >&5
  1683. (eval "$ac_link") 2>&5
  1684. ac_status=$?
  1685. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1686. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1687. { { case "(($ac_try" in
  1688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1689. *) ac_try_echo=$ac_try;;
  1690. esac
  1691. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1692. $as_echo "$ac_try_echo"; } >&5
  1693. (eval "$ac_try") 2>&5
  1694. ac_status=$?
  1695. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1696. test $ac_status = 0; }; }; then :
  1697. ac_retval=0
  1698. else
  1699. $as_echo "$as_me: program exited with status $ac_status" >&5
  1700. $as_echo "$as_me: failed program was:" >&5
  1701. sed 's/^/| /' conftest.$ac_ext >&5
  1702. ac_retval=$ac_status
  1703. fi
  1704. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1705. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1706. as_fn_set_status $ac_retval
  1707. } # ac_fn_c_try_run
  1708. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1709. # -------------------------------------------------------
  1710. # Tests whether HEADER exists and can be compiled using the include files in
  1711. # INCLUDES, setting the cache variable VAR accordingly.
  1712. ac_fn_c_check_header_compile ()
  1713. {
  1714. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1716. $as_echo_n "checking for $2... " >&6; }
  1717. if eval \${$3+:} false; then :
  1718. $as_echo_n "(cached) " >&6
  1719. else
  1720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1721. /* end confdefs.h. */
  1722. $4
  1723. #include <$2>
  1724. _ACEOF
  1725. if ac_fn_c_try_compile "$LINENO"; then :
  1726. eval "$3=yes"
  1727. else
  1728. eval "$3=no"
  1729. fi
  1730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1731. fi
  1732. eval ac_res=\$$3
  1733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1734. $as_echo "$ac_res" >&6; }
  1735. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1736. } # ac_fn_c_check_header_compile
  1737. # ac_fn_c_try_link LINENO
  1738. # -----------------------
  1739. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1740. ac_fn_c_try_link ()
  1741. {
  1742. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1743. rm -f conftest.$ac_objext conftest$ac_exeext
  1744. if { { ac_try="$ac_link"
  1745. case "(($ac_try" in
  1746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1747. *) ac_try_echo=$ac_try;;
  1748. esac
  1749. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1750. $as_echo "$ac_try_echo"; } >&5
  1751. (eval "$ac_link") 2>conftest.err
  1752. ac_status=$?
  1753. if test -s conftest.err; then
  1754. grep -v '^ *+' conftest.err >conftest.er1
  1755. cat conftest.er1 >&5
  1756. mv -f conftest.er1 conftest.err
  1757. fi
  1758. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1759. test $ac_status = 0; } && {
  1760. test -z "$ac_c_werror_flag" ||
  1761. test ! -s conftest.err
  1762. } && test -s conftest$ac_exeext && {
  1763. test "$cross_compiling" = yes ||
  1764. test -x conftest$ac_exeext
  1765. }; then :
  1766. ac_retval=0
  1767. else
  1768. $as_echo "$as_me: failed program was:" >&5
  1769. sed 's/^/| /' conftest.$ac_ext >&5
  1770. ac_retval=1
  1771. fi
  1772. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1773. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1774. # interfere with the next link command; also delete a directory that is
  1775. # left behind by Apple's compiler. We do this before executing the actions.
  1776. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1777. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1778. as_fn_set_status $ac_retval
  1779. } # ac_fn_c_try_link
  1780. # ac_fn_c_check_func LINENO FUNC VAR
  1781. # ----------------------------------
  1782. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1783. ac_fn_c_check_func ()
  1784. {
  1785. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1787. $as_echo_n "checking for $2... " >&6; }
  1788. if eval \${$3+:} false; then :
  1789. $as_echo_n "(cached) " >&6
  1790. else
  1791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1792. /* end confdefs.h. */
  1793. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1794. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1795. #define $2 innocuous_$2
  1796. /* System header to define __stub macros and hopefully few prototypes,
  1797. which can conflict with char $2 (); below.
  1798. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1799. <limits.h> exists even on freestanding compilers. */
  1800. #ifdef __STDC__
  1801. # include <limits.h>
  1802. #else
  1803. # include <assert.h>
  1804. #endif
  1805. #undef $2
  1806. /* Override any GCC internal prototype to avoid an error.
  1807. Use char because int might match the return type of a GCC
  1808. builtin and then its argument prototype would still apply. */
  1809. #ifdef __cplusplus
  1810. extern "C"
  1811. #endif
  1812. char $2 ();
  1813. /* The GNU C library defines this for functions which it implements
  1814. to always fail with ENOSYS. Some functions are actually named
  1815. something starting with __ and the normal name is an alias. */
  1816. #if defined __stub_$2 || defined __stub___$2
  1817. choke me
  1818. #endif
  1819. int
  1820. main ()
  1821. {
  1822. return $2 ();
  1823. ;
  1824. return 0;
  1825. }
  1826. _ACEOF
  1827. if ac_fn_c_try_link "$LINENO"; then :
  1828. eval "$3=yes"
  1829. else
  1830. eval "$3=no"
  1831. fi
  1832. rm -f core conftest.err conftest.$ac_objext \
  1833. conftest$ac_exeext conftest.$ac_ext
  1834. fi
  1835. eval ac_res=\$$3
  1836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1837. $as_echo "$ac_res" >&6; }
  1838. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1839. } # ac_fn_c_check_func
  1840. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1841. # ---------------------------------------------
  1842. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1843. # accordingly.
  1844. ac_fn_c_check_decl ()
  1845. {
  1846. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1847. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1848. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1850. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1851. if eval \${$3+:} false; then :
  1852. $as_echo_n "(cached) " >&6
  1853. else
  1854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1855. /* end confdefs.h. */
  1856. $4
  1857. int
  1858. main ()
  1859. {
  1860. #ifndef $as_decl_name
  1861. #ifdef __cplusplus
  1862. (void) $as_decl_use;
  1863. #else
  1864. (void) $as_decl_name;
  1865. #endif
  1866. #endif
  1867. ;
  1868. return 0;
  1869. }
  1870. _ACEOF
  1871. if ac_fn_c_try_compile "$LINENO"; then :
  1872. eval "$3=yes"
  1873. else
  1874. eval "$3=no"
  1875. fi
  1876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1877. fi
  1878. eval ac_res=\$$3
  1879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1880. $as_echo "$ac_res" >&6; }
  1881. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1882. } # ac_fn_c_check_decl
  1883. cat >config.log <<_ACEOF
  1884. This file contains any messages produced by compilers while
  1885. running configure, to aid debugging if configure makes a mistake.
  1886. It was created by xfce4-power-manager $as_me 1.2.0, which was
  1887. generated by GNU Autoconf 2.69. Invocation command line was
  1888. $ $0 $@
  1889. _ACEOF
  1890. exec 5>>config.log
  1891. {
  1892. cat <<_ASUNAME
  1893. ## --------- ##
  1894. ## Platform. ##
  1895. ## --------- ##
  1896. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1897. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1898. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1899. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1900. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1901. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1902. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1903. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1904. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1905. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1906. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1907. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1908. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1909. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1910. _ASUNAME
  1911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1912. for as_dir in $PATH
  1913. do
  1914. IFS=$as_save_IFS
  1915. test -z "$as_dir" && as_dir=.
  1916. $as_echo "PATH: $as_dir"
  1917. done
  1918. IFS=$as_save_IFS
  1919. } >&5
  1920. cat >&5 <<_ACEOF
  1921. ## ----------- ##
  1922. ## Core tests. ##
  1923. ## ----------- ##
  1924. _ACEOF
  1925. # Keep a trace of the command line.
  1926. # Strip out --no-create and --no-recursion so they do not pile up.
  1927. # Strip out --silent because we don't want to record it for future runs.
  1928. # Also quote any args containing shell meta-characters.
  1929. # Make two passes to allow for proper duplicate-argument suppression.
  1930. ac_configure_args=
  1931. ac_configure_args0=
  1932. ac_configure_args1=
  1933. ac_must_keep_next=false
  1934. for ac_pass in 1 2
  1935. do
  1936. for ac_arg
  1937. do
  1938. case $ac_arg in
  1939. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1940. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1941. | -silent | --silent | --silen | --sile | --sil)
  1942. continue ;;
  1943. *\'*)
  1944. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1945. esac
  1946. case $ac_pass in
  1947. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1948. 2)
  1949. as_fn_append ac_configure_args1 " '$ac_arg'"
  1950. if test $ac_must_keep_next = true; then
  1951. ac_must_keep_next=false # Got value, back to normal.
  1952. else
  1953. case $ac_arg in
  1954. *=* | --config-cache | -C | -disable-* | --disable-* \
  1955. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1956. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1957. | -with-* | --with-* | -without-* | --without-* | --x)
  1958. case "$ac_configure_args0 " in
  1959. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1960. esac
  1961. ;;
  1962. -* ) ac_must_keep_next=true ;;
  1963. esac
  1964. fi
  1965. as_fn_append ac_configure_args " '$ac_arg'"
  1966. ;;
  1967. esac
  1968. done
  1969. done
  1970. { ac_configure_args0=; unset ac_configure_args0;}
  1971. { ac_configure_args1=; unset ac_configure_args1;}
  1972. # When interrupted or exit'd, cleanup temporary files, and complete
  1973. # config.log. We remove comments because anyway the quotes in there
  1974. # would cause problems or look ugly.
  1975. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1976. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1977. trap 'exit_status=$?
  1978. # Save into config.log some information that might help in debugging.
  1979. {
  1980. echo
  1981. $as_echo "## ---------------- ##
  1982. ## Cache variables. ##
  1983. ## ---------------- ##"
  1984. echo
  1985. # The following way of writing the cache mishandles newlines in values,
  1986. (
  1987. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1988. eval ac_val=\$$ac_var
  1989. case $ac_val in #(
  1990. *${as_nl}*)
  1991. case $ac_var in #(
  1992. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1993. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1994. esac
  1995. case $ac_var in #(
  1996. _ | IFS | as_nl) ;; #(
  1997. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1998. *) { eval $ac_var=; unset $ac_var;} ;;
  1999. esac ;;
  2000. esac
  2001. done
  2002. (set) 2>&1 |
  2003. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2004. *${as_nl}ac_space=\ *)
  2005. sed -n \
  2006. "s/'\''/'\''\\\\'\'''\''/g;
  2007. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2008. ;; #(
  2009. *)
  2010. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2011. ;;
  2012. esac |
  2013. sort
  2014. )
  2015. echo
  2016. $as_echo "## ----------------- ##
  2017. ## Output variables. ##
  2018. ## ----------------- ##"
  2019. echo
  2020. for ac_var in $ac_subst_vars
  2021. do
  2022. eval ac_val=\$$ac_var
  2023. case $ac_val in
  2024. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2025. esac
  2026. $as_echo "$ac_var='\''$ac_val'\''"
  2027. done | sort
  2028. echo
  2029. if test -n "$ac_subst_files"; then
  2030. $as_echo "## ------------------- ##
  2031. ## File substitutions. ##
  2032. ## ------------------- ##"
  2033. echo
  2034. for ac_var in $ac_subst_files
  2035. do
  2036. eval ac_val=\$$ac_var
  2037. case $ac_val in
  2038. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2039. esac
  2040. $as_echo "$ac_var='\''$ac_val'\''"
  2041. done | sort
  2042. echo
  2043. fi
  2044. if test -s confdefs.h; then
  2045. $as_echo "## ----------- ##
  2046. ## confdefs.h. ##
  2047. ## ----------- ##"
  2048. echo
  2049. cat confdefs.h
  2050. echo
  2051. fi
  2052. test "$ac_signal" != 0 &&
  2053. $as_echo "$as_me: caught signal $ac_signal"
  2054. $as_echo "$as_me: exit $exit_status"
  2055. } >&5
  2056. rm -f core *.core core.conftest.* &&
  2057. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2058. exit $exit_status
  2059. ' 0
  2060. for ac_signal in 1 2 13 15; do
  2061. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2062. done
  2063. ac_signal=0
  2064. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2065. rm -f -r conftest* confdefs.h
  2066. $as_echo "/* confdefs.h */" > confdefs.h
  2067. # Predefined preprocessor variables.
  2068. cat >>confdefs.h <<_ACEOF
  2069. #define PACKAGE_NAME "$PACKAGE_NAME"
  2070. _ACEOF
  2071. cat >>confdefs.h <<_ACEOF
  2072. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2073. _ACEOF
  2074. cat >>confdefs.h <<_ACEOF
  2075. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2076. _ACEOF
  2077. cat >>confdefs.h <<_ACEOF
  2078. #define PACKAGE_STRING "$PACKAGE_STRING"
  2079. _ACEOF
  2080. cat >>confdefs.h <<_ACEOF
  2081. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2082. _ACEOF
  2083. cat >>confdefs.h <<_ACEOF
  2084. #define PACKAGE_URL "$PACKAGE_URL"
  2085. _ACEOF
  2086. # Let the site file select an alternate cache file if it wants to.
  2087. # Prefer an explicitly selected file to automatically selected ones.
  2088. ac_site_file1=NONE
  2089. ac_site_file2=NONE
  2090. if test -n "$CONFIG_SITE"; then
  2091. # We do not want a PATH search for config.site.
  2092. case $CONFIG_SITE in #((
  2093. -*) ac_site_file1=./$CONFIG_SITE;;
  2094. */*) ac_site_file1=$CONFIG_SITE;;
  2095. *) ac_site_file1=./$CONFIG_SITE;;
  2096. esac
  2097. elif test "x$prefix" != xNONE; then
  2098. ac_site_file1=$prefix/share/config.site
  2099. ac_site_file2=$prefix/etc/config.site
  2100. else
  2101. ac_site_file1=$ac_default_prefix/share/config.site
  2102. ac_site_file2=$ac_default_prefix/etc/config.site
  2103. fi
  2104. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2105. do
  2106. test "x$ac_site_file" = xNONE && continue
  2107. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2109. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2110. sed 's/^/| /' "$ac_site_file" >&5
  2111. . "$ac_site_file" \
  2112. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2113. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2114. as_fn_error $? "failed to load site script $ac_site_file
  2115. See \`config.log' for more details" "$LINENO" 5; }
  2116. fi
  2117. done
  2118. if test -r "$cache_file"; then
  2119. # Some versions of bash will fail to source /dev/null (special files
  2120. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2121. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2123. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2124. case $cache_file in
  2125. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2126. *) . "./$cache_file";;
  2127. esac
  2128. fi
  2129. else
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2131. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2132. >$cache_file
  2133. fi
  2134. # Check that the precious variables saved in the cache have kept the same
  2135. # value.
  2136. ac_cache_corrupted=false
  2137. for ac_var in $ac_precious_vars; do
  2138. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2139. eval ac_new_set=\$ac_env_${ac_var}_set
  2140. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2141. eval ac_new_val=\$ac_env_${ac_var}_value
  2142. case $ac_old_set,$ac_new_set in
  2143. set,)
  2144. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2145. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2146. ac_cache_corrupted=: ;;
  2147. ,set)
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2149. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2150. ac_cache_corrupted=: ;;
  2151. ,);;
  2152. *)
  2153. if test "x$ac_old_val" != "x$ac_new_val"; then
  2154. # differences in whitespace do not lead to failure.
  2155. ac_old_val_w=`echo x $ac_old_val`
  2156. ac_new_val_w=`echo x $ac_new_val`
  2157. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2158. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2159. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2160. ac_cache_corrupted=:
  2161. else
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2163. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2164. eval $ac_var=\$ac_old_val
  2165. fi
  2166. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2167. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2168. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2169. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2170. fi;;
  2171. esac
  2172. # Pass precious variables to config.status.
  2173. if test "$ac_new_set" = set; then
  2174. case $ac_new_val in
  2175. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2176. *) ac_arg=$ac_var=$ac_new_val ;;
  2177. esac
  2178. case " $ac_configure_args " in
  2179. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2180. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2181. esac
  2182. fi
  2183. done
  2184. if $ac_cache_corrupted; then
  2185. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2186. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2187. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2188. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2189. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2190. fi
  2191. ## -------------------- ##
  2192. ## Main body of script. ##
  2193. ## -------------------- ##
  2194. ac_ext=c
  2195. ac_cpp='$CPP $CPPFLAGS'
  2196. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2197. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2198. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2199. am__api_version='1.11'
  2200. ac_aux_dir=
  2201. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2202. if test -f "$ac_dir/install-sh"; then
  2203. ac_aux_dir=$ac_dir
  2204. ac_install_sh="$ac_aux_dir/install-sh -c"
  2205. break
  2206. elif test -f "$ac_dir/install.sh"; then
  2207. ac_aux_dir=$ac_dir
  2208. ac_install_sh="$ac_aux_dir/install.sh -c"
  2209. break
  2210. elif test -f "$ac_dir/shtool"; then
  2211. ac_aux_dir=$ac_dir
  2212. ac_install_sh="$ac_aux_dir/shtool install -c"
  2213. break
  2214. fi
  2215. done
  2216. if test -z "$ac_aux_dir"; then
  2217. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2218. fi
  2219. # These three variables are undocumented and unsupported,
  2220. # and are intended to be withdrawn in a future Autoconf release.
  2221. # They can cause serious problems if a builder's source tree is in a directory
  2222. # whose full name contains unusual characters.
  2223. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2224. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2225. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2226. # Find a good install program. We prefer a C program (faster),
  2227. # so one script is as good as another. But avoid the broken or
  2228. # incompatible versions:
  2229. # SysV /etc/install, /usr/sbin/install
  2230. # SunOS /usr/etc/install
  2231. # IRIX /sbin/install
  2232. # AIX /bin/install
  2233. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2234. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2235. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2236. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2237. # OS/2's system install, which has a completely different semantic
  2238. # ./install, which can be erroneously created by make from ./install.sh.
  2239. # Reject install programs that cannot install multiple files.
  2240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2241. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2242. if test -z "$INSTALL"; then
  2243. if ${ac_cv_path_install+:} false; then :
  2244. $as_echo_n "(cached) " >&6
  2245. else
  2246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2247. for as_dir in $PATH
  2248. do
  2249. IFS=$as_save_IFS
  2250. test -z "$as_dir" && as_dir=.
  2251. # Account for people who put trailing slashes in PATH elements.
  2252. case $as_dir/ in #((
  2253. ./ | .// | /[cC]/* | \
  2254. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2255. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2256. /usr/ucb/* ) ;;
  2257. *)
  2258. # OSF1 and SCO ODT 3.0 have their own names for install.
  2259. # Don't use installbsd from OSF since it installs stuff as root
  2260. # by default.
  2261. for ac_prog in ginstall scoinst install; do
  2262. for ac_exec_ext in '' $ac_executable_extensions; do
  2263. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2264. if test $ac_prog = install &&
  2265. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2266. # AIX install. It has an incompatible calling convention.
  2267. :
  2268. elif test $ac_prog = install &&
  2269. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2270. # program-specific install script used by HP pwplus--don't use.
  2271. :
  2272. else
  2273. rm -rf conftest.one conftest.two conftest.dir
  2274. echo one > conftest.one
  2275. echo two > conftest.two
  2276. mkdir conftest.dir
  2277. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2278. test -s conftest.one && test -s conftest.two &&
  2279. test -s conftest.dir/conftest.one &&
  2280. test -s conftest.dir/conftest.two
  2281. then
  2282. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2283. break 3
  2284. fi
  2285. fi
  2286. fi
  2287. done
  2288. done
  2289. ;;
  2290. esac
  2291. done
  2292. IFS=$as_save_IFS
  2293. rm -rf conftest.one conftest.two conftest.dir
  2294. fi
  2295. if test "${ac_cv_path_install+set}" = set; then
  2296. INSTALL=$ac_cv_path_install
  2297. else
  2298. # As a last resort, use the slow shell script. Don't cache a
  2299. # value for INSTALL within a source directory, because that will
  2300. # break other packages using the cache if that directory is
  2301. # removed, or if the value is a relative name.
  2302. INSTALL=$ac_install_sh
  2303. fi
  2304. fi
  2305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2306. $as_echo "$INSTALL" >&6; }
  2307. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2308. # It thinks the first close brace ends the variable substitution.
  2309. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2310. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2311. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2313. $as_echo_n "checking whether build environment is sane... " >&6; }
  2314. # Just in case
  2315. sleep 1
  2316. echo timestamp > conftest.file
  2317. # Reject unsafe characters in $srcdir or the absolute working directory
  2318. # name. Accept space and tab only in the latter.
  2319. am_lf='
  2320. '
  2321. case `pwd` in
  2322. *[\\\"\#\$\&\'\`$am_lf]*)
  2323. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2324. esac
  2325. case $srcdir in
  2326. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2327. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2328. esac
  2329. # Do `set' in a subshell so we don't clobber the current shell's
  2330. # arguments. Must try -L first in case configure is actually a
  2331. # symlink; some systems play weird games with the mod time of symlinks
  2332. # (eg FreeBSD returns the mod time of the symlink's containing
  2333. # directory).
  2334. if (
  2335. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2336. if test "$*" = "X"; then
  2337. # -L didn't work.
  2338. set X `ls -t "$srcdir/configure" conftest.file`
  2339. fi
  2340. rm -f conftest.file
  2341. if test "$*" != "X $srcdir/configure conftest.file" \
  2342. && test "$*" != "X conftest.file $srcdir/configure"; then
  2343. # If neither matched, then we have a broken ls. This can happen
  2344. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2345. # broken ls alias from the environment. This has actually
  2346. # happened. Such a system could not be considered "sane".
  2347. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2348. alias in your environment" "$LINENO" 5
  2349. fi
  2350. test "$2" = conftest.file
  2351. )
  2352. then
  2353. # Ok.
  2354. :
  2355. else
  2356. as_fn_error $? "newly created file is older than distributed files!
  2357. Check your system clock" "$LINENO" 5
  2358. fi
  2359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2360. $as_echo "yes" >&6; }
  2361. test "$program_prefix" != NONE &&
  2362. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2363. # Use a double $ so make ignores it.
  2364. test "$program_suffix" != NONE &&
  2365. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2366. # Double any \ or $.
  2367. # By default was `s,x,x', remove it if useless.
  2368. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2369. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2370. # expand $ac_aux_dir to an absolute path
  2371. am_aux_dir=`cd $ac_aux_dir && pwd`
  2372. if test x"${MISSING+set}" != xset; then
  2373. case $am_aux_dir in
  2374. *\ * | *\ *)
  2375. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2376. *)
  2377. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2378. esac
  2379. fi
  2380. # Use eval to expand $SHELL
  2381. if eval "$MISSING --run true"; then
  2382. am_missing_run="$MISSING --run "
  2383. else
  2384. am_missing_run=
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2386. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2387. fi
  2388. if test x"${install_sh}" != xset; then
  2389. case $am_aux_dir in
  2390. *\ * | *\ *)
  2391. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2392. *)
  2393. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2394. esac
  2395. fi
  2396. # Installed binaries are usually stripped using `strip' when the user
  2397. # run `make install-strip'. However `strip' might not be the right
  2398. # tool to use in cross-compilation environments, therefore Automake
  2399. # will honor the `STRIP' environment variable to overrule this program.
  2400. if test "$cross_compiling" != no; then
  2401. if test -n "$ac_tool_prefix"; then
  2402. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2403. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2405. $as_echo_n "checking for $ac_word... " >&6; }
  2406. if ${ac_cv_prog_STRIP+:} false; then :
  2407. $as_echo_n "(cached) " >&6
  2408. else
  2409. if test -n "$STRIP"; then
  2410. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2411. else
  2412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2413. for as_dir in $PATH
  2414. do
  2415. IFS=$as_save_IFS
  2416. test -z "$as_dir" && as_dir=.
  2417. for ac_exec_ext in '' $ac_executable_extensions; do
  2418. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2419. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2420. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2421. break 2
  2422. fi
  2423. done
  2424. done
  2425. IFS=$as_save_IFS
  2426. fi
  2427. fi
  2428. STRIP=$ac_cv_prog_STRIP
  2429. if test -n "$STRIP"; then
  2430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2431. $as_echo "$STRIP" >&6; }
  2432. else
  2433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2434. $as_echo "no" >&6; }
  2435. fi
  2436. fi
  2437. if test -z "$ac_cv_prog_STRIP"; then
  2438. ac_ct_STRIP=$STRIP
  2439. # Extract the first word of "strip", so it can be a program name with args.
  2440. set dummy strip; ac_word=$2
  2441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2442. $as_echo_n "checking for $ac_word... " >&6; }
  2443. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2444. $as_echo_n "(cached) " >&6
  2445. else
  2446. if test -n "$ac_ct_STRIP"; then
  2447. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2448. else
  2449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2450. for as_dir in $PATH
  2451. do
  2452. IFS=$as_save_IFS
  2453. test -z "$as_dir" && as_dir=.
  2454. for ac_exec_ext in '' $ac_executable_extensions; do
  2455. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2456. ac_cv_prog_ac_ct_STRIP="strip"
  2457. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2458. break 2
  2459. fi
  2460. done
  2461. done
  2462. IFS=$as_save_IFS
  2463. fi
  2464. fi
  2465. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2466. if test -n "$ac_ct_STRIP"; then
  2467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2468. $as_echo "$ac_ct_STRIP" >&6; }
  2469. else
  2470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2471. $as_echo "no" >&6; }
  2472. fi
  2473. if test "x$ac_ct_STRIP" = x; then
  2474. STRIP=":"
  2475. else
  2476. case $cross_compiling:$ac_tool_warned in
  2477. yes:)
  2478. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2479. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2480. ac_tool_warned=yes ;;
  2481. esac
  2482. STRIP=$ac_ct_STRIP
  2483. fi
  2484. else
  2485. STRIP="$ac_cv_prog_STRIP"
  2486. fi
  2487. fi
  2488. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2490. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2491. if test -z "$MKDIR_P"; then
  2492. if ${ac_cv_path_mkdir+:} false; then :
  2493. $as_echo_n "(cached) " >&6
  2494. else
  2495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2496. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2497. do
  2498. IFS=$as_save_IFS
  2499. test -z "$as_dir" && as_dir=.
  2500. for ac_prog in mkdir gmkdir; do
  2501. for ac_exec_ext in '' $ac_executable_extensions; do
  2502. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2503. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2504. 'mkdir (GNU coreutils) '* | \
  2505. 'mkdir (coreutils) '* | \
  2506. 'mkdir (fileutils) '4.1*)
  2507. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2508. break 3;;
  2509. esac
  2510. done
  2511. done
  2512. done
  2513. IFS=$as_save_IFS
  2514. fi
  2515. test -d ./--version && rmdir ./--version
  2516. if test "${ac_cv_path_mkdir+set}" = set; then
  2517. MKDIR_P="$ac_cv_path_mkdir -p"
  2518. else
  2519. # As a last resort, use the slow shell script. Don't cache a
  2520. # value for MKDIR_P within a source directory, because that will
  2521. # break other packages using the cache if that directory is
  2522. # removed, or if the value is a relative name.
  2523. MKDIR_P="$ac_install_sh -d"
  2524. fi
  2525. fi
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2527. $as_echo "$MKDIR_P" >&6; }
  2528. mkdir_p="$MKDIR_P"
  2529. case $mkdir_p in
  2530. [\\/$]* | ?:[\\/]*) ;;
  2531. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2532. esac
  2533. for ac_prog in gawk mawk nawk awk
  2534. do
  2535. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2536. set dummy $ac_prog; ac_word=$2
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2538. $as_echo_n "checking for $ac_word... " >&6; }
  2539. if ${ac_cv_prog_AWK+:} false; then :
  2540. $as_echo_n "(cached) " >&6
  2541. else
  2542. if test -n "$AWK"; then
  2543. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2544. else
  2545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2546. for as_dir in $PATH
  2547. do
  2548. IFS=$as_save_IFS
  2549. test -z "$as_dir" && as_dir=.
  2550. for ac_exec_ext in '' $ac_executable_extensions; do
  2551. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2552. ac_cv_prog_AWK="$ac_prog"
  2553. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2554. break 2
  2555. fi
  2556. done
  2557. done
  2558. IFS=$as_save_IFS
  2559. fi
  2560. fi
  2561. AWK=$ac_cv_prog_AWK
  2562. if test -n "$AWK"; then
  2563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2564. $as_echo "$AWK" >&6; }
  2565. else
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2567. $as_echo "no" >&6; }
  2568. fi
  2569. test -n "$AWK" && break
  2570. done
  2571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2572. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2573. set x ${MAKE-make}
  2574. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2575. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2576. $as_echo_n "(cached) " >&6
  2577. else
  2578. cat >conftest.make <<\_ACEOF
  2579. SHELL = /bin/sh
  2580. all:
  2581. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2582. _ACEOF
  2583. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2584. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2585. *@@@%%%=?*=@@@%%%*)
  2586. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2587. *)
  2588. eval ac_cv_prog_make_${ac_make}_set=no;;
  2589. esac
  2590. rm -f conftest.make
  2591. fi
  2592. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2594. $as_echo "yes" >&6; }
  2595. SET_MAKE=
  2596. else
  2597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2598. $as_echo "no" >&6; }
  2599. SET_MAKE="MAKE=${MAKE-make}"
  2600. fi
  2601. rm -rf .tst 2>/dev/null
  2602. mkdir .tst 2>/dev/null
  2603. if test -d .tst; then
  2604. am__leading_dot=.
  2605. else
  2606. am__leading_dot=_
  2607. fi
  2608. rmdir .tst 2>/dev/null
  2609. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2610. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2611. # is not polluted with repeated "-I."
  2612. am__isrc=' -I$(srcdir)'
  2613. # test to see if srcdir already configured
  2614. if test -f $srcdir/config.status; then
  2615. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2616. fi
  2617. fi
  2618. # test whether we have cygpath
  2619. if test -z "$CYGPATH_W"; then
  2620. if (cygpath --version) >/dev/null 2>/dev/null; then
  2621. CYGPATH_W='cygpath -w'
  2622. else
  2623. CYGPATH_W=echo
  2624. fi
  2625. fi
  2626. # Define the identity of the package.
  2627. PACKAGE='xfce4-power-manager'
  2628. VERSION='1.2.0'
  2629. cat >>confdefs.h <<_ACEOF
  2630. #define PACKAGE "$PACKAGE"
  2631. _ACEOF
  2632. cat >>confdefs.h <<_ACEOF
  2633. #define VERSION "$VERSION"
  2634. _ACEOF
  2635. # Some tools Automake needs.
  2636. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2637. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2638. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2639. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2640. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2641. # We need awk for the "check" target. The system "awk" is bad on
  2642. # some platforms.
  2643. # Always define AMTAR for backward compatibility. Yes, it's still used
  2644. # in the wild :-( We should find a proper way to deprecate it ...
  2645. AMTAR='$${TAR-tar}'
  2646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
  2647. $as_echo_n "checking how to create a ustar tar archive... " >&6; }
  2648. # Loop over all known methods to create a tar archive until one works.
  2649. _am_tools='gnutar plaintar pax cpio none'
  2650. _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
  2651. # Do not fold the above two line into one, because Tru64 sh and
  2652. # Solaris sh will not grok spaces in the rhs of `-'.
  2653. for _am_tool in $_am_tools
  2654. do
  2655. case $_am_tool in
  2656. gnutar)
  2657. for _am_tar in tar gnutar gtar;
  2658. do
  2659. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  2660. ($_am_tar --version) >&5 2>&5
  2661. ac_status=$?
  2662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2663. (exit $ac_status); } && break
  2664. done
  2665. am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
  2666. am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
  2667. am__untar="$_am_tar -xf -"
  2668. ;;
  2669. plaintar)
  2670. # Must skip GNU tar: if it does not support --format= it doesn't create
  2671. # ustar tarball either.
  2672. (tar --version) >/dev/null 2>&1 && continue
  2673. am__tar='tar chf - "$$tardir"'
  2674. am__tar_='tar chf - "$tardir"'
  2675. am__untar='tar xf -'
  2676. ;;
  2677. pax)
  2678. am__tar='pax -L -x ustar -w "$$tardir"'
  2679. am__tar_='pax -L -x ustar -w "$tardir"'
  2680. am__untar='pax -r'
  2681. ;;
  2682. cpio)
  2683. am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
  2684. am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
  2685. am__untar='cpio -i -H ustar -d'
  2686. ;;
  2687. none)
  2688. am__tar=false
  2689. am__tar_=false
  2690. am__untar=false
  2691. ;;
  2692. esac
  2693. # If the value was cached, stop now. We just wanted to have am__tar
  2694. # and am__untar set.
  2695. test -n "${am_cv_prog_tar_ustar}" && break
  2696. # tar/untar a dummy directory, and stop if the command works
  2697. rm -rf conftest.dir
  2698. mkdir conftest.dir
  2699. echo GrepMe > conftest.dir/file
  2700. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  2701. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  2702. ac_status=$?
  2703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2704. (exit $ac_status); }
  2705. rm -rf conftest.dir
  2706. if test -s conftest.tar; then
  2707. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  2708. ($am__untar <conftest.tar) >&5 2>&5
  2709. ac_status=$?
  2710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2711. (exit $ac_status); }
  2712. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  2713. fi
  2714. done
  2715. rm -rf conftest.dir
  2716. if ${am_cv_prog_tar_ustar+:} false; then :
  2717. $as_echo_n "(cached) " >&6
  2718. else
  2719. am_cv_prog_tar_ustar=$_am_tool
  2720. fi
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
  2722. $as_echo "$am_cv_prog_tar_ustar" >&6; }
  2723. ac_config_headers="$ac_config_headers config.h"
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2725. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2726. # Check whether --enable-maintainer-mode was given.
  2727. if test "${enable_maintainer_mode+set}" = set; then :
  2728. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2729. else
  2730. USE_MAINTAINER_MODE=no
  2731. fi
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2733. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2734. if test $USE_MAINTAINER_MODE = yes; then
  2735. MAINTAINER_MODE_TRUE=
  2736. MAINTAINER_MODE_FALSE='#'
  2737. else
  2738. MAINTAINER_MODE_TRUE='#'
  2739. MAINTAINER_MODE_FALSE=
  2740. fi
  2741. MAINT=$MAINTAINER_MODE_TRUE
  2742. # Check whether --enable-silent-rules was given.
  2743. if test "${enable_silent_rules+set}" = set; then :
  2744. enableval=$enable_silent_rules;
  2745. fi
  2746. case $enable_silent_rules in
  2747. yes) AM_DEFAULT_VERBOSITY=0;;
  2748. no) AM_DEFAULT_VERBOSITY=1;;
  2749. *) AM_DEFAULT_VERBOSITY=0;;
  2750. esac
  2751. am_make=${MAKE-make}
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2753. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2754. if ${am_cv_make_support_nested_variables+:} false; then :
  2755. $as_echo_n "(cached) " >&6
  2756. else
  2757. if $as_echo 'TRUE=$(BAR$(V))
  2758. BAR0=false
  2759. BAR1=true
  2760. V=1
  2761. am__doit:
  2762. @$(TRUE)
  2763. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2764. am_cv_make_support_nested_variables=yes
  2765. else
  2766. am_cv_make_support_nested_variables=no
  2767. fi
  2768. fi
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2770. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2771. if test $am_cv_make_support_nested_variables = yes; then
  2772. AM_V='$(V)'
  2773. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2774. else
  2775. AM_V=$AM_DEFAULT_VERBOSITY
  2776. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2777. fi
  2778. AM_BACKSLASH='\'
  2779. DEPDIR="${am__leading_dot}deps"
  2780. ac_config_commands="$ac_config_commands depfiles"
  2781. am_make=${MAKE-make}
  2782. cat > confinc << 'END'
  2783. am__doit:
  2784. @echo this is the am__doit target
  2785. .PHONY: am__doit
  2786. END
  2787. # If we don't find an include directive, just comment out the code.
  2788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2789. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2790. am__include="#"
  2791. am__quote=
  2792. _am_result=none
  2793. # First try GNU make style include.
  2794. echo "include confinc" > confmf
  2795. # Ignore all kinds of additional output from `make'.
  2796. case `$am_make -s -f confmf 2> /dev/null` in #(
  2797. *the\ am__doit\ target*)
  2798. am__include=include
  2799. am__quote=
  2800. _am_result=GNU
  2801. ;;
  2802. esac
  2803. # Now try BSD make style include.
  2804. if test "$am__include" = "#"; then
  2805. echo '.include "confinc"' > confmf
  2806. case `$am_make -s -f confmf 2> /dev/null` in #(
  2807. *the\ am__doit\ target*)
  2808. am__include=.include
  2809. am__quote="\""
  2810. _am_result=BSD
  2811. ;;
  2812. esac
  2813. fi
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2815. $as_echo "$_am_result" >&6; }
  2816. rm -f confinc confmf
  2817. # Check whether --enable-dependency-tracking was given.
  2818. if test "${enable_dependency_tracking+set}" = set; then :
  2819. enableval=$enable_dependency_tracking;
  2820. fi
  2821. if test "x$enable_dependency_tracking" != xno; then
  2822. am_depcomp="$ac_aux_dir/depcomp"
  2823. AMDEPBACKSLASH='\'
  2824. am__nodep='_no'
  2825. fi
  2826. if test "x$enable_dependency_tracking" != xno; then
  2827. AMDEP_TRUE=
  2828. AMDEP_FALSE='#'
  2829. else
  2830. AMDEP_TRUE='#'
  2831. AMDEP_FALSE=
  2832. fi
  2833. ac_ext=c
  2834. ac_cpp='$CPP $CPPFLAGS'
  2835. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2836. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2837. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2838. if test -n "$ac_tool_prefix"; then
  2839. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2840. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2842. $as_echo_n "checking for $ac_word... " >&6; }
  2843. if ${ac_cv_prog_CC+:} false; then :
  2844. $as_echo_n "(cached) " >&6
  2845. else
  2846. if test -n "$CC"; then
  2847. ac_cv_prog_CC="$CC" # Let the user override the test.
  2848. else
  2849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2850. for as_dir in $PATH
  2851. do
  2852. IFS=$as_save_IFS
  2853. test -z "$as_dir" && as_dir=.
  2854. for ac_exec_ext in '' $ac_executable_extensions; do
  2855. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2856. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2857. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2858. break 2
  2859. fi
  2860. done
  2861. done
  2862. IFS=$as_save_IFS
  2863. fi
  2864. fi
  2865. CC=$ac_cv_prog_CC
  2866. if test -n "$CC"; then
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2868. $as_echo "$CC" >&6; }
  2869. else
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2871. $as_echo "no" >&6; }
  2872. fi
  2873. fi
  2874. if test -z "$ac_cv_prog_CC"; then
  2875. ac_ct_CC=$CC
  2876. # Extract the first word of "gcc", so it can be a program name with args.
  2877. set dummy gcc; ac_word=$2
  2878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2879. $as_echo_n "checking for $ac_word... " >&6; }
  2880. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2881. $as_echo_n "(cached) " >&6
  2882. else
  2883. if test -n "$ac_ct_CC"; then
  2884. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2885. else
  2886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2887. for as_dir in $PATH
  2888. do
  2889. IFS=$as_save_IFS
  2890. test -z "$as_dir" && as_dir=.
  2891. for ac_exec_ext in '' $ac_executable_extensions; do
  2892. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2893. ac_cv_prog_ac_ct_CC="gcc"
  2894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2895. break 2
  2896. fi
  2897. done
  2898. done
  2899. IFS=$as_save_IFS
  2900. fi
  2901. fi
  2902. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2903. if test -n "$ac_ct_CC"; then
  2904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2905. $as_echo "$ac_ct_CC" >&6; }
  2906. else
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2908. $as_echo "no" >&6; }
  2909. fi
  2910. if test "x$ac_ct_CC" = x; then
  2911. CC=""
  2912. else
  2913. case $cross_compiling:$ac_tool_warned in
  2914. yes:)
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2916. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2917. ac_tool_warned=yes ;;
  2918. esac
  2919. CC=$ac_ct_CC
  2920. fi
  2921. else
  2922. CC="$ac_cv_prog_CC"
  2923. fi
  2924. if test -z "$CC"; then
  2925. if test -n "$ac_tool_prefix"; then
  2926. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2927. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2929. $as_echo_n "checking for $ac_word... " >&6; }
  2930. if ${ac_cv_prog_CC+:} false; then :
  2931. $as_echo_n "(cached) " >&6
  2932. else
  2933. if test -n "$CC"; then
  2934. ac_cv_prog_CC="$CC" # Let the user override the test.
  2935. else
  2936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2937. for as_dir in $PATH
  2938. do
  2939. IFS=$as_save_IFS
  2940. test -z "$as_dir" && as_dir=.
  2941. for ac_exec_ext in '' $ac_executable_extensions; do
  2942. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2943. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2944. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2945. break 2
  2946. fi
  2947. done
  2948. done
  2949. IFS=$as_save_IFS
  2950. fi
  2951. fi
  2952. CC=$ac_cv_prog_CC
  2953. if test -n "$CC"; then
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2955. $as_echo "$CC" >&6; }
  2956. else
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2958. $as_echo "no" >&6; }
  2959. fi
  2960. fi
  2961. fi
  2962. if test -z "$CC"; then
  2963. # Extract the first word of "cc", so it can be a program name with args.
  2964. set dummy cc; ac_word=$2
  2965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2966. $as_echo_n "checking for $ac_word... " >&6; }
  2967. if ${ac_cv_prog_CC+:} false; then :
  2968. $as_echo_n "(cached) " >&6
  2969. else
  2970. if test -n "$CC"; then
  2971. ac_cv_prog_CC="$CC" # Let the user override the test.
  2972. else
  2973. ac_prog_rejected=no
  2974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2975. for as_dir in $PATH
  2976. do
  2977. IFS=$as_save_IFS
  2978. test -z "$as_dir" && as_dir=.
  2979. for ac_exec_ext in '' $ac_executable_extensions; do
  2980. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2981. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2982. ac_prog_rejected=yes
  2983. continue
  2984. fi
  2985. ac_cv_prog_CC="cc"
  2986. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2987. break 2
  2988. fi
  2989. done
  2990. done
  2991. IFS=$as_save_IFS
  2992. if test $ac_prog_rejected = yes; then
  2993. # We found a bogon in the path, so make sure we never use it.
  2994. set dummy $ac_cv_prog_CC
  2995. shift
  2996. if test $# != 0; then
  2997. # We chose a different compiler from the bogus one.
  2998. # However, it has the same basename, so the bogon will be chosen
  2999. # first if we set CC to just the basename; use the full file name.
  3000. shift
  3001. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3002. fi
  3003. fi
  3004. fi
  3005. fi
  3006. CC=$ac_cv_prog_CC
  3007. if test -n "$CC"; then
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3009. $as_echo "$CC" >&6; }
  3010. else
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3012. $as_echo "no" >&6; }
  3013. fi
  3014. fi
  3015. if test -z "$CC"; then
  3016. if test -n "$ac_tool_prefix"; then
  3017. for ac_prog in cl.exe
  3018. do
  3019. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3020. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3022. $as_echo_n "checking for $ac_word... " >&6; }
  3023. if ${ac_cv_prog_CC+:} false; then :
  3024. $as_echo_n "(cached) " >&6
  3025. else
  3026. if test -n "$CC"; then
  3027. ac_cv_prog_CC="$CC" # Let the user override the test.
  3028. else
  3029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3030. for as_dir in $PATH
  3031. do
  3032. IFS=$as_save_IFS
  3033. test -z "$as_dir" && as_dir=.
  3034. for ac_exec_ext in '' $ac_executable_extensions; do
  3035. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3036. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3037. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3038. break 2
  3039. fi
  3040. done
  3041. done
  3042. IFS=$as_save_IFS
  3043. fi
  3044. fi
  3045. CC=$ac_cv_prog_CC
  3046. if test -n "$CC"; then
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3048. $as_echo "$CC" >&6; }
  3049. else
  3050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3051. $as_echo "no" >&6; }
  3052. fi
  3053. test -n "$CC" && break
  3054. done
  3055. fi
  3056. if test -z "$CC"; then
  3057. ac_ct_CC=$CC
  3058. for ac_prog in cl.exe
  3059. do
  3060. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3061. set dummy $ac_prog; ac_word=$2
  3062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3063. $as_echo_n "checking for $ac_word... " >&6; }
  3064. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3065. $as_echo_n "(cached) " >&6
  3066. else
  3067. if test -n "$ac_ct_CC"; then
  3068. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3069. else
  3070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3071. for as_dir in $PATH
  3072. do
  3073. IFS=$as_save_IFS
  3074. test -z "$as_dir" && as_dir=.
  3075. for ac_exec_ext in '' $ac_executable_extensions; do
  3076. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3077. ac_cv_prog_ac_ct_CC="$ac_prog"
  3078. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3079. break 2
  3080. fi
  3081. done
  3082. done
  3083. IFS=$as_save_IFS
  3084. fi
  3085. fi
  3086. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3087. if test -n "$ac_ct_CC"; then
  3088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3089. $as_echo "$ac_ct_CC" >&6; }
  3090. else
  3091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3092. $as_echo "no" >&6; }
  3093. fi
  3094. test -n "$ac_ct_CC" && break
  3095. done
  3096. if test "x$ac_ct_CC" = x; then
  3097. CC=""
  3098. else
  3099. case $cross_compiling:$ac_tool_warned in
  3100. yes:)
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3102. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3103. ac_tool_warned=yes ;;
  3104. esac
  3105. CC=$ac_ct_CC
  3106. fi
  3107. fi
  3108. fi
  3109. test -z "$CC" && { { $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 $? "no acceptable C compiler found in \$PATH
  3112. See \`config.log' for more details" "$LINENO" 5; }
  3113. # Provide some information about the compiler.
  3114. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3115. set X $ac_compile
  3116. ac_compiler=$2
  3117. for ac_option in --version -v -V -qversion; do
  3118. { { ac_try="$ac_compiler $ac_option >&5"
  3119. case "(($ac_try" in
  3120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3121. *) ac_try_echo=$ac_try;;
  3122. esac
  3123. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3124. $as_echo "$ac_try_echo"; } >&5
  3125. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3126. ac_status=$?
  3127. if test -s conftest.err; then
  3128. sed '10a\
  3129. ... rest of stderr output deleted ...
  3130. 10q' conftest.err >conftest.er1
  3131. cat conftest.er1 >&5
  3132. fi
  3133. rm -f conftest.er1 conftest.err
  3134. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3135. test $ac_status = 0; }
  3136. done
  3137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3138. /* end confdefs.h. */
  3139. int
  3140. main ()
  3141. {
  3142. ;
  3143. return 0;
  3144. }
  3145. _ACEOF
  3146. ac_clean_files_save=$ac_clean_files
  3147. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3148. # Try to create an executable without -o first, disregard a.out.
  3149. # It will help us diagnose broken compilers, and finding out an intuition
  3150. # of exeext.
  3151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3152. $as_echo_n "checking whether the C compiler works... " >&6; }
  3153. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3154. # The possible output files:
  3155. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3156. ac_rmfiles=
  3157. for ac_file in $ac_files
  3158. do
  3159. case $ac_file in
  3160. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3161. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3162. esac
  3163. done
  3164. rm -f $ac_rmfiles
  3165. if { { ac_try="$ac_link_default"
  3166. case "(($ac_try" in
  3167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3168. *) ac_try_echo=$ac_try;;
  3169. esac
  3170. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3171. $as_echo "$ac_try_echo"; } >&5
  3172. (eval "$ac_link_default") 2>&5
  3173. ac_status=$?
  3174. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3175. test $ac_status = 0; }; then :
  3176. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3177. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3178. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3179. # so that the user can short-circuit this test for compilers unknown to
  3180. # Autoconf.
  3181. for ac_file in $ac_files ''
  3182. do
  3183. test -f "$ac_file" || continue
  3184. case $ac_file in
  3185. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3186. ;;
  3187. [ab].out )
  3188. # We found the default executable, but exeext='' is most
  3189. # certainly right.
  3190. break;;
  3191. *.* )
  3192. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3193. then :; else
  3194. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3195. fi
  3196. # We set ac_cv_exeext here because the later test for it is not
  3197. # safe: cross compilers may not add the suffix if given an `-o'
  3198. # argument, so we may need to know it at that point already.
  3199. # Even if this section looks crufty: it has the advantage of
  3200. # actually working.
  3201. break;;
  3202. * )
  3203. break;;
  3204. esac
  3205. done
  3206. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3207. else
  3208. ac_file=''
  3209. fi
  3210. if test -z "$ac_file"; then :
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3212. $as_echo "no" >&6; }
  3213. $as_echo "$as_me: failed program was:" >&5
  3214. sed 's/^/| /' conftest.$ac_ext >&5
  3215. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3216. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3217. as_fn_error 77 "C compiler cannot create executables
  3218. See \`config.log' for more details" "$LINENO" 5; }
  3219. else
  3220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3221. $as_echo "yes" >&6; }
  3222. fi
  3223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3224. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3226. $as_echo "$ac_file" >&6; }
  3227. ac_exeext=$ac_cv_exeext
  3228. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3229. ac_clean_files=$ac_clean_files_save
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3231. $as_echo_n "checking for suffix of executables... " >&6; }
  3232. if { { ac_try="$ac_link"
  3233. case "(($ac_try" in
  3234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3235. *) ac_try_echo=$ac_try;;
  3236. esac
  3237. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3238. $as_echo "$ac_try_echo"; } >&5
  3239. (eval "$ac_link") 2>&5
  3240. ac_status=$?
  3241. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3242. test $ac_status = 0; }; then :
  3243. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3244. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3245. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3246. # `rm'.
  3247. for ac_file in conftest.exe conftest conftest.*; do
  3248. test -f "$ac_file" || continue
  3249. case $ac_file in
  3250. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3251. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3252. break;;
  3253. * ) break;;
  3254. esac
  3255. done
  3256. else
  3257. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3258. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3259. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3260. See \`config.log' for more details" "$LINENO" 5; }
  3261. fi
  3262. rm -f conftest conftest$ac_cv_exeext
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3264. $as_echo "$ac_cv_exeext" >&6; }
  3265. rm -f conftest.$ac_ext
  3266. EXEEXT=$ac_cv_exeext
  3267. ac_exeext=$EXEEXT
  3268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3269. /* end confdefs.h. */
  3270. #include <stdio.h>
  3271. int
  3272. main ()
  3273. {
  3274. FILE *f = fopen ("conftest.out", "w");
  3275. return ferror (f) || fclose (f) != 0;
  3276. ;
  3277. return 0;
  3278. }
  3279. _ACEOF
  3280. ac_clean_files="$ac_clean_files conftest.out"
  3281. # Check that the compiler produces executables we can run. If not, either
  3282. # the compiler is broken, or we cross compile.
  3283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3284. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3285. if test "$cross_compiling" != yes; then
  3286. { { ac_try="$ac_link"
  3287. case "(($ac_try" in
  3288. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3289. *) ac_try_echo=$ac_try;;
  3290. esac
  3291. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3292. $as_echo "$ac_try_echo"; } >&5
  3293. (eval "$ac_link") 2>&5
  3294. ac_status=$?
  3295. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3296. test $ac_status = 0; }
  3297. if { ac_try='./conftest$ac_cv_exeext'
  3298. { { case "(($ac_try" in
  3299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3300. *) ac_try_echo=$ac_try;;
  3301. esac
  3302. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3303. $as_echo "$ac_try_echo"; } >&5
  3304. (eval "$ac_try") 2>&5
  3305. ac_status=$?
  3306. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3307. test $ac_status = 0; }; }; then
  3308. cross_compiling=no
  3309. else
  3310. if test "$cross_compiling" = maybe; then
  3311. cross_compiling=yes
  3312. else
  3313. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3314. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3315. as_fn_error $? "cannot run C compiled programs.
  3316. If you meant to cross compile, use \`--host'.
  3317. See \`config.log' for more details" "$LINENO" 5; }
  3318. fi
  3319. fi
  3320. fi
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3322. $as_echo "$cross_compiling" >&6; }
  3323. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3324. ac_clean_files=$ac_clean_files_save
  3325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3326. $as_echo_n "checking for suffix of object files... " >&6; }
  3327. if ${ac_cv_objext+:} false; then :
  3328. $as_echo_n "(cached) " >&6
  3329. else
  3330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3331. /* end confdefs.h. */
  3332. int
  3333. main ()
  3334. {
  3335. ;
  3336. return 0;
  3337. }
  3338. _ACEOF
  3339. rm -f conftest.o conftest.obj
  3340. if { { ac_try="$ac_compile"
  3341. case "(($ac_try" in
  3342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3343. *) ac_try_echo=$ac_try;;
  3344. esac
  3345. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3346. $as_echo "$ac_try_echo"; } >&5
  3347. (eval "$ac_compile") 2>&5
  3348. ac_status=$?
  3349. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3350. test $ac_status = 0; }; then :
  3351. for ac_file in conftest.o conftest.obj conftest.*; do
  3352. test -f "$ac_file" || continue;
  3353. case $ac_file in
  3354. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3355. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3356. break;;
  3357. esac
  3358. done
  3359. else
  3360. $as_echo "$as_me: failed program was:" >&5
  3361. sed 's/^/| /' conftest.$ac_ext >&5
  3362. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3363. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3364. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3365. See \`config.log' for more details" "$LINENO" 5; }
  3366. fi
  3367. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3368. fi
  3369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3370. $as_echo "$ac_cv_objext" >&6; }
  3371. OBJEXT=$ac_cv_objext
  3372. ac_objext=$OBJEXT
  3373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3374. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3375. if ${ac_cv_c_compiler_gnu+:} false; then :
  3376. $as_echo_n "(cached) " >&6
  3377. else
  3378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3379. /* end confdefs.h. */
  3380. int
  3381. main ()
  3382. {
  3383. #ifndef __GNUC__
  3384. choke me
  3385. #endif
  3386. ;
  3387. return 0;
  3388. }
  3389. _ACEOF
  3390. if ac_fn_c_try_compile "$LINENO"; then :
  3391. ac_compiler_gnu=yes
  3392. else
  3393. ac_compiler_gnu=no
  3394. fi
  3395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3396. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3397. fi
  3398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3399. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3400. if test $ac_compiler_gnu = yes; then
  3401. GCC=yes
  3402. else
  3403. GCC=
  3404. fi
  3405. ac_test_CFLAGS=${CFLAGS+set}
  3406. ac_save_CFLAGS=$CFLAGS
  3407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3408. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3409. if ${ac_cv_prog_cc_g+:} false; then :
  3410. $as_echo_n "(cached) " >&6
  3411. else
  3412. ac_save_c_werror_flag=$ac_c_werror_flag
  3413. ac_c_werror_flag=yes
  3414. ac_cv_prog_cc_g=no
  3415. CFLAGS="-g"
  3416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3417. /* end confdefs.h. */
  3418. int
  3419. main ()
  3420. {
  3421. ;
  3422. return 0;
  3423. }
  3424. _ACEOF
  3425. if ac_fn_c_try_compile "$LINENO"; then :
  3426. ac_cv_prog_cc_g=yes
  3427. else
  3428. CFLAGS=""
  3429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3430. /* end confdefs.h. */
  3431. int
  3432. main ()
  3433. {
  3434. ;
  3435. return 0;
  3436. }
  3437. _ACEOF
  3438. if ac_fn_c_try_compile "$LINENO"; then :
  3439. else
  3440. ac_c_werror_flag=$ac_save_c_werror_flag
  3441. CFLAGS="-g"
  3442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3443. /* end confdefs.h. */
  3444. int
  3445. main ()
  3446. {
  3447. ;
  3448. return 0;
  3449. }
  3450. _ACEOF
  3451. if ac_fn_c_try_compile "$LINENO"; then :
  3452. ac_cv_prog_cc_g=yes
  3453. fi
  3454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3455. fi
  3456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3457. fi
  3458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3459. ac_c_werror_flag=$ac_save_c_werror_flag
  3460. fi
  3461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3462. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3463. if test "$ac_test_CFLAGS" = set; then
  3464. CFLAGS=$ac_save_CFLAGS
  3465. elif test $ac_cv_prog_cc_g = yes; then
  3466. if test "$GCC" = yes; then
  3467. CFLAGS="-g -O2"
  3468. else
  3469. CFLAGS="-g"
  3470. fi
  3471. else
  3472. if test "$GCC" = yes; then
  3473. CFLAGS="-O2"
  3474. else
  3475. CFLAGS=
  3476. fi
  3477. fi
  3478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3479. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3480. if ${ac_cv_prog_cc_c89+:} false; then :
  3481. $as_echo_n "(cached) " >&6
  3482. else
  3483. ac_cv_prog_cc_c89=no
  3484. ac_save_CC=$CC
  3485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3486. /* end confdefs.h. */
  3487. #include <stdarg.h>
  3488. #include <stdio.h>
  3489. struct stat;
  3490. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3491. struct buf { int x; };
  3492. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3493. static char *e (p, i)
  3494. char **p;
  3495. int i;
  3496. {
  3497. return p[i];
  3498. }
  3499. static char *f (char * (*g) (char **, int), char **p, ...)
  3500. {
  3501. char *s;
  3502. va_list v;
  3503. va_start (v,p);
  3504. s = g (p, va_arg (v,int));
  3505. va_end (v);
  3506. return s;
  3507. }
  3508. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3509. function prototypes and stuff, but not '\xHH' hex character constants.
  3510. These don't provoke an error unfortunately, instead are silently treated
  3511. as 'x'. The following induces an error, until -std is added to get
  3512. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3513. array size at least. It's necessary to write '\x00'==0 to get something
  3514. that's true only with -std. */
  3515. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3516. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3517. inside strings and character constants. */
  3518. #define FOO(x) 'x'
  3519. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3520. int test (int i, double x);
  3521. struct s1 {int (*f) (int a);};
  3522. struct s2 {int (*f) (double a);};
  3523. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3524. int argc;
  3525. char **argv;
  3526. int
  3527. main ()
  3528. {
  3529. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3530. ;
  3531. return 0;
  3532. }
  3533. _ACEOF
  3534. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3535. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3536. do
  3537. CC="$ac_save_CC $ac_arg"
  3538. if ac_fn_c_try_compile "$LINENO"; then :
  3539. ac_cv_prog_cc_c89=$ac_arg
  3540. fi
  3541. rm -f core conftest.err conftest.$ac_objext
  3542. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3543. done
  3544. rm -f conftest.$ac_ext
  3545. CC=$ac_save_CC
  3546. fi
  3547. # AC_CACHE_VAL
  3548. case "x$ac_cv_prog_cc_c89" in
  3549. x)
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3551. $as_echo "none needed" >&6; } ;;
  3552. xno)
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3554. $as_echo "unsupported" >&6; } ;;
  3555. *)
  3556. CC="$CC $ac_cv_prog_cc_c89"
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3558. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3559. esac
  3560. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3561. fi
  3562. ac_ext=c
  3563. ac_cpp='$CPP $CPPFLAGS'
  3564. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3565. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3566. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3567. depcc="$CC" am_compiler_list=
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3569. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3570. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3571. $as_echo_n "(cached) " >&6
  3572. else
  3573. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3574. # We make a subdir and do the tests there. Otherwise we can end up
  3575. # making bogus files that we don't know about and never remove. For
  3576. # instance it was reported that on HP-UX the gcc test will end up
  3577. # making a dummy file named `D' -- because `-MD' means `put the output
  3578. # in D'.
  3579. rm -rf conftest.dir
  3580. mkdir conftest.dir
  3581. # Copy depcomp to subdir because otherwise we won't find it if we're
  3582. # using a relative directory.
  3583. cp "$am_depcomp" conftest.dir
  3584. cd conftest.dir
  3585. # We will build objects and dependencies in a subdirectory because
  3586. # it helps to detect inapplicable dependency modes. For instance
  3587. # both Tru64's cc and ICC support -MD to output dependencies as a
  3588. # side effect of compilation, but ICC will put the dependencies in
  3589. # the current directory while Tru64 will put them in the object
  3590. # directory.
  3591. mkdir sub
  3592. am_cv_CC_dependencies_compiler_type=none
  3593. if test "$am_compiler_list" = ""; then
  3594. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3595. fi
  3596. am__universal=false
  3597. case " $depcc " in #(
  3598. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3599. esac
  3600. for depmode in $am_compiler_list; do
  3601. # Setup a source with many dependencies, because some compilers
  3602. # like to wrap large dependency lists on column 80 (with \), and
  3603. # we should not choose a depcomp mode which is confused by this.
  3604. #
  3605. # We need to recreate these files for each test, as the compiler may
  3606. # overwrite some of them when testing with obscure command lines.
  3607. # This happens at least with the AIX C compiler.
  3608. : > sub/conftest.c
  3609. for i in 1 2 3 4 5 6; do
  3610. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3611. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3612. # Solaris 8's {/usr,}/bin/sh.
  3613. touch sub/conftst$i.h
  3614. done
  3615. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3616. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3617. # mode. It turns out that the SunPro C++ compiler does not properly
  3618. # handle `-M -o', and we need to detect this. Also, some Intel
  3619. # versions had trouble with output in subdirs
  3620. am__obj=sub/conftest.${OBJEXT-o}
  3621. am__minus_obj="-o $am__obj"
  3622. case $depmode in
  3623. gcc)
  3624. # This depmode causes a compiler race in universal mode.
  3625. test "$am__universal" = false || continue
  3626. ;;
  3627. nosideeffect)
  3628. # after this tag, mechanisms are not by side-effect, so they'll
  3629. # only be used when explicitly requested
  3630. if test "x$enable_dependency_tracking" = xyes; then
  3631. continue
  3632. else
  3633. break
  3634. fi
  3635. ;;
  3636. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3637. # This compiler won't grok `-c -o', but also, the minuso test has
  3638. # not run yet. These depmodes are late enough in the game, and
  3639. # so weak that their functioning should not be impacted.
  3640. am__obj=conftest.${OBJEXT-o}
  3641. am__minus_obj=
  3642. ;;
  3643. none) break ;;
  3644. esac
  3645. if depmode=$depmode \
  3646. source=sub/conftest.c object=$am__obj \
  3647. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3648. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3649. >/dev/null 2>conftest.err &&
  3650. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3651. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3652. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3653. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3654. # icc doesn't choke on unknown options, it will just issue warnings
  3655. # or remarks (even with -Werror). So we grep stderr for any message
  3656. # that says an option was ignored or not supported.
  3657. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3658. # icc: Command line warning: ignoring option '-M'; no argument required
  3659. # The diagnosis changed in icc 8.0:
  3660. # icc: Command line remark: option '-MP' not supported
  3661. if (grep 'ignoring option' conftest.err ||
  3662. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3663. am_cv_CC_dependencies_compiler_type=$depmode
  3664. break
  3665. fi
  3666. fi
  3667. done
  3668. cd ..
  3669. rm -rf conftest.dir
  3670. else
  3671. am_cv_CC_dependencies_compiler_type=none
  3672. fi
  3673. fi
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3675. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3676. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3677. if
  3678. test "x$enable_dependency_tracking" != xno \
  3679. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3680. am__fastdepCC_TRUE=
  3681. am__fastdepCC_FALSE='#'
  3682. else
  3683. am__fastdepCC_TRUE='#'
  3684. am__fastdepCC_FALSE=
  3685. fi
  3686. ac_ext=c
  3687. ac_cpp='$CPP $CPPFLAGS'
  3688. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3689. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3690. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3692. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3693. # On Suns, sometimes $CPP names a directory.
  3694. if test -n "$CPP" && test -d "$CPP"; then
  3695. CPP=
  3696. fi
  3697. if test -z "$CPP"; then
  3698. if ${ac_cv_prog_CPP+:} false; then :
  3699. $as_echo_n "(cached) " >&6
  3700. else
  3701. # Double quotes because CPP needs to be expanded
  3702. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3703. do
  3704. ac_preproc_ok=false
  3705. for ac_c_preproc_warn_flag in '' yes
  3706. do
  3707. # Use a header file that comes with gcc, so configuring glibc
  3708. # with a fresh cross-compiler works.
  3709. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3710. # <limits.h> exists even on freestanding compilers.
  3711. # On the NeXT, cc -E runs the code through the compiler's parser,
  3712. # not just through cpp. "Syntax error" is here to catch this case.
  3713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3714. /* end confdefs.h. */
  3715. #ifdef __STDC__
  3716. # include <limits.h>
  3717. #else
  3718. # include <assert.h>
  3719. #endif
  3720. Syntax error
  3721. _ACEOF
  3722. if ac_fn_c_try_cpp "$LINENO"; then :
  3723. else
  3724. # Broken: fails on valid input.
  3725. continue
  3726. fi
  3727. rm -f conftest.err conftest.i conftest.$ac_ext
  3728. # OK, works on sane cases. Now check whether nonexistent headers
  3729. # can be detected and how.
  3730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3731. /* end confdefs.h. */
  3732. #include <ac_nonexistent.h>
  3733. _ACEOF
  3734. if ac_fn_c_try_cpp "$LINENO"; then :
  3735. # Broken: success on invalid input.
  3736. continue
  3737. else
  3738. # Passes both tests.
  3739. ac_preproc_ok=:
  3740. break
  3741. fi
  3742. rm -f conftest.err conftest.i conftest.$ac_ext
  3743. done
  3744. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3745. rm -f conftest.i conftest.err conftest.$ac_ext
  3746. if $ac_preproc_ok; then :
  3747. break
  3748. fi
  3749. done
  3750. ac_cv_prog_CPP=$CPP
  3751. fi
  3752. CPP=$ac_cv_prog_CPP
  3753. else
  3754. ac_cv_prog_CPP=$CPP
  3755. fi
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3757. $as_echo "$CPP" >&6; }
  3758. ac_preproc_ok=false
  3759. for ac_c_preproc_warn_flag in '' yes
  3760. do
  3761. # Use a header file that comes with gcc, so configuring glibc
  3762. # with a fresh cross-compiler works.
  3763. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3764. # <limits.h> exists even on freestanding compilers.
  3765. # On the NeXT, cc -E runs the code through the compiler's parser,
  3766. # not just through cpp. "Syntax error" is here to catch this case.
  3767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3768. /* end confdefs.h. */
  3769. #ifdef __STDC__
  3770. # include <limits.h>
  3771. #else
  3772. # include <assert.h>
  3773. #endif
  3774. Syntax error
  3775. _ACEOF
  3776. if ac_fn_c_try_cpp "$LINENO"; then :
  3777. else
  3778. # Broken: fails on valid input.
  3779. continue
  3780. fi
  3781. rm -f conftest.err conftest.i conftest.$ac_ext
  3782. # OK, works on sane cases. Now check whether nonexistent headers
  3783. # can be detected and how.
  3784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3785. /* end confdefs.h. */
  3786. #include <ac_nonexistent.h>
  3787. _ACEOF
  3788. if ac_fn_c_try_cpp "$LINENO"; then :
  3789. # Broken: success on invalid input.
  3790. continue
  3791. else
  3792. # Passes both tests.
  3793. ac_preproc_ok=:
  3794. break
  3795. fi
  3796. rm -f conftest.err conftest.i conftest.$ac_ext
  3797. done
  3798. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3799. rm -f conftest.i conftest.err conftest.$ac_ext
  3800. if $ac_preproc_ok; then :
  3801. else
  3802. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3803. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3804. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3805. See \`config.log' for more details" "$LINENO" 5; }
  3806. fi
  3807. ac_ext=c
  3808. ac_cpp='$CPP $CPPFLAGS'
  3809. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3810. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3811. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3813. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3814. if ${ac_cv_path_GREP+:} false; then :
  3815. $as_echo_n "(cached) " >&6
  3816. else
  3817. if test -z "$GREP"; then
  3818. ac_path_GREP_found=false
  3819. # Loop through the user's path and test for each of PROGNAME-LIST
  3820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3821. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3822. do
  3823. IFS=$as_save_IFS
  3824. test -z "$as_dir" && as_dir=.
  3825. for ac_prog in grep ggrep; do
  3826. for ac_exec_ext in '' $ac_executable_extensions; do
  3827. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3828. as_fn_executable_p "$ac_path_GREP" || continue
  3829. # Check for GNU ac_path_GREP and select it if it is found.
  3830. # Check for GNU $ac_path_GREP
  3831. case `"$ac_path_GREP" --version 2>&1` in
  3832. *GNU*)
  3833. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3834. *)
  3835. ac_count=0
  3836. $as_echo_n 0123456789 >"conftest.in"
  3837. while :
  3838. do
  3839. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3840. mv "conftest.tmp" "conftest.in"
  3841. cp "conftest.in" "conftest.nl"
  3842. $as_echo 'GREP' >> "conftest.nl"
  3843. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3844. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3845. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3846. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3847. # Best one so far, save it but keep looking for a better one
  3848. ac_cv_path_GREP="$ac_path_GREP"
  3849. ac_path_GREP_max=$ac_count
  3850. fi
  3851. # 10*(2^10) chars as input seems more than enough
  3852. test $ac_count -gt 10 && break
  3853. done
  3854. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3855. esac
  3856. $ac_path_GREP_found && break 3
  3857. done
  3858. done
  3859. done
  3860. IFS=$as_save_IFS
  3861. if test -z "$ac_cv_path_GREP"; then
  3862. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3863. fi
  3864. else
  3865. ac_cv_path_GREP=$GREP
  3866. fi
  3867. fi
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3869. $as_echo "$ac_cv_path_GREP" >&6; }
  3870. GREP="$ac_cv_path_GREP"
  3871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3872. $as_echo_n "checking for egrep... " >&6; }
  3873. if ${ac_cv_path_EGREP+:} false; then :
  3874. $as_echo_n "(cached) " >&6
  3875. else
  3876. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3877. then ac_cv_path_EGREP="$GREP -E"
  3878. else
  3879. if test -z "$EGREP"; then
  3880. ac_path_EGREP_found=false
  3881. # Loop through the user's path and test for each of PROGNAME-LIST
  3882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3883. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3884. do
  3885. IFS=$as_save_IFS
  3886. test -z "$as_dir" && as_dir=.
  3887. for ac_prog in egrep; do
  3888. for ac_exec_ext in '' $ac_executable_extensions; do
  3889. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3890. as_fn_executable_p "$ac_path_EGREP" || continue
  3891. # Check for GNU ac_path_EGREP and select it if it is found.
  3892. # Check for GNU $ac_path_EGREP
  3893. case `"$ac_path_EGREP" --version 2>&1` in
  3894. *GNU*)
  3895. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3896. *)
  3897. ac_count=0
  3898. $as_echo_n 0123456789 >"conftest.in"
  3899. while :
  3900. do
  3901. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3902. mv "conftest.tmp" "conftest.in"
  3903. cp "conftest.in" "conftest.nl"
  3904. $as_echo 'EGREP' >> "conftest.nl"
  3905. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3906. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3907. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3908. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3909. # Best one so far, save it but keep looking for a better one
  3910. ac_cv_path_EGREP="$ac_path_EGREP"
  3911. ac_path_EGREP_max=$ac_count
  3912. fi
  3913. # 10*(2^10) chars as input seems more than enough
  3914. test $ac_count -gt 10 && break
  3915. done
  3916. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3917. esac
  3918. $ac_path_EGREP_found && break 3
  3919. done
  3920. done
  3921. done
  3922. IFS=$as_save_IFS
  3923. if test -z "$ac_cv_path_EGREP"; then
  3924. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3925. fi
  3926. else
  3927. ac_cv_path_EGREP=$EGREP
  3928. fi
  3929. fi
  3930. fi
  3931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3932. $as_echo "$ac_cv_path_EGREP" >&6; }
  3933. EGREP="$ac_cv_path_EGREP"
  3934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3935. $as_echo_n "checking for ANSI C header files... " >&6; }
  3936. if ${ac_cv_header_stdc+:} false; then :
  3937. $as_echo_n "(cached) " >&6
  3938. else
  3939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3940. /* end confdefs.h. */
  3941. #include <stdlib.h>
  3942. #include <stdarg.h>
  3943. #include <string.h>
  3944. #include <float.h>
  3945. int
  3946. main ()
  3947. {
  3948. ;
  3949. return 0;
  3950. }
  3951. _ACEOF
  3952. if ac_fn_c_try_compile "$LINENO"; then :
  3953. ac_cv_header_stdc=yes
  3954. else
  3955. ac_cv_header_stdc=no
  3956. fi
  3957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3958. if test $ac_cv_header_stdc = yes; then
  3959. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3961. /* end confdefs.h. */
  3962. #include <string.h>
  3963. _ACEOF
  3964. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3965. $EGREP "memchr" >/dev/null 2>&1; then :
  3966. else
  3967. ac_cv_header_stdc=no
  3968. fi
  3969. rm -f conftest*
  3970. fi
  3971. if test $ac_cv_header_stdc = yes; then
  3972. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3974. /* end confdefs.h. */
  3975. #include <stdlib.h>
  3976. _ACEOF
  3977. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3978. $EGREP "free" >/dev/null 2>&1; then :
  3979. else
  3980. ac_cv_header_stdc=no
  3981. fi
  3982. rm -f conftest*
  3983. fi
  3984. if test $ac_cv_header_stdc = yes; then
  3985. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3986. if test "$cross_compiling" = yes; then :
  3987. :
  3988. else
  3989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3990. /* end confdefs.h. */
  3991. #include <ctype.h>
  3992. #include <stdlib.h>
  3993. #if ((' ' & 0x0FF) == 0x020)
  3994. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3995. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3996. #else
  3997. # define ISLOWER(c) \
  3998. (('a' <= (c) && (c) <= 'i') \
  3999. || ('j' <= (c) && (c) <= 'r') \
  4000. || ('s' <= (c) && (c) <= 'z'))
  4001. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4002. #endif
  4003. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4004. int
  4005. main ()
  4006. {
  4007. int i;
  4008. for (i = 0; i < 256; i++)
  4009. if (XOR (islower (i), ISLOWER (i))
  4010. || toupper (i) != TOUPPER (i))
  4011. return 2;
  4012. return 0;
  4013. }
  4014. _ACEOF
  4015. if ac_fn_c_try_run "$LINENO"; then :
  4016. else
  4017. ac_cv_header_stdc=no
  4018. fi
  4019. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4020. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4021. fi
  4022. fi
  4023. fi
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4025. $as_echo "$ac_cv_header_stdc" >&6; }
  4026. if test $ac_cv_header_stdc = yes; then
  4027. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4028. fi
  4029. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4030. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4031. inttypes.h stdint.h unistd.h
  4032. do :
  4033. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4034. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4035. "
  4036. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4037. cat >>confdefs.h <<_ACEOF
  4038. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4039. _ACEOF
  4040. fi
  4041. done
  4042. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4043. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4044. MINIX=yes
  4045. else
  4046. MINIX=
  4047. fi
  4048. if test "$MINIX" = yes; then
  4049. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4050. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4051. $as_echo "#define _MINIX 1" >>confdefs.h
  4052. fi
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4054. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4055. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4056. $as_echo_n "(cached) " >&6
  4057. else
  4058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4059. /* end confdefs.h. */
  4060. # define __EXTENSIONS__ 1
  4061. $ac_includes_default
  4062. int
  4063. main ()
  4064. {
  4065. ;
  4066. return 0;
  4067. }
  4068. _ACEOF
  4069. if ac_fn_c_try_compile "$LINENO"; then :
  4070. ac_cv_safe_to_define___extensions__=yes
  4071. else
  4072. ac_cv_safe_to_define___extensions__=no
  4073. fi
  4074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4075. fi
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4077. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4078. test $ac_cv_safe_to_define___extensions__ = yes &&
  4079. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4080. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4081. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4082. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4083. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4084. # ===================================================== #
  4085. # Basic compiler settings #
  4086. # ===================================================== #
  4087. ac_ext=c
  4088. ac_cpp='$CPP $CPPFLAGS'
  4089. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4090. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4091. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4092. if test -n "$ac_tool_prefix"; then
  4093. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4094. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4096. $as_echo_n "checking for $ac_word... " >&6; }
  4097. if ${ac_cv_prog_CC+:} false; then :
  4098. $as_echo_n "(cached) " >&6
  4099. else
  4100. if test -n "$CC"; then
  4101. ac_cv_prog_CC="$CC" # Let the user override the test.
  4102. else
  4103. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4104. for as_dir in $PATH
  4105. do
  4106. IFS=$as_save_IFS
  4107. test -z "$as_dir" && as_dir=.
  4108. for ac_exec_ext in '' $ac_executable_extensions; do
  4109. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4110. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4111. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4112. break 2
  4113. fi
  4114. done
  4115. done
  4116. IFS=$as_save_IFS
  4117. fi
  4118. fi
  4119. CC=$ac_cv_prog_CC
  4120. if test -n "$CC"; then
  4121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4122. $as_echo "$CC" >&6; }
  4123. else
  4124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4125. $as_echo "no" >&6; }
  4126. fi
  4127. fi
  4128. if test -z "$ac_cv_prog_CC"; then
  4129. ac_ct_CC=$CC
  4130. # Extract the first word of "gcc", so it can be a program name with args.
  4131. set dummy gcc; ac_word=$2
  4132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4133. $as_echo_n "checking for $ac_word... " >&6; }
  4134. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4135. $as_echo_n "(cached) " >&6
  4136. else
  4137. if test -n "$ac_ct_CC"; then
  4138. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4139. else
  4140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4141. for as_dir in $PATH
  4142. do
  4143. IFS=$as_save_IFS
  4144. test -z "$as_dir" && as_dir=.
  4145. for ac_exec_ext in '' $ac_executable_extensions; do
  4146. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4147. ac_cv_prog_ac_ct_CC="gcc"
  4148. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4149. break 2
  4150. fi
  4151. done
  4152. done
  4153. IFS=$as_save_IFS
  4154. fi
  4155. fi
  4156. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4157. if test -n "$ac_ct_CC"; then
  4158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4159. $as_echo "$ac_ct_CC" >&6; }
  4160. else
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4162. $as_echo "no" >&6; }
  4163. fi
  4164. if test "x$ac_ct_CC" = x; then
  4165. CC=""
  4166. else
  4167. case $cross_compiling:$ac_tool_warned in
  4168. yes:)
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4170. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4171. ac_tool_warned=yes ;;
  4172. esac
  4173. CC=$ac_ct_CC
  4174. fi
  4175. else
  4176. CC="$ac_cv_prog_CC"
  4177. fi
  4178. if test -z "$CC"; then
  4179. if test -n "$ac_tool_prefix"; then
  4180. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4181. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4183. $as_echo_n "checking for $ac_word... " >&6; }
  4184. if ${ac_cv_prog_CC+:} false; then :
  4185. $as_echo_n "(cached) " >&6
  4186. else
  4187. if test -n "$CC"; then
  4188. ac_cv_prog_CC="$CC" # Let the user override the test.
  4189. else
  4190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4191. for as_dir in $PATH
  4192. do
  4193. IFS=$as_save_IFS
  4194. test -z "$as_dir" && as_dir=.
  4195. for ac_exec_ext in '' $ac_executable_extensions; do
  4196. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4197. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4198. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4199. break 2
  4200. fi
  4201. done
  4202. done
  4203. IFS=$as_save_IFS
  4204. fi
  4205. fi
  4206. CC=$ac_cv_prog_CC
  4207. if test -n "$CC"; then
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4209. $as_echo "$CC" >&6; }
  4210. else
  4211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4212. $as_echo "no" >&6; }
  4213. fi
  4214. fi
  4215. fi
  4216. if test -z "$CC"; then
  4217. # Extract the first word of "cc", so it can be a program name with args.
  4218. set dummy cc; ac_word=$2
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4220. $as_echo_n "checking for $ac_word... " >&6; }
  4221. if ${ac_cv_prog_CC+:} false; then :
  4222. $as_echo_n "(cached) " >&6
  4223. else
  4224. if test -n "$CC"; then
  4225. ac_cv_prog_CC="$CC" # Let the user override the test.
  4226. else
  4227. ac_prog_rejected=no
  4228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4229. for as_dir in $PATH
  4230. do
  4231. IFS=$as_save_IFS
  4232. test -z "$as_dir" && as_dir=.
  4233. for ac_exec_ext in '' $ac_executable_extensions; do
  4234. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4235. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4236. ac_prog_rejected=yes
  4237. continue
  4238. fi
  4239. ac_cv_prog_CC="cc"
  4240. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4241. break 2
  4242. fi
  4243. done
  4244. done
  4245. IFS=$as_save_IFS
  4246. if test $ac_prog_rejected = yes; then
  4247. # We found a bogon in the path, so make sure we never use it.
  4248. set dummy $ac_cv_prog_CC
  4249. shift
  4250. if test $# != 0; then
  4251. # We chose a different compiler from the bogus one.
  4252. # However, it has the same basename, so the bogon will be chosen
  4253. # first if we set CC to just the basename; use the full file name.
  4254. shift
  4255. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4256. fi
  4257. fi
  4258. fi
  4259. fi
  4260. CC=$ac_cv_prog_CC
  4261. if test -n "$CC"; then
  4262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4263. $as_echo "$CC" >&6; }
  4264. else
  4265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4266. $as_echo "no" >&6; }
  4267. fi
  4268. fi
  4269. if test -z "$CC"; then
  4270. if test -n "$ac_tool_prefix"; then
  4271. for ac_prog in cl.exe
  4272. do
  4273. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4274. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4276. $as_echo_n "checking for $ac_word... " >&6; }
  4277. if ${ac_cv_prog_CC+:} false; then :
  4278. $as_echo_n "(cached) " >&6
  4279. else
  4280. if test -n "$CC"; then
  4281. ac_cv_prog_CC="$CC" # Let the user override the test.
  4282. else
  4283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4284. for as_dir in $PATH
  4285. do
  4286. IFS=$as_save_IFS
  4287. test -z "$as_dir" && as_dir=.
  4288. for ac_exec_ext in '' $ac_executable_extensions; do
  4289. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4290. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4291. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4292. break 2
  4293. fi
  4294. done
  4295. done
  4296. IFS=$as_save_IFS
  4297. fi
  4298. fi
  4299. CC=$ac_cv_prog_CC
  4300. if test -n "$CC"; then
  4301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4302. $as_echo "$CC" >&6; }
  4303. else
  4304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4305. $as_echo "no" >&6; }
  4306. fi
  4307. test -n "$CC" && break
  4308. done
  4309. fi
  4310. if test -z "$CC"; then
  4311. ac_ct_CC=$CC
  4312. for ac_prog in cl.exe
  4313. do
  4314. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4315. set dummy $ac_prog; ac_word=$2
  4316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4317. $as_echo_n "checking for $ac_word... " >&6; }
  4318. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4319. $as_echo_n "(cached) " >&6
  4320. else
  4321. if test -n "$ac_ct_CC"; then
  4322. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4323. else
  4324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4325. for as_dir in $PATH
  4326. do
  4327. IFS=$as_save_IFS
  4328. test -z "$as_dir" && as_dir=.
  4329. for ac_exec_ext in '' $ac_executable_extensions; do
  4330. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4331. ac_cv_prog_ac_ct_CC="$ac_prog"
  4332. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4333. break 2
  4334. fi
  4335. done
  4336. done
  4337. IFS=$as_save_IFS
  4338. fi
  4339. fi
  4340. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4341. if test -n "$ac_ct_CC"; then
  4342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4343. $as_echo "$ac_ct_CC" >&6; }
  4344. else
  4345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4346. $as_echo "no" >&6; }
  4347. fi
  4348. test -n "$ac_ct_CC" && break
  4349. done
  4350. if test "x$ac_ct_CC" = x; then
  4351. CC=""
  4352. else
  4353. case $cross_compiling:$ac_tool_warned in
  4354. yes:)
  4355. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4356. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4357. ac_tool_warned=yes ;;
  4358. esac
  4359. CC=$ac_ct_CC
  4360. fi
  4361. fi
  4362. fi
  4363. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4364. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4365. as_fn_error $? "no acceptable C compiler found in \$PATH
  4366. See \`config.log' for more details" "$LINENO" 5; }
  4367. # Provide some information about the compiler.
  4368. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4369. set X $ac_compile
  4370. ac_compiler=$2
  4371. for ac_option in --version -v -V -qversion; do
  4372. { { ac_try="$ac_compiler $ac_option >&5"
  4373. case "(($ac_try" in
  4374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4375. *) ac_try_echo=$ac_try;;
  4376. esac
  4377. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4378. $as_echo "$ac_try_echo"; } >&5
  4379. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4380. ac_status=$?
  4381. if test -s conftest.err; then
  4382. sed '10a\
  4383. ... rest of stderr output deleted ...
  4384. 10q' conftest.err >conftest.er1
  4385. cat conftest.er1 >&5
  4386. fi
  4387. rm -f conftest.er1 conftest.err
  4388. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4389. test $ac_status = 0; }
  4390. done
  4391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4392. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4393. if ${ac_cv_c_compiler_gnu+:} false; then :
  4394. $as_echo_n "(cached) " >&6
  4395. else
  4396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4397. /* end confdefs.h. */
  4398. int
  4399. main ()
  4400. {
  4401. #ifndef __GNUC__
  4402. choke me
  4403. #endif
  4404. ;
  4405. return 0;
  4406. }
  4407. _ACEOF
  4408. if ac_fn_c_try_compile "$LINENO"; then :
  4409. ac_compiler_gnu=yes
  4410. else
  4411. ac_compiler_gnu=no
  4412. fi
  4413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4414. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4415. fi
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4417. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4418. if test $ac_compiler_gnu = yes; then
  4419. GCC=yes
  4420. else
  4421. GCC=
  4422. fi
  4423. ac_test_CFLAGS=${CFLAGS+set}
  4424. ac_save_CFLAGS=$CFLAGS
  4425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4426. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4427. if ${ac_cv_prog_cc_g+:} false; then :
  4428. $as_echo_n "(cached) " >&6
  4429. else
  4430. ac_save_c_werror_flag=$ac_c_werror_flag
  4431. ac_c_werror_flag=yes
  4432. ac_cv_prog_cc_g=no
  4433. CFLAGS="-g"
  4434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4435. /* end confdefs.h. */
  4436. int
  4437. main ()
  4438. {
  4439. ;
  4440. return 0;
  4441. }
  4442. _ACEOF
  4443. if ac_fn_c_try_compile "$LINENO"; then :
  4444. ac_cv_prog_cc_g=yes
  4445. else
  4446. CFLAGS=""
  4447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4448. /* end confdefs.h. */
  4449. int
  4450. main ()
  4451. {
  4452. ;
  4453. return 0;
  4454. }
  4455. _ACEOF
  4456. if ac_fn_c_try_compile "$LINENO"; then :
  4457. else
  4458. ac_c_werror_flag=$ac_save_c_werror_flag
  4459. CFLAGS="-g"
  4460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4461. /* end confdefs.h. */
  4462. int
  4463. main ()
  4464. {
  4465. ;
  4466. return 0;
  4467. }
  4468. _ACEOF
  4469. if ac_fn_c_try_compile "$LINENO"; then :
  4470. ac_cv_prog_cc_g=yes
  4471. fi
  4472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4473. fi
  4474. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4475. fi
  4476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4477. ac_c_werror_flag=$ac_save_c_werror_flag
  4478. fi
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4480. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4481. if test "$ac_test_CFLAGS" = set; then
  4482. CFLAGS=$ac_save_CFLAGS
  4483. elif test $ac_cv_prog_cc_g = yes; then
  4484. if test "$GCC" = yes; then
  4485. CFLAGS="-g -O2"
  4486. else
  4487. CFLAGS="-g"
  4488. fi
  4489. else
  4490. if test "$GCC" = yes; then
  4491. CFLAGS="-O2"
  4492. else
  4493. CFLAGS=
  4494. fi
  4495. fi
  4496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4497. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4498. if ${ac_cv_prog_cc_c89+:} false; then :
  4499. $as_echo_n "(cached) " >&6
  4500. else
  4501. ac_cv_prog_cc_c89=no
  4502. ac_save_CC=$CC
  4503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4504. /* end confdefs.h. */
  4505. #include <stdarg.h>
  4506. #include <stdio.h>
  4507. struct stat;
  4508. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4509. struct buf { int x; };
  4510. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4511. static char *e (p, i)
  4512. char **p;
  4513. int i;
  4514. {
  4515. return p[i];
  4516. }
  4517. static char *f (char * (*g) (char **, int), char **p, ...)
  4518. {
  4519. char *s;
  4520. va_list v;
  4521. va_start (v,p);
  4522. s = g (p, va_arg (v,int));
  4523. va_end (v);
  4524. return s;
  4525. }
  4526. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4527. function prototypes and stuff, but not '\xHH' hex character constants.
  4528. These don't provoke an error unfortunately, instead are silently treated
  4529. as 'x'. The following induces an error, until -std is added to get
  4530. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4531. array size at least. It's necessary to write '\x00'==0 to get something
  4532. that's true only with -std. */
  4533. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4534. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4535. inside strings and character constants. */
  4536. #define FOO(x) 'x'
  4537. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4538. int test (int i, double x);
  4539. struct s1 {int (*f) (int a);};
  4540. struct s2 {int (*f) (double a);};
  4541. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4542. int argc;
  4543. char **argv;
  4544. int
  4545. main ()
  4546. {
  4547. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4548. ;
  4549. return 0;
  4550. }
  4551. _ACEOF
  4552. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4553. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4554. do
  4555. CC="$ac_save_CC $ac_arg"
  4556. if ac_fn_c_try_compile "$LINENO"; then :
  4557. ac_cv_prog_cc_c89=$ac_arg
  4558. fi
  4559. rm -f core conftest.err conftest.$ac_objext
  4560. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4561. done
  4562. rm -f conftest.$ac_ext
  4563. CC=$ac_save_CC
  4564. fi
  4565. # AC_CACHE_VAL
  4566. case "x$ac_cv_prog_cc_c89" in
  4567. x)
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4569. $as_echo "none needed" >&6; } ;;
  4570. xno)
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4572. $as_echo "unsupported" >&6; } ;;
  4573. *)
  4574. CC="$CC $ac_cv_prog_cc_c89"
  4575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4576. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4577. esac
  4578. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4579. fi
  4580. ac_ext=c
  4581. ac_cpp='$CPP $CPPFLAGS'
  4582. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4583. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4584. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4585. depcc="$CC" am_compiler_list=
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4587. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4588. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4589. $as_echo_n "(cached) " >&6
  4590. else
  4591. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4592. # We make a subdir and do the tests there. Otherwise we can end up
  4593. # making bogus files that we don't know about and never remove. For
  4594. # instance it was reported that on HP-UX the gcc test will end up
  4595. # making a dummy file named `D' -- because `-MD' means `put the output
  4596. # in D'.
  4597. rm -rf conftest.dir
  4598. mkdir conftest.dir
  4599. # Copy depcomp to subdir because otherwise we won't find it if we're
  4600. # using a relative directory.
  4601. cp "$am_depcomp" conftest.dir
  4602. cd conftest.dir
  4603. # We will build objects and dependencies in a subdirectory because
  4604. # it helps to detect inapplicable dependency modes. For instance
  4605. # both Tru64's cc and ICC support -MD to output dependencies as a
  4606. # side effect of compilation, but ICC will put the dependencies in
  4607. # the current directory while Tru64 will put them in the object
  4608. # directory.
  4609. mkdir sub
  4610. am_cv_CC_dependencies_compiler_type=none
  4611. if test "$am_compiler_list" = ""; then
  4612. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4613. fi
  4614. am__universal=false
  4615. case " $depcc " in #(
  4616. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4617. esac
  4618. for depmode in $am_compiler_list; do
  4619. # Setup a source with many dependencies, because some compilers
  4620. # like to wrap large dependency lists on column 80 (with \), and
  4621. # we should not choose a depcomp mode which is confused by this.
  4622. #
  4623. # We need to recreate these files for each test, as the compiler may
  4624. # overwrite some of them when testing with obscure command lines.
  4625. # This happens at least with the AIX C compiler.
  4626. : > sub/conftest.c
  4627. for i in 1 2 3 4 5 6; do
  4628. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4629. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4630. # Solaris 8's {/usr,}/bin/sh.
  4631. touch sub/conftst$i.h
  4632. done
  4633. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4634. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4635. # mode. It turns out that the SunPro C++ compiler does not properly
  4636. # handle `-M -o', and we need to detect this. Also, some Intel
  4637. # versions had trouble with output in subdirs
  4638. am__obj=sub/conftest.${OBJEXT-o}
  4639. am__minus_obj="-o $am__obj"
  4640. case $depmode in
  4641. gcc)
  4642. # This depmode causes a compiler race in universal mode.
  4643. test "$am__universal" = false || continue
  4644. ;;
  4645. nosideeffect)
  4646. # after this tag, mechanisms are not by side-effect, so they'll
  4647. # only be used when explicitly requested
  4648. if test "x$enable_dependency_tracking" = xyes; then
  4649. continue
  4650. else
  4651. break
  4652. fi
  4653. ;;
  4654. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4655. # This compiler won't grok `-c -o', but also, the minuso test has
  4656. # not run yet. These depmodes are late enough in the game, and
  4657. # so weak that their functioning should not be impacted.
  4658. am__obj=conftest.${OBJEXT-o}
  4659. am__minus_obj=
  4660. ;;
  4661. none) break ;;
  4662. esac
  4663. if depmode=$depmode \
  4664. source=sub/conftest.c object=$am__obj \
  4665. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4666. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4667. >/dev/null 2>conftest.err &&
  4668. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4669. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4670. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4671. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4672. # icc doesn't choke on unknown options, it will just issue warnings
  4673. # or remarks (even with -Werror). So we grep stderr for any message
  4674. # that says an option was ignored or not supported.
  4675. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4676. # icc: Command line warning: ignoring option '-M'; no argument required
  4677. # The diagnosis changed in icc 8.0:
  4678. # icc: Command line remark: option '-MP' not supported
  4679. if (grep 'ignoring option' conftest.err ||
  4680. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4681. am_cv_CC_dependencies_compiler_type=$depmode
  4682. break
  4683. fi
  4684. fi
  4685. done
  4686. cd ..
  4687. rm -rf conftest.dir
  4688. else
  4689. am_cv_CC_dependencies_compiler_type=none
  4690. fi
  4691. fi
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4693. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4694. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4695. if
  4696. test "x$enable_dependency_tracking" != xno \
  4697. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4698. am__fastdepCC_TRUE=
  4699. am__fastdepCC_FALSE='#'
  4700. else
  4701. am__fastdepCC_TRUE='#'
  4702. am__fastdepCC_FALSE=
  4703. fi
  4704. if test "x$CC" != xcc; then
  4705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4706. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4707. else
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4709. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4710. fi
  4711. set dummy $CC; ac_cc=`$as_echo "$2" |
  4712. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4713. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4714. $as_echo_n "(cached) " >&6
  4715. else
  4716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4717. /* end confdefs.h. */
  4718. int
  4719. main ()
  4720. {
  4721. ;
  4722. return 0;
  4723. }
  4724. _ACEOF
  4725. # Make sure it works both with $CC and with simple cc.
  4726. # We do the test twice because some compilers refuse to overwrite an
  4727. # existing .o file with -o, though they will create one.
  4728. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4729. rm -f conftest2.*
  4730. if { { case "(($ac_try" in
  4731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4732. *) ac_try_echo=$ac_try;;
  4733. esac
  4734. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4735. $as_echo "$ac_try_echo"; } >&5
  4736. (eval "$ac_try") 2>&5
  4737. ac_status=$?
  4738. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4739. test $ac_status = 0; } &&
  4740. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4742. *) ac_try_echo=$ac_try;;
  4743. esac
  4744. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4745. $as_echo "$ac_try_echo"; } >&5
  4746. (eval "$ac_try") 2>&5
  4747. ac_status=$?
  4748. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4749. test $ac_status = 0; };
  4750. then
  4751. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4752. if test "x$CC" != xcc; then
  4753. # Test first that cc exists at all.
  4754. if { ac_try='cc -c conftest.$ac_ext >&5'
  4755. { { case "(($ac_try" in
  4756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4757. *) ac_try_echo=$ac_try;;
  4758. esac
  4759. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4760. $as_echo "$ac_try_echo"; } >&5
  4761. (eval "$ac_try") 2>&5
  4762. ac_status=$?
  4763. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4764. test $ac_status = 0; }; }; then
  4765. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4766. rm -f conftest2.*
  4767. if { { case "(($ac_try" in
  4768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4769. *) ac_try_echo=$ac_try;;
  4770. esac
  4771. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4772. $as_echo "$ac_try_echo"; } >&5
  4773. (eval "$ac_try") 2>&5
  4774. ac_status=$?
  4775. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4776. test $ac_status = 0; } &&
  4777. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4778. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4779. *) ac_try_echo=$ac_try;;
  4780. esac
  4781. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4782. $as_echo "$ac_try_echo"; } >&5
  4783. (eval "$ac_try") 2>&5
  4784. ac_status=$?
  4785. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4786. test $ac_status = 0; };
  4787. then
  4788. # cc works too.
  4789. :
  4790. else
  4791. # cc exists but doesn't like -o.
  4792. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4793. fi
  4794. fi
  4795. fi
  4796. else
  4797. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4798. fi
  4799. rm -f core conftest*
  4800. fi
  4801. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4803. $as_echo "yes" >&6; }
  4804. else
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4806. $as_echo "no" >&6; }
  4807. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4808. fi
  4809. # FIXME: we rely on the cache variable name because
  4810. # there is no other way.
  4811. set dummy $CC
  4812. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4813. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4814. if test "$am_t" != yes; then
  4815. # Losing compiler, so override with the script.
  4816. # FIXME: It is wrong to rewrite CC.
  4817. # But if we don't then we get into trouble of one sort or another.
  4818. # A longer-term fix would be to have automake use am__CC in this case,
  4819. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4820. CC="$am_aux_dir/compile $CC"
  4821. fi
  4822. # Make sure we can run config.sub.
  4823. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4824. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4826. $as_echo_n "checking build system type... " >&6; }
  4827. if ${ac_cv_build+:} false; then :
  4828. $as_echo_n "(cached) " >&6
  4829. else
  4830. ac_build_alias=$build_alias
  4831. test "x$ac_build_alias" = x &&
  4832. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4833. test "x$ac_build_alias" = x &&
  4834. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4835. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4836. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4837. fi
  4838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4839. $as_echo "$ac_cv_build" >&6; }
  4840. case $ac_cv_build in
  4841. *-*-*) ;;
  4842. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4843. esac
  4844. build=$ac_cv_build
  4845. ac_save_IFS=$IFS; IFS='-'
  4846. set x $ac_cv_build
  4847. shift
  4848. build_cpu=$1
  4849. build_vendor=$2
  4850. shift; shift
  4851. # Remember, the first character of IFS is used to create $*,
  4852. # except with old shells:
  4853. build_os=$*
  4854. IFS=$ac_save_IFS
  4855. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4857. $as_echo_n "checking host system type... " >&6; }
  4858. if ${ac_cv_host+:} false; then :
  4859. $as_echo_n "(cached) " >&6
  4860. else
  4861. if test "x$host_alias" = x; then
  4862. ac_cv_host=$ac_cv_build
  4863. else
  4864. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4865. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4866. fi
  4867. fi
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4869. $as_echo "$ac_cv_host" >&6; }
  4870. case $ac_cv_host in
  4871. *-*-*) ;;
  4872. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4873. esac
  4874. host=$ac_cv_host
  4875. ac_save_IFS=$IFS; IFS='-'
  4876. set x $ac_cv_host
  4877. shift
  4878. host_cpu=$1
  4879. host_vendor=$2
  4880. shift; shift
  4881. # Remember, the first character of IFS is used to create $*,
  4882. # except with old shells:
  4883. host_os=$*
  4884. IFS=$ac_save_IFS
  4885. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4887. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4888. if ${ac_cv_path_SED+:} false; then :
  4889. $as_echo_n "(cached) " >&6
  4890. else
  4891. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4892. for ac_i in 1 2 3 4 5 6 7; do
  4893. ac_script="$ac_script$as_nl$ac_script"
  4894. done
  4895. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4896. { ac_script=; unset ac_script;}
  4897. if test -z "$SED"; then
  4898. ac_path_SED_found=false
  4899. # Loop through the user's path and test for each of PROGNAME-LIST
  4900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4901. for as_dir in $PATH
  4902. do
  4903. IFS=$as_save_IFS
  4904. test -z "$as_dir" && as_dir=.
  4905. for ac_prog in sed gsed; do
  4906. for ac_exec_ext in '' $ac_executable_extensions; do
  4907. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4908. as_fn_executable_p "$ac_path_SED" || continue
  4909. # Check for GNU ac_path_SED and select it if it is found.
  4910. # Check for GNU $ac_path_SED
  4911. case `"$ac_path_SED" --version 2>&1` in
  4912. *GNU*)
  4913. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4914. *)
  4915. ac_count=0
  4916. $as_echo_n 0123456789 >"conftest.in"
  4917. while :
  4918. do
  4919. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4920. mv "conftest.tmp" "conftest.in"
  4921. cp "conftest.in" "conftest.nl"
  4922. $as_echo '' >> "conftest.nl"
  4923. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4924. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4925. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4926. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4927. # Best one so far, save it but keep looking for a better one
  4928. ac_cv_path_SED="$ac_path_SED"
  4929. ac_path_SED_max=$ac_count
  4930. fi
  4931. # 10*(2^10) chars as input seems more than enough
  4932. test $ac_count -gt 10 && break
  4933. done
  4934. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4935. esac
  4936. $ac_path_SED_found && break 3
  4937. done
  4938. done
  4939. done
  4940. IFS=$as_save_IFS
  4941. if test -z "$ac_cv_path_SED"; then
  4942. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4943. fi
  4944. else
  4945. ac_cv_path_SED=$SED
  4946. fi
  4947. fi
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4949. $as_echo "$ac_cv_path_SED" >&6; }
  4950. SED="$ac_cv_path_SED"
  4951. rm -f conftest.sed
  4952. test -z "$SED" && SED=sed
  4953. Xsed="$SED -e 1s/^X//"
  4954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4955. $as_echo_n "checking for fgrep... " >&6; }
  4956. if ${ac_cv_path_FGREP+:} false; then :
  4957. $as_echo_n "(cached) " >&6
  4958. else
  4959. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4960. then ac_cv_path_FGREP="$GREP -F"
  4961. else
  4962. if test -z "$FGREP"; then
  4963. ac_path_FGREP_found=false
  4964. # Loop through the user's path and test for each of PROGNAME-LIST
  4965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4966. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4967. do
  4968. IFS=$as_save_IFS
  4969. test -z "$as_dir" && as_dir=.
  4970. for ac_prog in fgrep; do
  4971. for ac_exec_ext in '' $ac_executable_extensions; do
  4972. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4973. as_fn_executable_p "$ac_path_FGREP" || continue
  4974. # Check for GNU ac_path_FGREP and select it if it is found.
  4975. # Check for GNU $ac_path_FGREP
  4976. case `"$ac_path_FGREP" --version 2>&1` in
  4977. *GNU*)
  4978. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4979. *)
  4980. ac_count=0
  4981. $as_echo_n 0123456789 >"conftest.in"
  4982. while :
  4983. do
  4984. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4985. mv "conftest.tmp" "conftest.in"
  4986. cp "conftest.in" "conftest.nl"
  4987. $as_echo 'FGREP' >> "conftest.nl"
  4988. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4989. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4990. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4991. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4992. # Best one so far, save it but keep looking for a better one
  4993. ac_cv_path_FGREP="$ac_path_FGREP"
  4994. ac_path_FGREP_max=$ac_count
  4995. fi
  4996. # 10*(2^10) chars as input seems more than enough
  4997. test $ac_count -gt 10 && break
  4998. done
  4999. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5000. esac
  5001. $ac_path_FGREP_found && break 3
  5002. done
  5003. done
  5004. done
  5005. IFS=$as_save_IFS
  5006. if test -z "$ac_cv_path_FGREP"; then
  5007. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5008. fi
  5009. else
  5010. ac_cv_path_FGREP=$FGREP
  5011. fi
  5012. fi
  5013. fi
  5014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5015. $as_echo "$ac_cv_path_FGREP" >&6; }
  5016. FGREP="$ac_cv_path_FGREP"
  5017. test -z "$GREP" && GREP=grep
  5018. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5019. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5020. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5022. $as_echo_n "checking how to print strings... " >&6; }
  5023. # Test print first, because it will be a builtin if present.
  5024. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5025. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5026. ECHO='print -r --'
  5027. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5028. ECHO='printf %s\n'
  5029. else
  5030. # Use this function as a fallback that always works.
  5031. func_fallback_echo ()
  5032. {
  5033. eval 'cat <<_LTECHO_EOF
  5034. $1
  5035. _LTECHO_EOF'
  5036. }
  5037. ECHO='func_fallback_echo'
  5038. fi
  5039. # func_echo_all arg...
  5040. # Invoke $ECHO with all args, space-separated.
  5041. func_echo_all ()
  5042. {
  5043. $ECHO ""
  5044. }
  5045. case "$ECHO" in
  5046. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5047. $as_echo "printf" >&6; } ;;
  5048. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5049. $as_echo "print -r" >&6; } ;;
  5050. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5051. $as_echo "cat" >&6; } ;;
  5052. esac
  5053. # Check whether --with-gnu-ld was given.
  5054. if test "${with_gnu_ld+set}" = set; then :
  5055. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5056. else
  5057. with_gnu_ld=no
  5058. fi
  5059. ac_prog=ld
  5060. if test "$GCC" = yes; then
  5061. # Check if gcc -print-prog-name=ld gives a path.
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5063. $as_echo_n "checking for ld used by $CC... " >&6; }
  5064. case $host in
  5065. *-*-mingw*)
  5066. # gcc leaves a trailing carriage return which upsets mingw
  5067. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5068. *)
  5069. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5070. esac
  5071. case $ac_prog in
  5072. # Accept absolute paths.
  5073. [\\/]* | ?:[\\/]*)
  5074. re_direlt='/[^/][^/]*/\.\./'
  5075. # Canonicalize the pathname of ld
  5076. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5077. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5078. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5079. done
  5080. test -z "$LD" && LD="$ac_prog"
  5081. ;;
  5082. "")
  5083. # If it fails, then pretend we aren't using GCC.
  5084. ac_prog=ld
  5085. ;;
  5086. *)
  5087. # If it is relative, then search for the first ld in PATH.
  5088. with_gnu_ld=unknown
  5089. ;;
  5090. esac
  5091. elif test "$with_gnu_ld" = yes; then
  5092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5093. $as_echo_n "checking for GNU ld... " >&6; }
  5094. else
  5095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5096. $as_echo_n "checking for non-GNU ld... " >&6; }
  5097. fi
  5098. if ${lt_cv_path_LD+:} false; then :
  5099. $as_echo_n "(cached) " >&6
  5100. else
  5101. if test -z "$LD"; then
  5102. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5103. for ac_dir in $PATH; do
  5104. IFS="$lt_save_ifs"
  5105. test -z "$ac_dir" && ac_dir=.
  5106. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5107. lt_cv_path_LD="$ac_dir/$ac_prog"
  5108. # Check to see if the program is GNU ld. I'd rather use --version,
  5109. # but apparently some variants of GNU ld only accept -v.
  5110. # Break only if it was the GNU/non-GNU ld that we prefer.
  5111. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5112. *GNU* | *'with BFD'*)
  5113. test "$with_gnu_ld" != no && break
  5114. ;;
  5115. *)
  5116. test "$with_gnu_ld" != yes && break
  5117. ;;
  5118. esac
  5119. fi
  5120. done
  5121. IFS="$lt_save_ifs"
  5122. else
  5123. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5124. fi
  5125. fi
  5126. LD="$lt_cv_path_LD"
  5127. if test -n "$LD"; then
  5128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5129. $as_echo "$LD" >&6; }
  5130. else
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5132. $as_echo "no" >&6; }
  5133. fi
  5134. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5136. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5137. if ${lt_cv_prog_gnu_ld+:} false; then :
  5138. $as_echo_n "(cached) " >&6
  5139. else
  5140. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5141. case `$LD -v 2>&1 </dev/null` in
  5142. *GNU* | *'with BFD'*)
  5143. lt_cv_prog_gnu_ld=yes
  5144. ;;
  5145. *)
  5146. lt_cv_prog_gnu_ld=no
  5147. ;;
  5148. esac
  5149. fi
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5151. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5152. with_gnu_ld=$lt_cv_prog_gnu_ld
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  5154. $as_echo_n "checking whether NLS is requested... " >&6; }
  5155. # Check whether --enable-nls was given.
  5156. if test "${enable_nls+set}" = set; then :
  5157. enableval=$enable_nls; USE_NLS=$enableval
  5158. else
  5159. USE_NLS=yes
  5160. fi
  5161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  5162. $as_echo "$USE_NLS" >&6; }
  5163. case "$am__api_version" in
  5164. 1.01234)
  5165. as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
  5166. ;;
  5167. *)
  5168. ;;
  5169. esac
  5170. INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.31 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
  5171. INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
  5172. INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
  5173. if test -n "0.31"; then
  5174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.31" >&5
  5175. $as_echo_n "checking for intltool >= 0.31... " >&6; }
  5176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
  5177. $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
  5178. test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
  5179. as_fn_error $? "Your intltool is too old. You need intltool 0.31 or later." "$LINENO" 5
  5180. fi
  5181. # Extract the first word of "intltool-update", so it can be a program name with args.
  5182. set dummy intltool-update; ac_word=$2
  5183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5184. $as_echo_n "checking for $ac_word... " >&6; }
  5185. if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
  5186. $as_echo_n "(cached) " >&6
  5187. else
  5188. case $INTLTOOL_UPDATE in
  5189. [\\/]* | ?:[\\/]*)
  5190. ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
  5191. ;;
  5192. *)
  5193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5194. for as_dir in $PATH
  5195. do
  5196. IFS=$as_save_IFS
  5197. test -z "$as_dir" && as_dir=.
  5198. for ac_exec_ext in '' $ac_executable_extensions; do
  5199. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5200. ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
  5201. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5202. break 2
  5203. fi
  5204. done
  5205. done
  5206. IFS=$as_save_IFS
  5207. ;;
  5208. esac
  5209. fi
  5210. INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
  5211. if test -n "$INTLTOOL_UPDATE"; then
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
  5213. $as_echo "$INTLTOOL_UPDATE" >&6; }
  5214. else
  5215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5216. $as_echo "no" >&6; }
  5217. fi
  5218. # Extract the first word of "intltool-merge", so it can be a program name with args.
  5219. set dummy intltool-merge; ac_word=$2
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5221. $as_echo_n "checking for $ac_word... " >&6; }
  5222. if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
  5223. $as_echo_n "(cached) " >&6
  5224. else
  5225. case $INTLTOOL_MERGE in
  5226. [\\/]* | ?:[\\/]*)
  5227. ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
  5228. ;;
  5229. *)
  5230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5231. for as_dir in $PATH
  5232. do
  5233. IFS=$as_save_IFS
  5234. test -z "$as_dir" && as_dir=.
  5235. for ac_exec_ext in '' $ac_executable_extensions; do
  5236. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5237. ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
  5238. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5239. break 2
  5240. fi
  5241. done
  5242. done
  5243. IFS=$as_save_IFS
  5244. ;;
  5245. esac
  5246. fi
  5247. INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
  5248. if test -n "$INTLTOOL_MERGE"; then
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
  5250. $as_echo "$INTLTOOL_MERGE" >&6; }
  5251. else
  5252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5253. $as_echo "no" >&6; }
  5254. fi
  5255. # Extract the first word of "intltool-extract", so it can be a program name with args.
  5256. set dummy intltool-extract; ac_word=$2
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5258. $as_echo_n "checking for $ac_word... " >&6; }
  5259. if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
  5260. $as_echo_n "(cached) " >&6
  5261. else
  5262. case $INTLTOOL_EXTRACT in
  5263. [\\/]* | ?:[\\/]*)
  5264. ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
  5265. ;;
  5266. *)
  5267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5268. for as_dir in $PATH
  5269. do
  5270. IFS=$as_save_IFS
  5271. test -z "$as_dir" && as_dir=.
  5272. for ac_exec_ext in '' $ac_executable_extensions; do
  5273. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5274. ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
  5275. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5276. break 2
  5277. fi
  5278. done
  5279. done
  5280. IFS=$as_save_IFS
  5281. ;;
  5282. esac
  5283. fi
  5284. INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
  5285. if test -n "$INTLTOOL_EXTRACT"; then
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
  5287. $as_echo "$INTLTOOL_EXTRACT" >&6; }
  5288. else
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5290. $as_echo "no" >&6; }
  5291. fi
  5292. if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
  5293. as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
  5294. fi
  5295. if test -z "$AM_DEFAULT_VERBOSITY"; then
  5296. AM_DEFAULT_VERBOSITY=1
  5297. fi
  5298. INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
  5299. INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
  5300. INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;'
  5301. INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
  5302. intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
  5303. intltool__v_merge_options_0='-q'
  5304. INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  5305. INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  5306. INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  5307. INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  5308. INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
  5309. INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  5310. INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  5311. INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  5312. INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  5313. INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  5314. INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  5315. if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
  5316. INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
  5317. else
  5318. INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
  5319. fi
  5320. INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  5321. INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  5322. INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  5323. INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  5324. INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  5325. INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  5326. INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  5327. # Check the gettext tools to make sure they are GNU
  5328. # Extract the first word of "xgettext", so it can be a program name with args.
  5329. set dummy xgettext; ac_word=$2
  5330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5331. $as_echo_n "checking for $ac_word... " >&6; }
  5332. if ${ac_cv_path_XGETTEXT+:} false; then :
  5333. $as_echo_n "(cached) " >&6
  5334. else
  5335. case $XGETTEXT in
  5336. [\\/]* | ?:[\\/]*)
  5337. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  5338. ;;
  5339. *)
  5340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5341. for as_dir in $PATH
  5342. do
  5343. IFS=$as_save_IFS
  5344. test -z "$as_dir" && as_dir=.
  5345. for ac_exec_ext in '' $ac_executable_extensions; do
  5346. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5347. ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
  5348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5349. break 2
  5350. fi
  5351. done
  5352. done
  5353. IFS=$as_save_IFS
  5354. ;;
  5355. esac
  5356. fi
  5357. XGETTEXT=$ac_cv_path_XGETTEXT
  5358. if test -n "$XGETTEXT"; then
  5359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  5360. $as_echo "$XGETTEXT" >&6; }
  5361. else
  5362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5363. $as_echo "no" >&6; }
  5364. fi
  5365. # Extract the first word of "msgmerge", so it can be a program name with args.
  5366. set dummy msgmerge; ac_word=$2
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5368. $as_echo_n "checking for $ac_word... " >&6; }
  5369. if ${ac_cv_path_MSGMERGE+:} false; then :
  5370. $as_echo_n "(cached) " >&6
  5371. else
  5372. case $MSGMERGE in
  5373. [\\/]* | ?:[\\/]*)
  5374. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  5375. ;;
  5376. *)
  5377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5378. for as_dir in $PATH
  5379. do
  5380. IFS=$as_save_IFS
  5381. test -z "$as_dir" && as_dir=.
  5382. for ac_exec_ext in '' $ac_executable_extensions; do
  5383. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5384. ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
  5385. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5386. break 2
  5387. fi
  5388. done
  5389. done
  5390. IFS=$as_save_IFS
  5391. ;;
  5392. esac
  5393. fi
  5394. MSGMERGE=$ac_cv_path_MSGMERGE
  5395. if test -n "$MSGMERGE"; then
  5396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  5397. $as_echo "$MSGMERGE" >&6; }
  5398. else
  5399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5400. $as_echo "no" >&6; }
  5401. fi
  5402. # Extract the first word of "msgfmt", so it can be a program name with args.
  5403. set dummy msgfmt; ac_word=$2
  5404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5405. $as_echo_n "checking for $ac_word... " >&6; }
  5406. if ${ac_cv_path_MSGFMT+:} false; then :
  5407. $as_echo_n "(cached) " >&6
  5408. else
  5409. case $MSGFMT in
  5410. [\\/]* | ?:[\\/]*)
  5411. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  5412. ;;
  5413. *)
  5414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5415. for as_dir in $PATH
  5416. do
  5417. IFS=$as_save_IFS
  5418. test -z "$as_dir" && as_dir=.
  5419. for ac_exec_ext in '' $ac_executable_extensions; do
  5420. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5421. ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
  5422. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5423. break 2
  5424. fi
  5425. done
  5426. done
  5427. IFS=$as_save_IFS
  5428. ;;
  5429. esac
  5430. fi
  5431. MSGFMT=$ac_cv_path_MSGFMT
  5432. if test -n "$MSGFMT"; then
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  5434. $as_echo "$MSGFMT" >&6; }
  5435. else
  5436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5437. $as_echo "no" >&6; }
  5438. fi
  5439. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  5440. set dummy gmsgfmt; ac_word=$2
  5441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5442. $as_echo_n "checking for $ac_word... " >&6; }
  5443. if ${ac_cv_path_GMSGFMT+:} false; then :
  5444. $as_echo_n "(cached) " >&6
  5445. else
  5446. case $GMSGFMT in
  5447. [\\/]* | ?:[\\/]*)
  5448. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  5449. ;;
  5450. *)
  5451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5452. for as_dir in $PATH
  5453. do
  5454. IFS=$as_save_IFS
  5455. test -z "$as_dir" && as_dir=.
  5456. for ac_exec_ext in '' $ac_executable_extensions; do
  5457. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5458. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  5459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5460. break 2
  5461. fi
  5462. done
  5463. done
  5464. IFS=$as_save_IFS
  5465. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  5466. ;;
  5467. esac
  5468. fi
  5469. GMSGFMT=$ac_cv_path_GMSGFMT
  5470. if test -n "$GMSGFMT"; then
  5471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  5472. $as_echo "$GMSGFMT" >&6; }
  5473. else
  5474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5475. $as_echo "no" >&6; }
  5476. fi
  5477. if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
  5478. as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
  5479. fi
  5480. xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
  5481. mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
  5482. mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
  5483. if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
  5484. as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
  5485. fi
  5486. # Extract the first word of "perl", so it can be a program name with args.
  5487. set dummy perl; ac_word=$2
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5489. $as_echo_n "checking for $ac_word... " >&6; }
  5490. if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
  5491. $as_echo_n "(cached) " >&6
  5492. else
  5493. case $INTLTOOL_PERL in
  5494. [\\/]* | ?:[\\/]*)
  5495. ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
  5496. ;;
  5497. *)
  5498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5499. for as_dir in $PATH
  5500. do
  5501. IFS=$as_save_IFS
  5502. test -z "$as_dir" && as_dir=.
  5503. for ac_exec_ext in '' $ac_executable_extensions; do
  5504. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5505. ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
  5506. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5507. break 2
  5508. fi
  5509. done
  5510. done
  5511. IFS=$as_save_IFS
  5512. ;;
  5513. esac
  5514. fi
  5515. INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
  5516. if test -n "$INTLTOOL_PERL"; then
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
  5518. $as_echo "$INTLTOOL_PERL" >&6; }
  5519. else
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5521. $as_echo "no" >&6; }
  5522. fi
  5523. if test -z "$INTLTOOL_PERL"; then
  5524. as_fn_error $? "perl not found" "$LINENO" 5
  5525. fi
  5526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
  5527. $as_echo_n "checking for perl >= 5.8.1... " >&6; }
  5528. $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
  5529. if test $? -ne 0; then
  5530. as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
  5531. else
  5532. IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
  5534. $as_echo "$IT_PERL_VERSION" >&6; }
  5535. fi
  5536. if test "xno-xml" != "xno-xml"; then
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
  5538. $as_echo_n "checking for XML::Parser... " >&6; }
  5539. if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5541. $as_echo "ok" >&6; }
  5542. else
  5543. as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
  5544. fi
  5545. fi
  5546. # Substitute ALL_LINGUAS so we can use it in po/Makefile
  5547. # Set DATADIRNAME correctly if it is not set yet
  5548. # (copied from glib-gettext.m4)
  5549. if test -z "$DATADIRNAME"; then
  5550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5551. /* end confdefs.h. */
  5552. int
  5553. main ()
  5554. {
  5555. extern int _nl_msg_cat_cntr;
  5556. return _nl_msg_cat_cntr
  5557. ;
  5558. return 0;
  5559. }
  5560. _ACEOF
  5561. if ac_fn_c_try_link "$LINENO"; then :
  5562. DATADIRNAME=share
  5563. else
  5564. case $host in
  5565. *-*-solaris*)
  5566. ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
  5567. if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
  5568. DATADIRNAME=share
  5569. else
  5570. DATADIRNAME=lib
  5571. fi
  5572. ;;
  5573. *)
  5574. DATADIRNAME=lib
  5575. ;;
  5576. esac
  5577. fi
  5578. rm -f core conftest.err conftest.$ac_objext \
  5579. conftest$ac_exeext conftest.$ac_ext
  5580. fi
  5581. # ===================================================== #
  5582. # Initialize libtool #
  5583. # ===================================================== #
  5584. case `pwd` in
  5585. *\ * | *\ *)
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5587. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5588. esac
  5589. macro_version='2.4.2'
  5590. macro_revision='1.3337'
  5591. ltmain="$ac_aux_dir/ltmain.sh"
  5592. # Backslashify metacharacters that are still active within
  5593. # double-quoted strings.
  5594. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5595. # Same as above, but do not quote variable references.
  5596. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5597. # Sed substitution to delay expansion of an escaped shell variable in a
  5598. # double_quote_subst'ed string.
  5599. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5600. # Sed substitution to delay expansion of an escaped single quote.
  5601. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5602. # Sed substitution to avoid accidental globbing in evaled expressions
  5603. no_glob_subst='s/\*/\\\*/g'
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5605. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5606. if ${lt_cv_path_NM+:} false; then :
  5607. $as_echo_n "(cached) " >&6
  5608. else
  5609. if test -n "$NM"; then
  5610. # Let the user override the test.
  5611. lt_cv_path_NM="$NM"
  5612. else
  5613. lt_nm_to_check="${ac_tool_prefix}nm"
  5614. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5615. lt_nm_to_check="$lt_nm_to_check nm"
  5616. fi
  5617. for lt_tmp_nm in $lt_nm_to_check; do
  5618. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5619. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5620. IFS="$lt_save_ifs"
  5621. test -z "$ac_dir" && ac_dir=.
  5622. tmp_nm="$ac_dir/$lt_tmp_nm"
  5623. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5624. # Check to see if the nm accepts a BSD-compat flag.
  5625. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5626. # nm: unknown option "B" ignored
  5627. # Tru64's nm complains that /dev/null is an invalid object file
  5628. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5629. */dev/null* | *'Invalid file or object type'*)
  5630. lt_cv_path_NM="$tmp_nm -B"
  5631. break
  5632. ;;
  5633. *)
  5634. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5635. */dev/null*)
  5636. lt_cv_path_NM="$tmp_nm -p"
  5637. break
  5638. ;;
  5639. *)
  5640. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5641. continue # so that we can try to find one that supports BSD flags
  5642. ;;
  5643. esac
  5644. ;;
  5645. esac
  5646. fi
  5647. done
  5648. IFS="$lt_save_ifs"
  5649. done
  5650. : ${lt_cv_path_NM=no}
  5651. fi
  5652. fi
  5653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5654. $as_echo "$lt_cv_path_NM" >&6; }
  5655. if test "$lt_cv_path_NM" != "no"; then
  5656. NM="$lt_cv_path_NM"
  5657. else
  5658. # Didn't find any BSD compatible name lister, look for dumpbin.
  5659. if test -n "$DUMPBIN"; then :
  5660. # Let the user override the test.
  5661. else
  5662. if test -n "$ac_tool_prefix"; then
  5663. for ac_prog in dumpbin "link -dump"
  5664. do
  5665. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5666. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5668. $as_echo_n "checking for $ac_word... " >&6; }
  5669. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5670. $as_echo_n "(cached) " >&6
  5671. else
  5672. if test -n "$DUMPBIN"; then
  5673. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5674. else
  5675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5676. for as_dir in $PATH
  5677. do
  5678. IFS=$as_save_IFS
  5679. test -z "$as_dir" && as_dir=.
  5680. for ac_exec_ext in '' $ac_executable_extensions; do
  5681. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5682. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5683. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5684. break 2
  5685. fi
  5686. done
  5687. done
  5688. IFS=$as_save_IFS
  5689. fi
  5690. fi
  5691. DUMPBIN=$ac_cv_prog_DUMPBIN
  5692. if test -n "$DUMPBIN"; then
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5694. $as_echo "$DUMPBIN" >&6; }
  5695. else
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5697. $as_echo "no" >&6; }
  5698. fi
  5699. test -n "$DUMPBIN" && break
  5700. done
  5701. fi
  5702. if test -z "$DUMPBIN"; then
  5703. ac_ct_DUMPBIN=$DUMPBIN
  5704. for ac_prog in dumpbin "link -dump"
  5705. do
  5706. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5707. set dummy $ac_prog; ac_word=$2
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5709. $as_echo_n "checking for $ac_word... " >&6; }
  5710. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5711. $as_echo_n "(cached) " >&6
  5712. else
  5713. if test -n "$ac_ct_DUMPBIN"; then
  5714. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5715. else
  5716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5717. for as_dir in $PATH
  5718. do
  5719. IFS=$as_save_IFS
  5720. test -z "$as_dir" && as_dir=.
  5721. for ac_exec_ext in '' $ac_executable_extensions; do
  5722. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5723. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5724. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5725. break 2
  5726. fi
  5727. done
  5728. done
  5729. IFS=$as_save_IFS
  5730. fi
  5731. fi
  5732. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5733. if test -n "$ac_ct_DUMPBIN"; then
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5735. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5736. else
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5738. $as_echo "no" >&6; }
  5739. fi
  5740. test -n "$ac_ct_DUMPBIN" && break
  5741. done
  5742. if test "x$ac_ct_DUMPBIN" = x; then
  5743. DUMPBIN=":"
  5744. else
  5745. case $cross_compiling:$ac_tool_warned in
  5746. yes:)
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5748. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5749. ac_tool_warned=yes ;;
  5750. esac
  5751. DUMPBIN=$ac_ct_DUMPBIN
  5752. fi
  5753. fi
  5754. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5755. *COFF*)
  5756. DUMPBIN="$DUMPBIN -symbols"
  5757. ;;
  5758. *)
  5759. DUMPBIN=:
  5760. ;;
  5761. esac
  5762. fi
  5763. if test "$DUMPBIN" != ":"; then
  5764. NM="$DUMPBIN"
  5765. fi
  5766. fi
  5767. test -z "$NM" && NM=nm
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5769. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5770. if ${lt_cv_nm_interface+:} false; then :
  5771. $as_echo_n "(cached) " >&6
  5772. else
  5773. lt_cv_nm_interface="BSD nm"
  5774. echo "int some_variable = 0;" > conftest.$ac_ext
  5775. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5776. (eval "$ac_compile" 2>conftest.err)
  5777. cat conftest.err >&5
  5778. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5779. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5780. cat conftest.err >&5
  5781. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5782. cat conftest.out >&5
  5783. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5784. lt_cv_nm_interface="MS dumpbin"
  5785. fi
  5786. rm -f conftest*
  5787. fi
  5788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5789. $as_echo "$lt_cv_nm_interface" >&6; }
  5790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5791. $as_echo_n "checking whether ln -s works... " >&6; }
  5792. LN_S=$as_ln_s
  5793. if test "$LN_S" = "ln -s"; then
  5794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5795. $as_echo "yes" >&6; }
  5796. else
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5798. $as_echo "no, using $LN_S" >&6; }
  5799. fi
  5800. # find the maximum length of command line arguments
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5802. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5803. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5804. $as_echo_n "(cached) " >&6
  5805. else
  5806. i=0
  5807. teststring="ABCD"
  5808. case $build_os in
  5809. msdosdjgpp*)
  5810. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5811. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5812. # during glob expansion). Even if it were fixed, the result of this
  5813. # check would be larger than it should be.
  5814. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5815. ;;
  5816. gnu*)
  5817. # Under GNU Hurd, this test is not required because there is
  5818. # no limit to the length of command line arguments.
  5819. # Libtool will interpret -1 as no limit whatsoever
  5820. lt_cv_sys_max_cmd_len=-1;
  5821. ;;
  5822. cygwin* | mingw* | cegcc*)
  5823. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5824. # about 5 minutes as the teststring grows exponentially.
  5825. # Worse, since 9x/ME are not pre-emptively multitasking,
  5826. # you end up with a "frozen" computer, even though with patience
  5827. # the test eventually succeeds (with a max line length of 256k).
  5828. # Instead, let's just punt: use the minimum linelength reported by
  5829. # all of the supported platforms: 8192 (on NT/2K/XP).
  5830. lt_cv_sys_max_cmd_len=8192;
  5831. ;;
  5832. mint*)
  5833. # On MiNT this can take a long time and run out of memory.
  5834. lt_cv_sys_max_cmd_len=8192;
  5835. ;;
  5836. amigaos*)
  5837. # On AmigaOS with pdksh, this test takes hours, literally.
  5838. # So we just punt and use a minimum line length of 8192.
  5839. lt_cv_sys_max_cmd_len=8192;
  5840. ;;
  5841. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5842. # This has been around since 386BSD, at least. Likely further.
  5843. if test -x /sbin/sysctl; then
  5844. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5845. elif test -x /usr/sbin/sysctl; then
  5846. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5847. else
  5848. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5849. fi
  5850. # And add a safety zone
  5851. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5852. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5853. ;;
  5854. interix*)
  5855. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5856. lt_cv_sys_max_cmd_len=196608
  5857. ;;
  5858. os2*)
  5859. # The test takes a long time on OS/2.
  5860. lt_cv_sys_max_cmd_len=8192
  5861. ;;
  5862. osf*)
  5863. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5864. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5865. # nice to cause kernel panics so lets avoid the loop below.
  5866. # First set a reasonable default.
  5867. lt_cv_sys_max_cmd_len=16384
  5868. #
  5869. if test -x /sbin/sysconfig; then
  5870. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5871. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5872. esac
  5873. fi
  5874. ;;
  5875. sco3.2v5*)
  5876. lt_cv_sys_max_cmd_len=102400
  5877. ;;
  5878. sysv5* | sco5v6* | sysv4.2uw2*)
  5879. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5880. if test -n "$kargmax"; then
  5881. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5882. else
  5883. lt_cv_sys_max_cmd_len=32768
  5884. fi
  5885. ;;
  5886. *)
  5887. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5888. if test -n "$lt_cv_sys_max_cmd_len"; then
  5889. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5890. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5891. else
  5892. # Make teststring a little bigger before we do anything with it.
  5893. # a 1K string should be a reasonable start.
  5894. for i in 1 2 3 4 5 6 7 8 ; do
  5895. teststring=$teststring$teststring
  5896. done
  5897. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5898. # If test is not a shell built-in, we'll probably end up computing a
  5899. # maximum length that is only half of the actual maximum length, but
  5900. # we can't tell.
  5901. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5902. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5903. test $i != 17 # 1/2 MB should be enough
  5904. do
  5905. i=`expr $i + 1`
  5906. teststring=$teststring$teststring
  5907. done
  5908. # Only check the string length outside the loop.
  5909. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5910. teststring=
  5911. # Add a significant safety factor because C++ compilers can tack on
  5912. # massive amounts of additional arguments before passing them to the
  5913. # linker. It appears as though 1/2 is a usable value.
  5914. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5915. fi
  5916. ;;
  5917. esac
  5918. fi
  5919. if test -n $lt_cv_sys_max_cmd_len ; then
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5921. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5922. else
  5923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5924. $as_echo "none" >&6; }
  5925. fi
  5926. max_cmd_len=$lt_cv_sys_max_cmd_len
  5927. : ${CP="cp -f"}
  5928. : ${MV="mv -f"}
  5929. : ${RM="rm -f"}
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5931. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5932. # Try some XSI features
  5933. xsi_shell=no
  5934. ( _lt_dummy="a/b/c"
  5935. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5936. = c,a/b,b/c, \
  5937. && eval 'test $(( 1 + 1 )) -eq 2 \
  5938. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5939. && xsi_shell=yes
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5941. $as_echo "$xsi_shell" >&6; }
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5943. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5944. lt_shell_append=no
  5945. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5946. >/dev/null 2>&1 \
  5947. && lt_shell_append=yes
  5948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5949. $as_echo "$lt_shell_append" >&6; }
  5950. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5951. lt_unset=unset
  5952. else
  5953. lt_unset=false
  5954. fi
  5955. # test EBCDIC or ASCII
  5956. case `echo X|tr X '\101'` in
  5957. A) # ASCII based system
  5958. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5959. lt_SP2NL='tr \040 \012'
  5960. lt_NL2SP='tr \015\012 \040\040'
  5961. ;;
  5962. *) # EBCDIC based system
  5963. lt_SP2NL='tr \100 \n'
  5964. lt_NL2SP='tr \r\n \100\100'
  5965. ;;
  5966. esac
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5968. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5969. if ${lt_cv_to_host_file_cmd+:} false; then :
  5970. $as_echo_n "(cached) " >&6
  5971. else
  5972. case $host in
  5973. *-*-mingw* )
  5974. case $build in
  5975. *-*-mingw* ) # actually msys
  5976. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5977. ;;
  5978. *-*-cygwin* )
  5979. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5980. ;;
  5981. * ) # otherwise, assume *nix
  5982. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5983. ;;
  5984. esac
  5985. ;;
  5986. *-*-cygwin* )
  5987. case $build in
  5988. *-*-mingw* ) # actually msys
  5989. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5990. ;;
  5991. *-*-cygwin* )
  5992. lt_cv_to_host_file_cmd=func_convert_file_noop
  5993. ;;
  5994. * ) # otherwise, assume *nix
  5995. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5996. ;;
  5997. esac
  5998. ;;
  5999. * ) # unhandled hosts (and "normal" native builds)
  6000. lt_cv_to_host_file_cmd=func_convert_file_noop
  6001. ;;
  6002. esac
  6003. fi
  6004. to_host_file_cmd=$lt_cv_to_host_file_cmd
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  6006. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  6007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  6008. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  6009. if ${lt_cv_to_tool_file_cmd+:} false; then :
  6010. $as_echo_n "(cached) " >&6
  6011. else
  6012. #assume ordinary cross tools, or native build.
  6013. lt_cv_to_tool_file_cmd=func_convert_file_noop
  6014. case $host in
  6015. *-*-mingw* )
  6016. case $build in
  6017. *-*-mingw* ) # actually msys
  6018. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  6019. ;;
  6020. esac
  6021. ;;
  6022. esac
  6023. fi
  6024. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  6026. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6028. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6029. if ${lt_cv_ld_reload_flag+:} false; then :
  6030. $as_echo_n "(cached) " >&6
  6031. else
  6032. lt_cv_ld_reload_flag='-r'
  6033. fi
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6035. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6036. reload_flag=$lt_cv_ld_reload_flag
  6037. case $reload_flag in
  6038. "" | " "*) ;;
  6039. *) reload_flag=" $reload_flag" ;;
  6040. esac
  6041. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6042. case $host_os in
  6043. cygwin* | mingw* | pw32* | cegcc*)
  6044. if test "$GCC" != yes; then
  6045. reload_cmds=false
  6046. fi
  6047. ;;
  6048. darwin*)
  6049. if test "$GCC" = yes; then
  6050. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  6051. else
  6052. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6053. fi
  6054. ;;
  6055. esac
  6056. if test -n "$ac_tool_prefix"; then
  6057. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6058. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6060. $as_echo_n "checking for $ac_word... " >&6; }
  6061. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6062. $as_echo_n "(cached) " >&6
  6063. else
  6064. if test -n "$OBJDUMP"; then
  6065. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6066. else
  6067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6068. for as_dir in $PATH
  6069. do
  6070. IFS=$as_save_IFS
  6071. test -z "$as_dir" && as_dir=.
  6072. for ac_exec_ext in '' $ac_executable_extensions; do
  6073. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6074. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6075. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6076. break 2
  6077. fi
  6078. done
  6079. done
  6080. IFS=$as_save_IFS
  6081. fi
  6082. fi
  6083. OBJDUMP=$ac_cv_prog_OBJDUMP
  6084. if test -n "$OBJDUMP"; then
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6086. $as_echo "$OBJDUMP" >&6; }
  6087. else
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6089. $as_echo "no" >&6; }
  6090. fi
  6091. fi
  6092. if test -z "$ac_cv_prog_OBJDUMP"; then
  6093. ac_ct_OBJDUMP=$OBJDUMP
  6094. # Extract the first word of "objdump", so it can be a program name with args.
  6095. set dummy objdump; ac_word=$2
  6096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6097. $as_echo_n "checking for $ac_word... " >&6; }
  6098. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6099. $as_echo_n "(cached) " >&6
  6100. else
  6101. if test -n "$ac_ct_OBJDUMP"; then
  6102. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6103. else
  6104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6105. for as_dir in $PATH
  6106. do
  6107. IFS=$as_save_IFS
  6108. test -z "$as_dir" && as_dir=.
  6109. for ac_exec_ext in '' $ac_executable_extensions; do
  6110. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6111. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6112. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6113. break 2
  6114. fi
  6115. done
  6116. done
  6117. IFS=$as_save_IFS
  6118. fi
  6119. fi
  6120. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6121. if test -n "$ac_ct_OBJDUMP"; then
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6123. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6124. else
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6126. $as_echo "no" >&6; }
  6127. fi
  6128. if test "x$ac_ct_OBJDUMP" = x; then
  6129. OBJDUMP="false"
  6130. else
  6131. case $cross_compiling:$ac_tool_warned in
  6132. yes:)
  6133. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6134. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6135. ac_tool_warned=yes ;;
  6136. esac
  6137. OBJDUMP=$ac_ct_OBJDUMP
  6138. fi
  6139. else
  6140. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6141. fi
  6142. test -z "$OBJDUMP" && OBJDUMP=objdump
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6144. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6145. if ${lt_cv_deplibs_check_method+:} false; then :
  6146. $as_echo_n "(cached) " >&6
  6147. else
  6148. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6149. lt_cv_file_magic_test_file=
  6150. lt_cv_deplibs_check_method='unknown'
  6151. # Need to set the preceding variable on all platforms that support
  6152. # interlibrary dependencies.
  6153. # 'none' -- dependencies not supported.
  6154. # `unknown' -- same as none, but documents that we really don't know.
  6155. # 'pass_all' -- all dependencies passed with no checks.
  6156. # 'test_compile' -- check by making test program.
  6157. # 'file_magic [[regex]]' -- check by looking for files in library path
  6158. # which responds to the $file_magic_cmd with a given extended regex.
  6159. # If you have `file' or equivalent on your system and you're not sure
  6160. # whether `pass_all' will *always* work, you probably want this one.
  6161. case $host_os in
  6162. aix[4-9]*)
  6163. lt_cv_deplibs_check_method=pass_all
  6164. ;;
  6165. beos*)
  6166. lt_cv_deplibs_check_method=pass_all
  6167. ;;
  6168. bsdi[45]*)
  6169. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6170. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6171. lt_cv_file_magic_test_file=/shlib/libc.so
  6172. ;;
  6173. cygwin*)
  6174. # func_win32_libid is a shell function defined in ltmain.sh
  6175. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6176. lt_cv_file_magic_cmd='func_win32_libid'
  6177. ;;
  6178. mingw* | pw32*)
  6179. # Base MSYS/MinGW do not provide the 'file' command needed by
  6180. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6181. # unless we find 'file', for example because we are cross-compiling.
  6182. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  6183. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  6184. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6185. lt_cv_file_magic_cmd='func_win32_libid'
  6186. else
  6187. # Keep this pattern in sync with the one in func_win32_libid.
  6188. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  6189. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6190. fi
  6191. ;;
  6192. cegcc*)
  6193. # use the weaker test based on 'objdump'. See mingw*.
  6194. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6195. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6196. ;;
  6197. darwin* | rhapsody*)
  6198. lt_cv_deplibs_check_method=pass_all
  6199. ;;
  6200. freebsd* | dragonfly*)
  6201. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6202. case $host_cpu in
  6203. i*86 )
  6204. # Not sure whether the presence of OpenBSD here was a mistake.
  6205. # Let's accept both of them until this is cleared up.
  6206. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6207. lt_cv_file_magic_cmd=/usr/bin/file
  6208. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6209. ;;
  6210. esac
  6211. else
  6212. lt_cv_deplibs_check_method=pass_all
  6213. fi
  6214. ;;
  6215. gnu*)
  6216. lt_cv_deplibs_check_method=pass_all
  6217. ;;
  6218. haiku*)
  6219. lt_cv_deplibs_check_method=pass_all
  6220. ;;
  6221. hpux10.20* | hpux11*)
  6222. lt_cv_file_magic_cmd=/usr/bin/file
  6223. case $host_cpu in
  6224. ia64*)
  6225. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6226. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6227. ;;
  6228. hppa*64*)
  6229. 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]'
  6230. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6231. ;;
  6232. *)
  6233. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6234. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6235. ;;
  6236. esac
  6237. ;;
  6238. interix[3-9]*)
  6239. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6240. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6241. ;;
  6242. irix5* | irix6* | nonstopux*)
  6243. case $LD in
  6244. *-32|*"-32 ") libmagic=32-bit;;
  6245. *-n32|*"-n32 ") libmagic=N32;;
  6246. *-64|*"-64 ") libmagic=64-bit;;
  6247. *) libmagic=never-match;;
  6248. esac
  6249. lt_cv_deplibs_check_method=pass_all
  6250. ;;
  6251. # This must be glibc/ELF.
  6252. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6253. lt_cv_deplibs_check_method=pass_all
  6254. ;;
  6255. netbsd*)
  6256. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6257. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6258. else
  6259. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6260. fi
  6261. ;;
  6262. newos6*)
  6263. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6264. lt_cv_file_magic_cmd=/usr/bin/file
  6265. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6266. ;;
  6267. *nto* | *qnx*)
  6268. lt_cv_deplibs_check_method=pass_all
  6269. ;;
  6270. openbsd*)
  6271. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6272. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6273. else
  6274. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6275. fi
  6276. ;;
  6277. osf3* | osf4* | osf5*)
  6278. lt_cv_deplibs_check_method=pass_all
  6279. ;;
  6280. rdos*)
  6281. lt_cv_deplibs_check_method=pass_all
  6282. ;;
  6283. solaris*)
  6284. lt_cv_deplibs_check_method=pass_all
  6285. ;;
  6286. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6287. lt_cv_deplibs_check_method=pass_all
  6288. ;;
  6289. sysv4 | sysv4.3*)
  6290. case $host_vendor in
  6291. motorola)
  6292. 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]'
  6293. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6294. ;;
  6295. ncr)
  6296. lt_cv_deplibs_check_method=pass_all
  6297. ;;
  6298. sequent)
  6299. lt_cv_file_magic_cmd='/bin/file'
  6300. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6301. ;;
  6302. sni)
  6303. lt_cv_file_magic_cmd='/bin/file'
  6304. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6305. lt_cv_file_magic_test_file=/lib/libc.so
  6306. ;;
  6307. siemens)
  6308. lt_cv_deplibs_check_method=pass_all
  6309. ;;
  6310. pc)
  6311. lt_cv_deplibs_check_method=pass_all
  6312. ;;
  6313. esac
  6314. ;;
  6315. tpf*)
  6316. lt_cv_deplibs_check_method=pass_all
  6317. ;;
  6318. esac
  6319. fi
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6321. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6322. file_magic_glob=
  6323. want_nocaseglob=no
  6324. if test "$build" = "$host"; then
  6325. case $host_os in
  6326. mingw* | pw32*)
  6327. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6328. want_nocaseglob=yes
  6329. else
  6330. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6331. fi
  6332. ;;
  6333. esac
  6334. fi
  6335. file_magic_cmd=$lt_cv_file_magic_cmd
  6336. deplibs_check_method=$lt_cv_deplibs_check_method
  6337. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6338. if test -n "$ac_tool_prefix"; then
  6339. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6340. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6342. $as_echo_n "checking for $ac_word... " >&6; }
  6343. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6344. $as_echo_n "(cached) " >&6
  6345. else
  6346. if test -n "$DLLTOOL"; then
  6347. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6348. else
  6349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6350. for as_dir in $PATH
  6351. do
  6352. IFS=$as_save_IFS
  6353. test -z "$as_dir" && as_dir=.
  6354. for ac_exec_ext in '' $ac_executable_extensions; do
  6355. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6356. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6357. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6358. break 2
  6359. fi
  6360. done
  6361. done
  6362. IFS=$as_save_IFS
  6363. fi
  6364. fi
  6365. DLLTOOL=$ac_cv_prog_DLLTOOL
  6366. if test -n "$DLLTOOL"; then
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6368. $as_echo "$DLLTOOL" >&6; }
  6369. else
  6370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6371. $as_echo "no" >&6; }
  6372. fi
  6373. fi
  6374. if test -z "$ac_cv_prog_DLLTOOL"; then
  6375. ac_ct_DLLTOOL=$DLLTOOL
  6376. # Extract the first word of "dlltool", so it can be a program name with args.
  6377. set dummy dlltool; ac_word=$2
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6379. $as_echo_n "checking for $ac_word... " >&6; }
  6380. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6381. $as_echo_n "(cached) " >&6
  6382. else
  6383. if test -n "$ac_ct_DLLTOOL"; then
  6384. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6385. else
  6386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6387. for as_dir in $PATH
  6388. do
  6389. IFS=$as_save_IFS
  6390. test -z "$as_dir" && as_dir=.
  6391. for ac_exec_ext in '' $ac_executable_extensions; do
  6392. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6393. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6394. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6395. break 2
  6396. fi
  6397. done
  6398. done
  6399. IFS=$as_save_IFS
  6400. fi
  6401. fi
  6402. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6403. if test -n "$ac_ct_DLLTOOL"; then
  6404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6405. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6406. else
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6408. $as_echo "no" >&6; }
  6409. fi
  6410. if test "x$ac_ct_DLLTOOL" = x; then
  6411. DLLTOOL="false"
  6412. else
  6413. case $cross_compiling:$ac_tool_warned in
  6414. yes:)
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6416. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6417. ac_tool_warned=yes ;;
  6418. esac
  6419. DLLTOOL=$ac_ct_DLLTOOL
  6420. fi
  6421. else
  6422. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6423. fi
  6424. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6426. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  6427. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  6428. $as_echo_n "(cached) " >&6
  6429. else
  6430. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6431. case $host_os in
  6432. cygwin* | mingw* | pw32* | cegcc*)
  6433. # two different shell functions defined in ltmain.sh
  6434. # decide which to use based on capabilities of $DLLTOOL
  6435. case `$DLLTOOL --help 2>&1` in
  6436. *--identify-strict*)
  6437. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6438. ;;
  6439. *)
  6440. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6441. ;;
  6442. esac
  6443. ;;
  6444. *)
  6445. # fallback: assume linklib IS sharedlib
  6446. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  6447. ;;
  6448. esac
  6449. fi
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6451. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6452. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6453. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6454. if test -n "$ac_tool_prefix"; then
  6455. for ac_prog in ar
  6456. do
  6457. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6458. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6460. $as_echo_n "checking for $ac_word... " >&6; }
  6461. if ${ac_cv_prog_AR+:} false; then :
  6462. $as_echo_n "(cached) " >&6
  6463. else
  6464. if test -n "$AR"; then
  6465. ac_cv_prog_AR="$AR" # Let the user override the test.
  6466. else
  6467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6468. for as_dir in $PATH
  6469. do
  6470. IFS=$as_save_IFS
  6471. test -z "$as_dir" && as_dir=.
  6472. for ac_exec_ext in '' $ac_executable_extensions; do
  6473. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6474. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6475. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6476. break 2
  6477. fi
  6478. done
  6479. done
  6480. IFS=$as_save_IFS
  6481. fi
  6482. fi
  6483. AR=$ac_cv_prog_AR
  6484. if test -n "$AR"; then
  6485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6486. $as_echo "$AR" >&6; }
  6487. else
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6489. $as_echo "no" >&6; }
  6490. fi
  6491. test -n "$AR" && break
  6492. done
  6493. fi
  6494. if test -z "$AR"; then
  6495. ac_ct_AR=$AR
  6496. for ac_prog in ar
  6497. do
  6498. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6499. set dummy $ac_prog; ac_word=$2
  6500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6501. $as_echo_n "checking for $ac_word... " >&6; }
  6502. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6503. $as_echo_n "(cached) " >&6
  6504. else
  6505. if test -n "$ac_ct_AR"; then
  6506. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6507. else
  6508. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6509. for as_dir in $PATH
  6510. do
  6511. IFS=$as_save_IFS
  6512. test -z "$as_dir" && as_dir=.
  6513. for ac_exec_ext in '' $ac_executable_extensions; do
  6514. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6515. ac_cv_prog_ac_ct_AR="$ac_prog"
  6516. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6517. break 2
  6518. fi
  6519. done
  6520. done
  6521. IFS=$as_save_IFS
  6522. fi
  6523. fi
  6524. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6525. if test -n "$ac_ct_AR"; then
  6526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6527. $as_echo "$ac_ct_AR" >&6; }
  6528. else
  6529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6530. $as_echo "no" >&6; }
  6531. fi
  6532. test -n "$ac_ct_AR" && break
  6533. done
  6534. if test "x$ac_ct_AR" = x; then
  6535. AR="false"
  6536. else
  6537. case $cross_compiling:$ac_tool_warned in
  6538. yes:)
  6539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6540. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6541. ac_tool_warned=yes ;;
  6542. esac
  6543. AR=$ac_ct_AR
  6544. fi
  6545. fi
  6546. : ${AR=ar}
  6547. : ${AR_FLAGS=cru}
  6548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6549. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6550. if ${lt_cv_ar_at_file+:} false; then :
  6551. $as_echo_n "(cached) " >&6
  6552. else
  6553. lt_cv_ar_at_file=no
  6554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6555. /* end confdefs.h. */
  6556. int
  6557. main ()
  6558. {
  6559. ;
  6560. return 0;
  6561. }
  6562. _ACEOF
  6563. if ac_fn_c_try_compile "$LINENO"; then :
  6564. echo conftest.$ac_objext > conftest.lst
  6565. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6566. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6567. (eval $lt_ar_try) 2>&5
  6568. ac_status=$?
  6569. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6570. test $ac_status = 0; }
  6571. if test "$ac_status" -eq 0; then
  6572. # Ensure the archiver fails upon bogus file names.
  6573. rm -f conftest.$ac_objext libconftest.a
  6574. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6575. (eval $lt_ar_try) 2>&5
  6576. ac_status=$?
  6577. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6578. test $ac_status = 0; }
  6579. if test "$ac_status" -ne 0; then
  6580. lt_cv_ar_at_file=@
  6581. fi
  6582. fi
  6583. rm -f conftest.* libconftest.a
  6584. fi
  6585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6586. fi
  6587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6588. $as_echo "$lt_cv_ar_at_file" >&6; }
  6589. if test "x$lt_cv_ar_at_file" = xno; then
  6590. archiver_list_spec=
  6591. else
  6592. archiver_list_spec=$lt_cv_ar_at_file
  6593. fi
  6594. if test -n "$ac_tool_prefix"; then
  6595. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6596. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6598. $as_echo_n "checking for $ac_word... " >&6; }
  6599. if ${ac_cv_prog_STRIP+:} false; then :
  6600. $as_echo_n "(cached) " >&6
  6601. else
  6602. if test -n "$STRIP"; then
  6603. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6604. else
  6605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6606. for as_dir in $PATH
  6607. do
  6608. IFS=$as_save_IFS
  6609. test -z "$as_dir" && as_dir=.
  6610. for ac_exec_ext in '' $ac_executable_extensions; do
  6611. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6612. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6614. break 2
  6615. fi
  6616. done
  6617. done
  6618. IFS=$as_save_IFS
  6619. fi
  6620. fi
  6621. STRIP=$ac_cv_prog_STRIP
  6622. if test -n "$STRIP"; then
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6624. $as_echo "$STRIP" >&6; }
  6625. else
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6627. $as_echo "no" >&6; }
  6628. fi
  6629. fi
  6630. if test -z "$ac_cv_prog_STRIP"; then
  6631. ac_ct_STRIP=$STRIP
  6632. # Extract the first word of "strip", so it can be a program name with args.
  6633. set dummy strip; ac_word=$2
  6634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6635. $as_echo_n "checking for $ac_word... " >&6; }
  6636. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6637. $as_echo_n "(cached) " >&6
  6638. else
  6639. if test -n "$ac_ct_STRIP"; then
  6640. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6641. else
  6642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6643. for as_dir in $PATH
  6644. do
  6645. IFS=$as_save_IFS
  6646. test -z "$as_dir" && as_dir=.
  6647. for ac_exec_ext in '' $ac_executable_extensions; do
  6648. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6649. ac_cv_prog_ac_ct_STRIP="strip"
  6650. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6651. break 2
  6652. fi
  6653. done
  6654. done
  6655. IFS=$as_save_IFS
  6656. fi
  6657. fi
  6658. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6659. if test -n "$ac_ct_STRIP"; then
  6660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6661. $as_echo "$ac_ct_STRIP" >&6; }
  6662. else
  6663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6664. $as_echo "no" >&6; }
  6665. fi
  6666. if test "x$ac_ct_STRIP" = x; then
  6667. STRIP=":"
  6668. else
  6669. case $cross_compiling:$ac_tool_warned in
  6670. yes:)
  6671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6672. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6673. ac_tool_warned=yes ;;
  6674. esac
  6675. STRIP=$ac_ct_STRIP
  6676. fi
  6677. else
  6678. STRIP="$ac_cv_prog_STRIP"
  6679. fi
  6680. test -z "$STRIP" && STRIP=:
  6681. if test -n "$ac_tool_prefix"; then
  6682. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6683. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6685. $as_echo_n "checking for $ac_word... " >&6; }
  6686. if ${ac_cv_prog_RANLIB+:} false; then :
  6687. $as_echo_n "(cached) " >&6
  6688. else
  6689. if test -n "$RANLIB"; then
  6690. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6691. else
  6692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6693. for as_dir in $PATH
  6694. do
  6695. IFS=$as_save_IFS
  6696. test -z "$as_dir" && as_dir=.
  6697. for ac_exec_ext in '' $ac_executable_extensions; do
  6698. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6699. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6701. break 2
  6702. fi
  6703. done
  6704. done
  6705. IFS=$as_save_IFS
  6706. fi
  6707. fi
  6708. RANLIB=$ac_cv_prog_RANLIB
  6709. if test -n "$RANLIB"; then
  6710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6711. $as_echo "$RANLIB" >&6; }
  6712. else
  6713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6714. $as_echo "no" >&6; }
  6715. fi
  6716. fi
  6717. if test -z "$ac_cv_prog_RANLIB"; then
  6718. ac_ct_RANLIB=$RANLIB
  6719. # Extract the first word of "ranlib", so it can be a program name with args.
  6720. set dummy ranlib; ac_word=$2
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6722. $as_echo_n "checking for $ac_word... " >&6; }
  6723. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6724. $as_echo_n "(cached) " >&6
  6725. else
  6726. if test -n "$ac_ct_RANLIB"; then
  6727. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6728. else
  6729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6730. for as_dir in $PATH
  6731. do
  6732. IFS=$as_save_IFS
  6733. test -z "$as_dir" && as_dir=.
  6734. for ac_exec_ext in '' $ac_executable_extensions; do
  6735. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6736. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6738. break 2
  6739. fi
  6740. done
  6741. done
  6742. IFS=$as_save_IFS
  6743. fi
  6744. fi
  6745. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6746. if test -n "$ac_ct_RANLIB"; then
  6747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6748. $as_echo "$ac_ct_RANLIB" >&6; }
  6749. else
  6750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6751. $as_echo "no" >&6; }
  6752. fi
  6753. if test "x$ac_ct_RANLIB" = x; then
  6754. RANLIB=":"
  6755. else
  6756. case $cross_compiling:$ac_tool_warned in
  6757. yes:)
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6759. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6760. ac_tool_warned=yes ;;
  6761. esac
  6762. RANLIB=$ac_ct_RANLIB
  6763. fi
  6764. else
  6765. RANLIB="$ac_cv_prog_RANLIB"
  6766. fi
  6767. test -z "$RANLIB" && RANLIB=:
  6768. # Determine commands to create old-style static archives.
  6769. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6770. old_postinstall_cmds='chmod 644 $oldlib'
  6771. old_postuninstall_cmds=
  6772. if test -n "$RANLIB"; then
  6773. case $host_os in
  6774. openbsd*)
  6775. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6776. ;;
  6777. *)
  6778. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6779. ;;
  6780. esac
  6781. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6782. fi
  6783. case $host_os in
  6784. darwin*)
  6785. lock_old_archive_extraction=yes ;;
  6786. *)
  6787. lock_old_archive_extraction=no ;;
  6788. esac
  6789. # If no C compiler was specified, use CC.
  6790. LTCC=${LTCC-"$CC"}
  6791. # If no C compiler flags were specified, use CFLAGS.
  6792. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6793. # Allow CC to be a program name with arguments.
  6794. compiler=$CC
  6795. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6797. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6798. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6799. $as_echo_n "(cached) " >&6
  6800. else
  6801. # These are sane defaults that work on at least a few old systems.
  6802. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6803. # Character class describing NM global symbol codes.
  6804. symcode='[BCDEGRST]'
  6805. # Regexp to match symbols that can be accessed directly from C.
  6806. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6807. # Define system-specific variables.
  6808. case $host_os in
  6809. aix*)
  6810. symcode='[BCDT]'
  6811. ;;
  6812. cygwin* | mingw* | pw32* | cegcc*)
  6813. symcode='[ABCDGISTW]'
  6814. ;;
  6815. hpux*)
  6816. if test "$host_cpu" = ia64; then
  6817. symcode='[ABCDEGRST]'
  6818. fi
  6819. ;;
  6820. irix* | nonstopux*)
  6821. symcode='[BCDEGRST]'
  6822. ;;
  6823. osf*)
  6824. symcode='[BCDEGQRST]'
  6825. ;;
  6826. solaris*)
  6827. symcode='[BDRT]'
  6828. ;;
  6829. sco3.2v5*)
  6830. symcode='[DT]'
  6831. ;;
  6832. sysv4.2uw2*)
  6833. symcode='[DT]'
  6834. ;;
  6835. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6836. symcode='[ABDT]'
  6837. ;;
  6838. sysv4)
  6839. symcode='[DFNSTU]'
  6840. ;;
  6841. esac
  6842. # If we're using GNU nm, then use its standard symbol codes.
  6843. case `$NM -V 2>&1` in
  6844. *GNU* | *'with BFD'*)
  6845. symcode='[ABCDGIRSTW]' ;;
  6846. esac
  6847. # Transform an extracted symbol line into a proper C declaration.
  6848. # Some systems (esp. on ia64) link data and code symbols differently,
  6849. # so use this general approach.
  6850. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6851. # Transform an extracted symbol line into symbol name and symbol address
  6852. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6853. 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'"
  6854. # Handle CRLF in mingw tool chain
  6855. opt_cr=
  6856. case $build_os in
  6857. mingw*)
  6858. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6859. ;;
  6860. esac
  6861. # Try without a prefix underscore, then with it.
  6862. for ac_symprfx in "" "_"; do
  6863. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6864. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6865. # Write the raw and C identifiers.
  6866. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6867. # Fake it for dumpbin and say T for any non-static function
  6868. # and D for any global variable.
  6869. # Also find C++ and __fastcall symbols from MSVC++,
  6870. # which start with @ or ?.
  6871. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6872. " {last_section=section; section=\$ 3};"\
  6873. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6874. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6875. " \$ 0!~/External *\|/{next};"\
  6876. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6877. " {if(hide[section]) next};"\
  6878. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6879. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6880. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6881. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6882. " ' prfx=^$ac_symprfx"
  6883. else
  6884. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6885. fi
  6886. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6887. # Check to see that the pipe works correctly.
  6888. pipe_works=no
  6889. rm -f conftest*
  6890. cat > conftest.$ac_ext <<_LT_EOF
  6891. #ifdef __cplusplus
  6892. extern "C" {
  6893. #endif
  6894. char nm_test_var;
  6895. void nm_test_func(void);
  6896. void nm_test_func(void){}
  6897. #ifdef __cplusplus
  6898. }
  6899. #endif
  6900. int main(){nm_test_var='a';nm_test_func();return(0);}
  6901. _LT_EOF
  6902. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6903. (eval $ac_compile) 2>&5
  6904. ac_status=$?
  6905. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6906. test $ac_status = 0; }; then
  6907. # Now try to grab the symbols.
  6908. nlist=conftest.nm
  6909. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6910. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6911. ac_status=$?
  6912. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6913. test $ac_status = 0; } && test -s "$nlist"; then
  6914. # Try sorting and uniquifying the output.
  6915. if sort "$nlist" | uniq > "$nlist"T; then
  6916. mv -f "$nlist"T "$nlist"
  6917. else
  6918. rm -f "$nlist"T
  6919. fi
  6920. # Make sure that we snagged all the symbols we need.
  6921. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6922. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6923. cat <<_LT_EOF > conftest.$ac_ext
  6924. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6925. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6926. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6927. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6928. # define LT_DLSYM_CONST
  6929. #elif defined(__osf__)
  6930. /* This system does not cope well with relocations in const data. */
  6931. # define LT_DLSYM_CONST
  6932. #else
  6933. # define LT_DLSYM_CONST const
  6934. #endif
  6935. #ifdef __cplusplus
  6936. extern "C" {
  6937. #endif
  6938. _LT_EOF
  6939. # Now generate the symbol file.
  6940. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6941. cat <<_LT_EOF >> conftest.$ac_ext
  6942. /* The mapping between symbol names and symbols. */
  6943. LT_DLSYM_CONST struct {
  6944. const char *name;
  6945. void *address;
  6946. }
  6947. lt__PROGRAM__LTX_preloaded_symbols[] =
  6948. {
  6949. { "@PROGRAM@", (void *) 0 },
  6950. _LT_EOF
  6951. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6952. cat <<\_LT_EOF >> conftest.$ac_ext
  6953. {0, (void *) 0}
  6954. };
  6955. /* This works around a problem in FreeBSD linker */
  6956. #ifdef FREEBSD_WORKAROUND
  6957. static const void *lt_preloaded_setup() {
  6958. return lt__PROGRAM__LTX_preloaded_symbols;
  6959. }
  6960. #endif
  6961. #ifdef __cplusplus
  6962. }
  6963. #endif
  6964. _LT_EOF
  6965. # Now try linking the two files.
  6966. mv conftest.$ac_objext conftstm.$ac_objext
  6967. lt_globsym_save_LIBS=$LIBS
  6968. lt_globsym_save_CFLAGS=$CFLAGS
  6969. LIBS="conftstm.$ac_objext"
  6970. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6971. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6972. (eval $ac_link) 2>&5
  6973. ac_status=$?
  6974. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6975. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6976. pipe_works=yes
  6977. fi
  6978. LIBS=$lt_globsym_save_LIBS
  6979. CFLAGS=$lt_globsym_save_CFLAGS
  6980. else
  6981. echo "cannot find nm_test_func in $nlist" >&5
  6982. fi
  6983. else
  6984. echo "cannot find nm_test_var in $nlist" >&5
  6985. fi
  6986. else
  6987. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6988. fi
  6989. else
  6990. echo "$progname: failed program was:" >&5
  6991. cat conftest.$ac_ext >&5
  6992. fi
  6993. rm -rf conftest* conftst*
  6994. # Do not use the global_symbol_pipe unless it works.
  6995. if test "$pipe_works" = yes; then
  6996. break
  6997. else
  6998. lt_cv_sys_global_symbol_pipe=
  6999. fi
  7000. done
  7001. fi
  7002. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7003. lt_cv_sys_global_symbol_to_cdecl=
  7004. fi
  7005. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7007. $as_echo "failed" >&6; }
  7008. else
  7009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7010. $as_echo "ok" >&6; }
  7011. fi
  7012. # Response file support.
  7013. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7014. nm_file_list_spec='@'
  7015. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  7016. nm_file_list_spec='@'
  7017. fi
  7018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  7019. $as_echo_n "checking for sysroot... " >&6; }
  7020. # Check whether --with-sysroot was given.
  7021. if test "${with_sysroot+set}" = set; then :
  7022. withval=$with_sysroot;
  7023. else
  7024. with_sysroot=no
  7025. fi
  7026. lt_sysroot=
  7027. case ${with_sysroot} in #(
  7028. yes)
  7029. if test "$GCC" = yes; then
  7030. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  7031. fi
  7032. ;; #(
  7033. /*)
  7034. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  7035. ;; #(
  7036. no|'')
  7037. ;; #(
  7038. *)
  7039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  7040. $as_echo "${with_sysroot}" >&6; }
  7041. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  7042. ;;
  7043. esac
  7044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  7045. $as_echo "${lt_sysroot:-no}" >&6; }
  7046. # Check whether --enable-libtool-lock was given.
  7047. if test "${enable_libtool_lock+set}" = set; then :
  7048. enableval=$enable_libtool_lock;
  7049. fi
  7050. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  7051. # Some flags need to be propagated to the compiler or linker for good
  7052. # libtool support.
  7053. case $host in
  7054. ia64-*-hpux*)
  7055. # Find out which ABI we are using.
  7056. echo 'int i;' > conftest.$ac_ext
  7057. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7058. (eval $ac_compile) 2>&5
  7059. ac_status=$?
  7060. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7061. test $ac_status = 0; }; then
  7062. case `/usr/bin/file conftest.$ac_objext` in
  7063. *ELF-32*)
  7064. HPUX_IA64_MODE="32"
  7065. ;;
  7066. *ELF-64*)
  7067. HPUX_IA64_MODE="64"
  7068. ;;
  7069. esac
  7070. fi
  7071. rm -rf conftest*
  7072. ;;
  7073. *-*-irix6*)
  7074. # Find out which ABI we are using.
  7075. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7076. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7077. (eval $ac_compile) 2>&5
  7078. ac_status=$?
  7079. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7080. test $ac_status = 0; }; then
  7081. if test "$lt_cv_prog_gnu_ld" = yes; then
  7082. case `/usr/bin/file conftest.$ac_objext` in
  7083. *32-bit*)
  7084. LD="${LD-ld} -melf32bsmip"
  7085. ;;
  7086. *N32*)
  7087. LD="${LD-ld} -melf32bmipn32"
  7088. ;;
  7089. *64-bit*)
  7090. LD="${LD-ld} -melf64bmip"
  7091. ;;
  7092. esac
  7093. else
  7094. case `/usr/bin/file conftest.$ac_objext` in
  7095. *32-bit*)
  7096. LD="${LD-ld} -32"
  7097. ;;
  7098. *N32*)
  7099. LD="${LD-ld} -n32"
  7100. ;;
  7101. *64-bit*)
  7102. LD="${LD-ld} -64"
  7103. ;;
  7104. esac
  7105. fi
  7106. fi
  7107. rm -rf conftest*
  7108. ;;
  7109. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  7110. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7111. # Find out which ABI we are using.
  7112. echo 'int i;' > conftest.$ac_ext
  7113. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7114. (eval $ac_compile) 2>&5
  7115. ac_status=$?
  7116. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7117. test $ac_status = 0; }; then
  7118. case `/usr/bin/file conftest.o` in
  7119. *32-bit*)
  7120. case $host in
  7121. x86_64-*kfreebsd*-gnu)
  7122. LD="${LD-ld} -m elf_i386_fbsd"
  7123. ;;
  7124. x86_64-*linux*)
  7125. LD="${LD-ld} -m elf_i386"
  7126. ;;
  7127. ppc64-*linux*|powerpc64-*linux*)
  7128. LD="${LD-ld} -m elf32ppclinux"
  7129. ;;
  7130. s390x-*linux*)
  7131. LD="${LD-ld} -m elf_s390"
  7132. ;;
  7133. sparc64-*linux*)
  7134. LD="${LD-ld} -m elf32_sparc"
  7135. ;;
  7136. esac
  7137. ;;
  7138. *64-bit*)
  7139. case $host in
  7140. x86_64-*kfreebsd*-gnu)
  7141. LD="${LD-ld} -m elf_x86_64_fbsd"
  7142. ;;
  7143. x86_64-*linux*)
  7144. LD="${LD-ld} -m elf_x86_64"
  7145. ;;
  7146. ppc*-*linux*|powerpc*-*linux*)
  7147. LD="${LD-ld} -m elf64ppc"
  7148. ;;
  7149. s390*-*linux*|s390*-*tpf*)
  7150. LD="${LD-ld} -m elf64_s390"
  7151. ;;
  7152. sparc*-*linux*)
  7153. LD="${LD-ld} -m elf64_sparc"
  7154. ;;
  7155. esac
  7156. ;;
  7157. esac
  7158. fi
  7159. rm -rf conftest*
  7160. ;;
  7161. *-*-sco3.2v5*)
  7162. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7163. SAVE_CFLAGS="$CFLAGS"
  7164. CFLAGS="$CFLAGS -belf"
  7165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7166. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7167. if ${lt_cv_cc_needs_belf+:} false; then :
  7168. $as_echo_n "(cached) " >&6
  7169. else
  7170. ac_ext=c
  7171. ac_cpp='$CPP $CPPFLAGS'
  7172. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7173. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7174. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7176. /* end confdefs.h. */
  7177. int
  7178. main ()
  7179. {
  7180. ;
  7181. return 0;
  7182. }
  7183. _ACEOF
  7184. if ac_fn_c_try_link "$LINENO"; then :
  7185. lt_cv_cc_needs_belf=yes
  7186. else
  7187. lt_cv_cc_needs_belf=no
  7188. fi
  7189. rm -f core conftest.err conftest.$ac_objext \
  7190. conftest$ac_exeext conftest.$ac_ext
  7191. ac_ext=c
  7192. ac_cpp='$CPP $CPPFLAGS'
  7193. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7194. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7195. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7196. fi
  7197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7198. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7199. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  7200. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7201. CFLAGS="$SAVE_CFLAGS"
  7202. fi
  7203. ;;
  7204. *-*solaris*)
  7205. # Find out which ABI we are using.
  7206. echo 'int i;' > conftest.$ac_ext
  7207. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7208. (eval $ac_compile) 2>&5
  7209. ac_status=$?
  7210. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7211. test $ac_status = 0; }; then
  7212. case `/usr/bin/file conftest.o` in
  7213. *64-bit*)
  7214. case $lt_cv_prog_gnu_ld in
  7215. yes*)
  7216. case $host in
  7217. i?86-*-solaris*)
  7218. LD="${LD-ld} -m elf_x86_64"
  7219. ;;
  7220. sparc*-*-solaris*)
  7221. LD="${LD-ld} -m elf64_sparc"
  7222. ;;
  7223. esac
  7224. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7225. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7226. LD="${LD-ld}_sol2"
  7227. fi
  7228. ;;
  7229. *)
  7230. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7231. LD="${LD-ld} -64"
  7232. fi
  7233. ;;
  7234. esac
  7235. ;;
  7236. esac
  7237. fi
  7238. rm -rf conftest*
  7239. ;;
  7240. esac
  7241. need_locks="$enable_libtool_lock"
  7242. if test -n "$ac_tool_prefix"; then
  7243. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7244. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7246. $as_echo_n "checking for $ac_word... " >&6; }
  7247. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  7248. $as_echo_n "(cached) " >&6
  7249. else
  7250. if test -n "$MANIFEST_TOOL"; then
  7251. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7252. else
  7253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7254. for as_dir in $PATH
  7255. do
  7256. IFS=$as_save_IFS
  7257. test -z "$as_dir" && as_dir=.
  7258. for ac_exec_ext in '' $ac_executable_extensions; do
  7259. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7260. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7262. break 2
  7263. fi
  7264. done
  7265. done
  7266. IFS=$as_save_IFS
  7267. fi
  7268. fi
  7269. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7270. if test -n "$MANIFEST_TOOL"; then
  7271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7272. $as_echo "$MANIFEST_TOOL" >&6; }
  7273. else
  7274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7275. $as_echo "no" >&6; }
  7276. fi
  7277. fi
  7278. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7279. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7280. # Extract the first word of "mt", so it can be a program name with args.
  7281. set dummy mt; ac_word=$2
  7282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7283. $as_echo_n "checking for $ac_word... " >&6; }
  7284. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  7285. $as_echo_n "(cached) " >&6
  7286. else
  7287. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7288. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7289. else
  7290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7291. for as_dir in $PATH
  7292. do
  7293. IFS=$as_save_IFS
  7294. test -z "$as_dir" && as_dir=.
  7295. for ac_exec_ext in '' $ac_executable_extensions; do
  7296. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7297. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7298. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7299. break 2
  7300. fi
  7301. done
  7302. done
  7303. IFS=$as_save_IFS
  7304. fi
  7305. fi
  7306. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7307. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7309. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  7310. else
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7312. $as_echo "no" >&6; }
  7313. fi
  7314. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7315. MANIFEST_TOOL=":"
  7316. else
  7317. case $cross_compiling:$ac_tool_warned in
  7318. yes:)
  7319. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7320. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7321. ac_tool_warned=yes ;;
  7322. esac
  7323. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7324. fi
  7325. else
  7326. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7327. fi
  7328. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7330. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7331. if ${lt_cv_path_mainfest_tool+:} false; then :
  7332. $as_echo_n "(cached) " >&6
  7333. else
  7334. lt_cv_path_mainfest_tool=no
  7335. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7336. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7337. cat conftest.err >&5
  7338. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7339. lt_cv_path_mainfest_tool=yes
  7340. fi
  7341. rm -f conftest*
  7342. fi
  7343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7344. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  7345. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  7346. MANIFEST_TOOL=:
  7347. fi
  7348. case $host_os in
  7349. rhapsody* | darwin*)
  7350. if test -n "$ac_tool_prefix"; then
  7351. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7352. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7354. $as_echo_n "checking for $ac_word... " >&6; }
  7355. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7356. $as_echo_n "(cached) " >&6
  7357. else
  7358. if test -n "$DSYMUTIL"; then
  7359. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7360. else
  7361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7362. for as_dir in $PATH
  7363. do
  7364. IFS=$as_save_IFS
  7365. test -z "$as_dir" && as_dir=.
  7366. for ac_exec_ext in '' $ac_executable_extensions; do
  7367. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7368. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7369. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7370. break 2
  7371. fi
  7372. done
  7373. done
  7374. IFS=$as_save_IFS
  7375. fi
  7376. fi
  7377. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7378. if test -n "$DSYMUTIL"; then
  7379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7380. $as_echo "$DSYMUTIL" >&6; }
  7381. else
  7382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7383. $as_echo "no" >&6; }
  7384. fi
  7385. fi
  7386. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7387. ac_ct_DSYMUTIL=$DSYMUTIL
  7388. # Extract the first word of "dsymutil", so it can be a program name with args.
  7389. set dummy dsymutil; ac_word=$2
  7390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7391. $as_echo_n "checking for $ac_word... " >&6; }
  7392. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7393. $as_echo_n "(cached) " >&6
  7394. else
  7395. if test -n "$ac_ct_DSYMUTIL"; then
  7396. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7397. else
  7398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7399. for as_dir in $PATH
  7400. do
  7401. IFS=$as_save_IFS
  7402. test -z "$as_dir" && as_dir=.
  7403. for ac_exec_ext in '' $ac_executable_extensions; do
  7404. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7405. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7406. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7407. break 2
  7408. fi
  7409. done
  7410. done
  7411. IFS=$as_save_IFS
  7412. fi
  7413. fi
  7414. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7415. if test -n "$ac_ct_DSYMUTIL"; then
  7416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7417. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7418. else
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7420. $as_echo "no" >&6; }
  7421. fi
  7422. if test "x$ac_ct_DSYMUTIL" = x; then
  7423. DSYMUTIL=":"
  7424. else
  7425. case $cross_compiling:$ac_tool_warned in
  7426. yes:)
  7427. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7428. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7429. ac_tool_warned=yes ;;
  7430. esac
  7431. DSYMUTIL=$ac_ct_DSYMUTIL
  7432. fi
  7433. else
  7434. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7435. fi
  7436. if test -n "$ac_tool_prefix"; then
  7437. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7438. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7440. $as_echo_n "checking for $ac_word... " >&6; }
  7441. if ${ac_cv_prog_NMEDIT+:} false; then :
  7442. $as_echo_n "(cached) " >&6
  7443. else
  7444. if test -n "$NMEDIT"; then
  7445. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7446. else
  7447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7448. for as_dir in $PATH
  7449. do
  7450. IFS=$as_save_IFS
  7451. test -z "$as_dir" && as_dir=.
  7452. for ac_exec_ext in '' $ac_executable_extensions; do
  7453. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7454. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7455. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7456. break 2
  7457. fi
  7458. done
  7459. done
  7460. IFS=$as_save_IFS
  7461. fi
  7462. fi
  7463. NMEDIT=$ac_cv_prog_NMEDIT
  7464. if test -n "$NMEDIT"; then
  7465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7466. $as_echo "$NMEDIT" >&6; }
  7467. else
  7468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7469. $as_echo "no" >&6; }
  7470. fi
  7471. fi
  7472. if test -z "$ac_cv_prog_NMEDIT"; then
  7473. ac_ct_NMEDIT=$NMEDIT
  7474. # Extract the first word of "nmedit", so it can be a program name with args.
  7475. set dummy nmedit; ac_word=$2
  7476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7477. $as_echo_n "checking for $ac_word... " >&6; }
  7478. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7479. $as_echo_n "(cached) " >&6
  7480. else
  7481. if test -n "$ac_ct_NMEDIT"; then
  7482. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7483. else
  7484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7485. for as_dir in $PATH
  7486. do
  7487. IFS=$as_save_IFS
  7488. test -z "$as_dir" && as_dir=.
  7489. for ac_exec_ext in '' $ac_executable_extensions; do
  7490. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7491. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7492. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7493. break 2
  7494. fi
  7495. done
  7496. done
  7497. IFS=$as_save_IFS
  7498. fi
  7499. fi
  7500. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7501. if test -n "$ac_ct_NMEDIT"; then
  7502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7503. $as_echo "$ac_ct_NMEDIT" >&6; }
  7504. else
  7505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7506. $as_echo "no" >&6; }
  7507. fi
  7508. if test "x$ac_ct_NMEDIT" = x; then
  7509. NMEDIT=":"
  7510. else
  7511. case $cross_compiling:$ac_tool_warned in
  7512. yes:)
  7513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7514. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7515. ac_tool_warned=yes ;;
  7516. esac
  7517. NMEDIT=$ac_ct_NMEDIT
  7518. fi
  7519. else
  7520. NMEDIT="$ac_cv_prog_NMEDIT"
  7521. fi
  7522. if test -n "$ac_tool_prefix"; then
  7523. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7524. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7526. $as_echo_n "checking for $ac_word... " >&6; }
  7527. if ${ac_cv_prog_LIPO+:} false; then :
  7528. $as_echo_n "(cached) " >&6
  7529. else
  7530. if test -n "$LIPO"; then
  7531. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7532. else
  7533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7534. for as_dir in $PATH
  7535. do
  7536. IFS=$as_save_IFS
  7537. test -z "$as_dir" && as_dir=.
  7538. for ac_exec_ext in '' $ac_executable_extensions; do
  7539. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7540. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7541. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7542. break 2
  7543. fi
  7544. done
  7545. done
  7546. IFS=$as_save_IFS
  7547. fi
  7548. fi
  7549. LIPO=$ac_cv_prog_LIPO
  7550. if test -n "$LIPO"; then
  7551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7552. $as_echo "$LIPO" >&6; }
  7553. else
  7554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7555. $as_echo "no" >&6; }
  7556. fi
  7557. fi
  7558. if test -z "$ac_cv_prog_LIPO"; then
  7559. ac_ct_LIPO=$LIPO
  7560. # Extract the first word of "lipo", so it can be a program name with args.
  7561. set dummy lipo; ac_word=$2
  7562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7563. $as_echo_n "checking for $ac_word... " >&6; }
  7564. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7565. $as_echo_n "(cached) " >&6
  7566. else
  7567. if test -n "$ac_ct_LIPO"; then
  7568. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7569. else
  7570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7571. for as_dir in $PATH
  7572. do
  7573. IFS=$as_save_IFS
  7574. test -z "$as_dir" && as_dir=.
  7575. for ac_exec_ext in '' $ac_executable_extensions; do
  7576. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7577. ac_cv_prog_ac_ct_LIPO="lipo"
  7578. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7579. break 2
  7580. fi
  7581. done
  7582. done
  7583. IFS=$as_save_IFS
  7584. fi
  7585. fi
  7586. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7587. if test -n "$ac_ct_LIPO"; then
  7588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7589. $as_echo "$ac_ct_LIPO" >&6; }
  7590. else
  7591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7592. $as_echo "no" >&6; }
  7593. fi
  7594. if test "x$ac_ct_LIPO" = x; then
  7595. LIPO=":"
  7596. else
  7597. case $cross_compiling:$ac_tool_warned in
  7598. yes:)
  7599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7600. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7601. ac_tool_warned=yes ;;
  7602. esac
  7603. LIPO=$ac_ct_LIPO
  7604. fi
  7605. else
  7606. LIPO="$ac_cv_prog_LIPO"
  7607. fi
  7608. if test -n "$ac_tool_prefix"; then
  7609. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7610. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7612. $as_echo_n "checking for $ac_word... " >&6; }
  7613. if ${ac_cv_prog_OTOOL+:} false; then :
  7614. $as_echo_n "(cached) " >&6
  7615. else
  7616. if test -n "$OTOOL"; then
  7617. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7618. else
  7619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7620. for as_dir in $PATH
  7621. do
  7622. IFS=$as_save_IFS
  7623. test -z "$as_dir" && as_dir=.
  7624. for ac_exec_ext in '' $ac_executable_extensions; do
  7625. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7626. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7628. break 2
  7629. fi
  7630. done
  7631. done
  7632. IFS=$as_save_IFS
  7633. fi
  7634. fi
  7635. OTOOL=$ac_cv_prog_OTOOL
  7636. if test -n "$OTOOL"; then
  7637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7638. $as_echo "$OTOOL" >&6; }
  7639. else
  7640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7641. $as_echo "no" >&6; }
  7642. fi
  7643. fi
  7644. if test -z "$ac_cv_prog_OTOOL"; then
  7645. ac_ct_OTOOL=$OTOOL
  7646. # Extract the first word of "otool", so it can be a program name with args.
  7647. set dummy otool; ac_word=$2
  7648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7649. $as_echo_n "checking for $ac_word... " >&6; }
  7650. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7651. $as_echo_n "(cached) " >&6
  7652. else
  7653. if test -n "$ac_ct_OTOOL"; then
  7654. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7655. else
  7656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7657. for as_dir in $PATH
  7658. do
  7659. IFS=$as_save_IFS
  7660. test -z "$as_dir" && as_dir=.
  7661. for ac_exec_ext in '' $ac_executable_extensions; do
  7662. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7663. ac_cv_prog_ac_ct_OTOOL="otool"
  7664. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7665. break 2
  7666. fi
  7667. done
  7668. done
  7669. IFS=$as_save_IFS
  7670. fi
  7671. fi
  7672. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7673. if test -n "$ac_ct_OTOOL"; then
  7674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7675. $as_echo "$ac_ct_OTOOL" >&6; }
  7676. else
  7677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7678. $as_echo "no" >&6; }
  7679. fi
  7680. if test "x$ac_ct_OTOOL" = x; then
  7681. OTOOL=":"
  7682. else
  7683. case $cross_compiling:$ac_tool_warned in
  7684. yes:)
  7685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7686. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7687. ac_tool_warned=yes ;;
  7688. esac
  7689. OTOOL=$ac_ct_OTOOL
  7690. fi
  7691. else
  7692. OTOOL="$ac_cv_prog_OTOOL"
  7693. fi
  7694. if test -n "$ac_tool_prefix"; then
  7695. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7696. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7698. $as_echo_n "checking for $ac_word... " >&6; }
  7699. if ${ac_cv_prog_OTOOL64+:} false; then :
  7700. $as_echo_n "(cached) " >&6
  7701. else
  7702. if test -n "$OTOOL64"; then
  7703. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7704. else
  7705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7706. for as_dir in $PATH
  7707. do
  7708. IFS=$as_save_IFS
  7709. test -z "$as_dir" && as_dir=.
  7710. for ac_exec_ext in '' $ac_executable_extensions; do
  7711. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7712. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7713. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7714. break 2
  7715. fi
  7716. done
  7717. done
  7718. IFS=$as_save_IFS
  7719. fi
  7720. fi
  7721. OTOOL64=$ac_cv_prog_OTOOL64
  7722. if test -n "$OTOOL64"; then
  7723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7724. $as_echo "$OTOOL64" >&6; }
  7725. else
  7726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7727. $as_echo "no" >&6; }
  7728. fi
  7729. fi
  7730. if test -z "$ac_cv_prog_OTOOL64"; then
  7731. ac_ct_OTOOL64=$OTOOL64
  7732. # Extract the first word of "otool64", so it can be a program name with args.
  7733. set dummy otool64; ac_word=$2
  7734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7735. $as_echo_n "checking for $ac_word... " >&6; }
  7736. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7737. $as_echo_n "(cached) " >&6
  7738. else
  7739. if test -n "$ac_ct_OTOOL64"; then
  7740. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7741. else
  7742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7743. for as_dir in $PATH
  7744. do
  7745. IFS=$as_save_IFS
  7746. test -z "$as_dir" && as_dir=.
  7747. for ac_exec_ext in '' $ac_executable_extensions; do
  7748. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7749. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7751. break 2
  7752. fi
  7753. done
  7754. done
  7755. IFS=$as_save_IFS
  7756. fi
  7757. fi
  7758. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7759. if test -n "$ac_ct_OTOOL64"; then
  7760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7761. $as_echo "$ac_ct_OTOOL64" >&6; }
  7762. else
  7763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7764. $as_echo "no" >&6; }
  7765. fi
  7766. if test "x$ac_ct_OTOOL64" = x; then
  7767. OTOOL64=":"
  7768. else
  7769. case $cross_compiling:$ac_tool_warned in
  7770. yes:)
  7771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7772. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7773. ac_tool_warned=yes ;;
  7774. esac
  7775. OTOOL64=$ac_ct_OTOOL64
  7776. fi
  7777. else
  7778. OTOOL64="$ac_cv_prog_OTOOL64"
  7779. fi
  7780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7781. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7782. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7783. $as_echo_n "(cached) " >&6
  7784. else
  7785. lt_cv_apple_cc_single_mod=no
  7786. if test -z "${LT_MULTI_MODULE}"; then
  7787. # By default we will add the -single_module flag. You can override
  7788. # by either setting the environment variable LT_MULTI_MODULE
  7789. # non-empty at configure time, or by adding -multi_module to the
  7790. # link flags.
  7791. rm -rf libconftest.dylib*
  7792. echo "int foo(void){return 1;}" > conftest.c
  7793. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7794. -dynamiclib -Wl,-single_module conftest.c" >&5
  7795. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7796. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7797. _lt_result=$?
  7798. # If there is a non-empty error log, and "single_module"
  7799. # appears in it, assume the flag caused a linker warning
  7800. if test -s conftest.err && $GREP single_module conftest.err; then
  7801. cat conftest.err >&5
  7802. # Otherwise, if the output was created with a 0 exit code from
  7803. # the compiler, it worked.
  7804. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7805. lt_cv_apple_cc_single_mod=yes
  7806. else
  7807. cat conftest.err >&5
  7808. fi
  7809. rm -rf libconftest.dylib*
  7810. rm -f conftest.*
  7811. fi
  7812. fi
  7813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7814. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7816. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7817. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7818. $as_echo_n "(cached) " >&6
  7819. else
  7820. lt_cv_ld_exported_symbols_list=no
  7821. save_LDFLAGS=$LDFLAGS
  7822. echo "_main" > conftest.sym
  7823. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7825. /* end confdefs.h. */
  7826. int
  7827. main ()
  7828. {
  7829. ;
  7830. return 0;
  7831. }
  7832. _ACEOF
  7833. if ac_fn_c_try_link "$LINENO"; then :
  7834. lt_cv_ld_exported_symbols_list=yes
  7835. else
  7836. lt_cv_ld_exported_symbols_list=no
  7837. fi
  7838. rm -f core conftest.err conftest.$ac_objext \
  7839. conftest$ac_exeext conftest.$ac_ext
  7840. LDFLAGS="$save_LDFLAGS"
  7841. fi
  7842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7843. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7845. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7846. if ${lt_cv_ld_force_load+:} false; then :
  7847. $as_echo_n "(cached) " >&6
  7848. else
  7849. lt_cv_ld_force_load=no
  7850. cat > conftest.c << _LT_EOF
  7851. int forced_loaded() { return 2;}
  7852. _LT_EOF
  7853. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7854. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7855. echo "$AR cru libconftest.a conftest.o" >&5
  7856. $AR cru libconftest.a conftest.o 2>&5
  7857. echo "$RANLIB libconftest.a" >&5
  7858. $RANLIB libconftest.a 2>&5
  7859. cat > conftest.c << _LT_EOF
  7860. int main() { return 0;}
  7861. _LT_EOF
  7862. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7863. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7864. _lt_result=$?
  7865. if test -s conftest.err && $GREP force_load conftest.err; then
  7866. cat conftest.err >&5
  7867. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7868. lt_cv_ld_force_load=yes
  7869. else
  7870. cat conftest.err >&5
  7871. fi
  7872. rm -f conftest.err libconftest.a conftest conftest.c
  7873. rm -rf conftest.dSYM
  7874. fi
  7875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7876. $as_echo "$lt_cv_ld_force_load" >&6; }
  7877. case $host_os in
  7878. rhapsody* | darwin1.[012])
  7879. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7880. darwin1.*)
  7881. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7882. darwin*) # darwin 5.x on
  7883. # if running on 10.5 or later, the deployment target defaults
  7884. # to the OS version, if on x86, and 10.4, the deployment
  7885. # target defaults to 10.4. Don't you love it?
  7886. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7887. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7888. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7889. 10.[012]*)
  7890. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7891. 10.*)
  7892. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7893. esac
  7894. ;;
  7895. esac
  7896. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7897. _lt_dar_single_mod='$single_module'
  7898. fi
  7899. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7900. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7901. else
  7902. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7903. fi
  7904. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7905. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7906. else
  7907. _lt_dsymutil=
  7908. fi
  7909. ;;
  7910. esac
  7911. for ac_header in dlfcn.h
  7912. do :
  7913. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7914. "
  7915. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7916. cat >>confdefs.h <<_ACEOF
  7917. #define HAVE_DLFCN_H 1
  7918. _ACEOF
  7919. fi
  7920. done
  7921. # Set options
  7922. # Check whether --enable-static was given.
  7923. if test "${enable_static+set}" = set; then :
  7924. enableval=$enable_static; p=${PACKAGE-default}
  7925. case $enableval in
  7926. yes) enable_static=yes ;;
  7927. no) enable_static=no ;;
  7928. *)
  7929. enable_static=no
  7930. # Look at the argument we got. We use all the common list separators.
  7931. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7932. for pkg in $enableval; do
  7933. IFS="$lt_save_ifs"
  7934. if test "X$pkg" = "X$p"; then
  7935. enable_static=yes
  7936. fi
  7937. done
  7938. IFS="$lt_save_ifs"
  7939. ;;
  7940. esac
  7941. else
  7942. enable_static=no
  7943. fi
  7944. enable_dlopen=no
  7945. enable_win32_dll=no
  7946. # Check whether --enable-shared was given.
  7947. if test "${enable_shared+set}" = set; then :
  7948. enableval=$enable_shared; p=${PACKAGE-default}
  7949. case $enableval in
  7950. yes) enable_shared=yes ;;
  7951. no) enable_shared=no ;;
  7952. *)
  7953. enable_shared=no
  7954. # Look at the argument we got. We use all the common list separators.
  7955. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7956. for pkg in $enableval; do
  7957. IFS="$lt_save_ifs"
  7958. if test "X$pkg" = "X$p"; then
  7959. enable_shared=yes
  7960. fi
  7961. done
  7962. IFS="$lt_save_ifs"
  7963. ;;
  7964. esac
  7965. else
  7966. enable_shared=yes
  7967. fi
  7968. # Check whether --with-pic was given.
  7969. if test "${with_pic+set}" = set; then :
  7970. withval=$with_pic; lt_p=${PACKAGE-default}
  7971. case $withval in
  7972. yes|no) pic_mode=$withval ;;
  7973. *)
  7974. pic_mode=default
  7975. # Look at the argument we got. We use all the common list separators.
  7976. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7977. for lt_pkg in $withval; do
  7978. IFS="$lt_save_ifs"
  7979. if test "X$lt_pkg" = "X$lt_p"; then
  7980. pic_mode=yes
  7981. fi
  7982. done
  7983. IFS="$lt_save_ifs"
  7984. ;;
  7985. esac
  7986. else
  7987. pic_mode=default
  7988. fi
  7989. test -z "$pic_mode" && pic_mode=default
  7990. # Check whether --enable-fast-install was given.
  7991. if test "${enable_fast_install+set}" = set; then :
  7992. enableval=$enable_fast_install; p=${PACKAGE-default}
  7993. case $enableval in
  7994. yes) enable_fast_install=yes ;;
  7995. no) enable_fast_install=no ;;
  7996. *)
  7997. enable_fast_install=no
  7998. # Look at the argument we got. We use all the common list separators.
  7999. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8000. for pkg in $enableval; do
  8001. IFS="$lt_save_ifs"
  8002. if test "X$pkg" = "X$p"; then
  8003. enable_fast_install=yes
  8004. fi
  8005. done
  8006. IFS="$lt_save_ifs"
  8007. ;;
  8008. esac
  8009. else
  8010. enable_fast_install=yes
  8011. fi
  8012. # This can be used to rebuild libtool when needed
  8013. LIBTOOL_DEPS="$ltmain"
  8014. # Always use our own libtool.
  8015. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8016. test -z "$LN_S" && LN_S="ln -s"
  8017. if test -n "${ZSH_VERSION+set}" ; then
  8018. setopt NO_GLOB_SUBST
  8019. fi
  8020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8021. $as_echo_n "checking for objdir... " >&6; }
  8022. if ${lt_cv_objdir+:} false; then :
  8023. $as_echo_n "(cached) " >&6
  8024. else
  8025. rm -f .libs 2>/dev/null
  8026. mkdir .libs 2>/dev/null
  8027. if test -d .libs; then
  8028. lt_cv_objdir=.libs
  8029. else
  8030. # MS-DOS does not allow filenames that begin with a dot.
  8031. lt_cv_objdir=_libs
  8032. fi
  8033. rmdir .libs 2>/dev/null
  8034. fi
  8035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8036. $as_echo "$lt_cv_objdir" >&6; }
  8037. objdir=$lt_cv_objdir
  8038. cat >>confdefs.h <<_ACEOF
  8039. #define LT_OBJDIR "$lt_cv_objdir/"
  8040. _ACEOF
  8041. case $host_os in
  8042. aix3*)
  8043. # AIX sometimes has problems with the GCC collect2 program. For some
  8044. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8045. # vanish in a puff of smoke.
  8046. if test "X${COLLECT_NAMES+set}" != Xset; then
  8047. COLLECT_NAMES=
  8048. export COLLECT_NAMES
  8049. fi
  8050. ;;
  8051. esac
  8052. # Global variables:
  8053. ofile=libtool
  8054. can_build_shared=yes
  8055. # All known linkers require a `.a' archive for static linking (except MSVC,
  8056. # which needs '.lib').
  8057. libext=a
  8058. with_gnu_ld="$lt_cv_prog_gnu_ld"
  8059. old_CC="$CC"
  8060. old_CFLAGS="$CFLAGS"
  8061. # Set sane defaults for various variables
  8062. test -z "$CC" && CC=cc
  8063. test -z "$LTCC" && LTCC=$CC
  8064. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8065. test -z "$LD" && LD=ld
  8066. test -z "$ac_objext" && ac_objext=o
  8067. for cc_temp in $compiler""; do
  8068. case $cc_temp in
  8069. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8070. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8071. \-*) ;;
  8072. *) break;;
  8073. esac
  8074. done
  8075. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8076. # Only perform the check for file, if the check method requires it
  8077. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8078. case $deplibs_check_method in
  8079. file_magic*)
  8080. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8082. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8083. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8084. $as_echo_n "(cached) " >&6
  8085. else
  8086. case $MAGIC_CMD in
  8087. [\\/*] | ?:[\\/]*)
  8088. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8089. ;;
  8090. *)
  8091. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8092. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8093. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8094. for ac_dir in $ac_dummy; do
  8095. IFS="$lt_save_ifs"
  8096. test -z "$ac_dir" && ac_dir=.
  8097. if test -f $ac_dir/${ac_tool_prefix}file; then
  8098. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8099. if test -n "$file_magic_test_file"; then
  8100. case $deplibs_check_method in
  8101. "file_magic "*)
  8102. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8103. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8104. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8105. $EGREP "$file_magic_regex" > /dev/null; then
  8106. :
  8107. else
  8108. cat <<_LT_EOF 1>&2
  8109. *** Warning: the command libtool uses to detect shared libraries,
  8110. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8111. *** The result is that libtool may fail to recognize shared libraries
  8112. *** as such. This will affect the creation of libtool libraries that
  8113. *** depend on shared libraries, but programs linked with such libtool
  8114. *** libraries will work regardless of this problem. Nevertheless, you
  8115. *** may want to report the problem to your system manager and/or to
  8116. *** bug-libtool@gnu.org
  8117. _LT_EOF
  8118. fi ;;
  8119. esac
  8120. fi
  8121. break
  8122. fi
  8123. done
  8124. IFS="$lt_save_ifs"
  8125. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8126. ;;
  8127. esac
  8128. fi
  8129. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8130. if test -n "$MAGIC_CMD"; then
  8131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8132. $as_echo "$MAGIC_CMD" >&6; }
  8133. else
  8134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8135. $as_echo "no" >&6; }
  8136. fi
  8137. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8138. if test -n "$ac_tool_prefix"; then
  8139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8140. $as_echo_n "checking for file... " >&6; }
  8141. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8142. $as_echo_n "(cached) " >&6
  8143. else
  8144. case $MAGIC_CMD in
  8145. [\\/*] | ?:[\\/]*)
  8146. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8147. ;;
  8148. *)
  8149. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8150. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8151. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8152. for ac_dir in $ac_dummy; do
  8153. IFS="$lt_save_ifs"
  8154. test -z "$ac_dir" && ac_dir=.
  8155. if test -f $ac_dir/file; then
  8156. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8157. if test -n "$file_magic_test_file"; then
  8158. case $deplibs_check_method in
  8159. "file_magic "*)
  8160. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8161. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8162. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8163. $EGREP "$file_magic_regex" > /dev/null; then
  8164. :
  8165. else
  8166. cat <<_LT_EOF 1>&2
  8167. *** Warning: the command libtool uses to detect shared libraries,
  8168. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8169. *** The result is that libtool may fail to recognize shared libraries
  8170. *** as such. This will affect the creation of libtool libraries that
  8171. *** depend on shared libraries, but programs linked with such libtool
  8172. *** libraries will work regardless of this problem. Nevertheless, you
  8173. *** may want to report the problem to your system manager and/or to
  8174. *** bug-libtool@gnu.org
  8175. _LT_EOF
  8176. fi ;;
  8177. esac
  8178. fi
  8179. break
  8180. fi
  8181. done
  8182. IFS="$lt_save_ifs"
  8183. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8184. ;;
  8185. esac
  8186. fi
  8187. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8188. if test -n "$MAGIC_CMD"; then
  8189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8190. $as_echo "$MAGIC_CMD" >&6; }
  8191. else
  8192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8193. $as_echo "no" >&6; }
  8194. fi
  8195. else
  8196. MAGIC_CMD=:
  8197. fi
  8198. fi
  8199. fi
  8200. ;;
  8201. esac
  8202. # Use C for the default configuration in the libtool script
  8203. lt_save_CC="$CC"
  8204. ac_ext=c
  8205. ac_cpp='$CPP $CPPFLAGS'
  8206. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8207. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8208. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8209. # Source file extension for C test sources.
  8210. ac_ext=c
  8211. # Object file extension for compiled C test sources.
  8212. objext=o
  8213. objext=$objext
  8214. # Code to be used in simple compile tests
  8215. lt_simple_compile_test_code="int some_variable = 0;"
  8216. # Code to be used in simple link tests
  8217. lt_simple_link_test_code='int main(){return(0);}'
  8218. # If no C compiler was specified, use CC.
  8219. LTCC=${LTCC-"$CC"}
  8220. # If no C compiler flags were specified, use CFLAGS.
  8221. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8222. # Allow CC to be a program name with arguments.
  8223. compiler=$CC
  8224. # Save the default compiler, since it gets overwritten when the other
  8225. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8226. compiler_DEFAULT=$CC
  8227. # save warnings/boilerplate of simple test code
  8228. ac_outfile=conftest.$ac_objext
  8229. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8230. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8231. _lt_compiler_boilerplate=`cat conftest.err`
  8232. $RM conftest*
  8233. ac_outfile=conftest.$ac_objext
  8234. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8235. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8236. _lt_linker_boilerplate=`cat conftest.err`
  8237. $RM -r conftest*
  8238. if test -n "$compiler"; then
  8239. lt_prog_compiler_no_builtin_flag=
  8240. if test "$GCC" = yes; then
  8241. case $cc_basename in
  8242. nvcc*)
  8243. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8244. *)
  8245. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8246. esac
  8247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8248. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8249. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8250. $as_echo_n "(cached) " >&6
  8251. else
  8252. lt_cv_prog_compiler_rtti_exceptions=no
  8253. ac_outfile=conftest.$ac_objext
  8254. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8255. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8256. # Insert the option either (1) after the last *FLAGS variable, or
  8257. # (2) before a word containing "conftest.", or (3) at the end.
  8258. # Note that $ac_compile itself does not contain backslashes and begins
  8259. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8260. # The option is referenced via a variable to avoid confusing sed.
  8261. lt_compile=`echo "$ac_compile" | $SED \
  8262. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8263. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8264. -e 's:$: $lt_compiler_flag:'`
  8265. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8266. (eval "$lt_compile" 2>conftest.err)
  8267. ac_status=$?
  8268. cat conftest.err >&5
  8269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8270. if (exit $ac_status) && test -s "$ac_outfile"; then
  8271. # The compiler can only warn and ignore the option if not recognized
  8272. # So say no if there are warnings other than the usual output.
  8273. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8274. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8275. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8276. lt_cv_prog_compiler_rtti_exceptions=yes
  8277. fi
  8278. fi
  8279. $RM conftest*
  8280. fi
  8281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8282. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8283. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8284. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8285. else
  8286. :
  8287. fi
  8288. fi
  8289. lt_prog_compiler_wl=
  8290. lt_prog_compiler_pic=
  8291. lt_prog_compiler_static=
  8292. if test "$GCC" = yes; then
  8293. lt_prog_compiler_wl='-Wl,'
  8294. lt_prog_compiler_static='-static'
  8295. case $host_os in
  8296. aix*)
  8297. # All AIX code is PIC.
  8298. if test "$host_cpu" = ia64; then
  8299. # AIX 5 now supports IA64 processor
  8300. lt_prog_compiler_static='-Bstatic'
  8301. fi
  8302. ;;
  8303. amigaos*)
  8304. case $host_cpu in
  8305. powerpc)
  8306. # see comment about AmigaOS4 .so support
  8307. lt_prog_compiler_pic='-fPIC'
  8308. ;;
  8309. m68k)
  8310. # FIXME: we need at least 68020 code to build shared libraries, but
  8311. # adding the `-m68020' flag to GCC prevents building anything better,
  8312. # like `-m68040'.
  8313. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8314. ;;
  8315. esac
  8316. ;;
  8317. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8318. # PIC is the default for these OSes.
  8319. ;;
  8320. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8321. # This hack is so that the source file can tell whether it is being
  8322. # built for inclusion in a dll (and should export symbols for example).
  8323. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8324. # (--disable-auto-import) libraries
  8325. lt_prog_compiler_pic='-DDLL_EXPORT'
  8326. ;;
  8327. darwin* | rhapsody*)
  8328. # PIC is the default on this platform
  8329. # Common symbols not allowed in MH_DYLIB files
  8330. lt_prog_compiler_pic='-fno-common'
  8331. ;;
  8332. haiku*)
  8333. # PIC is the default for Haiku.
  8334. # The "-static" flag exists, but is broken.
  8335. lt_prog_compiler_static=
  8336. ;;
  8337. hpux*)
  8338. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8339. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8340. # sets the default TLS model and affects inlining.
  8341. case $host_cpu in
  8342. hppa*64*)
  8343. # +Z the default
  8344. ;;
  8345. *)
  8346. lt_prog_compiler_pic='-fPIC'
  8347. ;;
  8348. esac
  8349. ;;
  8350. interix[3-9]*)
  8351. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8352. # Instead, we relocate shared libraries at runtime.
  8353. ;;
  8354. msdosdjgpp*)
  8355. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8356. # on systems that don't support them.
  8357. lt_prog_compiler_can_build_shared=no
  8358. enable_shared=no
  8359. ;;
  8360. *nto* | *qnx*)
  8361. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8362. # it will coredump.
  8363. lt_prog_compiler_pic='-fPIC -shared'
  8364. ;;
  8365. sysv4*MP*)
  8366. if test -d /usr/nec; then
  8367. lt_prog_compiler_pic=-Kconform_pic
  8368. fi
  8369. ;;
  8370. *)
  8371. lt_prog_compiler_pic='-fPIC'
  8372. ;;
  8373. esac
  8374. case $cc_basename in
  8375. nvcc*) # Cuda Compiler Driver 2.2
  8376. lt_prog_compiler_wl='-Xlinker '
  8377. if test -n "$lt_prog_compiler_pic"; then
  8378. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8379. fi
  8380. ;;
  8381. esac
  8382. else
  8383. # PORTME Check for flag to pass linker flags through the system compiler.
  8384. case $host_os in
  8385. aix*)
  8386. lt_prog_compiler_wl='-Wl,'
  8387. if test "$host_cpu" = ia64; then
  8388. # AIX 5 now supports IA64 processor
  8389. lt_prog_compiler_static='-Bstatic'
  8390. else
  8391. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8392. fi
  8393. ;;
  8394. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8395. # This hack is so that the source file can tell whether it is being
  8396. # built for inclusion in a dll (and should export symbols for example).
  8397. lt_prog_compiler_pic='-DDLL_EXPORT'
  8398. ;;
  8399. hpux9* | hpux10* | hpux11*)
  8400. lt_prog_compiler_wl='-Wl,'
  8401. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8402. # not for PA HP-UX.
  8403. case $host_cpu in
  8404. hppa*64*|ia64*)
  8405. # +Z the default
  8406. ;;
  8407. *)
  8408. lt_prog_compiler_pic='+Z'
  8409. ;;
  8410. esac
  8411. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8412. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8413. ;;
  8414. irix5* | irix6* | nonstopux*)
  8415. lt_prog_compiler_wl='-Wl,'
  8416. # PIC (with -KPIC) is the default.
  8417. lt_prog_compiler_static='-non_shared'
  8418. ;;
  8419. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8420. case $cc_basename in
  8421. # old Intel for x86_64 which still supported -KPIC.
  8422. ecc*)
  8423. lt_prog_compiler_wl='-Wl,'
  8424. lt_prog_compiler_pic='-KPIC'
  8425. lt_prog_compiler_static='-static'
  8426. ;;
  8427. # icc used to be incompatible with GCC.
  8428. # ICC 10 doesn't accept -KPIC any more.
  8429. icc* | ifort*)
  8430. lt_prog_compiler_wl='-Wl,'
  8431. lt_prog_compiler_pic='-fPIC'
  8432. lt_prog_compiler_static='-static'
  8433. ;;
  8434. # Lahey Fortran 8.1.
  8435. lf95*)
  8436. lt_prog_compiler_wl='-Wl,'
  8437. lt_prog_compiler_pic='--shared'
  8438. lt_prog_compiler_static='--static'
  8439. ;;
  8440. nagfor*)
  8441. # NAG Fortran compiler
  8442. lt_prog_compiler_wl='-Wl,-Wl,,'
  8443. lt_prog_compiler_pic='-PIC'
  8444. lt_prog_compiler_static='-Bstatic'
  8445. ;;
  8446. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8447. # Portland Group compilers (*not* the Pentium gcc compiler,
  8448. # which looks to be a dead project)
  8449. lt_prog_compiler_wl='-Wl,'
  8450. lt_prog_compiler_pic='-fpic'
  8451. lt_prog_compiler_static='-Bstatic'
  8452. ;;
  8453. ccc*)
  8454. lt_prog_compiler_wl='-Wl,'
  8455. # All Alpha code is PIC.
  8456. lt_prog_compiler_static='-non_shared'
  8457. ;;
  8458. xl* | bgxl* | bgf* | mpixl*)
  8459. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8460. lt_prog_compiler_wl='-Wl,'
  8461. lt_prog_compiler_pic='-qpic'
  8462. lt_prog_compiler_static='-qstaticlink'
  8463. ;;
  8464. *)
  8465. case `$CC -V 2>&1 | sed 5q` in
  8466. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8467. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8468. lt_prog_compiler_pic='-KPIC'
  8469. lt_prog_compiler_static='-Bstatic'
  8470. lt_prog_compiler_wl=''
  8471. ;;
  8472. *Sun\ F* | *Sun*Fortran*)
  8473. lt_prog_compiler_pic='-KPIC'
  8474. lt_prog_compiler_static='-Bstatic'
  8475. lt_prog_compiler_wl='-Qoption ld '
  8476. ;;
  8477. *Sun\ C*)
  8478. # Sun C 5.9
  8479. lt_prog_compiler_pic='-KPIC'
  8480. lt_prog_compiler_static='-Bstatic'
  8481. lt_prog_compiler_wl='-Wl,'
  8482. ;;
  8483. *Intel*\ [CF]*Compiler*)
  8484. lt_prog_compiler_wl='-Wl,'
  8485. lt_prog_compiler_pic='-fPIC'
  8486. lt_prog_compiler_static='-static'
  8487. ;;
  8488. *Portland\ Group*)
  8489. lt_prog_compiler_wl='-Wl,'
  8490. lt_prog_compiler_pic='-fpic'
  8491. lt_prog_compiler_static='-Bstatic'
  8492. ;;
  8493. esac
  8494. ;;
  8495. esac
  8496. ;;
  8497. newsos6)
  8498. lt_prog_compiler_pic='-KPIC'
  8499. lt_prog_compiler_static='-Bstatic'
  8500. ;;
  8501. *nto* | *qnx*)
  8502. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8503. # it will coredump.
  8504. lt_prog_compiler_pic='-fPIC -shared'
  8505. ;;
  8506. osf3* | osf4* | osf5*)
  8507. lt_prog_compiler_wl='-Wl,'
  8508. # All OSF/1 code is PIC.
  8509. lt_prog_compiler_static='-non_shared'
  8510. ;;
  8511. rdos*)
  8512. lt_prog_compiler_static='-non_shared'
  8513. ;;
  8514. solaris*)
  8515. lt_prog_compiler_pic='-KPIC'
  8516. lt_prog_compiler_static='-Bstatic'
  8517. case $cc_basename in
  8518. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8519. lt_prog_compiler_wl='-Qoption ld ';;
  8520. *)
  8521. lt_prog_compiler_wl='-Wl,';;
  8522. esac
  8523. ;;
  8524. sunos4*)
  8525. lt_prog_compiler_wl='-Qoption ld '
  8526. lt_prog_compiler_pic='-PIC'
  8527. lt_prog_compiler_static='-Bstatic'
  8528. ;;
  8529. sysv4 | sysv4.2uw2* | sysv4.3*)
  8530. lt_prog_compiler_wl='-Wl,'
  8531. lt_prog_compiler_pic='-KPIC'
  8532. lt_prog_compiler_static='-Bstatic'
  8533. ;;
  8534. sysv4*MP*)
  8535. if test -d /usr/nec ;then
  8536. lt_prog_compiler_pic='-Kconform_pic'
  8537. lt_prog_compiler_static='-Bstatic'
  8538. fi
  8539. ;;
  8540. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8541. lt_prog_compiler_wl='-Wl,'
  8542. lt_prog_compiler_pic='-KPIC'
  8543. lt_prog_compiler_static='-Bstatic'
  8544. ;;
  8545. unicos*)
  8546. lt_prog_compiler_wl='-Wl,'
  8547. lt_prog_compiler_can_build_shared=no
  8548. ;;
  8549. uts4*)
  8550. lt_prog_compiler_pic='-pic'
  8551. lt_prog_compiler_static='-Bstatic'
  8552. ;;
  8553. *)
  8554. lt_prog_compiler_can_build_shared=no
  8555. ;;
  8556. esac
  8557. fi
  8558. case $host_os in
  8559. # For platforms which do not support PIC, -DPIC is meaningless:
  8560. *djgpp*)
  8561. lt_prog_compiler_pic=
  8562. ;;
  8563. *)
  8564. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8565. ;;
  8566. esac
  8567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8568. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8569. if ${lt_cv_prog_compiler_pic+:} false; then :
  8570. $as_echo_n "(cached) " >&6
  8571. else
  8572. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8573. fi
  8574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8575. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8576. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8577. #
  8578. # Check to make sure the PIC flag actually works.
  8579. #
  8580. if test -n "$lt_prog_compiler_pic"; then
  8581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8582. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8583. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8584. $as_echo_n "(cached) " >&6
  8585. else
  8586. lt_cv_prog_compiler_pic_works=no
  8587. ac_outfile=conftest.$ac_objext
  8588. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8589. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8590. # Insert the option either (1) after the last *FLAGS variable, or
  8591. # (2) before a word containing "conftest.", or (3) at the end.
  8592. # Note that $ac_compile itself does not contain backslashes and begins
  8593. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8594. # The option is referenced via a variable to avoid confusing sed.
  8595. lt_compile=`echo "$ac_compile" | $SED \
  8596. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8597. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8598. -e 's:$: $lt_compiler_flag:'`
  8599. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8600. (eval "$lt_compile" 2>conftest.err)
  8601. ac_status=$?
  8602. cat conftest.err >&5
  8603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8604. if (exit $ac_status) && test -s "$ac_outfile"; then
  8605. # The compiler can only warn and ignore the option if not recognized
  8606. # So say no if there are warnings other than the usual output.
  8607. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8608. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8609. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8610. lt_cv_prog_compiler_pic_works=yes
  8611. fi
  8612. fi
  8613. $RM conftest*
  8614. fi
  8615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8616. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8617. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8618. case $lt_prog_compiler_pic in
  8619. "" | " "*) ;;
  8620. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8621. esac
  8622. else
  8623. lt_prog_compiler_pic=
  8624. lt_prog_compiler_can_build_shared=no
  8625. fi
  8626. fi
  8627. #
  8628. # Check to make sure the static flag actually works.
  8629. #
  8630. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8632. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8633. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8634. $as_echo_n "(cached) " >&6
  8635. else
  8636. lt_cv_prog_compiler_static_works=no
  8637. save_LDFLAGS="$LDFLAGS"
  8638. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8639. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8640. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8641. # The linker can only warn and ignore the option if not recognized
  8642. # So say no if there are warnings
  8643. if test -s conftest.err; then
  8644. # Append any errors to the config.log.
  8645. cat conftest.err 1>&5
  8646. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8647. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8648. if diff conftest.exp conftest.er2 >/dev/null; then
  8649. lt_cv_prog_compiler_static_works=yes
  8650. fi
  8651. else
  8652. lt_cv_prog_compiler_static_works=yes
  8653. fi
  8654. fi
  8655. $RM -r conftest*
  8656. LDFLAGS="$save_LDFLAGS"
  8657. fi
  8658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8659. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8660. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8661. :
  8662. else
  8663. lt_prog_compiler_static=
  8664. fi
  8665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8666. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8667. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8668. $as_echo_n "(cached) " >&6
  8669. else
  8670. lt_cv_prog_compiler_c_o=no
  8671. $RM -r conftest 2>/dev/null
  8672. mkdir conftest
  8673. cd conftest
  8674. mkdir out
  8675. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8676. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8677. # Insert the option either (1) after the last *FLAGS variable, or
  8678. # (2) before a word containing "conftest.", or (3) at the end.
  8679. # Note that $ac_compile itself does not contain backslashes and begins
  8680. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8681. lt_compile=`echo "$ac_compile" | $SED \
  8682. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8683. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8684. -e 's:$: $lt_compiler_flag:'`
  8685. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8686. (eval "$lt_compile" 2>out/conftest.err)
  8687. ac_status=$?
  8688. cat out/conftest.err >&5
  8689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8690. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8691. then
  8692. # The compiler can only warn and ignore the option if not recognized
  8693. # So say no if there are warnings
  8694. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8695. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8696. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8697. lt_cv_prog_compiler_c_o=yes
  8698. fi
  8699. fi
  8700. chmod u+w . 2>&5
  8701. $RM conftest*
  8702. # SGI C++ compiler will create directory out/ii_files/ for
  8703. # template instantiation
  8704. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8705. $RM out/* && rmdir out
  8706. cd ..
  8707. $RM -r conftest
  8708. $RM conftest*
  8709. fi
  8710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8711. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8713. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8714. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8715. $as_echo_n "(cached) " >&6
  8716. else
  8717. lt_cv_prog_compiler_c_o=no
  8718. $RM -r conftest 2>/dev/null
  8719. mkdir conftest
  8720. cd conftest
  8721. mkdir out
  8722. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8723. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8724. # Insert the option either (1) after the last *FLAGS variable, or
  8725. # (2) before a word containing "conftest.", or (3) at the end.
  8726. # Note that $ac_compile itself does not contain backslashes and begins
  8727. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8728. lt_compile=`echo "$ac_compile" | $SED \
  8729. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8730. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8731. -e 's:$: $lt_compiler_flag:'`
  8732. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8733. (eval "$lt_compile" 2>out/conftest.err)
  8734. ac_status=$?
  8735. cat out/conftest.err >&5
  8736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8737. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8738. then
  8739. # The compiler can only warn and ignore the option if not recognized
  8740. # So say no if there are warnings
  8741. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8742. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8743. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8744. lt_cv_prog_compiler_c_o=yes
  8745. fi
  8746. fi
  8747. chmod u+w . 2>&5
  8748. $RM conftest*
  8749. # SGI C++ compiler will create directory out/ii_files/ for
  8750. # template instantiation
  8751. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8752. $RM out/* && rmdir out
  8753. cd ..
  8754. $RM -r conftest
  8755. $RM conftest*
  8756. fi
  8757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8758. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8759. hard_links="nottested"
  8760. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8761. # do not overwrite the value of need_locks provided by the user
  8762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8763. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8764. hard_links=yes
  8765. $RM conftest*
  8766. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8767. touch conftest.a
  8768. ln conftest.a conftest.b 2>&5 || hard_links=no
  8769. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8771. $as_echo "$hard_links" >&6; }
  8772. if test "$hard_links" = no; then
  8773. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8774. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8775. need_locks=warn
  8776. fi
  8777. else
  8778. need_locks=no
  8779. fi
  8780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8781. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8782. runpath_var=
  8783. allow_undefined_flag=
  8784. always_export_symbols=no
  8785. archive_cmds=
  8786. archive_expsym_cmds=
  8787. compiler_needs_object=no
  8788. enable_shared_with_static_runtimes=no
  8789. export_dynamic_flag_spec=
  8790. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8791. hardcode_automatic=no
  8792. hardcode_direct=no
  8793. hardcode_direct_absolute=no
  8794. hardcode_libdir_flag_spec=
  8795. hardcode_libdir_separator=
  8796. hardcode_minus_L=no
  8797. hardcode_shlibpath_var=unsupported
  8798. inherit_rpath=no
  8799. link_all_deplibs=unknown
  8800. module_cmds=
  8801. module_expsym_cmds=
  8802. old_archive_from_new_cmds=
  8803. old_archive_from_expsyms_cmds=
  8804. thread_safe_flag_spec=
  8805. whole_archive_flag_spec=
  8806. # include_expsyms should be a list of space-separated symbols to be *always*
  8807. # included in the symbol list
  8808. include_expsyms=
  8809. # exclude_expsyms can be an extended regexp of symbols to exclude
  8810. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8811. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8812. # as well as any symbol that contains `d'.
  8813. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8814. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8815. # platforms (ab)use it in PIC code, but their linkers get confused if
  8816. # the symbol is explicitly referenced. Since portable code cannot
  8817. # rely on this symbol name, it's probably fine to never include it in
  8818. # preloaded symbol tables.
  8819. # Exclude shared library initialization/finalization symbols.
  8820. extract_expsyms_cmds=
  8821. case $host_os in
  8822. cygwin* | mingw* | pw32* | cegcc*)
  8823. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8824. # When not using gcc, we currently assume that we are using
  8825. # Microsoft Visual C++.
  8826. if test "$GCC" != yes; then
  8827. with_gnu_ld=no
  8828. fi
  8829. ;;
  8830. interix*)
  8831. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8832. with_gnu_ld=yes
  8833. ;;
  8834. openbsd*)
  8835. with_gnu_ld=no
  8836. ;;
  8837. esac
  8838. ld_shlibs=yes
  8839. # On some targets, GNU ld is compatible enough with the native linker
  8840. # that we're better off using the native interface for both.
  8841. lt_use_gnu_ld_interface=no
  8842. if test "$with_gnu_ld" = yes; then
  8843. case $host_os in
  8844. aix*)
  8845. # The AIX port of GNU ld has always aspired to compatibility
  8846. # with the native linker. However, as the warning in the GNU ld
  8847. # block says, versions before 2.19.5* couldn't really create working
  8848. # shared libraries, regardless of the interface used.
  8849. case `$LD -v 2>&1` in
  8850. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8851. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8852. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8853. *)
  8854. lt_use_gnu_ld_interface=yes
  8855. ;;
  8856. esac
  8857. ;;
  8858. *)
  8859. lt_use_gnu_ld_interface=yes
  8860. ;;
  8861. esac
  8862. fi
  8863. if test "$lt_use_gnu_ld_interface" = yes; then
  8864. # If archive_cmds runs LD, not CC, wlarc should be empty
  8865. wlarc='${wl}'
  8866. # Set some defaults for GNU ld with shared library support. These
  8867. # are reset later if shared libraries are not supported. Putting them
  8868. # here allows them to be overridden if necessary.
  8869. runpath_var=LD_RUN_PATH
  8870. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8871. export_dynamic_flag_spec='${wl}--export-dynamic'
  8872. # ancient GNU ld didn't support --whole-archive et. al.
  8873. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8874. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8875. else
  8876. whole_archive_flag_spec=
  8877. fi
  8878. supports_anon_versioning=no
  8879. case `$LD -v 2>&1` in
  8880. *GNU\ gold*) supports_anon_versioning=yes ;;
  8881. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8882. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8883. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8884. *\ 2.11.*) ;; # other 2.11 versions
  8885. *) supports_anon_versioning=yes ;;
  8886. esac
  8887. # See if GNU ld supports shared libraries.
  8888. case $host_os in
  8889. aix[3-9]*)
  8890. # On AIX/PPC, the GNU linker is very broken
  8891. if test "$host_cpu" != ia64; then
  8892. ld_shlibs=no
  8893. cat <<_LT_EOF 1>&2
  8894. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8895. *** to be unable to reliably create shared libraries on AIX.
  8896. *** Therefore, libtool is disabling shared libraries support. If you
  8897. *** really care for shared libraries, you may want to install binutils
  8898. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8899. *** You will then need to restart the configuration process.
  8900. _LT_EOF
  8901. fi
  8902. ;;
  8903. amigaos*)
  8904. case $host_cpu in
  8905. powerpc)
  8906. # see comment about AmigaOS4 .so support
  8907. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8908. archive_expsym_cmds=''
  8909. ;;
  8910. m68k)
  8911. 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)'
  8912. hardcode_libdir_flag_spec='-L$libdir'
  8913. hardcode_minus_L=yes
  8914. ;;
  8915. esac
  8916. ;;
  8917. beos*)
  8918. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8919. allow_undefined_flag=unsupported
  8920. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8921. # support --undefined. This deserves some investigation. FIXME
  8922. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8923. else
  8924. ld_shlibs=no
  8925. fi
  8926. ;;
  8927. cygwin* | mingw* | pw32* | cegcc*)
  8928. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8929. # as there is no search path for DLLs.
  8930. hardcode_libdir_flag_spec='-L$libdir'
  8931. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8932. allow_undefined_flag=unsupported
  8933. always_export_symbols=no
  8934. enable_shared_with_static_runtimes=yes
  8935. 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'
  8936. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8937. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8938. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8939. # If the export-symbols file already is a .def file (1st line
  8940. # is EXPORTS), use it as is; otherwise, prepend...
  8941. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8942. cp $export_symbols $output_objdir/$soname.def;
  8943. else
  8944. echo EXPORTS > $output_objdir/$soname.def;
  8945. cat $export_symbols >> $output_objdir/$soname.def;
  8946. fi~
  8947. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8948. else
  8949. ld_shlibs=no
  8950. fi
  8951. ;;
  8952. haiku*)
  8953. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8954. link_all_deplibs=yes
  8955. ;;
  8956. interix[3-9]*)
  8957. hardcode_direct=no
  8958. hardcode_shlibpath_var=no
  8959. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8960. export_dynamic_flag_spec='${wl}-E'
  8961. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8962. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8963. # default) and relocated if they conflict, which is a slow very memory
  8964. # consuming and fragmenting process. To avoid this, we pick a random,
  8965. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8966. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8967. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8968. 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'
  8969. ;;
  8970. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8971. tmp_diet=no
  8972. if test "$host_os" = linux-dietlibc; then
  8973. case $cc_basename in
  8974. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8975. esac
  8976. fi
  8977. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8978. && test "$tmp_diet" = no
  8979. then
  8980. tmp_addflag=' $pic_flag'
  8981. tmp_sharedflag='-shared'
  8982. case $cc_basename,$host_cpu in
  8983. pgcc*) # Portland Group C compiler
  8984. 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'
  8985. tmp_addflag=' $pic_flag'
  8986. ;;
  8987. pgf77* | pgf90* | pgf95* | pgfortran*)
  8988. # Portland Group f77 and f90 compilers
  8989. 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'
  8990. tmp_addflag=' $pic_flag -Mnomain' ;;
  8991. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8992. tmp_addflag=' -i_dynamic' ;;
  8993. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8994. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8995. ifc* | ifort*) # Intel Fortran compiler
  8996. tmp_addflag=' -nofor_main' ;;
  8997. lf95*) # Lahey Fortran 8.1
  8998. whole_archive_flag_spec=
  8999. tmp_sharedflag='--shared' ;;
  9000. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9001. tmp_sharedflag='-qmkshrobj'
  9002. tmp_addflag= ;;
  9003. nvcc*) # Cuda Compiler Driver 2.2
  9004. 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'
  9005. compiler_needs_object=yes
  9006. ;;
  9007. esac
  9008. case `$CC -V 2>&1 | sed 5q` in
  9009. *Sun\ C*) # Sun C 5.9
  9010. 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'
  9011. compiler_needs_object=yes
  9012. tmp_sharedflag='-G' ;;
  9013. *Sun\ F*) # Sun Fortran 8.3
  9014. tmp_sharedflag='-G' ;;
  9015. esac
  9016. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9017. if test "x$supports_anon_versioning" = xyes; then
  9018. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9019. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9020. echo "local: *; };" >> $output_objdir/$libname.ver~
  9021. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9022. fi
  9023. case $cc_basename in
  9024. xlf* | bgf* | bgxlf* | mpixlf*)
  9025. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9026. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9027. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9028. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9029. if test "x$supports_anon_versioning" = xyes; then
  9030. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9031. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9032. echo "local: *; };" >> $output_objdir/$libname.ver~
  9033. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9034. fi
  9035. ;;
  9036. esac
  9037. else
  9038. ld_shlibs=no
  9039. fi
  9040. ;;
  9041. netbsd*)
  9042. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9043. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9044. wlarc=
  9045. else
  9046. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9047. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9048. fi
  9049. ;;
  9050. solaris*)
  9051. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9052. ld_shlibs=no
  9053. cat <<_LT_EOF 1>&2
  9054. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9055. *** create shared libraries on Solaris systems. Therefore, libtool
  9056. *** is disabling shared libraries support. We urge you to upgrade GNU
  9057. *** binutils to release 2.9.1 or newer. Another option is to modify
  9058. *** your PATH or compiler configuration so that the native linker is
  9059. *** used, and then restart.
  9060. _LT_EOF
  9061. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9062. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9063. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9064. else
  9065. ld_shlibs=no
  9066. fi
  9067. ;;
  9068. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9069. case `$LD -v 2>&1` in
  9070. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9071. ld_shlibs=no
  9072. cat <<_LT_EOF 1>&2
  9073. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9074. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9075. *** is disabling shared libraries support. We urge you to upgrade GNU
  9076. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9077. *** your PATH or compiler configuration so that the native linker is
  9078. *** used, and then restart.
  9079. _LT_EOF
  9080. ;;
  9081. *)
  9082. # For security reasons, it is highly recommended that you always
  9083. # use absolute paths for naming shared libraries, and exclude the
  9084. # DT_RUNPATH tag from executables and libraries. But doing so
  9085. # requires that you compile everything twice, which is a pain.
  9086. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9087. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9088. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9089. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9090. else
  9091. ld_shlibs=no
  9092. fi
  9093. ;;
  9094. esac
  9095. ;;
  9096. sunos4*)
  9097. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9098. wlarc=
  9099. hardcode_direct=yes
  9100. hardcode_shlibpath_var=no
  9101. ;;
  9102. *)
  9103. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9104. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9105. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9106. else
  9107. ld_shlibs=no
  9108. fi
  9109. ;;
  9110. esac
  9111. if test "$ld_shlibs" = no; then
  9112. runpath_var=
  9113. hardcode_libdir_flag_spec=
  9114. export_dynamic_flag_spec=
  9115. whole_archive_flag_spec=
  9116. fi
  9117. else
  9118. # PORTME fill in a description of your system's linker (not GNU ld)
  9119. case $host_os in
  9120. aix3*)
  9121. allow_undefined_flag=unsupported
  9122. always_export_symbols=yes
  9123. 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'
  9124. # Note: this linker hardcodes the directories in LIBPATH if there
  9125. # are no directories specified by -L.
  9126. hardcode_minus_L=yes
  9127. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9128. # Neither direct hardcoding nor static linking is supported with a
  9129. # broken collect2.
  9130. hardcode_direct=unsupported
  9131. fi
  9132. ;;
  9133. aix[4-9]*)
  9134. if test "$host_cpu" = ia64; then
  9135. # On IA64, the linker does run time linking by default, so we don't
  9136. # have to do anything special.
  9137. aix_use_runtimelinking=no
  9138. exp_sym_flag='-Bexport'
  9139. no_entry_flag=""
  9140. else
  9141. # If we're using GNU nm, then we don't want the "-C" option.
  9142. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9143. # Also, AIX nm treats weak defined symbols like other global
  9144. # defined symbols, whereas GNU nm marks them as "W".
  9145. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9146. 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'
  9147. else
  9148. 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'
  9149. fi
  9150. aix_use_runtimelinking=no
  9151. # Test if we are trying to use run time linking or normal
  9152. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9153. # need to do runtime linking.
  9154. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9155. for ld_flag in $LDFLAGS; do
  9156. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9157. aix_use_runtimelinking=yes
  9158. break
  9159. fi
  9160. done
  9161. ;;
  9162. esac
  9163. exp_sym_flag='-bexport'
  9164. no_entry_flag='-bnoentry'
  9165. fi
  9166. # When large executables or shared objects are built, AIX ld can
  9167. # have problems creating the table of contents. If linking a library
  9168. # or program results in "error TOC overflow" add -mminimal-toc to
  9169. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9170. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9171. archive_cmds=''
  9172. hardcode_direct=yes
  9173. hardcode_direct_absolute=yes
  9174. hardcode_libdir_separator=':'
  9175. link_all_deplibs=yes
  9176. file_list_spec='${wl}-f,'
  9177. if test "$GCC" = yes; then
  9178. case $host_os in aix4.[012]|aix4.[012].*)
  9179. # We only want to do this on AIX 4.2 and lower, the check
  9180. # below for broken collect2 doesn't work under 4.3+
  9181. collect2name=`${CC} -print-prog-name=collect2`
  9182. if test -f "$collect2name" &&
  9183. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9184. then
  9185. # We have reworked collect2
  9186. :
  9187. else
  9188. # We have old collect2
  9189. hardcode_direct=unsupported
  9190. # It fails to find uninstalled libraries when the uninstalled
  9191. # path is not listed in the libpath. Setting hardcode_minus_L
  9192. # to unsupported forces relinking
  9193. hardcode_minus_L=yes
  9194. hardcode_libdir_flag_spec='-L$libdir'
  9195. hardcode_libdir_separator=
  9196. fi
  9197. ;;
  9198. esac
  9199. shared_flag='-shared'
  9200. if test "$aix_use_runtimelinking" = yes; then
  9201. shared_flag="$shared_flag "'${wl}-G'
  9202. fi
  9203. else
  9204. # not using gcc
  9205. if test "$host_cpu" = ia64; then
  9206. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9207. # chokes on -Wl,-G. The following line is correct:
  9208. shared_flag='-G'
  9209. else
  9210. if test "$aix_use_runtimelinking" = yes; then
  9211. shared_flag='${wl}-G'
  9212. else
  9213. shared_flag='${wl}-bM:SRE'
  9214. fi
  9215. fi
  9216. fi
  9217. export_dynamic_flag_spec='${wl}-bexpall'
  9218. # It seems that -bexpall does not export symbols beginning with
  9219. # underscore (_), so it is better to generate a list of symbols to export.
  9220. always_export_symbols=yes
  9221. if test "$aix_use_runtimelinking" = yes; then
  9222. # Warning - without using the other runtime loading flags (-brtl),
  9223. # -berok will link without error, but may produce a broken library.
  9224. allow_undefined_flag='-berok'
  9225. # Determine the default libpath from the value encoded in an
  9226. # empty executable.
  9227. if test "${lt_cv_aix_libpath+set}" = set; then
  9228. aix_libpath=$lt_cv_aix_libpath
  9229. else
  9230. if ${lt_cv_aix_libpath_+:} false; then :
  9231. $as_echo_n "(cached) " >&6
  9232. else
  9233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9234. /* end confdefs.h. */
  9235. int
  9236. main ()
  9237. {
  9238. ;
  9239. return 0;
  9240. }
  9241. _ACEOF
  9242. if ac_fn_c_try_link "$LINENO"; then :
  9243. lt_aix_libpath_sed='
  9244. /Import File Strings/,/^$/ {
  9245. /^0/ {
  9246. s/^0 *\([^ ]*\) *$/\1/
  9247. p
  9248. }
  9249. }'
  9250. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9251. # Check for a 64-bit object if we didn't find anything.
  9252. if test -z "$lt_cv_aix_libpath_"; then
  9253. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9254. fi
  9255. fi
  9256. rm -f core conftest.err conftest.$ac_objext \
  9257. conftest$ac_exeext conftest.$ac_ext
  9258. if test -z "$lt_cv_aix_libpath_"; then
  9259. lt_cv_aix_libpath_="/usr/lib:/lib"
  9260. fi
  9261. fi
  9262. aix_libpath=$lt_cv_aix_libpath_
  9263. fi
  9264. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9265. 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"
  9266. else
  9267. if test "$host_cpu" = ia64; then
  9268. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9269. allow_undefined_flag="-z nodefs"
  9270. 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"
  9271. else
  9272. # Determine the default libpath from the value encoded in an
  9273. # empty executable.
  9274. if test "${lt_cv_aix_libpath+set}" = set; then
  9275. aix_libpath=$lt_cv_aix_libpath
  9276. else
  9277. if ${lt_cv_aix_libpath_+:} false; then :
  9278. $as_echo_n "(cached) " >&6
  9279. else
  9280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9281. /* end confdefs.h. */
  9282. int
  9283. main ()
  9284. {
  9285. ;
  9286. return 0;
  9287. }
  9288. _ACEOF
  9289. if ac_fn_c_try_link "$LINENO"; then :
  9290. lt_aix_libpath_sed='
  9291. /Import File Strings/,/^$/ {
  9292. /^0/ {
  9293. s/^0 *\([^ ]*\) *$/\1/
  9294. p
  9295. }
  9296. }'
  9297. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9298. # Check for a 64-bit object if we didn't find anything.
  9299. if test -z "$lt_cv_aix_libpath_"; then
  9300. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9301. fi
  9302. fi
  9303. rm -f core conftest.err conftest.$ac_objext \
  9304. conftest$ac_exeext conftest.$ac_ext
  9305. if test -z "$lt_cv_aix_libpath_"; then
  9306. lt_cv_aix_libpath_="/usr/lib:/lib"
  9307. fi
  9308. fi
  9309. aix_libpath=$lt_cv_aix_libpath_
  9310. fi
  9311. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9312. # Warning - without using the other run time loading flags,
  9313. # -berok will link without error, but may produce a broken library.
  9314. no_undefined_flag=' ${wl}-bernotok'
  9315. allow_undefined_flag=' ${wl}-berok'
  9316. if test "$with_gnu_ld" = yes; then
  9317. # We only use this code for GNU lds that support --whole-archive.
  9318. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9319. else
  9320. # Exported symbols can be pulled into shared objects from archives
  9321. whole_archive_flag_spec='$convenience'
  9322. fi
  9323. archive_cmds_need_lc=yes
  9324. # This is similar to how AIX traditionally builds its shared libraries.
  9325. 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'
  9326. fi
  9327. fi
  9328. ;;
  9329. amigaos*)
  9330. case $host_cpu in
  9331. powerpc)
  9332. # see comment about AmigaOS4 .so support
  9333. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9334. archive_expsym_cmds=''
  9335. ;;
  9336. m68k)
  9337. 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)'
  9338. hardcode_libdir_flag_spec='-L$libdir'
  9339. hardcode_minus_L=yes
  9340. ;;
  9341. esac
  9342. ;;
  9343. bsdi[45]*)
  9344. export_dynamic_flag_spec=-rdynamic
  9345. ;;
  9346. cygwin* | mingw* | pw32* | cegcc*)
  9347. # When not using gcc, we currently assume that we are using
  9348. # Microsoft Visual C++.
  9349. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9350. # no search path for DLLs.
  9351. case $cc_basename in
  9352. cl*)
  9353. # Native MSVC
  9354. hardcode_libdir_flag_spec=' '
  9355. allow_undefined_flag=unsupported
  9356. always_export_symbols=yes
  9357. file_list_spec='@'
  9358. # Tell ltmain to make .lib files, not .a files.
  9359. libext=lib
  9360. # Tell ltmain to make .dll files, not .so files.
  9361. shrext_cmds=".dll"
  9362. # FIXME: Setting linknames here is a bad hack.
  9363. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  9364. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9365. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  9366. else
  9367. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  9368. fi~
  9369. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9370. linknames='
  9371. # The linker will not automatically build a static lib if we build a DLL.
  9372. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9373. enable_shared_with_static_runtimes=yes
  9374. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9375. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9376. # Don't use ranlib
  9377. old_postinstall_cmds='chmod 644 $oldlib'
  9378. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9379. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9380. case $lt_outputfile in
  9381. *.exe|*.EXE) ;;
  9382. *)
  9383. lt_outputfile="$lt_outputfile.exe"
  9384. lt_tool_outputfile="$lt_tool_outputfile.exe"
  9385. ;;
  9386. esac~
  9387. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9388. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9389. $RM "$lt_outputfile.manifest";
  9390. fi'
  9391. ;;
  9392. *)
  9393. # Assume MSVC wrapper
  9394. hardcode_libdir_flag_spec=' '
  9395. allow_undefined_flag=unsupported
  9396. # Tell ltmain to make .lib files, not .a files.
  9397. libext=lib
  9398. # Tell ltmain to make .dll files, not .so files.
  9399. shrext_cmds=".dll"
  9400. # FIXME: Setting linknames here is a bad hack.
  9401. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9402. # The linker will automatically build a .lib file if we build a DLL.
  9403. old_archive_from_new_cmds='true'
  9404. # FIXME: Should let the user specify the lib program.
  9405. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9406. enable_shared_with_static_runtimes=yes
  9407. ;;
  9408. esac
  9409. ;;
  9410. darwin* | rhapsody*)
  9411. archive_cmds_need_lc=no
  9412. hardcode_direct=no
  9413. hardcode_automatic=yes
  9414. hardcode_shlibpath_var=unsupported
  9415. if test "$lt_cv_ld_force_load" = "yes"; then
  9416. 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\"`'
  9417. else
  9418. whole_archive_flag_spec=''
  9419. fi
  9420. link_all_deplibs=yes
  9421. allow_undefined_flag="$_lt_dar_allow_undefined"
  9422. case $cc_basename in
  9423. ifort*) _lt_dar_can_shared=yes ;;
  9424. *) _lt_dar_can_shared=$GCC ;;
  9425. esac
  9426. if test "$_lt_dar_can_shared" = "yes"; then
  9427. output_verbose_link_cmd=func_echo_all
  9428. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9429. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9430. 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}"
  9431. 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}"
  9432. else
  9433. ld_shlibs=no
  9434. fi
  9435. ;;
  9436. dgux*)
  9437. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9438. hardcode_libdir_flag_spec='-L$libdir'
  9439. hardcode_shlibpath_var=no
  9440. ;;
  9441. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9442. # support. Future versions do this automatically, but an explicit c++rt0.o
  9443. # does not break anything, and helps significantly (at the cost of a little
  9444. # extra space).
  9445. freebsd2.2*)
  9446. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9447. hardcode_libdir_flag_spec='-R$libdir'
  9448. hardcode_direct=yes
  9449. hardcode_shlibpath_var=no
  9450. ;;
  9451. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9452. freebsd2.*)
  9453. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9454. hardcode_direct=yes
  9455. hardcode_minus_L=yes
  9456. hardcode_shlibpath_var=no
  9457. ;;
  9458. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9459. freebsd* | dragonfly*)
  9460. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9461. hardcode_libdir_flag_spec='-R$libdir'
  9462. hardcode_direct=yes
  9463. hardcode_shlibpath_var=no
  9464. ;;
  9465. hpux9*)
  9466. if test "$GCC" = yes; then
  9467. 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'
  9468. else
  9469. 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'
  9470. fi
  9471. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9472. hardcode_libdir_separator=:
  9473. hardcode_direct=yes
  9474. # hardcode_minus_L: Not really in the search PATH,
  9475. # but as the default location of the library.
  9476. hardcode_minus_L=yes
  9477. export_dynamic_flag_spec='${wl}-E'
  9478. ;;
  9479. hpux10*)
  9480. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9481. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9482. else
  9483. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9484. fi
  9485. if test "$with_gnu_ld" = no; then
  9486. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9487. hardcode_libdir_separator=:
  9488. hardcode_direct=yes
  9489. hardcode_direct_absolute=yes
  9490. export_dynamic_flag_spec='${wl}-E'
  9491. # hardcode_minus_L: Not really in the search PATH,
  9492. # but as the default location of the library.
  9493. hardcode_minus_L=yes
  9494. fi
  9495. ;;
  9496. hpux11*)
  9497. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9498. case $host_cpu in
  9499. hppa*64*)
  9500. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9501. ;;
  9502. ia64*)
  9503. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9504. ;;
  9505. *)
  9506. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9507. ;;
  9508. esac
  9509. else
  9510. case $host_cpu in
  9511. hppa*64*)
  9512. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9513. ;;
  9514. ia64*)
  9515. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9516. ;;
  9517. *)
  9518. # Older versions of the 11.00 compiler do not understand -b yet
  9519. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9521. $as_echo_n "checking if $CC understands -b... " >&6; }
  9522. if ${lt_cv_prog_compiler__b+:} false; then :
  9523. $as_echo_n "(cached) " >&6
  9524. else
  9525. lt_cv_prog_compiler__b=no
  9526. save_LDFLAGS="$LDFLAGS"
  9527. LDFLAGS="$LDFLAGS -b"
  9528. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9529. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9530. # The linker can only warn and ignore the option if not recognized
  9531. # So say no if there are warnings
  9532. if test -s conftest.err; then
  9533. # Append any errors to the config.log.
  9534. cat conftest.err 1>&5
  9535. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9536. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9537. if diff conftest.exp conftest.er2 >/dev/null; then
  9538. lt_cv_prog_compiler__b=yes
  9539. fi
  9540. else
  9541. lt_cv_prog_compiler__b=yes
  9542. fi
  9543. fi
  9544. $RM -r conftest*
  9545. LDFLAGS="$save_LDFLAGS"
  9546. fi
  9547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9548. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9549. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9550. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9551. else
  9552. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9553. fi
  9554. ;;
  9555. esac
  9556. fi
  9557. if test "$with_gnu_ld" = no; then
  9558. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9559. hardcode_libdir_separator=:
  9560. case $host_cpu in
  9561. hppa*64*|ia64*)
  9562. hardcode_direct=no
  9563. hardcode_shlibpath_var=no
  9564. ;;
  9565. *)
  9566. hardcode_direct=yes
  9567. hardcode_direct_absolute=yes
  9568. export_dynamic_flag_spec='${wl}-E'
  9569. # hardcode_minus_L: Not really in the search PATH,
  9570. # but as the default location of the library.
  9571. hardcode_minus_L=yes
  9572. ;;
  9573. esac
  9574. fi
  9575. ;;
  9576. irix5* | irix6* | nonstopux*)
  9577. if test "$GCC" = yes; then
  9578. 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'
  9579. # Try to use the -exported_symbol ld option, if it does not
  9580. # work, assume that -exports_file does not work either and
  9581. # implicitly export all symbols.
  9582. # This should be the same for all languages, so no per-tag cache variable.
  9583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9584. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9585. if ${lt_cv_irix_exported_symbol+:} false; then :
  9586. $as_echo_n "(cached) " >&6
  9587. else
  9588. save_LDFLAGS="$LDFLAGS"
  9589. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9591. /* end confdefs.h. */
  9592. int foo (void) { return 0; }
  9593. _ACEOF
  9594. if ac_fn_c_try_link "$LINENO"; then :
  9595. lt_cv_irix_exported_symbol=yes
  9596. else
  9597. lt_cv_irix_exported_symbol=no
  9598. fi
  9599. rm -f core conftest.err conftest.$ac_objext \
  9600. conftest$ac_exeext conftest.$ac_ext
  9601. LDFLAGS="$save_LDFLAGS"
  9602. fi
  9603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9604. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9605. if test "$lt_cv_irix_exported_symbol" = yes; then
  9606. 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'
  9607. fi
  9608. else
  9609. 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'
  9610. 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'
  9611. fi
  9612. archive_cmds_need_lc='no'
  9613. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9614. hardcode_libdir_separator=:
  9615. inherit_rpath=yes
  9616. link_all_deplibs=yes
  9617. ;;
  9618. netbsd*)
  9619. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9620. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9621. else
  9622. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9623. fi
  9624. hardcode_libdir_flag_spec='-R$libdir'
  9625. hardcode_direct=yes
  9626. hardcode_shlibpath_var=no
  9627. ;;
  9628. newsos6)
  9629. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9630. hardcode_direct=yes
  9631. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9632. hardcode_libdir_separator=:
  9633. hardcode_shlibpath_var=no
  9634. ;;
  9635. *nto* | *qnx*)
  9636. ;;
  9637. openbsd*)
  9638. if test -f /usr/libexec/ld.so; then
  9639. hardcode_direct=yes
  9640. hardcode_shlibpath_var=no
  9641. hardcode_direct_absolute=yes
  9642. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9643. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9644. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9645. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9646. export_dynamic_flag_spec='${wl}-E'
  9647. else
  9648. case $host_os in
  9649. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9650. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9651. hardcode_libdir_flag_spec='-R$libdir'
  9652. ;;
  9653. *)
  9654. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9655. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9656. ;;
  9657. esac
  9658. fi
  9659. else
  9660. ld_shlibs=no
  9661. fi
  9662. ;;
  9663. os2*)
  9664. hardcode_libdir_flag_spec='-L$libdir'
  9665. hardcode_minus_L=yes
  9666. allow_undefined_flag=unsupported
  9667. 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'
  9668. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9669. ;;
  9670. osf3*)
  9671. if test "$GCC" = yes; then
  9672. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9673. 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'
  9674. else
  9675. allow_undefined_flag=' -expect_unresolved \*'
  9676. 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'
  9677. fi
  9678. archive_cmds_need_lc='no'
  9679. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9680. hardcode_libdir_separator=:
  9681. ;;
  9682. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9683. if test "$GCC" = yes; then
  9684. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9685. 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'
  9686. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9687. else
  9688. allow_undefined_flag=' -expect_unresolved \*'
  9689. 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'
  9690. 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~
  9691. $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'
  9692. # Both c and cxx compiler support -rpath directly
  9693. hardcode_libdir_flag_spec='-rpath $libdir'
  9694. fi
  9695. archive_cmds_need_lc='no'
  9696. hardcode_libdir_separator=:
  9697. ;;
  9698. solaris*)
  9699. no_undefined_flag=' -z defs'
  9700. if test "$GCC" = yes; then
  9701. wlarc='${wl}'
  9702. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9703. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9704. $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'
  9705. else
  9706. case `$CC -V 2>&1` in
  9707. *"Compilers 5.0"*)
  9708. wlarc=''
  9709. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9710. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9711. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9712. ;;
  9713. *)
  9714. wlarc='${wl}'
  9715. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9716. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9717. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9718. ;;
  9719. esac
  9720. fi
  9721. hardcode_libdir_flag_spec='-R$libdir'
  9722. hardcode_shlibpath_var=no
  9723. case $host_os in
  9724. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9725. *)
  9726. # The compiler driver will combine and reorder linker options,
  9727. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9728. # but is careful enough not to reorder.
  9729. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9730. if test "$GCC" = yes; then
  9731. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9732. else
  9733. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9734. fi
  9735. ;;
  9736. esac
  9737. link_all_deplibs=yes
  9738. ;;
  9739. sunos4*)
  9740. if test "x$host_vendor" = xsequent; then
  9741. # Use $CC to link under sequent, because it throws in some extra .o
  9742. # files that make .init and .fini sections work.
  9743. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9744. else
  9745. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9746. fi
  9747. hardcode_libdir_flag_spec='-L$libdir'
  9748. hardcode_direct=yes
  9749. hardcode_minus_L=yes
  9750. hardcode_shlibpath_var=no
  9751. ;;
  9752. sysv4)
  9753. case $host_vendor in
  9754. sni)
  9755. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9756. hardcode_direct=yes # is this really true???
  9757. ;;
  9758. siemens)
  9759. ## LD is ld it makes a PLAMLIB
  9760. ## CC just makes a GrossModule.
  9761. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9762. reload_cmds='$CC -r -o $output$reload_objs'
  9763. hardcode_direct=no
  9764. ;;
  9765. motorola)
  9766. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9767. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9768. ;;
  9769. esac
  9770. runpath_var='LD_RUN_PATH'
  9771. hardcode_shlibpath_var=no
  9772. ;;
  9773. sysv4.3*)
  9774. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9775. hardcode_shlibpath_var=no
  9776. export_dynamic_flag_spec='-Bexport'
  9777. ;;
  9778. sysv4*MP*)
  9779. if test -d /usr/nec; then
  9780. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9781. hardcode_shlibpath_var=no
  9782. runpath_var=LD_RUN_PATH
  9783. hardcode_runpath_var=yes
  9784. ld_shlibs=yes
  9785. fi
  9786. ;;
  9787. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9788. no_undefined_flag='${wl}-z,text'
  9789. archive_cmds_need_lc=no
  9790. hardcode_shlibpath_var=no
  9791. runpath_var='LD_RUN_PATH'
  9792. if test "$GCC" = yes; then
  9793. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9794. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9795. else
  9796. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9797. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9798. fi
  9799. ;;
  9800. sysv5* | sco3.2v5* | sco5v6*)
  9801. # Note: We can NOT use -z defs as we might desire, because we do not
  9802. # link with -lc, and that would cause any symbols used from libc to
  9803. # always be unresolved, which means just about no library would
  9804. # ever link correctly. If we're not using GNU ld we use -z text
  9805. # though, which does catch some bad symbols but isn't as heavy-handed
  9806. # as -z defs.
  9807. no_undefined_flag='${wl}-z,text'
  9808. allow_undefined_flag='${wl}-z,nodefs'
  9809. archive_cmds_need_lc=no
  9810. hardcode_shlibpath_var=no
  9811. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9812. hardcode_libdir_separator=':'
  9813. link_all_deplibs=yes
  9814. export_dynamic_flag_spec='${wl}-Bexport'
  9815. runpath_var='LD_RUN_PATH'
  9816. if test "$GCC" = yes; then
  9817. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9818. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9819. else
  9820. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9821. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9822. fi
  9823. ;;
  9824. uts4*)
  9825. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9826. hardcode_libdir_flag_spec='-L$libdir'
  9827. hardcode_shlibpath_var=no
  9828. ;;
  9829. *)
  9830. ld_shlibs=no
  9831. ;;
  9832. esac
  9833. if test x$host_vendor = xsni; then
  9834. case $host in
  9835. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9836. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9837. ;;
  9838. esac
  9839. fi
  9840. fi
  9841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9842. $as_echo "$ld_shlibs" >&6; }
  9843. test "$ld_shlibs" = no && can_build_shared=no
  9844. with_gnu_ld=$with_gnu_ld
  9845. #
  9846. # Do we need to explicitly link libc?
  9847. #
  9848. case "x$archive_cmds_need_lc" in
  9849. x|xyes)
  9850. # Assume -lc should be added
  9851. archive_cmds_need_lc=yes
  9852. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9853. case $archive_cmds in
  9854. *'~'*)
  9855. # FIXME: we may have to deal with multi-command sequences.
  9856. ;;
  9857. '$CC '*)
  9858. # Test whether the compiler implicitly links with -lc since on some
  9859. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9860. # to ld, don't add -lc before -lgcc.
  9861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9862. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9863. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9864. $as_echo_n "(cached) " >&6
  9865. else
  9866. $RM conftest*
  9867. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9868. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9869. (eval $ac_compile) 2>&5
  9870. ac_status=$?
  9871. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9872. test $ac_status = 0; } 2>conftest.err; then
  9873. soname=conftest
  9874. lib=conftest
  9875. libobjs=conftest.$ac_objext
  9876. deplibs=
  9877. wl=$lt_prog_compiler_wl
  9878. pic_flag=$lt_prog_compiler_pic
  9879. compiler_flags=-v
  9880. linker_flags=-v
  9881. verstring=
  9882. output_objdir=.
  9883. libname=conftest
  9884. lt_save_allow_undefined_flag=$allow_undefined_flag
  9885. allow_undefined_flag=
  9886. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9887. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9888. ac_status=$?
  9889. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9890. test $ac_status = 0; }
  9891. then
  9892. lt_cv_archive_cmds_need_lc=no
  9893. else
  9894. lt_cv_archive_cmds_need_lc=yes
  9895. fi
  9896. allow_undefined_flag=$lt_save_allow_undefined_flag
  9897. else
  9898. cat conftest.err 1>&5
  9899. fi
  9900. $RM conftest*
  9901. fi
  9902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9903. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9904. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9905. ;;
  9906. esac
  9907. fi
  9908. ;;
  9909. esac
  9910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9911. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9912. if test "$GCC" = yes; then
  9913. case $host_os in
  9914. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9915. *) lt_awk_arg="/^libraries:/" ;;
  9916. esac
  9917. case $host_os in
  9918. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9919. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9920. esac
  9921. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9922. case $lt_search_path_spec in
  9923. *\;*)
  9924. # if the path contains ";" then we assume it to be the separator
  9925. # otherwise default to the standard path separator (i.e. ":") - it is
  9926. # assumed that no part of a normal pathname contains ";" but that should
  9927. # okay in the real world where ";" in dirpaths is itself problematic.
  9928. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9929. ;;
  9930. *)
  9931. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9932. ;;
  9933. esac
  9934. # Ok, now we have the path, separated by spaces, we can step through it
  9935. # and add multilib dir if necessary.
  9936. lt_tmp_lt_search_path_spec=
  9937. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9938. for lt_sys_path in $lt_search_path_spec; do
  9939. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9940. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9941. else
  9942. test -d "$lt_sys_path" && \
  9943. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9944. fi
  9945. done
  9946. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9947. BEGIN {RS=" "; FS="/|\n";} {
  9948. lt_foo="";
  9949. lt_count=0;
  9950. for (lt_i = NF; lt_i > 0; lt_i--) {
  9951. if ($lt_i != "" && $lt_i != ".") {
  9952. if ($lt_i == "..") {
  9953. lt_count++;
  9954. } else {
  9955. if (lt_count == 0) {
  9956. lt_foo="/" $lt_i lt_foo;
  9957. } else {
  9958. lt_count--;
  9959. }
  9960. }
  9961. }
  9962. }
  9963. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9964. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9965. }'`
  9966. # AWK program above erroneously prepends '/' to C:/dos/paths
  9967. # for these hosts.
  9968. case $host_os in
  9969. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9970. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9971. esac
  9972. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9973. else
  9974. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9975. fi
  9976. library_names_spec=
  9977. libname_spec='lib$name'
  9978. soname_spec=
  9979. shrext_cmds=".so"
  9980. postinstall_cmds=
  9981. postuninstall_cmds=
  9982. finish_cmds=
  9983. finish_eval=
  9984. shlibpath_var=
  9985. shlibpath_overrides_runpath=unknown
  9986. version_type=none
  9987. dynamic_linker="$host_os ld.so"
  9988. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9989. need_lib_prefix=unknown
  9990. hardcode_into_libs=no
  9991. # when you set need_version to no, make sure it does not cause -set_version
  9992. # flags to be left without arguments
  9993. need_version=unknown
  9994. case $host_os in
  9995. aix3*)
  9996. version_type=linux # correct to gnu/linux during the next big refactor
  9997. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9998. shlibpath_var=LIBPATH
  9999. # AIX 3 has no versioning support, so we append a major version to the name.
  10000. soname_spec='${libname}${release}${shared_ext}$major'
  10001. ;;
  10002. aix[4-9]*)
  10003. version_type=linux # correct to gnu/linux during the next big refactor
  10004. need_lib_prefix=no
  10005. need_version=no
  10006. hardcode_into_libs=yes
  10007. if test "$host_cpu" = ia64; then
  10008. # AIX 5 supports IA64
  10009. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10010. shlibpath_var=LD_LIBRARY_PATH
  10011. else
  10012. # With GCC up to 2.95.x, collect2 would create an import file
  10013. # for dependence libraries. The import file would start with
  10014. # the line `#! .'. This would cause the generated library to
  10015. # depend on `.', always an invalid library. This was fixed in
  10016. # development snapshots of GCC prior to 3.0.
  10017. case $host_os in
  10018. aix4 | aix4.[01] | aix4.[01].*)
  10019. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10020. echo ' yes '
  10021. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  10022. :
  10023. else
  10024. can_build_shared=no
  10025. fi
  10026. ;;
  10027. esac
  10028. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10029. # soname into executable. Probably we can add versioning support to
  10030. # collect2, so additional links can be useful in future.
  10031. if test "$aix_use_runtimelinking" = yes; then
  10032. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10033. # instead of lib<name>.a to let people know that these are not
  10034. # typical AIX shared libraries.
  10035. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10036. else
  10037. # We preserve .a as extension for shared libraries through AIX4.2
  10038. # and later when we are not doing run time linking.
  10039. library_names_spec='${libname}${release}.a $libname.a'
  10040. soname_spec='${libname}${release}${shared_ext}$major'
  10041. fi
  10042. shlibpath_var=LIBPATH
  10043. fi
  10044. ;;
  10045. amigaos*)
  10046. case $host_cpu in
  10047. powerpc)
  10048. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10049. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10051. ;;
  10052. m68k)
  10053. library_names_spec='$libname.ixlibrary $libname.a'
  10054. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10055. 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'
  10056. ;;
  10057. esac
  10058. ;;
  10059. beos*)
  10060. library_names_spec='${libname}${shared_ext}'
  10061. dynamic_linker="$host_os ld.so"
  10062. shlibpath_var=LIBRARY_PATH
  10063. ;;
  10064. bsdi[45]*)
  10065. version_type=linux # correct to gnu/linux during the next big refactor
  10066. need_version=no
  10067. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10068. soname_spec='${libname}${release}${shared_ext}$major'
  10069. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10070. shlibpath_var=LD_LIBRARY_PATH
  10071. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10072. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10073. # the default ld.so.conf also contains /usr/contrib/lib and
  10074. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10075. # libtool to hard-code these into programs
  10076. ;;
  10077. cygwin* | mingw* | pw32* | cegcc*)
  10078. version_type=windows
  10079. shrext_cmds=".dll"
  10080. need_version=no
  10081. need_lib_prefix=no
  10082. case $GCC,$cc_basename in
  10083. yes,*)
  10084. # gcc
  10085. library_names_spec='$libname.dll.a'
  10086. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10087. postinstall_cmds='base_file=`basename \${file}`~
  10088. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10089. dldir=$destdir/`dirname \$dlpath`~
  10090. test -d \$dldir || mkdir -p \$dldir~
  10091. $install_prog $dir/$dlname \$dldir/$dlname~
  10092. chmod a+x \$dldir/$dlname~
  10093. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10094. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10095. fi'
  10096. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10097. dlpath=$dir/\$dldll~
  10098. $RM \$dlpath'
  10099. shlibpath_overrides_runpath=yes
  10100. case $host_os in
  10101. cygwin*)
  10102. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10103. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10104. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10105. ;;
  10106. mingw* | cegcc*)
  10107. # MinGW DLLs use traditional 'lib' prefix
  10108. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10109. ;;
  10110. pw32*)
  10111. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10112. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10113. ;;
  10114. esac
  10115. dynamic_linker='Win32 ld.exe'
  10116. ;;
  10117. *,cl*)
  10118. # Native MSVC
  10119. libname_spec='$name'
  10120. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10121. library_names_spec='${libname}.dll.lib'
  10122. case $build_os in
  10123. mingw*)
  10124. sys_lib_search_path_spec=
  10125. lt_save_ifs=$IFS
  10126. IFS=';'
  10127. for lt_path in $LIB
  10128. do
  10129. IFS=$lt_save_ifs
  10130. # Let DOS variable expansion print the short 8.3 style file name.
  10131. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10132. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10133. done
  10134. IFS=$lt_save_ifs
  10135. # Convert to MSYS style.
  10136. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10137. ;;
  10138. cygwin*)
  10139. # Convert to unix form, then to dos form, then back to unix form
  10140. # but this time dos style (no spaces!) so that the unix form looks
  10141. # like /cygdrive/c/PROGRA~1:/cygdr...
  10142. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10143. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10144. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10145. ;;
  10146. *)
  10147. sys_lib_search_path_spec="$LIB"
  10148. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10149. # It is most probably a Windows format PATH.
  10150. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10151. else
  10152. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10153. fi
  10154. # FIXME: find the short name or the path components, as spaces are
  10155. # common. (e.g. "Program Files" -> "PROGRA~1")
  10156. ;;
  10157. esac
  10158. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10159. postinstall_cmds='base_file=`basename \${file}`~
  10160. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10161. dldir=$destdir/`dirname \$dlpath`~
  10162. test -d \$dldir || mkdir -p \$dldir~
  10163. $install_prog $dir/$dlname \$dldir/$dlname'
  10164. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10165. dlpath=$dir/\$dldll~
  10166. $RM \$dlpath'
  10167. shlibpath_overrides_runpath=yes
  10168. dynamic_linker='Win32 link.exe'
  10169. ;;
  10170. *)
  10171. # Assume MSVC wrapper
  10172. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10173. dynamic_linker='Win32 ld.exe'
  10174. ;;
  10175. esac
  10176. # FIXME: first we should search . and the directory the executable is in
  10177. shlibpath_var=PATH
  10178. ;;
  10179. darwin* | rhapsody*)
  10180. dynamic_linker="$host_os dyld"
  10181. version_type=darwin
  10182. need_lib_prefix=no
  10183. need_version=no
  10184. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10185. soname_spec='${libname}${release}${major}$shared_ext'
  10186. shlibpath_overrides_runpath=yes
  10187. shlibpath_var=DYLD_LIBRARY_PATH
  10188. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10189. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10190. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10191. ;;
  10192. dgux*)
  10193. version_type=linux # correct to gnu/linux during the next big refactor
  10194. need_lib_prefix=no
  10195. need_version=no
  10196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10197. soname_spec='${libname}${release}${shared_ext}$major'
  10198. shlibpath_var=LD_LIBRARY_PATH
  10199. ;;
  10200. freebsd* | dragonfly*)
  10201. # DragonFly does not have aout. When/if they implement a new
  10202. # versioning mechanism, adjust this.
  10203. if test -x /usr/bin/objformat; then
  10204. objformat=`/usr/bin/objformat`
  10205. else
  10206. case $host_os in
  10207. freebsd[23].*) objformat=aout ;;
  10208. *) objformat=elf ;;
  10209. esac
  10210. fi
  10211. version_type=freebsd-$objformat
  10212. case $version_type in
  10213. freebsd-elf*)
  10214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10215. need_version=no
  10216. need_lib_prefix=no
  10217. ;;
  10218. freebsd-*)
  10219. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10220. need_version=yes
  10221. ;;
  10222. esac
  10223. shlibpath_var=LD_LIBRARY_PATH
  10224. case $host_os in
  10225. freebsd2.*)
  10226. shlibpath_overrides_runpath=yes
  10227. ;;
  10228. freebsd3.[01]* | freebsdelf3.[01]*)
  10229. shlibpath_overrides_runpath=yes
  10230. hardcode_into_libs=yes
  10231. ;;
  10232. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10233. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10234. shlibpath_overrides_runpath=no
  10235. hardcode_into_libs=yes
  10236. ;;
  10237. *) # from 4.6 on, and DragonFly
  10238. shlibpath_overrides_runpath=yes
  10239. hardcode_into_libs=yes
  10240. ;;
  10241. esac
  10242. ;;
  10243. gnu*)
  10244. version_type=linux # correct to gnu/linux during the next big refactor
  10245. need_lib_prefix=no
  10246. need_version=no
  10247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10248. soname_spec='${libname}${release}${shared_ext}$major'
  10249. shlibpath_var=LD_LIBRARY_PATH
  10250. shlibpath_overrides_runpath=no
  10251. hardcode_into_libs=yes
  10252. ;;
  10253. haiku*)
  10254. version_type=linux # correct to gnu/linux during the next big refactor
  10255. need_lib_prefix=no
  10256. need_version=no
  10257. dynamic_linker="$host_os runtime_loader"
  10258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10259. soname_spec='${libname}${release}${shared_ext}$major'
  10260. shlibpath_var=LIBRARY_PATH
  10261. shlibpath_overrides_runpath=yes
  10262. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10263. hardcode_into_libs=yes
  10264. ;;
  10265. hpux9* | hpux10* | hpux11*)
  10266. # Give a soname corresponding to the major version so that dld.sl refuses to
  10267. # link against other versions.
  10268. version_type=sunos
  10269. need_lib_prefix=no
  10270. need_version=no
  10271. case $host_cpu in
  10272. ia64*)
  10273. shrext_cmds='.so'
  10274. hardcode_into_libs=yes
  10275. dynamic_linker="$host_os dld.so"
  10276. shlibpath_var=LD_LIBRARY_PATH
  10277. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10279. soname_spec='${libname}${release}${shared_ext}$major'
  10280. if test "X$HPUX_IA64_MODE" = X32; then
  10281. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10282. else
  10283. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10284. fi
  10285. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10286. ;;
  10287. hppa*64*)
  10288. shrext_cmds='.sl'
  10289. hardcode_into_libs=yes
  10290. dynamic_linker="$host_os dld.sl"
  10291. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10292. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10293. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10294. soname_spec='${libname}${release}${shared_ext}$major'
  10295. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10296. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10297. ;;
  10298. *)
  10299. shrext_cmds='.sl'
  10300. dynamic_linker="$host_os dld.sl"
  10301. shlibpath_var=SHLIB_PATH
  10302. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10304. soname_spec='${libname}${release}${shared_ext}$major'
  10305. ;;
  10306. esac
  10307. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10308. postinstall_cmds='chmod 555 $lib'
  10309. # or fails outright, so override atomically:
  10310. install_override_mode=555
  10311. ;;
  10312. interix[3-9]*)
  10313. version_type=linux # correct to gnu/linux during the next big refactor
  10314. need_lib_prefix=no
  10315. need_version=no
  10316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10317. soname_spec='${libname}${release}${shared_ext}$major'
  10318. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10319. shlibpath_var=LD_LIBRARY_PATH
  10320. shlibpath_overrides_runpath=no
  10321. hardcode_into_libs=yes
  10322. ;;
  10323. irix5* | irix6* | nonstopux*)
  10324. case $host_os in
  10325. nonstopux*) version_type=nonstopux ;;
  10326. *)
  10327. if test "$lt_cv_prog_gnu_ld" = yes; then
  10328. version_type=linux # correct to gnu/linux during the next big refactor
  10329. else
  10330. version_type=irix
  10331. fi ;;
  10332. esac
  10333. need_lib_prefix=no
  10334. need_version=no
  10335. soname_spec='${libname}${release}${shared_ext}$major'
  10336. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10337. case $host_os in
  10338. irix5* | nonstopux*)
  10339. libsuff= shlibsuff=
  10340. ;;
  10341. *)
  10342. case $LD in # libtool.m4 will add one of these switches to LD
  10343. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10344. libsuff= shlibsuff= libmagic=32-bit;;
  10345. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10346. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10347. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10348. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10349. *) libsuff= shlibsuff= libmagic=never-match;;
  10350. esac
  10351. ;;
  10352. esac
  10353. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10354. shlibpath_overrides_runpath=no
  10355. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10356. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10357. hardcode_into_libs=yes
  10358. ;;
  10359. # No shared lib support for Linux oldld, aout, or coff.
  10360. linux*oldld* | linux*aout* | linux*coff*)
  10361. dynamic_linker=no
  10362. ;;
  10363. # This must be glibc/ELF.
  10364. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10365. version_type=linux # correct to gnu/linux during the next big refactor
  10366. need_lib_prefix=no
  10367. need_version=no
  10368. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10369. soname_spec='${libname}${release}${shared_ext}$major'
  10370. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10371. shlibpath_var=LD_LIBRARY_PATH
  10372. shlibpath_overrides_runpath=no
  10373. # Some binutils ld are patched to set DT_RUNPATH
  10374. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10375. $as_echo_n "(cached) " >&6
  10376. else
  10377. lt_cv_shlibpath_overrides_runpath=no
  10378. save_LDFLAGS=$LDFLAGS
  10379. save_libdir=$libdir
  10380. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10381. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10383. /* end confdefs.h. */
  10384. int
  10385. main ()
  10386. {
  10387. ;
  10388. return 0;
  10389. }
  10390. _ACEOF
  10391. if ac_fn_c_try_link "$LINENO"; then :
  10392. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10393. lt_cv_shlibpath_overrides_runpath=yes
  10394. fi
  10395. fi
  10396. rm -f core conftest.err conftest.$ac_objext \
  10397. conftest$ac_exeext conftest.$ac_ext
  10398. LDFLAGS=$save_LDFLAGS
  10399. libdir=$save_libdir
  10400. fi
  10401. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10402. # This implies no fast_install, which is unacceptable.
  10403. # Some rework will be needed to allow for fast_install
  10404. # before this can be enabled.
  10405. hardcode_into_libs=yes
  10406. # Append ld.so.conf contents to the search path
  10407. if test -f /etc/ld.so.conf; then
  10408. 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' ' '`
  10409. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10410. fi
  10411. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10412. # powerpc, because MkLinux only supported shared libraries with the
  10413. # GNU dynamic linker. Since this was broken with cross compilers,
  10414. # most powerpc-linux boxes support dynamic linking these days and
  10415. # people can always --disable-shared, the test was removed, and we
  10416. # assume the GNU/Linux dynamic linker is in use.
  10417. dynamic_linker='GNU/Linux ld.so'
  10418. ;;
  10419. netbsd*)
  10420. version_type=sunos
  10421. need_lib_prefix=no
  10422. need_version=no
  10423. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10424. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10425. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10426. dynamic_linker='NetBSD (a.out) ld.so'
  10427. else
  10428. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10429. soname_spec='${libname}${release}${shared_ext}$major'
  10430. dynamic_linker='NetBSD ld.elf_so'
  10431. fi
  10432. shlibpath_var=LD_LIBRARY_PATH
  10433. shlibpath_overrides_runpath=yes
  10434. hardcode_into_libs=yes
  10435. ;;
  10436. newsos6)
  10437. version_type=linux # correct to gnu/linux during the next big refactor
  10438. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10439. shlibpath_var=LD_LIBRARY_PATH
  10440. shlibpath_overrides_runpath=yes
  10441. ;;
  10442. *nto* | *qnx*)
  10443. version_type=qnx
  10444. need_lib_prefix=no
  10445. need_version=no
  10446. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10447. soname_spec='${libname}${release}${shared_ext}$major'
  10448. shlibpath_var=LD_LIBRARY_PATH
  10449. shlibpath_overrides_runpath=no
  10450. hardcode_into_libs=yes
  10451. dynamic_linker='ldqnx.so'
  10452. ;;
  10453. openbsd*)
  10454. version_type=sunos
  10455. sys_lib_dlsearch_path_spec="/usr/lib"
  10456. need_lib_prefix=no
  10457. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10458. case $host_os in
  10459. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10460. *) need_version=no ;;
  10461. esac
  10462. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10463. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10464. shlibpath_var=LD_LIBRARY_PATH
  10465. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10466. case $host_os in
  10467. openbsd2.[89] | openbsd2.[89].*)
  10468. shlibpath_overrides_runpath=no
  10469. ;;
  10470. *)
  10471. shlibpath_overrides_runpath=yes
  10472. ;;
  10473. esac
  10474. else
  10475. shlibpath_overrides_runpath=yes
  10476. fi
  10477. ;;
  10478. os2*)
  10479. libname_spec='$name'
  10480. shrext_cmds=".dll"
  10481. need_lib_prefix=no
  10482. library_names_spec='$libname${shared_ext} $libname.a'
  10483. dynamic_linker='OS/2 ld.exe'
  10484. shlibpath_var=LIBPATH
  10485. ;;
  10486. osf3* | osf4* | osf5*)
  10487. version_type=osf
  10488. need_lib_prefix=no
  10489. need_version=no
  10490. soname_spec='${libname}${release}${shared_ext}$major'
  10491. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10492. shlibpath_var=LD_LIBRARY_PATH
  10493. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10494. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10495. ;;
  10496. rdos*)
  10497. dynamic_linker=no
  10498. ;;
  10499. solaris*)
  10500. version_type=linux # correct to gnu/linux during the next big refactor
  10501. need_lib_prefix=no
  10502. need_version=no
  10503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10504. soname_spec='${libname}${release}${shared_ext}$major'
  10505. shlibpath_var=LD_LIBRARY_PATH
  10506. shlibpath_overrides_runpath=yes
  10507. hardcode_into_libs=yes
  10508. # ldd complains unless libraries are executable
  10509. postinstall_cmds='chmod +x $lib'
  10510. ;;
  10511. sunos4*)
  10512. version_type=sunos
  10513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10514. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10515. shlibpath_var=LD_LIBRARY_PATH
  10516. shlibpath_overrides_runpath=yes
  10517. if test "$with_gnu_ld" = yes; then
  10518. need_lib_prefix=no
  10519. fi
  10520. need_version=yes
  10521. ;;
  10522. sysv4 | sysv4.3*)
  10523. version_type=linux # correct to gnu/linux during the next big refactor
  10524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10525. soname_spec='${libname}${release}${shared_ext}$major'
  10526. shlibpath_var=LD_LIBRARY_PATH
  10527. case $host_vendor in
  10528. sni)
  10529. shlibpath_overrides_runpath=no
  10530. need_lib_prefix=no
  10531. runpath_var=LD_RUN_PATH
  10532. ;;
  10533. siemens)
  10534. need_lib_prefix=no
  10535. ;;
  10536. motorola)
  10537. need_lib_prefix=no
  10538. need_version=no
  10539. shlibpath_overrides_runpath=no
  10540. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10541. ;;
  10542. esac
  10543. ;;
  10544. sysv4*MP*)
  10545. if test -d /usr/nec ;then
  10546. version_type=linux # correct to gnu/linux during the next big refactor
  10547. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10548. soname_spec='$libname${shared_ext}.$major'
  10549. shlibpath_var=LD_LIBRARY_PATH
  10550. fi
  10551. ;;
  10552. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10553. version_type=freebsd-elf
  10554. need_lib_prefix=no
  10555. need_version=no
  10556. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10557. soname_spec='${libname}${release}${shared_ext}$major'
  10558. shlibpath_var=LD_LIBRARY_PATH
  10559. shlibpath_overrides_runpath=yes
  10560. hardcode_into_libs=yes
  10561. if test "$with_gnu_ld" = yes; then
  10562. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10563. else
  10564. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10565. case $host_os in
  10566. sco3.2v5*)
  10567. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10568. ;;
  10569. esac
  10570. fi
  10571. sys_lib_dlsearch_path_spec='/usr/lib'
  10572. ;;
  10573. tpf*)
  10574. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10575. version_type=linux # correct to gnu/linux during the next big refactor
  10576. need_lib_prefix=no
  10577. need_version=no
  10578. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10579. shlibpath_var=LD_LIBRARY_PATH
  10580. shlibpath_overrides_runpath=no
  10581. hardcode_into_libs=yes
  10582. ;;
  10583. uts4*)
  10584. version_type=linux # correct to gnu/linux during the next big refactor
  10585. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10586. soname_spec='${libname}${release}${shared_ext}$major'
  10587. shlibpath_var=LD_LIBRARY_PATH
  10588. ;;
  10589. *)
  10590. dynamic_linker=no
  10591. ;;
  10592. esac
  10593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10594. $as_echo "$dynamic_linker" >&6; }
  10595. test "$dynamic_linker" = no && can_build_shared=no
  10596. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10597. if test "$GCC" = yes; then
  10598. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10599. fi
  10600. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10601. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10602. fi
  10603. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10604. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10605. fi
  10606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10607. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10608. hardcode_action=
  10609. if test -n "$hardcode_libdir_flag_spec" ||
  10610. test -n "$runpath_var" ||
  10611. test "X$hardcode_automatic" = "Xyes" ; then
  10612. # We can hardcode non-existent directories.
  10613. if test "$hardcode_direct" != no &&
  10614. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10615. # have to relink, otherwise we might link with an installed library
  10616. # when we should be linking with a yet-to-be-installed one
  10617. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10618. test "$hardcode_minus_L" != no; then
  10619. # Linking always hardcodes the temporary library directory.
  10620. hardcode_action=relink
  10621. else
  10622. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10623. hardcode_action=immediate
  10624. fi
  10625. else
  10626. # We cannot hardcode anything, or else we can only hardcode existing
  10627. # directories.
  10628. hardcode_action=unsupported
  10629. fi
  10630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10631. $as_echo "$hardcode_action" >&6; }
  10632. if test "$hardcode_action" = relink ||
  10633. test "$inherit_rpath" = yes; then
  10634. # Fast installation is not supported
  10635. enable_fast_install=no
  10636. elif test "$shlibpath_overrides_runpath" = yes ||
  10637. test "$enable_shared" = no; then
  10638. # Fast installation is not necessary
  10639. enable_fast_install=needless
  10640. fi
  10641. if test "x$enable_dlopen" != xyes; then
  10642. enable_dlopen=unknown
  10643. enable_dlopen_self=unknown
  10644. enable_dlopen_self_static=unknown
  10645. else
  10646. lt_cv_dlopen=no
  10647. lt_cv_dlopen_libs=
  10648. case $host_os in
  10649. beos*)
  10650. lt_cv_dlopen="load_add_on"
  10651. lt_cv_dlopen_libs=
  10652. lt_cv_dlopen_self=yes
  10653. ;;
  10654. mingw* | pw32* | cegcc*)
  10655. lt_cv_dlopen="LoadLibrary"
  10656. lt_cv_dlopen_libs=
  10657. ;;
  10658. cygwin*)
  10659. lt_cv_dlopen="dlopen"
  10660. lt_cv_dlopen_libs=
  10661. ;;
  10662. darwin*)
  10663. # if libdl is installed we need to link against it
  10664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10665. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10666. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10667. $as_echo_n "(cached) " >&6
  10668. else
  10669. ac_check_lib_save_LIBS=$LIBS
  10670. LIBS="-ldl $LIBS"
  10671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10672. /* end confdefs.h. */
  10673. /* Override any GCC internal prototype to avoid an error.
  10674. Use char because int might match the return type of a GCC
  10675. builtin and then its argument prototype would still apply. */
  10676. #ifdef __cplusplus
  10677. extern "C"
  10678. #endif
  10679. char dlopen ();
  10680. int
  10681. main ()
  10682. {
  10683. return dlopen ();
  10684. ;
  10685. return 0;
  10686. }
  10687. _ACEOF
  10688. if ac_fn_c_try_link "$LINENO"; then :
  10689. ac_cv_lib_dl_dlopen=yes
  10690. else
  10691. ac_cv_lib_dl_dlopen=no
  10692. fi
  10693. rm -f core conftest.err conftest.$ac_objext \
  10694. conftest$ac_exeext conftest.$ac_ext
  10695. LIBS=$ac_check_lib_save_LIBS
  10696. fi
  10697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10698. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10699. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10700. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10701. else
  10702. lt_cv_dlopen="dyld"
  10703. lt_cv_dlopen_libs=
  10704. lt_cv_dlopen_self=yes
  10705. fi
  10706. ;;
  10707. *)
  10708. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10709. if test "x$ac_cv_func_shl_load" = xyes; then :
  10710. lt_cv_dlopen="shl_load"
  10711. else
  10712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10713. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10714. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10715. $as_echo_n "(cached) " >&6
  10716. else
  10717. ac_check_lib_save_LIBS=$LIBS
  10718. LIBS="-ldld $LIBS"
  10719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10720. /* end confdefs.h. */
  10721. /* Override any GCC internal prototype to avoid an error.
  10722. Use char because int might match the return type of a GCC
  10723. builtin and then its argument prototype would still apply. */
  10724. #ifdef __cplusplus
  10725. extern "C"
  10726. #endif
  10727. char shl_load ();
  10728. int
  10729. main ()
  10730. {
  10731. return shl_load ();
  10732. ;
  10733. return 0;
  10734. }
  10735. _ACEOF
  10736. if ac_fn_c_try_link "$LINENO"; then :
  10737. ac_cv_lib_dld_shl_load=yes
  10738. else
  10739. ac_cv_lib_dld_shl_load=no
  10740. fi
  10741. rm -f core conftest.err conftest.$ac_objext \
  10742. conftest$ac_exeext conftest.$ac_ext
  10743. LIBS=$ac_check_lib_save_LIBS
  10744. fi
  10745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10746. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10747. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10748. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10749. else
  10750. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10751. if test "x$ac_cv_func_dlopen" = xyes; then :
  10752. lt_cv_dlopen="dlopen"
  10753. else
  10754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10755. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10756. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10757. $as_echo_n "(cached) " >&6
  10758. else
  10759. ac_check_lib_save_LIBS=$LIBS
  10760. LIBS="-ldl $LIBS"
  10761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10762. /* end confdefs.h. */
  10763. /* Override any GCC internal prototype to avoid an error.
  10764. Use char because int might match the return type of a GCC
  10765. builtin and then its argument prototype would still apply. */
  10766. #ifdef __cplusplus
  10767. extern "C"
  10768. #endif
  10769. char dlopen ();
  10770. int
  10771. main ()
  10772. {
  10773. return dlopen ();
  10774. ;
  10775. return 0;
  10776. }
  10777. _ACEOF
  10778. if ac_fn_c_try_link "$LINENO"; then :
  10779. ac_cv_lib_dl_dlopen=yes
  10780. else
  10781. ac_cv_lib_dl_dlopen=no
  10782. fi
  10783. rm -f core conftest.err conftest.$ac_objext \
  10784. conftest$ac_exeext conftest.$ac_ext
  10785. LIBS=$ac_check_lib_save_LIBS
  10786. fi
  10787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10788. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10789. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10790. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10791. else
  10792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10793. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10794. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10795. $as_echo_n "(cached) " >&6
  10796. else
  10797. ac_check_lib_save_LIBS=$LIBS
  10798. LIBS="-lsvld $LIBS"
  10799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10800. /* end confdefs.h. */
  10801. /* Override any GCC internal prototype to avoid an error.
  10802. Use char because int might match the return type of a GCC
  10803. builtin and then its argument prototype would still apply. */
  10804. #ifdef __cplusplus
  10805. extern "C"
  10806. #endif
  10807. char dlopen ();
  10808. int
  10809. main ()
  10810. {
  10811. return dlopen ();
  10812. ;
  10813. return 0;
  10814. }
  10815. _ACEOF
  10816. if ac_fn_c_try_link "$LINENO"; then :
  10817. ac_cv_lib_svld_dlopen=yes
  10818. else
  10819. ac_cv_lib_svld_dlopen=no
  10820. fi
  10821. rm -f core conftest.err conftest.$ac_objext \
  10822. conftest$ac_exeext conftest.$ac_ext
  10823. LIBS=$ac_check_lib_save_LIBS
  10824. fi
  10825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10826. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10827. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10828. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10829. else
  10830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10831. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10832. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10833. $as_echo_n "(cached) " >&6
  10834. else
  10835. ac_check_lib_save_LIBS=$LIBS
  10836. LIBS="-ldld $LIBS"
  10837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10838. /* end confdefs.h. */
  10839. /* Override any GCC internal prototype to avoid an error.
  10840. Use char because int might match the return type of a GCC
  10841. builtin and then its argument prototype would still apply. */
  10842. #ifdef __cplusplus
  10843. extern "C"
  10844. #endif
  10845. char dld_link ();
  10846. int
  10847. main ()
  10848. {
  10849. return dld_link ();
  10850. ;
  10851. return 0;
  10852. }
  10853. _ACEOF
  10854. if ac_fn_c_try_link "$LINENO"; then :
  10855. ac_cv_lib_dld_dld_link=yes
  10856. else
  10857. ac_cv_lib_dld_dld_link=no
  10858. fi
  10859. rm -f core conftest.err conftest.$ac_objext \
  10860. conftest$ac_exeext conftest.$ac_ext
  10861. LIBS=$ac_check_lib_save_LIBS
  10862. fi
  10863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10864. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10865. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10866. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10867. fi
  10868. fi
  10869. fi
  10870. fi
  10871. fi
  10872. fi
  10873. ;;
  10874. esac
  10875. if test "x$lt_cv_dlopen" != xno; then
  10876. enable_dlopen=yes
  10877. else
  10878. enable_dlopen=no
  10879. fi
  10880. case $lt_cv_dlopen in
  10881. dlopen)
  10882. save_CPPFLAGS="$CPPFLAGS"
  10883. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10884. save_LDFLAGS="$LDFLAGS"
  10885. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10886. save_LIBS="$LIBS"
  10887. LIBS="$lt_cv_dlopen_libs $LIBS"
  10888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10889. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10890. if ${lt_cv_dlopen_self+:} false; then :
  10891. $as_echo_n "(cached) " >&6
  10892. else
  10893. if test "$cross_compiling" = yes; then :
  10894. lt_cv_dlopen_self=cross
  10895. else
  10896. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10897. lt_status=$lt_dlunknown
  10898. cat > conftest.$ac_ext <<_LT_EOF
  10899. #line $LINENO "configure"
  10900. #include "confdefs.h"
  10901. #if HAVE_DLFCN_H
  10902. #include <dlfcn.h>
  10903. #endif
  10904. #include <stdio.h>
  10905. #ifdef RTLD_GLOBAL
  10906. # define LT_DLGLOBAL RTLD_GLOBAL
  10907. #else
  10908. # ifdef DL_GLOBAL
  10909. # define LT_DLGLOBAL DL_GLOBAL
  10910. # else
  10911. # define LT_DLGLOBAL 0
  10912. # endif
  10913. #endif
  10914. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10915. find out it does not work in some platform. */
  10916. #ifndef LT_DLLAZY_OR_NOW
  10917. # ifdef RTLD_LAZY
  10918. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10919. # else
  10920. # ifdef DL_LAZY
  10921. # define LT_DLLAZY_OR_NOW DL_LAZY
  10922. # else
  10923. # ifdef RTLD_NOW
  10924. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10925. # else
  10926. # ifdef DL_NOW
  10927. # define LT_DLLAZY_OR_NOW DL_NOW
  10928. # else
  10929. # define LT_DLLAZY_OR_NOW 0
  10930. # endif
  10931. # endif
  10932. # endif
  10933. # endif
  10934. #endif
  10935. /* When -fvisbility=hidden is used, assume the code has been annotated
  10936. correspondingly for the symbols needed. */
  10937. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10938. int fnord () __attribute__((visibility("default")));
  10939. #endif
  10940. int fnord () { return 42; }
  10941. int main ()
  10942. {
  10943. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10944. int status = $lt_dlunknown;
  10945. if (self)
  10946. {
  10947. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10948. else
  10949. {
  10950. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10951. else puts (dlerror ());
  10952. }
  10953. /* dlclose (self); */
  10954. }
  10955. else
  10956. puts (dlerror ());
  10957. return status;
  10958. }
  10959. _LT_EOF
  10960. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10961. (eval $ac_link) 2>&5
  10962. ac_status=$?
  10963. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10964. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10965. (./conftest; exit; ) >&5 2>/dev/null
  10966. lt_status=$?
  10967. case x$lt_status in
  10968. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10969. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10970. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10971. esac
  10972. else :
  10973. # compilation failed
  10974. lt_cv_dlopen_self=no
  10975. fi
  10976. fi
  10977. rm -fr conftest*
  10978. fi
  10979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10980. $as_echo "$lt_cv_dlopen_self" >&6; }
  10981. if test "x$lt_cv_dlopen_self" = xyes; then
  10982. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10984. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10985. if ${lt_cv_dlopen_self_static+:} false; then :
  10986. $as_echo_n "(cached) " >&6
  10987. else
  10988. if test "$cross_compiling" = yes; then :
  10989. lt_cv_dlopen_self_static=cross
  10990. else
  10991. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10992. lt_status=$lt_dlunknown
  10993. cat > conftest.$ac_ext <<_LT_EOF
  10994. #line $LINENO "configure"
  10995. #include "confdefs.h"
  10996. #if HAVE_DLFCN_H
  10997. #include <dlfcn.h>
  10998. #endif
  10999. #include <stdio.h>
  11000. #ifdef RTLD_GLOBAL
  11001. # define LT_DLGLOBAL RTLD_GLOBAL
  11002. #else
  11003. # ifdef DL_GLOBAL
  11004. # define LT_DLGLOBAL DL_GLOBAL
  11005. # else
  11006. # define LT_DLGLOBAL 0
  11007. # endif
  11008. #endif
  11009. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11010. find out it does not work in some platform. */
  11011. #ifndef LT_DLLAZY_OR_NOW
  11012. # ifdef RTLD_LAZY
  11013. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11014. # else
  11015. # ifdef DL_LAZY
  11016. # define LT_DLLAZY_OR_NOW DL_LAZY
  11017. # else
  11018. # ifdef RTLD_NOW
  11019. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11020. # else
  11021. # ifdef DL_NOW
  11022. # define LT_DLLAZY_OR_NOW DL_NOW
  11023. # else
  11024. # define LT_DLLAZY_OR_NOW 0
  11025. # endif
  11026. # endif
  11027. # endif
  11028. # endif
  11029. #endif
  11030. /* When -fvisbility=hidden is used, assume the code has been annotated
  11031. correspondingly for the symbols needed. */
  11032. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11033. int fnord () __attribute__((visibility("default")));
  11034. #endif
  11035. int fnord () { return 42; }
  11036. int main ()
  11037. {
  11038. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11039. int status = $lt_dlunknown;
  11040. if (self)
  11041. {
  11042. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11043. else
  11044. {
  11045. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11046. else puts (dlerror ());
  11047. }
  11048. /* dlclose (self); */
  11049. }
  11050. else
  11051. puts (dlerror ());
  11052. return status;
  11053. }
  11054. _LT_EOF
  11055. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11056. (eval $ac_link) 2>&5
  11057. ac_status=$?
  11058. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11059. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11060. (./conftest; exit; ) >&5 2>/dev/null
  11061. lt_status=$?
  11062. case x$lt_status in
  11063. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11064. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11065. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11066. esac
  11067. else :
  11068. # compilation failed
  11069. lt_cv_dlopen_self_static=no
  11070. fi
  11071. fi
  11072. rm -fr conftest*
  11073. fi
  11074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11075. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11076. fi
  11077. CPPFLAGS="$save_CPPFLAGS"
  11078. LDFLAGS="$save_LDFLAGS"
  11079. LIBS="$save_LIBS"
  11080. ;;
  11081. esac
  11082. case $lt_cv_dlopen_self in
  11083. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11084. *) enable_dlopen_self=unknown ;;
  11085. esac
  11086. case $lt_cv_dlopen_self_static in
  11087. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11088. *) enable_dlopen_self_static=unknown ;;
  11089. esac
  11090. fi
  11091. striplib=
  11092. old_striplib=
  11093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11094. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11095. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11096. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11097. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11099. $as_echo "yes" >&6; }
  11100. else
  11101. # FIXME - insert some real tests, host_os isn't really good enough
  11102. case $host_os in
  11103. darwin*)
  11104. if test -n "$STRIP" ; then
  11105. striplib="$STRIP -x"
  11106. old_striplib="$STRIP -S"
  11107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11108. $as_echo "yes" >&6; }
  11109. else
  11110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11111. $as_echo "no" >&6; }
  11112. fi
  11113. ;;
  11114. *)
  11115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11116. $as_echo "no" >&6; }
  11117. ;;
  11118. esac
  11119. fi
  11120. # Report which library types will actually be built
  11121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11122. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11124. $as_echo "$can_build_shared" >&6; }
  11125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11126. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11127. test "$can_build_shared" = "no" && enable_shared=no
  11128. # On AIX, shared libraries and static libraries use the same namespace, and
  11129. # are all built from PIC.
  11130. case $host_os in
  11131. aix3*)
  11132. test "$enable_shared" = yes && enable_static=no
  11133. if test -n "$RANLIB"; then
  11134. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11135. postinstall_cmds='$RANLIB $lib'
  11136. fi
  11137. ;;
  11138. aix[4-9]*)
  11139. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11140. test "$enable_shared" = yes && enable_static=no
  11141. fi
  11142. ;;
  11143. esac
  11144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11145. $as_echo "$enable_shared" >&6; }
  11146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11147. $as_echo_n "checking whether to build static libraries... " >&6; }
  11148. # Make sure either enable_shared or enable_static is yes.
  11149. test "$enable_shared" = yes || enable_static=yes
  11150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11151. $as_echo "$enable_static" >&6; }
  11152. fi
  11153. ac_ext=c
  11154. ac_cpp='$CPP $CPPFLAGS'
  11155. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11156. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11157. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11158. CC="$lt_save_CC"
  11159. ac_config_commands="$ac_config_commands libtool"
  11160. # Only expand once:
  11161. # ==================================================== #
  11162. # Check for headers needed for standard interfaces #
  11163. # ==================================================== #
  11164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  11165. $as_echo_n "checking for ANSI C header files... " >&6; }
  11166. if ${ac_cv_header_stdc+:} false; then :
  11167. $as_echo_n "(cached) " >&6
  11168. else
  11169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11170. /* end confdefs.h. */
  11171. #include <stdlib.h>
  11172. #include <stdarg.h>
  11173. #include <string.h>
  11174. #include <float.h>
  11175. int
  11176. main ()
  11177. {
  11178. ;
  11179. return 0;
  11180. }
  11181. _ACEOF
  11182. if ac_fn_c_try_compile "$LINENO"; then :
  11183. ac_cv_header_stdc=yes
  11184. else
  11185. ac_cv_header_stdc=no
  11186. fi
  11187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11188. if test $ac_cv_header_stdc = yes; then
  11189. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  11190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11191. /* end confdefs.h. */
  11192. #include <string.h>
  11193. _ACEOF
  11194. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11195. $EGREP "memchr" >/dev/null 2>&1; then :
  11196. else
  11197. ac_cv_header_stdc=no
  11198. fi
  11199. rm -f conftest*
  11200. fi
  11201. if test $ac_cv_header_stdc = yes; then
  11202. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  11203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11204. /* end confdefs.h. */
  11205. #include <stdlib.h>
  11206. _ACEOF
  11207. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11208. $EGREP "free" >/dev/null 2>&1; then :
  11209. else
  11210. ac_cv_header_stdc=no
  11211. fi
  11212. rm -f conftest*
  11213. fi
  11214. if test $ac_cv_header_stdc = yes; then
  11215. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  11216. if test "$cross_compiling" = yes; then :
  11217. :
  11218. else
  11219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11220. /* end confdefs.h. */
  11221. #include <ctype.h>
  11222. #include <stdlib.h>
  11223. #if ((' ' & 0x0FF) == 0x020)
  11224. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  11225. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  11226. #else
  11227. # define ISLOWER(c) \
  11228. (('a' <= (c) && (c) <= 'i') \
  11229. || ('j' <= (c) && (c) <= 'r') \
  11230. || ('s' <= (c) && (c) <= 'z'))
  11231. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  11232. #endif
  11233. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  11234. int
  11235. main ()
  11236. {
  11237. int i;
  11238. for (i = 0; i < 256; i++)
  11239. if (XOR (islower (i), ISLOWER (i))
  11240. || toupper (i) != TOUPPER (i))
  11241. return 2;
  11242. return 0;
  11243. }
  11244. _ACEOF
  11245. if ac_fn_c_try_run "$LINENO"; then :
  11246. else
  11247. ac_cv_header_stdc=no
  11248. fi
  11249. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11250. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11251. fi
  11252. fi
  11253. fi
  11254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  11255. $as_echo "$ac_cv_header_stdc" >&6; }
  11256. if test $ac_cv_header_stdc = yes; then
  11257. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  11258. fi
  11259. for ac_header in errno.h signal.h stddef.h \
  11260. string.h sys/stat.h sys/types.h sys/wait.h time.h \
  11261. unistd.h
  11262. do :
  11263. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11264. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11265. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11266. cat >>confdefs.h <<_ACEOF
  11267. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11268. _ACEOF
  11269. fi
  11270. done
  11271. # ===================================================== #
  11272. # Check for libm #
  11273. # ===================================================== #
  11274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round in -lm" >&5
  11275. $as_echo_n "checking for round in -lm... " >&6; }
  11276. if ${ac_cv_lib_m_round+:} false; then :
  11277. $as_echo_n "(cached) " >&6
  11278. else
  11279. ac_check_lib_save_LIBS=$LIBS
  11280. LIBS="-lm $LIBS"
  11281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11282. /* end confdefs.h. */
  11283. /* Override any GCC internal prototype to avoid an error.
  11284. Use char because int might match the return type of a GCC
  11285. builtin and then its argument prototype would still apply. */
  11286. #ifdef __cplusplus
  11287. extern "C"
  11288. #endif
  11289. char round ();
  11290. int
  11291. main ()
  11292. {
  11293. return round ();
  11294. ;
  11295. return 0;
  11296. }
  11297. _ACEOF
  11298. if ac_fn_c_try_link "$LINENO"; then :
  11299. ac_cv_lib_m_round=yes
  11300. else
  11301. ac_cv_lib_m_round=no
  11302. fi
  11303. rm -f core conftest.err conftest.$ac_objext \
  11304. conftest$ac_exeext conftest.$ac_ext
  11305. LIBS=$ac_check_lib_save_LIBS
  11306. fi
  11307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_round" >&5
  11308. $as_echo "$ac_cv_lib_m_round" >&6; }
  11309. if test "x$ac_cv_lib_m_round" = xyes; then :
  11310. cat >>confdefs.h <<_ACEOF
  11311. #define HAVE_LIBM 1
  11312. _ACEOF
  11313. LIBS="-lm $LIBS"
  11314. fi
  11315. # ===================================================== #
  11316. # Check for i18n support #
  11317. # ===================================================== #
  11318. GETTEXT_PACKAGE=xfce4-power-manager
  11319. cat >>confdefs.h <<_ACEOF
  11320. #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
  11321. _ACEOF
  11322. ALL_LINGUAS="ar ast bg ca cs da de el en_GB es et eu fi fr gl hr hu id is it ja kk ko lt nb nl nn pa pl pt_BR pt ro ru si sk sv te tr ug uk ur_PK ur zh_CN zh_TW "
  11323. for ac_header in locale.h
  11324. do :
  11325. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  11326. if test "x$ac_cv_header_locale_h" = xyes; then :
  11327. cat >>confdefs.h <<_ACEOF
  11328. #define HAVE_LOCALE_H 1
  11329. _ACEOF
  11330. fi
  11331. done
  11332. if test $ac_cv_header_locale_h = yes; then
  11333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  11334. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  11335. if ${am_cv_val_LC_MESSAGES+:} false; then :
  11336. $as_echo_n "(cached) " >&6
  11337. else
  11338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11339. /* end confdefs.h. */
  11340. #include <locale.h>
  11341. int
  11342. main ()
  11343. {
  11344. return LC_MESSAGES
  11345. ;
  11346. return 0;
  11347. }
  11348. _ACEOF
  11349. if ac_fn_c_try_link "$LINENO"; then :
  11350. am_cv_val_LC_MESSAGES=yes
  11351. else
  11352. am_cv_val_LC_MESSAGES=no
  11353. fi
  11354. rm -f core conftest.err conftest.$ac_objext \
  11355. conftest$ac_exeext conftest.$ac_ext
  11356. fi
  11357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
  11358. $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
  11359. if test $am_cv_val_LC_MESSAGES = yes; then
  11360. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  11361. fi
  11362. fi
  11363. USE_NLS=yes
  11364. gt_cv_have_gettext=no
  11365. CATOBJEXT=NONE
  11366. XGETTEXT=:
  11367. INTLLIBS=
  11368. ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
  11369. if test "x$ac_cv_header_libintl_h" = xyes; then :
  11370. gt_cv_func_dgettext_libintl="no"
  11371. libintl_extra_libs=""
  11372. #
  11373. # First check in libc
  11374. #
  11375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
  11376. $as_echo_n "checking for ngettext in libc... " >&6; }
  11377. if ${gt_cv_func_ngettext_libc+:} false; then :
  11378. $as_echo_n "(cached) " >&6
  11379. else
  11380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11381. /* end confdefs.h. */
  11382. #include <libintl.h>
  11383. int
  11384. main ()
  11385. {
  11386. return !ngettext ("","", 1)
  11387. ;
  11388. return 0;
  11389. }
  11390. _ACEOF
  11391. if ac_fn_c_try_link "$LINENO"; then :
  11392. gt_cv_func_ngettext_libc=yes
  11393. else
  11394. gt_cv_func_ngettext_libc=no
  11395. fi
  11396. rm -f core conftest.err conftest.$ac_objext \
  11397. conftest$ac_exeext conftest.$ac_ext
  11398. fi
  11399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
  11400. $as_echo "$gt_cv_func_ngettext_libc" >&6; }
  11401. if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  11402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
  11403. $as_echo_n "checking for dgettext in libc... " >&6; }
  11404. if ${gt_cv_func_dgettext_libc+:} false; then :
  11405. $as_echo_n "(cached) " >&6
  11406. else
  11407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11408. /* end confdefs.h. */
  11409. #include <libintl.h>
  11410. int
  11411. main ()
  11412. {
  11413. return !dgettext ("","")
  11414. ;
  11415. return 0;
  11416. }
  11417. _ACEOF
  11418. if ac_fn_c_try_link "$LINENO"; then :
  11419. gt_cv_func_dgettext_libc=yes
  11420. else
  11421. gt_cv_func_dgettext_libc=no
  11422. fi
  11423. rm -f core conftest.err conftest.$ac_objext \
  11424. conftest$ac_exeext conftest.$ac_ext
  11425. fi
  11426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
  11427. $as_echo "$gt_cv_func_dgettext_libc" >&6; }
  11428. fi
  11429. if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  11430. for ac_func in bind_textdomain_codeset
  11431. do :
  11432. ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
  11433. if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
  11434. cat >>confdefs.h <<_ACEOF
  11435. #define HAVE_BIND_TEXTDOMAIN_CODESET 1
  11436. _ACEOF
  11437. fi
  11438. done
  11439. fi
  11440. #
  11441. # If we don't have everything we want, check in libintl
  11442. #
  11443. if test "$gt_cv_func_dgettext_libc" != "yes" \
  11444. || test "$gt_cv_func_ngettext_libc" != "yes" \
  11445. || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
  11446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
  11447. $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
  11448. if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
  11449. $as_echo_n "(cached) " >&6
  11450. else
  11451. ac_check_lib_save_LIBS=$LIBS
  11452. LIBS="-lintl $LIBS"
  11453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11454. /* end confdefs.h. */
  11455. /* Override any GCC internal prototype to avoid an error.
  11456. Use char because int might match the return type of a GCC
  11457. builtin and then its argument prototype would still apply. */
  11458. #ifdef __cplusplus
  11459. extern "C"
  11460. #endif
  11461. char bindtextdomain ();
  11462. int
  11463. main ()
  11464. {
  11465. return bindtextdomain ();
  11466. ;
  11467. return 0;
  11468. }
  11469. _ACEOF
  11470. if ac_fn_c_try_link "$LINENO"; then :
  11471. ac_cv_lib_intl_bindtextdomain=yes
  11472. else
  11473. ac_cv_lib_intl_bindtextdomain=no
  11474. fi
  11475. rm -f core conftest.err conftest.$ac_objext \
  11476. conftest$ac_exeext conftest.$ac_ext
  11477. LIBS=$ac_check_lib_save_LIBS
  11478. fi
  11479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
  11480. $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
  11481. if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
  11482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
  11483. $as_echo_n "checking for ngettext in -lintl... " >&6; }
  11484. if ${ac_cv_lib_intl_ngettext+:} false; then :
  11485. $as_echo_n "(cached) " >&6
  11486. else
  11487. ac_check_lib_save_LIBS=$LIBS
  11488. LIBS="-lintl $LIBS"
  11489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11490. /* end confdefs.h. */
  11491. /* Override any GCC internal prototype to avoid an error.
  11492. Use char because int might match the return type of a GCC
  11493. builtin and then its argument prototype would still apply. */
  11494. #ifdef __cplusplus
  11495. extern "C"
  11496. #endif
  11497. char ngettext ();
  11498. int
  11499. main ()
  11500. {
  11501. return ngettext ();
  11502. ;
  11503. return 0;
  11504. }
  11505. _ACEOF
  11506. if ac_fn_c_try_link "$LINENO"; then :
  11507. ac_cv_lib_intl_ngettext=yes
  11508. else
  11509. ac_cv_lib_intl_ngettext=no
  11510. fi
  11511. rm -f core conftest.err conftest.$ac_objext \
  11512. conftest$ac_exeext conftest.$ac_ext
  11513. LIBS=$ac_check_lib_save_LIBS
  11514. fi
  11515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
  11516. $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
  11517. if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
  11518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
  11519. $as_echo_n "checking for dgettext in -lintl... " >&6; }
  11520. if ${ac_cv_lib_intl_dgettext+:} false; then :
  11521. $as_echo_n "(cached) " >&6
  11522. else
  11523. ac_check_lib_save_LIBS=$LIBS
  11524. LIBS="-lintl $LIBS"
  11525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11526. /* end confdefs.h. */
  11527. /* Override any GCC internal prototype to avoid an error.
  11528. Use char because int might match the return type of a GCC
  11529. builtin and then its argument prototype would still apply. */
  11530. #ifdef __cplusplus
  11531. extern "C"
  11532. #endif
  11533. char dgettext ();
  11534. int
  11535. main ()
  11536. {
  11537. return dgettext ();
  11538. ;
  11539. return 0;
  11540. }
  11541. _ACEOF
  11542. if ac_fn_c_try_link "$LINENO"; then :
  11543. ac_cv_lib_intl_dgettext=yes
  11544. else
  11545. ac_cv_lib_intl_dgettext=no
  11546. fi
  11547. rm -f core conftest.err conftest.$ac_objext \
  11548. conftest$ac_exeext conftest.$ac_ext
  11549. LIBS=$ac_check_lib_save_LIBS
  11550. fi
  11551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
  11552. $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
  11553. if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
  11554. gt_cv_func_dgettext_libintl=yes
  11555. fi
  11556. fi
  11557. fi
  11558. if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
  11559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
  11560. $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
  11561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  11562. $as_echo "" >&6; }
  11563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
  11564. $as_echo_n "checking for ngettext in -lintl... " >&6; }
  11565. if ${ac_cv_lib_intl_ngettext+:} false; then :
  11566. $as_echo_n "(cached) " >&6
  11567. else
  11568. ac_check_lib_save_LIBS=$LIBS
  11569. LIBS="-lintl -liconv $LIBS"
  11570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11571. /* end confdefs.h. */
  11572. /* Override any GCC internal prototype to avoid an error.
  11573. Use char because int might match the return type of a GCC
  11574. builtin and then its argument prototype would still apply. */
  11575. #ifdef __cplusplus
  11576. extern "C"
  11577. #endif
  11578. char ngettext ();
  11579. int
  11580. main ()
  11581. {
  11582. return ngettext ();
  11583. ;
  11584. return 0;
  11585. }
  11586. _ACEOF
  11587. if ac_fn_c_try_link "$LINENO"; then :
  11588. ac_cv_lib_intl_ngettext=yes
  11589. else
  11590. ac_cv_lib_intl_ngettext=no
  11591. fi
  11592. rm -f core conftest.err conftest.$ac_objext \
  11593. conftest$ac_exeext conftest.$ac_ext
  11594. LIBS=$ac_check_lib_save_LIBS
  11595. fi
  11596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
  11597. $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
  11598. if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
  11599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
  11600. $as_echo_n "checking for dcgettext in -lintl... " >&6; }
  11601. if ${ac_cv_lib_intl_dcgettext+:} false; then :
  11602. $as_echo_n "(cached) " >&6
  11603. else
  11604. ac_check_lib_save_LIBS=$LIBS
  11605. LIBS="-lintl -liconv $LIBS"
  11606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11607. /* end confdefs.h. */
  11608. /* Override any GCC internal prototype to avoid an error.
  11609. Use char because int might match the return type of a GCC
  11610. builtin and then its argument prototype would still apply. */
  11611. #ifdef __cplusplus
  11612. extern "C"
  11613. #endif
  11614. char dcgettext ();
  11615. int
  11616. main ()
  11617. {
  11618. return dcgettext ();
  11619. ;
  11620. return 0;
  11621. }
  11622. _ACEOF
  11623. if ac_fn_c_try_link "$LINENO"; then :
  11624. ac_cv_lib_intl_dcgettext=yes
  11625. else
  11626. ac_cv_lib_intl_dcgettext=no
  11627. fi
  11628. rm -f core conftest.err conftest.$ac_objext \
  11629. conftest$ac_exeext conftest.$ac_ext
  11630. LIBS=$ac_check_lib_save_LIBS
  11631. fi
  11632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
  11633. $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
  11634. if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
  11635. gt_cv_func_dgettext_libintl=yes
  11636. libintl_extra_libs=-liconv
  11637. else
  11638. :
  11639. fi
  11640. else
  11641. :
  11642. fi
  11643. fi
  11644. #
  11645. # If we found libintl, then check in it for bind_textdomain_codeset();
  11646. # we'll prefer libc if neither have bind_textdomain_codeset(),
  11647. # and both have dgettext and ngettext
  11648. #
  11649. if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
  11650. glib_save_LIBS="$LIBS"
  11651. LIBS="$LIBS -lintl $libintl_extra_libs"
  11652. unset ac_cv_func_bind_textdomain_codeset
  11653. for ac_func in bind_textdomain_codeset
  11654. do :
  11655. ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
  11656. if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
  11657. cat >>confdefs.h <<_ACEOF
  11658. #define HAVE_BIND_TEXTDOMAIN_CODESET 1
  11659. _ACEOF
  11660. fi
  11661. done
  11662. LIBS="$glib_save_LIBS"
  11663. if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
  11664. gt_cv_func_dgettext_libc=no
  11665. else
  11666. if test "$gt_cv_func_dgettext_libc" = "yes" \
  11667. && test "$gt_cv_func_ngettext_libc" = "yes"; then
  11668. gt_cv_func_dgettext_libintl=no
  11669. fi
  11670. fi
  11671. fi
  11672. fi
  11673. if test "$gt_cv_func_dgettext_libc" = "yes" \
  11674. || test "$gt_cv_func_dgettext_libintl" = "yes"; then
  11675. gt_cv_have_gettext=yes
  11676. fi
  11677. if test "$gt_cv_func_dgettext_libintl" = "yes"; then
  11678. INTLLIBS="-lintl $libintl_extra_libs"
  11679. fi
  11680. if test "$gt_cv_have_gettext" = "yes"; then
  11681. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  11682. # Extract the first word of "msgfmt", so it can be a program name with args.
  11683. set dummy msgfmt; ac_word=$2
  11684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11685. $as_echo_n "checking for $ac_word... " >&6; }
  11686. if ${ac_cv_path_MSGFMT+:} false; then :
  11687. $as_echo_n "(cached) " >&6
  11688. else
  11689. case "$MSGFMT" in
  11690. /*)
  11691. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  11692. ;;
  11693. *)
  11694. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  11695. for ac_dir in $PATH; do
  11696. test -z "$ac_dir" && ac_dir=.
  11697. if test -f $ac_dir/$ac_word; then
  11698. if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  11699. ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  11700. break
  11701. fi
  11702. fi
  11703. done
  11704. IFS="$ac_save_ifs"
  11705. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  11706. ;;
  11707. esac
  11708. fi
  11709. MSGFMT="$ac_cv_path_MSGFMT"
  11710. if test "$MSGFMT" != "no"; then
  11711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  11712. $as_echo "$MSGFMT" >&6; }
  11713. else
  11714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11715. $as_echo "no" >&6; }
  11716. fi
  11717. if test "$MSGFMT" != "no"; then
  11718. glib_save_LIBS="$LIBS"
  11719. LIBS="$LIBS $INTLLIBS"
  11720. for ac_func in dcgettext
  11721. do :
  11722. ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
  11723. if test "x$ac_cv_func_dcgettext" = xyes; then :
  11724. cat >>confdefs.h <<_ACEOF
  11725. #define HAVE_DCGETTEXT 1
  11726. _ACEOF
  11727. fi
  11728. done
  11729. MSGFMT_OPTS=
  11730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
  11731. $as_echo_n "checking if msgfmt accepts -c... " >&6; }
  11732. cat >conftest.foo <<_ACEOF
  11733. msgid ""
  11734. msgstr ""
  11735. "Content-Type: text/plain; charset=UTF-8\n"
  11736. "Project-Id-Version: test 1.0\n"
  11737. "PO-Revision-Date: 2007-02-15 12:01+0100\n"
  11738. "Last-Translator: test <foo@bar.xx>\n"
  11739. "Language-Team: C <LL@li.org>\n"
  11740. "MIME-Version: 1.0\n"
  11741. "Content-Transfer-Encoding: 8bit\n"
  11742. _ACEOF
  11743. if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
  11744. ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
  11745. ac_status=$?
  11746. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11747. test $ac_status = 0; }; then
  11748. MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11749. $as_echo "yes" >&6; }
  11750. else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11751. $as_echo "no" >&6; }
  11752. echo "$as_me: failed input was:" >&5
  11753. sed 's/^/| /' conftest.foo >&5
  11754. fi
  11755. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  11756. set dummy gmsgfmt; ac_word=$2
  11757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11758. $as_echo_n "checking for $ac_word... " >&6; }
  11759. if ${ac_cv_path_GMSGFMT+:} false; then :
  11760. $as_echo_n "(cached) " >&6
  11761. else
  11762. case $GMSGFMT in
  11763. [\\/]* | ?:[\\/]*)
  11764. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  11765. ;;
  11766. *)
  11767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11768. for as_dir in $PATH
  11769. do
  11770. IFS=$as_save_IFS
  11771. test -z "$as_dir" && as_dir=.
  11772. for ac_exec_ext in '' $ac_executable_extensions; do
  11773. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11774. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  11775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11776. break 2
  11777. fi
  11778. done
  11779. done
  11780. IFS=$as_save_IFS
  11781. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  11782. ;;
  11783. esac
  11784. fi
  11785. GMSGFMT=$ac_cv_path_GMSGFMT
  11786. if test -n "$GMSGFMT"; then
  11787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  11788. $as_echo "$GMSGFMT" >&6; }
  11789. else
  11790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11791. $as_echo "no" >&6; }
  11792. fi
  11793. # Extract the first word of "xgettext", so it can be a program name with args.
  11794. set dummy xgettext; ac_word=$2
  11795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11796. $as_echo_n "checking for $ac_word... " >&6; }
  11797. if ${ac_cv_path_XGETTEXT+:} false; then :
  11798. $as_echo_n "(cached) " >&6
  11799. else
  11800. case "$XGETTEXT" in
  11801. /*)
  11802. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  11803. ;;
  11804. *)
  11805. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  11806. for ac_dir in $PATH; do
  11807. test -z "$ac_dir" && ac_dir=.
  11808. if test -f $ac_dir/$ac_word; then
  11809. if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  11810. ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  11811. break
  11812. fi
  11813. fi
  11814. done
  11815. IFS="$ac_save_ifs"
  11816. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  11817. ;;
  11818. esac
  11819. fi
  11820. XGETTEXT="$ac_cv_path_XGETTEXT"
  11821. if test "$XGETTEXT" != ":"; then
  11822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  11823. $as_echo "$XGETTEXT" >&6; }
  11824. else
  11825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11826. $as_echo "no" >&6; }
  11827. fi
  11828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11829. /* end confdefs.h. */
  11830. int
  11831. main ()
  11832. {
  11833. extern int _nl_msg_cat_cntr;
  11834. return _nl_msg_cat_cntr
  11835. ;
  11836. return 0;
  11837. }
  11838. _ACEOF
  11839. if ac_fn_c_try_link "$LINENO"; then :
  11840. CATOBJEXT=.gmo
  11841. DATADIRNAME=share
  11842. else
  11843. case $host in
  11844. *-*-solaris*)
  11845. ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
  11846. if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
  11847. CATOBJEXT=.gmo
  11848. DATADIRNAME=share
  11849. else
  11850. CATOBJEXT=.mo
  11851. DATADIRNAME=lib
  11852. fi
  11853. ;;
  11854. *-*-openbsd*)
  11855. CATOBJEXT=.mo
  11856. DATADIRNAME=share
  11857. ;;
  11858. *)
  11859. CATOBJEXT=.mo
  11860. DATADIRNAME=lib
  11861. ;;
  11862. esac
  11863. fi
  11864. rm -f core conftest.err conftest.$ac_objext \
  11865. conftest$ac_exeext conftest.$ac_ext
  11866. LIBS="$glib_save_LIBS"
  11867. INSTOBJEXT=.mo
  11868. else
  11869. gt_cv_have_gettext=no
  11870. fi
  11871. fi
  11872. fi
  11873. if test "$gt_cv_have_gettext" = "yes" ; then
  11874. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  11875. fi
  11876. if test "$XGETTEXT" != ":"; then
  11877. if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  11878. : ;
  11879. else
  11880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
  11881. $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
  11882. XGETTEXT=":"
  11883. fi
  11884. fi
  11885. # We need to process the po/ directory.
  11886. POSUB=po
  11887. ac_config_commands="$ac_config_commands default-1"
  11888. for lang in $ALL_LINGUAS; do
  11889. GMOFILES="$GMOFILES $lang.gmo"
  11890. POFILES="$POFILES $lang.po"
  11891. done
  11892. if test "$gt_cv_have_gettext" = "yes"; then
  11893. if test "x$ALL_LINGUAS" = "x"; then
  11894. LINGUAS=
  11895. else
  11896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  11897. $as_echo_n "checking for catalogs to be installed... " >&6; }
  11898. NEW_LINGUAS=
  11899. for presentlang in $ALL_LINGUAS; do
  11900. useit=no
  11901. if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
  11902. desiredlanguages="$LINGUAS"
  11903. else
  11904. desiredlanguages="$ALL_LINGUAS"
  11905. fi
  11906. for desiredlang in $desiredlanguages; do
  11907. # Use the presentlang catalog if desiredlang is
  11908. # a. equal to presentlang, or
  11909. # b. a variant of presentlang (because in this case,
  11910. # presentlang can be used as a fallback for messages
  11911. # which are not translated in the desiredlang catalog).
  11912. case "$desiredlang" in
  11913. "$presentlang"*) useit=yes;;
  11914. esac
  11915. done
  11916. if test $useit = yes; then
  11917. NEW_LINGUAS="$NEW_LINGUAS $presentlang"
  11918. fi
  11919. done
  11920. LINGUAS=$NEW_LINGUAS
  11921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  11922. $as_echo "$LINGUAS" >&6; }
  11923. fi
  11924. if test -n "$LINGUAS"; then
  11925. for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
  11926. fi
  11927. fi
  11928. MKINSTALLDIRS=
  11929. if test -n "$ac_aux_dir"; then
  11930. MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
  11931. fi
  11932. if test -z "$MKINSTALLDIRS"; then
  11933. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  11934. fi
  11935. test -d po || mkdir po
  11936. if test "x$srcdir" != "x."; then
  11937. if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  11938. posrcprefix="$srcdir/"
  11939. else
  11940. posrcprefix="../$srcdir/"
  11941. fi
  11942. else
  11943. posrcprefix="../"
  11944. fi
  11945. rm -f po/POTFILES
  11946. sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  11947. < $srcdir/po/POTFILES.in > po/POTFILES
  11948. ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
  11949. if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
  11950. fi
  11951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locales directory" >&5
  11952. $as_echo_n "checking for locales directory... " >&6; }
  11953. # Check whether --with-locales-dir was given.
  11954. if test "${with_locales_dir+set}" = set; then :
  11955. withval=$with_locales_dir; localedir=$withval
  11956. else
  11957. if test x"$CATOBJEXT" = x".mo"; then
  11958. localedir=$libdir/locale
  11959. else
  11960. localedir=$datadir/locale
  11961. fi
  11962. fi
  11963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $localedir" >&5
  11964. $as_echo "$localedir" >&6; }
  11965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional xgettext flags" >&5
  11966. $as_echo_n "checking for additional xgettext flags... " >&6; }
  11967. if test x"$XGETTEXT_ARGS" = x""; then
  11968. XGETTEXT_ARGS="--keyword=Q_ --from-code=UTF-8";
  11969. else
  11970. XGETTEXT_ARGS="$XGETTEXT_ARGS --keyword=Q_ --from-code=UTF-8";
  11971. fi
  11972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT_ARGS" >&5
  11973. $as_echo "$XGETTEXT_ARGS" >&6; }
  11974. #==================================================== #
  11975. # Check for required packages #
  11976. #=====================================================#
  11977. # minimum supported version of pkg-config
  11978. xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
  11979. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  11980. if test -n "$ac_tool_prefix"; then
  11981. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  11982. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  11983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11984. $as_echo_n "checking for $ac_word... " >&6; }
  11985. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  11986. $as_echo_n "(cached) " >&6
  11987. else
  11988. case $PKG_CONFIG in
  11989. [\\/]* | ?:[\\/]*)
  11990. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11991. ;;
  11992. *)
  11993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11994. for as_dir in $PATH
  11995. do
  11996. IFS=$as_save_IFS
  11997. test -z "$as_dir" && as_dir=.
  11998. for ac_exec_ext in '' $ac_executable_extensions; do
  11999. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12000. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12001. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12002. break 2
  12003. fi
  12004. done
  12005. done
  12006. IFS=$as_save_IFS
  12007. ;;
  12008. esac
  12009. fi
  12010. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  12011. if test -n "$PKG_CONFIG"; then
  12012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  12013. $as_echo "$PKG_CONFIG" >&6; }
  12014. else
  12015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12016. $as_echo "no" >&6; }
  12017. fi
  12018. fi
  12019. if test -z "$ac_cv_path_PKG_CONFIG"; then
  12020. ac_pt_PKG_CONFIG=$PKG_CONFIG
  12021. # Extract the first word of "pkg-config", so it can be a program name with args.
  12022. set dummy pkg-config; ac_word=$2
  12023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12024. $as_echo_n "checking for $ac_word... " >&6; }
  12025. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  12026. $as_echo_n "(cached) " >&6
  12027. else
  12028. case $ac_pt_PKG_CONFIG in
  12029. [\\/]* | ?:[\\/]*)
  12030. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  12031. ;;
  12032. *)
  12033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12034. for as_dir in $PATH
  12035. do
  12036. IFS=$as_save_IFS
  12037. test -z "$as_dir" && as_dir=.
  12038. for ac_exec_ext in '' $ac_executable_extensions; do
  12039. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12040. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12041. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12042. break 2
  12043. fi
  12044. done
  12045. done
  12046. IFS=$as_save_IFS
  12047. ;;
  12048. esac
  12049. fi
  12050. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  12051. if test -n "$ac_pt_PKG_CONFIG"; then
  12052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  12053. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  12054. else
  12055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12056. $as_echo "no" >&6; }
  12057. fi
  12058. if test "x$ac_pt_PKG_CONFIG" = x; then
  12059. PKG_CONFIG=""
  12060. else
  12061. case $cross_compiling:$ac_tool_warned in
  12062. yes:)
  12063. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12064. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12065. ac_tool_warned=yes ;;
  12066. esac
  12067. PKG_CONFIG=$ac_pt_PKG_CONFIG
  12068. fi
  12069. else
  12070. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12071. fi
  12072. fi
  12073. if test -n "$PKG_CONFIG"; then
  12074. _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
  12075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  12076. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  12077. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  12078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12079. $as_echo "yes" >&6; }
  12080. else
  12081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12082. $as_echo "no" >&6; }
  12083. PKG_CONFIG=""
  12084. fi
  12085. fi
  12086. if test x"$PKG_CONFIG" = x""; then
  12087. echo
  12088. echo "*** Your version of pkg-config is too old. You need atleast"
  12089. echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
  12090. echo "*** from the freedesktop.org software repository at"
  12091. echo "***"
  12092. echo "*** http://www.freedesktop.org/software/pkgconfig"
  12093. echo "***"
  12094. exit 1;
  12095. fi
  12096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.12.0" >&5
  12097. $as_echo_n "checking for gtk+-2.0 >= 2.12.0... " >&6; }
  12098. if $PKG_CONFIG "--atleast-version=2.12.0" "gtk+-2.0" >/dev/null 2>&1; then
  12099. GTK_VERSION=`$PKG_CONFIG --modversion "gtk+-2.0"`
  12100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_VERSION" >&5
  12101. $as_echo "$GTK_VERSION" >&6; }
  12102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
  12103. $as_echo_n "checking GTK_CFLAGS... " >&6; }
  12104. GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0"`
  12105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
  12106. $as_echo "$GTK_CFLAGS" >&6; }
  12107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
  12108. $as_echo_n "checking GTK_LIBS... " >&6; }
  12109. GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0"`
  12110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
  12111. $as_echo "$GTK_LIBS" >&6; }
  12112. GTK_REQUIRED_VERSION=2.12.0
  12113. elif $PKG_CONFIG --exists "gtk+-2.0" >/dev/null 2>&1; then
  12114. xdt_cv_version=`$PKG_CONFIG --modversion "gtk+-2.0"`
  12115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
  12116. $as_echo "found, but $xdt_cv_version" >&6; }
  12117. echo "*** The required package gtk+-2.0 was found on your system,"
  12118. echo "*** but the installed version ($xdt_cv_version) is too old."
  12119. echo "*** Please upgrade gtk+-2.0 to atleast version 2.12.0, or adjust"
  12120. echo "*** the PKG_CONFIG_PATH environment variable if you installed"
  12121. echo "*** the new version of the package in a nonstandard prefix so"
  12122. echo "*** pkg-config is able to find it."
  12123. exit 1
  12124. else
  12125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  12126. $as_echo "not found" >&6; }
  12127. echo "*** The required package gtk+-2.0 was not found on your system."
  12128. echo "*** Please install gtk+-2.0 (atleast version 2.12.0) or adjust"
  12129. echo "*** the PKG_CONFIG_PATH environment variable if you"
  12130. echo "*** installed the package in a nonstandard prefix so that"
  12131. echo "*** pkg-config is able to find it."
  12132. exit 1
  12133. fi
  12134. # minimum supported version of pkg-config
  12135. xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
  12136. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  12137. if test -n "$ac_tool_prefix"; then
  12138. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  12139. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  12140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12141. $as_echo_n "checking for $ac_word... " >&6; }
  12142. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  12143. $as_echo_n "(cached) " >&6
  12144. else
  12145. case $PKG_CONFIG in
  12146. [\\/]* | ?:[\\/]*)
  12147. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12148. ;;
  12149. *)
  12150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12151. for as_dir in $PATH
  12152. do
  12153. IFS=$as_save_IFS
  12154. test -z "$as_dir" && as_dir=.
  12155. for ac_exec_ext in '' $ac_executable_extensions; do
  12156. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12157. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12158. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12159. break 2
  12160. fi
  12161. done
  12162. done
  12163. IFS=$as_save_IFS
  12164. ;;
  12165. esac
  12166. fi
  12167. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  12168. if test -n "$PKG_CONFIG"; then
  12169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  12170. $as_echo "$PKG_CONFIG" >&6; }
  12171. else
  12172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12173. $as_echo "no" >&6; }
  12174. fi
  12175. fi
  12176. if test -z "$ac_cv_path_PKG_CONFIG"; then
  12177. ac_pt_PKG_CONFIG=$PKG_CONFIG
  12178. # Extract the first word of "pkg-config", so it can be a program name with args.
  12179. set dummy pkg-config; ac_word=$2
  12180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12181. $as_echo_n "checking for $ac_word... " >&6; }
  12182. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  12183. $as_echo_n "(cached) " >&6
  12184. else
  12185. case $ac_pt_PKG_CONFIG in
  12186. [\\/]* | ?:[\\/]*)
  12187. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  12188. ;;
  12189. *)
  12190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12191. for as_dir in $PATH
  12192. do
  12193. IFS=$as_save_IFS
  12194. test -z "$as_dir" && as_dir=.
  12195. for ac_exec_ext in '' $ac_executable_extensions; do
  12196. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12197. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12198. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12199. break 2
  12200. fi
  12201. done
  12202. done
  12203. IFS=$as_save_IFS
  12204. ;;
  12205. esac
  12206. fi
  12207. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  12208. if test -n "$ac_pt_PKG_CONFIG"; then
  12209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  12210. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  12211. else
  12212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12213. $as_echo "no" >&6; }
  12214. fi
  12215. if test "x$ac_pt_PKG_CONFIG" = x; then
  12216. PKG_CONFIG=""
  12217. else
  12218. case $cross_compiling:$ac_tool_warned in
  12219. yes:)
  12220. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12221. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12222. ac_tool_warned=yes ;;
  12223. esac
  12224. PKG_CONFIG=$ac_pt_PKG_CONFIG
  12225. fi
  12226. else
  12227. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12228. fi
  12229. fi
  12230. if test -n "$PKG_CONFIG"; then
  12231. _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
  12232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  12233. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  12234. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  12235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12236. $as_echo "yes" >&6; }
  12237. else
  12238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12239. $as_echo "no" >&6; }
  12240. PKG_CONFIG=""
  12241. fi
  12242. fi
  12243. if test x"$PKG_CONFIG" = x""; then
  12244. echo
  12245. echo "*** Your version of pkg-config is too old. You need atleast"
  12246. echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
  12247. echo "*** from the freedesktop.org software repository at"
  12248. echo "***"
  12249. echo "*** http://www.freedesktop.org/software/pkgconfig"
  12250. echo "***"
  12251. exit 1;
  12252. fi
  12253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.16.0" >&5
  12254. $as_echo_n "checking for glib-2.0 >= 2.16.0... " >&6; }
  12255. if $PKG_CONFIG "--atleast-version=2.16.0" "glib-2.0" >/dev/null 2>&1; then
  12256. GLIB_VERSION=`$PKG_CONFIG --modversion "glib-2.0"`
  12257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_VERSION" >&5
  12258. $as_echo "$GLIB_VERSION" >&6; }
  12259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
  12260. $as_echo_n "checking GLIB_CFLAGS... " >&6; }
  12261. GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
  12262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
  12263. $as_echo "$GLIB_CFLAGS" >&6; }
  12264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
  12265. $as_echo_n "checking GLIB_LIBS... " >&6; }
  12266. GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
  12267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
  12268. $as_echo "$GLIB_LIBS" >&6; }
  12269. GLIB_REQUIRED_VERSION=2.16.0
  12270. elif $PKG_CONFIG --exists "glib-2.0" >/dev/null 2>&1; then
  12271. xdt_cv_version=`$PKG_CONFIG --modversion "glib-2.0"`
  12272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
  12273. $as_echo "found, but $xdt_cv_version" >&6; }
  12274. echo "*** The required package glib-2.0 was found on your system,"
  12275. echo "*** but the installed version ($xdt_cv_version) is too old."
  12276. echo "*** Please upgrade glib-2.0 to atleast version 2.16.0, or adjust"
  12277. echo "*** the PKG_CONFIG_PATH environment variable if you installed"
  12278. echo "*** the new version of the package in a nonstandard prefix so"
  12279. echo "*** pkg-config is able to find it."
  12280. exit 1
  12281. else
  12282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  12283. $as_echo "not found" >&6; }
  12284. echo "*** The required package glib-2.0 was not found on your system."
  12285. echo "*** Please install glib-2.0 (atleast version 2.16.0) or adjust"
  12286. echo "*** the PKG_CONFIG_PATH environment variable if you"
  12287. echo "*** installed the package in a nonstandard prefix so that"
  12288. echo "*** pkg-config is able to find it."
  12289. exit 1
  12290. fi
  12291. # minimum supported version of pkg-config
  12292. xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
  12293. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  12294. if test -n "$ac_tool_prefix"; then
  12295. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  12296. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  12297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12298. $as_echo_n "checking for $ac_word... " >&6; }
  12299. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  12300. $as_echo_n "(cached) " >&6
  12301. else
  12302. case $PKG_CONFIG in
  12303. [\\/]* | ?:[\\/]*)
  12304. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12305. ;;
  12306. *)
  12307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12308. for as_dir in $PATH
  12309. do
  12310. IFS=$as_save_IFS
  12311. test -z "$as_dir" && as_dir=.
  12312. for ac_exec_ext in '' $ac_executable_extensions; do
  12313. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12314. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12316. break 2
  12317. fi
  12318. done
  12319. done
  12320. IFS=$as_save_IFS
  12321. ;;
  12322. esac
  12323. fi
  12324. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  12325. if test -n "$PKG_CONFIG"; then
  12326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  12327. $as_echo "$PKG_CONFIG" >&6; }
  12328. else
  12329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12330. $as_echo "no" >&6; }
  12331. fi
  12332. fi
  12333. if test -z "$ac_cv_path_PKG_CONFIG"; then
  12334. ac_pt_PKG_CONFIG=$PKG_CONFIG
  12335. # Extract the first word of "pkg-config", so it can be a program name with args.
  12336. set dummy pkg-config; ac_word=$2
  12337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12338. $as_echo_n "checking for $ac_word... " >&6; }
  12339. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  12340. $as_echo_n "(cached) " >&6
  12341. else
  12342. case $ac_pt_PKG_CONFIG in
  12343. [\\/]* | ?:[\\/]*)
  12344. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  12345. ;;
  12346. *)
  12347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12348. for as_dir in $PATH
  12349. do
  12350. IFS=$as_save_IFS
  12351. test -z "$as_dir" && as_dir=.
  12352. for ac_exec_ext in '' $ac_executable_extensions; do
  12353. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12354. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12355. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12356. break 2
  12357. fi
  12358. done
  12359. done
  12360. IFS=$as_save_IFS
  12361. ;;
  12362. esac
  12363. fi
  12364. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  12365. if test -n "$ac_pt_PKG_CONFIG"; then
  12366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  12367. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  12368. else
  12369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12370. $as_echo "no" >&6; }
  12371. fi
  12372. if test "x$ac_pt_PKG_CONFIG" = x; then
  12373. PKG_CONFIG=""
  12374. else
  12375. case $cross_compiling:$ac_tool_warned in
  12376. yes:)
  12377. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12378. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12379. ac_tool_warned=yes ;;
  12380. esac
  12381. PKG_CONFIG=$ac_pt_PKG_CONFIG
  12382. fi
  12383. else
  12384. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12385. fi
  12386. fi
  12387. if test -n "$PKG_CONFIG"; then
  12388. _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
  12389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  12390. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  12391. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  12392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12393. $as_echo "yes" >&6; }
  12394. else
  12395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12396. $as_echo "no" >&6; }
  12397. PKG_CONFIG=""
  12398. fi
  12399. fi
  12400. if test x"$PKG_CONFIG" = x""; then
  12401. echo
  12402. echo "*** Your version of pkg-config is too old. You need atleast"
  12403. echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
  12404. echo "*** from the freedesktop.org software repository at"
  12405. echo "***"
  12406. echo "*** http://www.freedesktop.org/software/pkgconfig"
  12407. echo "***"
  12408. exit 1;
  12409. fi
  12410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.16.0" >&5
  12411. $as_echo_n "checking for gobject-2.0 >= 2.16.0... " >&6; }
  12412. if $PKG_CONFIG "--atleast-version=2.16.0" "gobject-2.0" >/dev/null 2>&1; then
  12413. GOBJECT_VERSION=`$PKG_CONFIG --modversion "gobject-2.0"`
  12414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOBJECT_VERSION" >&5
  12415. $as_echo "$GOBJECT_VERSION" >&6; }
  12416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GOBJECT_CFLAGS" >&5
  12417. $as_echo_n "checking GOBJECT_CFLAGS... " >&6; }
  12418. GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0"`
  12419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOBJECT_CFLAGS" >&5
  12420. $as_echo "$GOBJECT_CFLAGS" >&6; }
  12421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GOBJECT_LIBS" >&5
  12422. $as_echo_n "checking GOBJECT_LIBS... " >&6; }
  12423. GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0"`
  12424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOBJECT_LIBS" >&5
  12425. $as_echo "$GOBJECT_LIBS" >&6; }
  12426. GOBJECT_REQUIRED_VERSION=2.16.0
  12427. elif $PKG_CONFIG --exists "gobject-2.0" >/dev/null 2>&1; then
  12428. xdt_cv_version=`$PKG_CONFIG --modversion "gobject-2.0"`
  12429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
  12430. $as_echo "found, but $xdt_cv_version" >&6; }
  12431. echo "*** The required package gobject-2.0 was found on your system,"
  12432. echo "*** but the installed version ($xdt_cv_version) is too old."
  12433. echo "*** Please upgrade gobject-2.0 to atleast version 2.16.0, or adjust"
  12434. echo "*** the PKG_CONFIG_PATH environment variable if you installed"
  12435. echo "*** the new version of the package in a nonstandard prefix so"
  12436. echo "*** pkg-config is able to find it."
  12437. exit 1
  12438. else
  12439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  12440. $as_echo "not found" >&6; }
  12441. echo "*** The required package gobject-2.0 was not found on your system."
  12442. echo "*** Please install gobject-2.0 (atleast version 2.16.0) or adjust"
  12443. echo "*** the PKG_CONFIG_PATH environment variable if you"
  12444. echo "*** installed the package in a nonstandard prefix so that"
  12445. echo "*** pkg-config is able to find it."
  12446. exit 1
  12447. fi
  12448. # minimum supported version of pkg-config
  12449. xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
  12450. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  12451. if test -n "$ac_tool_prefix"; then
  12452. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  12453. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  12454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12455. $as_echo_n "checking for $ac_word... " >&6; }
  12456. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  12457. $as_echo_n "(cached) " >&6
  12458. else
  12459. case $PKG_CONFIG in
  12460. [\\/]* | ?:[\\/]*)
  12461. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12462. ;;
  12463. *)
  12464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12465. for as_dir in $PATH
  12466. do
  12467. IFS=$as_save_IFS
  12468. test -z "$as_dir" && as_dir=.
  12469. for ac_exec_ext in '' $ac_executable_extensions; do
  12470. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12471. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12472. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12473. break 2
  12474. fi
  12475. done
  12476. done
  12477. IFS=$as_save_IFS
  12478. ;;
  12479. esac
  12480. fi
  12481. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  12482. if test -n "$PKG_CONFIG"; then
  12483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  12484. $as_echo "$PKG_CONFIG" >&6; }
  12485. else
  12486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12487. $as_echo "no" >&6; }
  12488. fi
  12489. fi
  12490. if test -z "$ac_cv_path_PKG_CONFIG"; then
  12491. ac_pt_PKG_CONFIG=$PKG_CONFIG
  12492. # Extract the first word of "pkg-config", so it can be a program name with args.
  12493. set dummy pkg-config; ac_word=$2
  12494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12495. $as_echo_n "checking for $ac_word... " >&6; }
  12496. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  12497. $as_echo_n "(cached) " >&6
  12498. else
  12499. case $ac_pt_PKG_CONFIG in
  12500. [\\/]* | ?:[\\/]*)
  12501. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  12502. ;;
  12503. *)
  12504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12505. for as_dir in $PATH
  12506. do
  12507. IFS=$as_save_IFS
  12508. test -z "$as_dir" && as_dir=.
  12509. for ac_exec_ext in '' $ac_executable_extensions; do
  12510. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12511. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12512. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12513. break 2
  12514. fi
  12515. done
  12516. done
  12517. IFS=$as_save_IFS
  12518. ;;
  12519. esac
  12520. fi
  12521. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  12522. if test -n "$ac_pt_PKG_CONFIG"; then
  12523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  12524. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  12525. else
  12526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12527. $as_echo "no" >&6; }
  12528. fi
  12529. if test "x$ac_pt_PKG_CONFIG" = x; then
  12530. PKG_CONFIG=""
  12531. else
  12532. case $cross_compiling:$ac_tool_warned in
  12533. yes:)
  12534. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12535. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12536. ac_tool_warned=yes ;;
  12537. esac
  12538. PKG_CONFIG=$ac_pt_PKG_CONFIG
  12539. fi
  12540. else
  12541. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12542. fi
  12543. fi
  12544. if test -n "$PKG_CONFIG"; then
  12545. _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
  12546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  12547. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  12548. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  12549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12550. $as_echo "yes" >&6; }
  12551. else
  12552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12553. $as_echo "no" >&6; }
  12554. PKG_CONFIG=""
  12555. fi
  12556. fi
  12557. if test x"$PKG_CONFIG" = x""; then
  12558. echo
  12559. echo "*** Your version of pkg-config is too old. You need atleast"
  12560. echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
  12561. echo "*** from the freedesktop.org software repository at"
  12562. echo "***"
  12563. echo "*** http://www.freedesktop.org/software/pkgconfig"
  12564. echo "***"
  12565. exit 1;
  12566. fi
  12567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gthread-2.0 >= 2.16.0" >&5
  12568. $as_echo_n "checking for gthread-2.0 >= 2.16.0... " >&6; }
  12569. if $PKG_CONFIG "--atleast-version=2.16.0" "gthread-2.0" >/dev/null 2>&1; then
  12570. GTHREAD_VERSION=`$PKG_CONFIG --modversion "gthread-2.0"`
  12571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTHREAD_VERSION" >&5
  12572. $as_echo "$GTHREAD_VERSION" >&6; }
  12573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTHREAD_CFLAGS" >&5
  12574. $as_echo_n "checking GTHREAD_CFLAGS... " >&6; }
  12575. GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0"`
  12576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTHREAD_CFLAGS" >&5
  12577. $as_echo "$GTHREAD_CFLAGS" >&6; }
  12578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTHREAD_LIBS" >&5
  12579. $as_echo_n "checking GTHREAD_LIBS... " >&6; }
  12580. GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0"`
  12581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTHREAD_LIBS" >&5
  12582. $as_echo "$GTHREAD_LIBS" >&6; }
  12583. GTHREAD_REQUIRED_VERSION=2.16.0
  12584. elif $PKG_CONFIG --exists "gthread-2.0" >/dev/null 2>&1; then
  12585. xdt_cv_version=`$PKG_CONFIG --modversion "gthread-2.0"`
  12586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
  12587. $as_echo "found, but $xdt_cv_version" >&6; }
  12588. echo "*** The required package gthread-2.0 was found on your system,"
  12589. echo "*** but the installed version ($xdt_cv_version) is too old."
  12590. echo "*** Please upgrade gthread-2.0 to atleast version 2.16.0, or adjust"
  12591. echo "*** the PKG_CONFIG_PATH environment variable if you installed"
  12592. echo "*** the new version of the package in a nonstandard prefix so"
  12593. echo "*** pkg-config is able to find it."
  12594. exit 1
  12595. else
  12596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  12597. $as_echo "not found" >&6; }
  12598. echo "*** The required package gthread-2.0 was not found on your system."
  12599. echo "*** Please install gthread-2.0 (atleast version 2.16.0) or adjust"
  12600. echo "*** the PKG_CONFIG_PATH environment variable if you"
  12601. echo "*** installed the package in a nonstandard prefix so that"
  12602. echo "*** pkg-config is able to find it."
  12603. exit 1
  12604. fi
  12605. # minimum supported version of pkg-config
  12606. xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
  12607. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  12608. if test -n "$ac_tool_prefix"; then
  12609. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  12610. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  12611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12612. $as_echo_n "checking for $ac_word... " >&6; }
  12613. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  12614. $as_echo_n "(cached) " >&6
  12615. else
  12616. case $PKG_CONFIG in
  12617. [\\/]* | ?:[\\/]*)
  12618. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12619. ;;
  12620. *)
  12621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12622. for as_dir in $PATH
  12623. do
  12624. IFS=$as_save_IFS
  12625. test -z "$as_dir" && as_dir=.
  12626. for ac_exec_ext in '' $ac_executable_extensions; do
  12627. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12628. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12629. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12630. break 2
  12631. fi
  12632. done
  12633. done
  12634. IFS=$as_save_IFS
  12635. ;;
  12636. esac
  12637. fi
  12638. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  12639. if test -n "$PKG_CONFIG"; then
  12640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  12641. $as_echo "$PKG_CONFIG" >&6; }
  12642. else
  12643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12644. $as_echo "no" >&6; }
  12645. fi
  12646. fi
  12647. if test -z "$ac_cv_path_PKG_CONFIG"; then
  12648. ac_pt_PKG_CONFIG=$PKG_CONFIG
  12649. # Extract the first word of "pkg-config", so it can be a program name with args.
  12650. set dummy pkg-config; ac_word=$2
  12651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12652. $as_echo_n "checking for $ac_word... " >&6; }
  12653. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  12654. $as_echo_n "(cached) " >&6
  12655. else
  12656. case $ac_pt_PKG_CONFIG in
  12657. [\\/]* | ?:[\\/]*)
  12658. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  12659. ;;
  12660. *)
  12661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12662. for as_dir in $PATH
  12663. do
  12664. IFS=$as_save_IFS
  12665. test -z "$as_dir" && as_dir=.
  12666. for ac_exec_ext in '' $ac_executable_extensions; do
  12667. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12668. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12670. break 2
  12671. fi
  12672. done
  12673. done
  12674. IFS=$as_save_IFS
  12675. ;;
  12676. esac
  12677. fi
  12678. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  12679. if test -n "$ac_pt_PKG_CONFIG"; then
  12680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  12681. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  12682. else
  12683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12684. $as_echo "no" >&6; }
  12685. fi
  12686. if test "x$ac_pt_PKG_CONFIG" = x; then
  12687. PKG_CONFIG=""
  12688. else
  12689. case $cross_compiling:$ac_tool_warned in
  12690. yes:)
  12691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12692. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12693. ac_tool_warned=yes ;;
  12694. esac
  12695. PKG_CONFIG=$ac_pt_PKG_CONFIG
  12696. fi
  12697. else
  12698. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12699. fi
  12700. fi
  12701. if test -n "$PKG_CONFIG"; then
  12702. _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
  12703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  12704. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  12705. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  12706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12707. $as_echo "yes" >&6; }
  12708. else
  12709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12710. $as_echo "no" >&6; }
  12711. PKG_CONFIG=""
  12712. fi
  12713. fi
  12714. if test x"$PKG_CONFIG" = x""; then
  12715. echo
  12716. echo "*** Your version of pkg-config is too old. You need atleast"
  12717. echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
  12718. echo "*** from the freedesktop.org software repository at"
  12719. echo "***"
  12720. echo "*** http://www.freedesktop.org/software/pkgconfig"
  12721. echo "***"
  12722. exit 1;
  12723. fi
  12724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmodule-2.0 >= 2.16.0" >&5
  12725. $as_echo_n "checking for gmodule-2.0 >= 2.16.0... " >&6; }
  12726. if $PKG_CONFIG "--atleast-version=2.16.0" "gmodule-2.0" >/dev/null 2>&1; then
  12727. GMODULE_VERSION=`$PKG_CONFIG --modversion "gmodule-2.0"`
  12728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMODULE_VERSION" >&5
  12729. $as_echo "$GMODULE_VERSION" >&6; }
  12730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GMODULE_CFLAGS" >&5
  12731. $as_echo_n "checking GMODULE_CFLAGS... " >&6; }
  12732. GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0"`
  12733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMODULE_CFLAGS" >&5
  12734. $as_echo "$GMODULE_CFLAGS" >&6; }
  12735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GMODULE_LIBS" >&5
  12736. $as_echo_n "checking GMODULE_LIBS... " >&6; }
  12737. GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0"`
  12738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMODULE_LIBS" >&5
  12739. $as_echo "$GMODULE_LIBS" >&6; }
  12740. GMODULE_REQUIRED_VERSION=2.16.0
  12741. elif $PKG_CONFIG --exists "gmodule-2.0" >/dev/null 2>&1; then
  12742. xdt_cv_version=`$PKG_CONFIG --modversion "gmodule-2.0"`
  12743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
  12744. $as_echo "found, but $xdt_cv_version" >&6; }
  12745. echo "*** The required package gmodule-2.0 was found on your system,"
  12746. echo "*** but the installed version ($xdt_cv_version) is too old."
  12747. echo "*** Please upgrade gmodule-2.0 to atleast version 2.16.0, or adjust"
  12748. echo "*** the PKG_CONFIG_PATH environment variable if you installed"
  12749. echo "*** the new version of the package in a nonstandard prefix so"
  12750. echo "*** pkg-config is able to find it."
  12751. exit 1
  12752. else
  12753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  12754. $as_echo "not found" >&6; }
  12755. echo "*** The required package gmodule-2.0 was not found on your system."
  12756. echo "*** Please install gmodule-2.0 (atleast version 2.16.0) or adjust"
  12757. echo "*** the PKG_CONFIG_PATH environment variable if you"
  12758. echo "*** installed the package in a nonstandard prefix so that"
  12759. echo "*** pkg-config is able to find it."
  12760. exit 1
  12761. fi
  12762. # minimum supported version of pkg-config
  12763. xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
  12764. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  12765. if test -n "$ac_tool_prefix"; then
  12766. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  12767. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  12768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12769. $as_echo_n "checking for $ac_word... " >&6; }
  12770. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  12771. $as_echo_n "(cached) " >&6
  12772. else
  12773. case $PKG_CONFIG in
  12774. [\\/]* | ?:[\\/]*)
  12775. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12776. ;;
  12777. *)
  12778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12779. for as_dir in $PATH
  12780. do
  12781. IFS=$as_save_IFS
  12782. test -z "$as_dir" && as_dir=.
  12783. for ac_exec_ext in '' $ac_executable_extensions; do
  12784. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12785. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12786. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12787. break 2
  12788. fi
  12789. done
  12790. done
  12791. IFS=$as_save_IFS
  12792. ;;
  12793. esac
  12794. fi
  12795. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  12796. if test -n "$PKG_CONFIG"; then
  12797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  12798. $as_echo "$PKG_CONFIG" >&6; }
  12799. else
  12800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12801. $as_echo "no" >&6; }
  12802. fi
  12803. fi
  12804. if test -z "$ac_cv_path_PKG_CONFIG"; then
  12805. ac_pt_PKG_CONFIG=$PKG_CONFIG
  12806. # Extract the first word of "pkg-config", so it can be a program name with args.
  12807. set dummy pkg-config; ac_word=$2
  12808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12809. $as_echo_n "checking for $ac_word... " >&6; }
  12810. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  12811. $as_echo_n "(cached) " >&6
  12812. else
  12813. case $ac_pt_PKG_CONFIG in
  12814. [\\/]* | ?:[\\/]*)
  12815. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  12816. ;;
  12817. *)
  12818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12819. for as_dir in $PATH
  12820. do
  12821. IFS=$as_save_IFS
  12822. test -z "$as_dir" && as_dir=.
  12823. for ac_exec_ext in '' $ac_executable_extensions; do
  12824. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12825. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12827. break 2
  12828. fi
  12829. done
  12830. done
  12831. IFS=$as_save_IFS
  12832. ;;
  12833. esac
  12834. fi
  12835. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  12836. if test -n "$ac_pt_PKG_CONFIG"; then
  12837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  12838. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  12839. else
  12840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12841. $as_echo "no" >&6; }
  12842. fi
  12843. if test "x$ac_pt_PKG_CONFIG" = x; then
  12844. PKG_CONFIG=""
  12845. else
  12846. case $cross_compiling:$ac_tool_warned in
  12847. yes:)
  12848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12849. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12850. ac_tool_warned=yes ;;
  12851. esac
  12852. PKG_CONFIG=$ac_pt_PKG_CONFIG
  12853. fi
  12854. else
  12855. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12856. fi
  12857. fi
  12858. if test -n "$PKG_CONFIG"; then
  12859. _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
  12860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  12861. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  12862. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  12863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12864. $as_echo "yes" >&6; }
  12865. else
  12866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12867. $as_echo "no" >&6; }
  12868. PKG_CONFIG=""
  12869. fi
  12870. fi
  12871. if test x"$PKG_CONFIG" = x""; then
  12872. echo
  12873. echo "*** Your version of pkg-config is too old. You need atleast"
  12874. echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
  12875. echo "*** from the freedesktop.org software repository at"
  12876. echo "***"
  12877. echo "*** http://www.freedesktop.org/software/pkgconfig"
  12878. echo "***"
  12879. exit 1;
  12880. fi
  12881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 0.60" >&5
  12882. $as_echo_n "checking for dbus-1 >= 0.60... " >&6; }
  12883. if $PKG_CONFIG "--atleast-version=0.60" "dbus-1" >/dev/null 2>&1; then
  12884. DBUS_VERSION=`$PKG_CONFIG --modversion "dbus-1"`
  12885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_VERSION" >&5
  12886. $as_echo "$DBUS_VERSION" >&6; }
  12887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
  12888. $as_echo_n "checking DBUS_CFLAGS... " >&6; }
  12889. DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1"`
  12890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
  12891. $as_echo "$DBUS_CFLAGS" >&6; }
  12892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
  12893. $as_echo_n "checking DBUS_LIBS... " >&6; }
  12894. DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1"`
  12895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
  12896. $as_echo "$DBUS_LIBS" >&6; }
  12897. DBUS_REQUIRED_VERSION=0.60
  12898. elif $PKG_CONFIG --exists "dbus-1" >/dev/null 2>&1; then
  12899. xdt_cv_version=`$PKG_CONFIG --modversion "dbus-1"`
  12900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
  12901. $as_echo "found, but $xdt_cv_version" >&6; }
  12902. echo "*** The required package dbus-1 was found on your system,"
  12903. echo "*** but the installed version ($xdt_cv_version) is too old."
  12904. echo "*** Please upgrade dbus-1 to atleast version 0.60, or adjust"
  12905. echo "*** the PKG_CONFIG_PATH environment variable if you installed"
  12906. echo "*** the new version of the package in a nonstandard prefix so"
  12907. echo "*** pkg-config is able to find it."
  12908. exit 1
  12909. else
  12910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  12911. $as_echo "not found" >&6; }
  12912. echo "*** The required package dbus-1 was not found on your system."
  12913. echo "*** Please install dbus-1 (atleast version 0.60) or adjust"
  12914. echo "*** the PKG_CONFIG_PATH environment variable if you"
  12915. echo "*** installed the package in a nonstandard prefix so that"
  12916. echo "*** pkg-config is able to find it."
  12917. exit 1
  12918. fi
  12919. # minimum supported version of pkg-config
  12920. xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
  12921. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  12922. if test -n "$ac_tool_prefix"; then
  12923. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  12924. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  12925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12926. $as_echo_n "checking for $ac_word... " >&6; }
  12927. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  12928. $as_echo_n "(cached) " >&6
  12929. else
  12930. case $PKG_CONFIG in
  12931. [\\/]* | ?:[\\/]*)
  12932. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12933. ;;
  12934. *)
  12935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12936. for as_dir in $PATH
  12937. do
  12938. IFS=$as_save_IFS
  12939. test -z "$as_dir" && as_dir=.
  12940. for ac_exec_ext in '' $ac_executable_extensions; do
  12941. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12942. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12943. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12944. break 2
  12945. fi
  12946. done
  12947. done
  12948. IFS=$as_save_IFS
  12949. ;;
  12950. esac
  12951. fi
  12952. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  12953. if test -n "$PKG_CONFIG"; then
  12954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  12955. $as_echo "$PKG_CONFIG" >&6; }
  12956. else
  12957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12958. $as_echo "no" >&6; }
  12959. fi
  12960. fi
  12961. if test -z "$ac_cv_path_PKG_CONFIG"; then
  12962. ac_pt_PKG_CONFIG=$PKG_CONFIG
  12963. # Extract the first word of "pkg-config", so it can be a program name with args.
  12964. set dummy pkg-config; ac_word=$2
  12965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12966. $as_echo_n "checking for $ac_word... " >&6; }
  12967. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  12968. $as_echo_n "(cached) " >&6
  12969. else
  12970. case $ac_pt_PKG_CONFIG in
  12971. [\\/]* | ?:[\\/]*)
  12972. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  12973. ;;
  12974. *)
  12975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12976. for as_dir in $PATH
  12977. do
  12978. IFS=$as_save_IFS
  12979. test -z "$as_dir" && as_dir=.
  12980. for ac_exec_ext in '' $ac_executable_extensions; do
  12981. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12982. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12983. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12984. break 2
  12985. fi
  12986. done
  12987. done
  12988. IFS=$as_save_IFS
  12989. ;;
  12990. esac
  12991. fi
  12992. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  12993. if test -n "$ac_pt_PKG_CONFIG"; then
  12994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  12995. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  12996. else
  12997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12998. $as_echo "no" >&6; }
  12999. fi
  13000. if test "x$ac_pt_PKG_CONFIG" = x; then
  13001. PKG_CONFIG=""
  13002. else
  13003. case $cross_compiling:$ac_tool_warned in
  13004. yes:)
  13005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13006. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13007. ac_tool_warned=yes ;;
  13008. esac
  13009. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13010. fi
  13011. else
  13012. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13013. fi
  13014. fi
  13015. if test -n "$PKG_CONFIG"; then
  13016. _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
  13017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13018. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13019. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13021. $as_echo "yes" >&6; }
  13022. else
  13023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13024. $as_echo "no" >&6; }
  13025. PKG_CONFIG=""
  13026. fi
  13027. fi
  13028. if test x"$PKG_CONFIG" = x""; then
  13029. echo
  13030. echo "*** Your version of pkg-config is too old. You need atleast"
  13031. echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
  13032. echo "*** from the freedesktop.org software repository at"
  13033. echo "***"
  13034. echo "*** http://www.freedesktop.org/software/pkgconfig"
  13035. echo "***"
  13036. exit 1;
  13037. fi
  13038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-glib-1 >= 0.70" >&5
  13039. $as_echo_n "checking for dbus-glib-1 >= 0.70... " >&6; }
  13040. if $PKG_CONFIG "--atleast-version=0.70" "dbus-glib-1" >/dev/null 2>&1; then
  13041. DBUS_GLIB_VERSION=`$PKG_CONFIG --modversion "dbus-glib-1"`
  13042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_GLIB_VERSION" >&5
  13043. $as_echo "$DBUS_GLIB_VERSION" >&6; }
  13044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_GLIB_CFLAGS" >&5
  13045. $as_echo_n "checking DBUS_GLIB_CFLAGS... " >&6; }
  13046. DBUS_GLIB_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1"`
  13047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_GLIB_CFLAGS" >&5
  13048. $as_echo "$DBUS_GLIB_CFLAGS" >&6; }
  13049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_GLIB_LIBS" >&5
  13050. $as_echo_n "checking DBUS_GLIB_LIBS... " >&6; }
  13051. DBUS_GLIB_LIBS=`$PKG_CONFIG --libs "dbus-glib-1"`
  13052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_GLIB_LIBS" >&5
  13053. $as_echo "$DBUS_GLIB_LIBS" >&6; }
  13054. DBUS_GLIB_REQUIRED_VERSION=0.70
  13055. elif $PKG_CONFIG --exists "dbus-glib-1" >/dev/null 2>&1; then
  13056. xdt_cv_version=`$PKG_CONFIG --modversion "dbus-glib-1"`
  13057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
  13058. $as_echo "found, but $xdt_cv_version" >&6; }
  13059. echo "*** The required package dbus-glib-1 was found on your system,"
  13060. echo "*** but the installed version ($xdt_cv_version) is too old."
  13061. echo "*** Please upgrade dbus-glib-1 to atleast version 0.70, or adjust"
  13062. echo "*** the PKG_CONFIG_PATH environment variable if you installed"
  13063. echo "*** the new version of the package in a nonstandard prefix so"
  13064. echo "*** pkg-config is able to find it."
  13065. exit 1
  13066. else
  13067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  13068. $as_echo "not found" >&6; }
  13069. echo "*** The required package dbus-glib-1 was not found on your system."
  13070. echo "*** Please install dbus-glib-1 (atleast version 0.70) or adjust"
  13071. echo "*** the PKG_CONFIG_PATH environment variable if you"
  13072. echo "*** installed the package in a nonstandard prefix so that"
  13073. echo "*** pkg-config is able to find it."
  13074. exit 1
  13075. fi
  13076. # minimum supported version of pkg-config
  13077. xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
  13078. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13079. if test -n "$ac_tool_prefix"; then
  13080. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13081. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13083. $as_echo_n "checking for $ac_word... " >&6; }
  13084. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13085. $as_echo_n "(cached) " >&6
  13086. else
  13087. case $PKG_CONFIG in
  13088. [\\/]* | ?:[\\/]*)
  13089. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13090. ;;
  13091. *)
  13092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13093. for as_dir in $PATH
  13094. do
  13095. IFS=$as_save_IFS
  13096. test -z "$as_dir" && as_dir=.
  13097. for ac_exec_ext in '' $ac_executable_extensions; do
  13098. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13099. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13100. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13101. break 2
  13102. fi
  13103. done
  13104. done
  13105. IFS=$as_save_IFS
  13106. ;;
  13107. esac
  13108. fi
  13109. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13110. if test -n "$PKG_CONFIG"; then
  13111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13112. $as_echo "$PKG_CONFIG" >&6; }
  13113. else
  13114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13115. $as_echo "no" >&6; }
  13116. fi
  13117. fi
  13118. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13119. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13120. # Extract the first word of "pkg-config", so it can be a program name with args.
  13121. set dummy pkg-config; ac_word=$2
  13122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13123. $as_echo_n "checking for $ac_word... " >&6; }
  13124. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13125. $as_echo_n "(cached) " >&6
  13126. else
  13127. case $ac_pt_PKG_CONFIG in
  13128. [\\/]* | ?:[\\/]*)
  13129. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13130. ;;
  13131. *)
  13132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13133. for as_dir in $PATH
  13134. do
  13135. IFS=$as_save_IFS
  13136. test -z "$as_dir" && as_dir=.
  13137. for ac_exec_ext in '' $ac_executable_extensions; do
  13138. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13139. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13140. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13141. break 2
  13142. fi
  13143. done
  13144. done
  13145. IFS=$as_save_IFS
  13146. ;;
  13147. esac
  13148. fi
  13149. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13150. if test -n "$ac_pt_PKG_CONFIG"; then
  13151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13152. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13153. else
  13154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13155. $as_echo "no" >&6; }
  13156. fi
  13157. if test "x$ac_pt_PKG_CONFIG" = x; then
  13158. PKG_CONFIG=""
  13159. else
  13160. case $cross_compiling:$ac_tool_warned in
  13161. yes:)
  13162. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13163. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13164. ac_tool_warned=yes ;;
  13165. esac
  13166. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13167. fi
  13168. else
  13169. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13170. fi
  13171. fi
  13172. if test -n "$PKG_CONFIG"; then
  13173. _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
  13174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13175. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13176. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13178. $as_echo "yes" >&6; }
  13179. else
  13180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13181. $as_echo "no" >&6; }
  13182. PKG_CONFIG=""
  13183. fi
  13184. fi
  13185. if test x"$PKG_CONFIG" = x""; then
  13186. echo
  13187. echo "*** Your version of pkg-config is too old. You need atleast"
  13188. echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
  13189. echo "*** from the freedesktop.org software repository at"
  13190. echo "***"
  13191. echo "*** http://www.freedesktop.org/software/pkgconfig"
  13192. echo "***"
  13193. exit 1;
  13194. fi
  13195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxfconf-0 >= 4.6.0" >&5
  13196. $as_echo_n "checking for libxfconf-0 >= 4.6.0... " >&6; }
  13197. if $PKG_CONFIG "--atleast-version=4.6.0" "libxfconf-0" >/dev/null 2>&1; then
  13198. XFCONF_VERSION=`$PKG_CONFIG --modversion "libxfconf-0"`
  13199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFCONF_VERSION" >&5
  13200. $as_echo "$XFCONF_VERSION" >&6; }
  13201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFCONF_CFLAGS" >&5
  13202. $as_echo_n "checking XFCONF_CFLAGS... " >&6; }
  13203. XFCONF_CFLAGS=`$PKG_CONFIG --cflags "libxfconf-0"`
  13204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFCONF_CFLAGS" >&5
  13205. $as_echo "$XFCONF_CFLAGS" >&6; }
  13206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFCONF_LIBS" >&5
  13207. $as_echo_n "checking XFCONF_LIBS... " >&6; }
  13208. XFCONF_LIBS=`$PKG_CONFIG --libs "libxfconf-0"`
  13209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFCONF_LIBS" >&5
  13210. $as_echo "$XFCONF_LIBS" >&6; }
  13211. XFCONF_REQUIRED_VERSION=4.6.0
  13212. elif $PKG_CONFIG --exists "libxfconf-0" >/dev/null 2>&1; then
  13213. xdt_cv_version=`$PKG_CONFIG --modversion "libxfconf-0"`
  13214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
  13215. $as_echo "found, but $xdt_cv_version" >&6; }
  13216. echo "*** The required package libxfconf-0 was found on your system,"
  13217. echo "*** but the installed version ($xdt_cv_version) is too old."
  13218. echo "*** Please upgrade libxfconf-0 to atleast version 4.6.0, or adjust"
  13219. echo "*** the PKG_CONFIG_PATH environment variable if you installed"
  13220. echo "*** the new version of the package in a nonstandard prefix so"
  13221. echo "*** pkg-config is able to find it."
  13222. exit 1
  13223. else
  13224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  13225. $as_echo "not found" >&6; }
  13226. echo "*** The required package libxfconf-0 was not found on your system."
  13227. echo "*** Please install libxfconf-0 (atleast version 4.6.0) or adjust"
  13228. echo "*** the PKG_CONFIG_PATH environment variable if you"
  13229. echo "*** installed the package in a nonstandard prefix so that"
  13230. echo "*** pkg-config is able to find it."
  13231. exit 1
  13232. fi
  13233. # minimum supported version of pkg-config
  13234. xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
  13235. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13236. if test -n "$ac_tool_prefix"; then
  13237. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13238. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13240. $as_echo_n "checking for $ac_word... " >&6; }
  13241. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13242. $as_echo_n "(cached) " >&6
  13243. else
  13244. case $PKG_CONFIG in
  13245. [\\/]* | ?:[\\/]*)
  13246. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13247. ;;
  13248. *)
  13249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13250. for as_dir in $PATH
  13251. do
  13252. IFS=$as_save_IFS
  13253. test -z "$as_dir" && as_dir=.
  13254. for ac_exec_ext in '' $ac_executable_extensions; do
  13255. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13256. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13257. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13258. break 2
  13259. fi
  13260. done
  13261. done
  13262. IFS=$as_save_IFS
  13263. ;;
  13264. esac
  13265. fi
  13266. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13267. if test -n "$PKG_CONFIG"; then
  13268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13269. $as_echo "$PKG_CONFIG" >&6; }
  13270. else
  13271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13272. $as_echo "no" >&6; }
  13273. fi
  13274. fi
  13275. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13276. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13277. # Extract the first word of "pkg-config", so it can be a program name with args.
  13278. set dummy pkg-config; ac_word=$2
  13279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13280. $as_echo_n "checking for $ac_word... " >&6; }
  13281. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13282. $as_echo_n "(cached) " >&6
  13283. else
  13284. case $ac_pt_PKG_CONFIG in
  13285. [\\/]* | ?:[\\/]*)
  13286. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13287. ;;
  13288. *)
  13289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13290. for as_dir in $PATH
  13291. do
  13292. IFS=$as_save_IFS
  13293. test -z "$as_dir" && as_dir=.
  13294. for ac_exec_ext in '' $ac_executable_extensions; do
  13295. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13296. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13297. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13298. break 2
  13299. fi
  13300. done
  13301. done
  13302. IFS=$as_save_IFS
  13303. ;;
  13304. esac
  13305. fi
  13306. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13307. if test -n "$ac_pt_PKG_CONFIG"; then
  13308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13309. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13310. else
  13311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13312. $as_echo "no" >&6; }
  13313. fi
  13314. if test "x$ac_pt_PKG_CONFIG" = x; then
  13315. PKG_CONFIG=""
  13316. else
  13317. case $cross_compiling:$ac_tool_warned in
  13318. yes:)
  13319. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13320. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13321. ac_tool_warned=yes ;;
  13322. esac
  13323. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13324. fi
  13325. else
  13326. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13327. fi
  13328. fi
  13329. if test -n "$PKG_CONFIG"; then
  13330. _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
  13331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13332. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13333. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13335. $as_echo "yes" >&6; }
  13336. else
  13337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13338. $as_echo "no" >&6; }
  13339. PKG_CONFIG=""
  13340. fi
  13341. fi
  13342. if test x"$PKG_CONFIG" = x""; then
  13343. echo
  13344. echo "*** Your version of pkg-config is too old. You need atleast"
  13345. echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
  13346. echo "*** from the freedesktop.org software repository at"
  13347. echo "***"
  13348. echo "*** http://www.freedesktop.org/software/pkgconfig"
  13349. echo "***"
  13350. exit 1;
  13351. fi
  13352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxfce4ui-1 >= 4.7.0" >&5
  13353. $as_echo_n "checking for libxfce4ui-1 >= 4.7.0... " >&6; }
  13354. if $PKG_CONFIG "--atleast-version=4.7.0" "libxfce4ui-1" >/dev/null 2>&1; then
  13355. LIBXFCE4UI_VERSION=`$PKG_CONFIG --modversion "libxfce4ui-1"`
  13356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXFCE4UI_VERSION" >&5
  13357. $as_echo "$LIBXFCE4UI_VERSION" >&6; }
  13358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXFCE4UI_CFLAGS" >&5
  13359. $as_echo_n "checking LIBXFCE4UI_CFLAGS... " >&6; }
  13360. LIBXFCE4UI_CFLAGS=`$PKG_CONFIG --cflags "libxfce4ui-1"`
  13361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXFCE4UI_CFLAGS" >&5
  13362. $as_echo "$LIBXFCE4UI_CFLAGS" >&6; }
  13363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXFCE4UI_LIBS" >&5
  13364. $as_echo_n "checking LIBXFCE4UI_LIBS... " >&6; }
  13365. LIBXFCE4UI_LIBS=`$PKG_CONFIG --libs "libxfce4ui-1"`
  13366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXFCE4UI_LIBS" >&5
  13367. $as_echo "$LIBXFCE4UI_LIBS" >&6; }
  13368. LIBXFCE4UI_REQUIRED_VERSION=4.7.0
  13369. elif $PKG_CONFIG --exists "libxfce4ui-1" >/dev/null 2>&1; then
  13370. xdt_cv_version=`$PKG_CONFIG --modversion "libxfce4ui-1"`
  13371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
  13372. $as_echo "found, but $xdt_cv_version" >&6; }
  13373. echo "*** The required package libxfce4ui-1 was found on your system,"
  13374. echo "*** but the installed version ($xdt_cv_version) is too old."
  13375. echo "*** Please upgrade libxfce4ui-1 to atleast version 4.7.0, or adjust"
  13376. echo "*** the PKG_CONFIG_PATH environment variable if you installed"
  13377. echo "*** the new version of the package in a nonstandard prefix so"
  13378. echo "*** pkg-config is able to find it."
  13379. exit 1
  13380. else
  13381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  13382. $as_echo "not found" >&6; }
  13383. echo "*** The required package libxfce4ui-1 was not found on your system."
  13384. echo "*** Please install libxfce4ui-1 (atleast version 4.7.0) or adjust"
  13385. echo "*** the PKG_CONFIG_PATH environment variable if you"
  13386. echo "*** installed the package in a nonstandard prefix so that"
  13387. echo "*** pkg-config is able to find it."
  13388. exit 1
  13389. fi
  13390. # minimum supported version of pkg-config
  13391. xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
  13392. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13393. if test -n "$ac_tool_prefix"; then
  13394. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13395. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13397. $as_echo_n "checking for $ac_word... " >&6; }
  13398. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13399. $as_echo_n "(cached) " >&6
  13400. else
  13401. case $PKG_CONFIG in
  13402. [\\/]* | ?:[\\/]*)
  13403. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13404. ;;
  13405. *)
  13406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13407. for as_dir in $PATH
  13408. do
  13409. IFS=$as_save_IFS
  13410. test -z "$as_dir" && as_dir=.
  13411. for ac_exec_ext in '' $ac_executable_extensions; do
  13412. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13413. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13414. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13415. break 2
  13416. fi
  13417. done
  13418. done
  13419. IFS=$as_save_IFS
  13420. ;;
  13421. esac
  13422. fi
  13423. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13424. if test -n "$PKG_CONFIG"; then
  13425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13426. $as_echo "$PKG_CONFIG" >&6; }
  13427. else
  13428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13429. $as_echo "no" >&6; }
  13430. fi
  13431. fi
  13432. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13433. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13434. # Extract the first word of "pkg-config", so it can be a program name with args.
  13435. set dummy pkg-config; ac_word=$2
  13436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13437. $as_echo_n "checking for $ac_word... " >&6; }
  13438. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13439. $as_echo_n "(cached) " >&6
  13440. else
  13441. case $ac_pt_PKG_CONFIG in
  13442. [\\/]* | ?:[\\/]*)
  13443. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13444. ;;
  13445. *)
  13446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13447. for as_dir in $PATH
  13448. do
  13449. IFS=$as_save_IFS
  13450. test -z "$as_dir" && as_dir=.
  13451. for ac_exec_ext in '' $ac_executable_extensions; do
  13452. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13453. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13455. break 2
  13456. fi
  13457. done
  13458. done
  13459. IFS=$as_save_IFS
  13460. ;;
  13461. esac
  13462. fi
  13463. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13464. if test -n "$ac_pt_PKG_CONFIG"; then
  13465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13466. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13467. else
  13468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13469. $as_echo "no" >&6; }
  13470. fi
  13471. if test "x$ac_pt_PKG_CONFIG" = x; then
  13472. PKG_CONFIG=""
  13473. else
  13474. case $cross_compiling:$ac_tool_warned in
  13475. yes:)
  13476. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13477. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13478. ac_tool_warned=yes ;;
  13479. esac
  13480. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13481. fi
  13482. else
  13483. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13484. fi
  13485. fi
  13486. if test -n "$PKG_CONFIG"; then
  13487. _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
  13488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13489. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13490. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13492. $as_echo "yes" >&6; }
  13493. else
  13494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13495. $as_echo "no" >&6; }
  13496. PKG_CONFIG=""
  13497. fi
  13498. fi
  13499. if test x"$PKG_CONFIG" = x""; then
  13500. echo
  13501. echo "*** Your version of pkg-config is too old. You need atleast"
  13502. echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
  13503. echo "*** from the freedesktop.org software repository at"
  13504. echo "***"
  13505. echo "*** http://www.freedesktop.org/software/pkgconfig"
  13506. echo "***"
  13507. exit 1;
  13508. fi
  13509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxfce4util-1.0 >= 4.6.0" >&5
  13510. $as_echo_n "checking for libxfce4util-1.0 >= 4.6.0... " >&6; }
  13511. if $PKG_CONFIG "--atleast-version=4.6.0" "libxfce4util-1.0" >/dev/null 2>&1; then
  13512. LIBXFCE4UTIL_VERSION=`$PKG_CONFIG --modversion "libxfce4util-1.0"`
  13513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXFCE4UTIL_VERSION" >&5
  13514. $as_echo "$LIBXFCE4UTIL_VERSION" >&6; }
  13515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXFCE4UTIL_CFLAGS" >&5
  13516. $as_echo_n "checking LIBXFCE4UTIL_CFLAGS... " >&6; }
  13517. LIBXFCE4UTIL_CFLAGS=`$PKG_CONFIG --cflags "libxfce4util-1.0"`
  13518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXFCE4UTIL_CFLAGS" >&5
  13519. $as_echo "$LIBXFCE4UTIL_CFLAGS" >&6; }
  13520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXFCE4UTIL_LIBS" >&5
  13521. $as_echo_n "checking LIBXFCE4UTIL_LIBS... " >&6; }
  13522. LIBXFCE4UTIL_LIBS=`$PKG_CONFIG --libs "libxfce4util-1.0"`
  13523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXFCE4UTIL_LIBS" >&5
  13524. $as_echo "$LIBXFCE4UTIL_LIBS" >&6; }
  13525. LIBXFCE4UTIL_REQUIRED_VERSION=4.6.0
  13526. elif $PKG_CONFIG --exists "libxfce4util-1.0" >/dev/null 2>&1; then
  13527. xdt_cv_version=`$PKG_CONFIG --modversion "libxfce4util-1.0"`
  13528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
  13529. $as_echo "found, but $xdt_cv_version" >&6; }
  13530. echo "*** The required package libxfce4util-1.0 was found on your system,"
  13531. echo "*** but the installed version ($xdt_cv_version) is too old."
  13532. echo "*** Please upgrade libxfce4util-1.0 to atleast version 4.6.0, or adjust"
  13533. echo "*** the PKG_CONFIG_PATH environment variable if you installed"
  13534. echo "*** the new version of the package in a nonstandard prefix so"
  13535. echo "*** pkg-config is able to find it."
  13536. exit 1
  13537. else
  13538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  13539. $as_echo "not found" >&6; }
  13540. echo "*** The required package libxfce4util-1.0 was not found on your system."
  13541. echo "*** Please install libxfce4util-1.0 (atleast version 4.6.0) or adjust"
  13542. echo "*** the PKG_CONFIG_PATH environment variable if you"
  13543. echo "*** installed the package in a nonstandard prefix so that"
  13544. echo "*** pkg-config is able to find it."
  13545. exit 1
  13546. fi
  13547. # minimum supported version of pkg-config
  13548. xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
  13549. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13550. if test -n "$ac_tool_prefix"; then
  13551. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13552. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13554. $as_echo_n "checking for $ac_word... " >&6; }
  13555. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13556. $as_echo_n "(cached) " >&6
  13557. else
  13558. case $PKG_CONFIG in
  13559. [\\/]* | ?:[\\/]*)
  13560. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13561. ;;
  13562. *)
  13563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13564. for as_dir in $PATH
  13565. do
  13566. IFS=$as_save_IFS
  13567. test -z "$as_dir" && as_dir=.
  13568. for ac_exec_ext in '' $ac_executable_extensions; do
  13569. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13570. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13571. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13572. break 2
  13573. fi
  13574. done
  13575. done
  13576. IFS=$as_save_IFS
  13577. ;;
  13578. esac
  13579. fi
  13580. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13581. if test -n "$PKG_CONFIG"; then
  13582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13583. $as_echo "$PKG_CONFIG" >&6; }
  13584. else
  13585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13586. $as_echo "no" >&6; }
  13587. fi
  13588. fi
  13589. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13590. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13591. # Extract the first word of "pkg-config", so it can be a program name with args.
  13592. set dummy pkg-config; ac_word=$2
  13593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13594. $as_echo_n "checking for $ac_word... " >&6; }
  13595. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13596. $as_echo_n "(cached) " >&6
  13597. else
  13598. case $ac_pt_PKG_CONFIG in
  13599. [\\/]* | ?:[\\/]*)
  13600. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13601. ;;
  13602. *)
  13603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13604. for as_dir in $PATH
  13605. do
  13606. IFS=$as_save_IFS
  13607. test -z "$as_dir" && as_dir=.
  13608. for ac_exec_ext in '' $ac_executable_extensions; do
  13609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13610. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13612. break 2
  13613. fi
  13614. done
  13615. done
  13616. IFS=$as_save_IFS
  13617. ;;
  13618. esac
  13619. fi
  13620. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13621. if test -n "$ac_pt_PKG_CONFIG"; then
  13622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13623. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13624. else
  13625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13626. $as_echo "no" >&6; }
  13627. fi
  13628. if test "x$ac_pt_PKG_CONFIG" = x; then
  13629. PKG_CONFIG=""
  13630. else
  13631. case $cross_compiling:$ac_tool_warned in
  13632. yes:)
  13633. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13634. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13635. ac_tool_warned=yes ;;
  13636. esac
  13637. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13638. fi
  13639. else
  13640. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13641. fi
  13642. fi
  13643. if test -n "$PKG_CONFIG"; then
  13644. _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
  13645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13646. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13647. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13649. $as_echo "yes" >&6; }
  13650. else
  13651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13652. $as_echo "no" >&6; }
  13653. PKG_CONFIG=""
  13654. fi
  13655. fi
  13656. if test x"$PKG_CONFIG" = x""; then
  13657. echo
  13658. echo "*** Your version of pkg-config is too old. You need atleast"
  13659. echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
  13660. echo "*** from the freedesktop.org software repository at"
  13661. echo "***"
  13662. echo "*** http://www.freedesktop.org/software/pkgconfig"
  13663. echo "***"
  13664. exit 1;
  13665. fi
  13666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnotify >= 0.4.1" >&5
  13667. $as_echo_n "checking for libnotify >= 0.4.1... " >&6; }
  13668. if $PKG_CONFIG "--atleast-version=0.4.1" "libnotify" >/dev/null 2>&1; then
  13669. LIBNOTIFY_VERSION=`$PKG_CONFIG --modversion "libnotify"`
  13670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBNOTIFY_VERSION" >&5
  13671. $as_echo "$LIBNOTIFY_VERSION" >&6; }
  13672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBNOTIFY_CFLAGS" >&5
  13673. $as_echo_n "checking LIBNOTIFY_CFLAGS... " >&6; }
  13674. LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify"`
  13675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBNOTIFY_CFLAGS" >&5
  13676. $as_echo "$LIBNOTIFY_CFLAGS" >&6; }
  13677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBNOTIFY_LIBS" >&5
  13678. $as_echo_n "checking LIBNOTIFY_LIBS... " >&6; }
  13679. LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify"`
  13680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBNOTIFY_LIBS" >&5
  13681. $as_echo "$LIBNOTIFY_LIBS" >&6; }
  13682. LIBNOTIFY_REQUIRED_VERSION=0.4.1
  13683. elif $PKG_CONFIG --exists "libnotify" >/dev/null 2>&1; then
  13684. xdt_cv_version=`$PKG_CONFIG --modversion "libnotify"`
  13685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
  13686. $as_echo "found, but $xdt_cv_version" >&6; }
  13687. echo "*** The required package libnotify was found on your system,"
  13688. echo "*** but the installed version ($xdt_cv_version) is too old."
  13689. echo "*** Please upgrade libnotify to atleast version 0.4.1, or adjust"
  13690. echo "*** the PKG_CONFIG_PATH environment variable if you installed"
  13691. echo "*** the new version of the package in a nonstandard prefix so"
  13692. echo "*** pkg-config is able to find it."
  13693. exit 1
  13694. else
  13695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  13696. $as_echo "not found" >&6; }
  13697. echo "*** The required package libnotify was not found on your system."
  13698. echo "*** Please install libnotify (atleast version 0.4.1) or adjust"
  13699. echo "*** the PKG_CONFIG_PATH environment variable if you"
  13700. echo "*** installed the package in a nonstandard prefix so that"
  13701. echo "*** pkg-config is able to find it."
  13702. exit 1
  13703. fi
  13704. # minimum supported version of pkg-config
  13705. xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
  13706. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13707. if test -n "$ac_tool_prefix"; then
  13708. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13709. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13711. $as_echo_n "checking for $ac_word... " >&6; }
  13712. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13713. $as_echo_n "(cached) " >&6
  13714. else
  13715. case $PKG_CONFIG in
  13716. [\\/]* | ?:[\\/]*)
  13717. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13718. ;;
  13719. *)
  13720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13721. for as_dir in $PATH
  13722. do
  13723. IFS=$as_save_IFS
  13724. test -z "$as_dir" && as_dir=.
  13725. for ac_exec_ext in '' $ac_executable_extensions; do
  13726. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13727. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13728. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13729. break 2
  13730. fi
  13731. done
  13732. done
  13733. IFS=$as_save_IFS
  13734. ;;
  13735. esac
  13736. fi
  13737. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13738. if test -n "$PKG_CONFIG"; then
  13739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13740. $as_echo "$PKG_CONFIG" >&6; }
  13741. else
  13742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13743. $as_echo "no" >&6; }
  13744. fi
  13745. fi
  13746. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13747. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13748. # Extract the first word of "pkg-config", so it can be a program name with args.
  13749. set dummy pkg-config; ac_word=$2
  13750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13751. $as_echo_n "checking for $ac_word... " >&6; }
  13752. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13753. $as_echo_n "(cached) " >&6
  13754. else
  13755. case $ac_pt_PKG_CONFIG in
  13756. [\\/]* | ?:[\\/]*)
  13757. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13758. ;;
  13759. *)
  13760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13761. for as_dir in $PATH
  13762. do
  13763. IFS=$as_save_IFS
  13764. test -z "$as_dir" && as_dir=.
  13765. for ac_exec_ext in '' $ac_executable_extensions; do
  13766. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13767. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13769. break 2
  13770. fi
  13771. done
  13772. done
  13773. IFS=$as_save_IFS
  13774. ;;
  13775. esac
  13776. fi
  13777. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13778. if test -n "$ac_pt_PKG_CONFIG"; then
  13779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13780. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13781. else
  13782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13783. $as_echo "no" >&6; }
  13784. fi
  13785. if test "x$ac_pt_PKG_CONFIG" = x; then
  13786. PKG_CONFIG=""
  13787. else
  13788. case $cross_compiling:$ac_tool_warned in
  13789. yes:)
  13790. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13791. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13792. ac_tool_warned=yes ;;
  13793. esac
  13794. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13795. fi
  13796. else
  13797. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13798. fi
  13799. fi
  13800. if test -n "$PKG_CONFIG"; then
  13801. _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
  13802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13803. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13804. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13806. $as_echo "yes" >&6; }
  13807. else
  13808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13809. $as_echo "no" >&6; }
  13810. PKG_CONFIG=""
  13811. fi
  13812. fi
  13813. if test x"$PKG_CONFIG" = x""; then
  13814. echo
  13815. echo "*** Your version of pkg-config is too old. You need atleast"
  13816. echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
  13817. echo "*** from the freedesktop.org software repository at"
  13818. echo "***"
  13819. echo "*** http://www.freedesktop.org/software/pkgconfig"
  13820. echo "***"
  13821. exit 1;
  13822. fi
  13823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xrandr >= 1.2.0" >&5
  13824. $as_echo_n "checking for xrandr >= 1.2.0... " >&6; }
  13825. if $PKG_CONFIG "--atleast-version=1.2.0" "xrandr" >/dev/null 2>&1; then
  13826. XRANDR_VERSION=`$PKG_CONFIG --modversion "xrandr"`
  13827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XRANDR_VERSION" >&5
  13828. $as_echo "$XRANDR_VERSION" >&6; }
  13829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking XRANDR_CFLAGS" >&5
  13830. $as_echo_n "checking XRANDR_CFLAGS... " >&6; }
  13831. XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr"`
  13832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XRANDR_CFLAGS" >&5
  13833. $as_echo "$XRANDR_CFLAGS" >&6; }
  13834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking XRANDR_LIBS" >&5
  13835. $as_echo_n "checking XRANDR_LIBS... " >&6; }
  13836. XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr"`
  13837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XRANDR_LIBS" >&5
  13838. $as_echo "$XRANDR_LIBS" >&6; }
  13839. XRANDR_REQUIRED_VERSION=1.2.0
  13840. elif $PKG_CONFIG --exists "xrandr" >/dev/null 2>&1; then
  13841. xdt_cv_version=`$PKG_CONFIG --modversion "xrandr"`
  13842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
  13843. $as_echo "found, but $xdt_cv_version" >&6; }
  13844. echo "*** The required package xrandr was found on your system,"
  13845. echo "*** but the installed version ($xdt_cv_version) is too old."
  13846. echo "*** Please upgrade xrandr to atleast version 1.2.0, or adjust"
  13847. echo "*** the PKG_CONFIG_PATH environment variable if you installed"
  13848. echo "*** the new version of the package in a nonstandard prefix so"
  13849. echo "*** pkg-config is able to find it."
  13850. exit 1
  13851. else
  13852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  13853. $as_echo "not found" >&6; }
  13854. echo "*** The required package xrandr was not found on your system."
  13855. echo "*** Please install xrandr (atleast version 1.2.0) or adjust"
  13856. echo "*** the PKG_CONFIG_PATH environment variable if you"
  13857. echo "*** installed the package in a nonstandard prefix so that"
  13858. echo "*** pkg-config is able to find it."
  13859. exit 1
  13860. fi
  13861. # minimum supported version of pkg-config
  13862. xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
  13863. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13864. if test -n "$ac_tool_prefix"; then
  13865. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13866. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13868. $as_echo_n "checking for $ac_word... " >&6; }
  13869. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13870. $as_echo_n "(cached) " >&6
  13871. else
  13872. case $PKG_CONFIG in
  13873. [\\/]* | ?:[\\/]*)
  13874. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13875. ;;
  13876. *)
  13877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13878. for as_dir in $PATH
  13879. do
  13880. IFS=$as_save_IFS
  13881. test -z "$as_dir" && as_dir=.
  13882. for ac_exec_ext in '' $ac_executable_extensions; do
  13883. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13884. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13886. break 2
  13887. fi
  13888. done
  13889. done
  13890. IFS=$as_save_IFS
  13891. ;;
  13892. esac
  13893. fi
  13894. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13895. if test -n "$PKG_CONFIG"; then
  13896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13897. $as_echo "$PKG_CONFIG" >&6; }
  13898. else
  13899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13900. $as_echo "no" >&6; }
  13901. fi
  13902. fi
  13903. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13904. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13905. # Extract the first word of "pkg-config", so it can be a program name with args.
  13906. set dummy pkg-config; ac_word=$2
  13907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13908. $as_echo_n "checking for $ac_word... " >&6; }
  13909. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13910. $as_echo_n "(cached) " >&6
  13911. else
  13912. case $ac_pt_PKG_CONFIG in
  13913. [\\/]* | ?:[\\/]*)
  13914. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13915. ;;
  13916. *)
  13917. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13918. for as_dir in $PATH
  13919. do
  13920. IFS=$as_save_IFS
  13921. test -z "$as_dir" && as_dir=.
  13922. for ac_exec_ext in '' $ac_executable_extensions; do
  13923. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13924. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13925. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13926. break 2
  13927. fi
  13928. done
  13929. done
  13930. IFS=$as_save_IFS
  13931. ;;
  13932. esac
  13933. fi
  13934. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13935. if test -n "$ac_pt_PKG_CONFIG"; then
  13936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13937. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13938. else
  13939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13940. $as_echo "no" >&6; }
  13941. fi
  13942. if test "x$ac_pt_PKG_CONFIG" = x; then
  13943. PKG_CONFIG=""
  13944. else
  13945. case $cross_compiling:$ac_tool_warned in
  13946. yes:)
  13947. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13948. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13949. ac_tool_warned=yes ;;
  13950. esac
  13951. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13952. fi
  13953. else
  13954. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13955. fi
  13956. fi
  13957. if test -n "$PKG_CONFIG"; then
  13958. _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
  13959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13960. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13961. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13963. $as_echo "yes" >&6; }
  13964. else
  13965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13966. $as_echo "no" >&6; }
  13967. PKG_CONFIG=""
  13968. fi
  13969. fi
  13970. if test x"$PKG_CONFIG" = x""; then
  13971. echo
  13972. echo "*** Your version of pkg-config is too old. You need atleast"
  13973. echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
  13974. echo "*** from the freedesktop.org software repository at"
  13975. echo "***"
  13976. echo "*** http://www.freedesktop.org/software/pkgconfig"
  13977. echo "***"
  13978. exit 1;
  13979. fi
  13980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x11 >= 1.0.0" >&5
  13981. $as_echo_n "checking for x11 >= 1.0.0... " >&6; }
  13982. if $PKG_CONFIG "--atleast-version=1.0.0" "x11" >/dev/null 2>&1; then
  13983. X11_VERSION=`$PKG_CONFIG --modversion "x11"`
  13984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $X11_VERSION" >&5
  13985. $as_echo "$X11_VERSION" >&6; }
  13986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11_CFLAGS" >&5
  13987. $as_echo_n "checking X11_CFLAGS... " >&6; }
  13988. X11_CFLAGS=`$PKG_CONFIG --cflags "x11"`
  13989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $X11_CFLAGS" >&5
  13990. $as_echo "$X11_CFLAGS" >&6; }
  13991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11_LIBS" >&5
  13992. $as_echo_n "checking X11_LIBS... " >&6; }
  13993. X11_LIBS=`$PKG_CONFIG --libs "x11"`
  13994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $X11_LIBS" >&5
  13995. $as_echo "$X11_LIBS" >&6; }
  13996. X11_REQUIRED_VERSION=1.0.0
  13997. elif $PKG_CONFIG --exists "x11" >/dev/null 2>&1; then
  13998. xdt_cv_version=`$PKG_CONFIG --modversion "x11"`
  13999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
  14000. $as_echo "found, but $xdt_cv_version" >&6; }
  14001. echo "*** The required package x11 was found on your system,"
  14002. echo "*** but the installed version ($xdt_cv_version) is too old."
  14003. echo "*** Please upgrade x11 to atleast version 1.0.0, or adjust"
  14004. echo "*** the PKG_CONFIG_PATH environment variable if you installed"
  14005. echo "*** the new version of the package in a nonstandard prefix so"
  14006. echo "*** pkg-config is able to find it."
  14007. exit 1
  14008. else
  14009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  14010. $as_echo "not found" >&6; }
  14011. echo "*** The required package x11 was not found on your system."
  14012. echo "*** Please install x11 (atleast version 1.0.0) or adjust"
  14013. echo "*** the PKG_CONFIG_PATH environment variable if you"
  14014. echo "*** installed the package in a nonstandard prefix so that"
  14015. echo "*** pkg-config is able to find it."
  14016. exit 1
  14017. fi
  14018. #=======================================================#
  14019. # Polkit? #
  14020. #=======================================================#
  14021. # Check whether --enable-polkit was given.
  14022. if test "${enable_polkit+set}" = set; then :
  14023. enableval=$enable_polkit; ac_cv_enable_polkit=$enableval
  14024. else
  14025. ac_cv_enable_polkit=polkit
  14026. fi
  14027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with polkit support" >&5
  14028. $as_echo_n "checking whether to build with polkit support... " >&6; }
  14029. if test "x$ac_cv_enable_polkit" = "xno"; then
  14030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14031. $as_echo "no" >&6; }
  14032. polkit="no"
  14033. else
  14034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14035. $as_echo "yes" >&6; }
  14036. $as_echo "#define ENABLE_POLKIT 1 " >>confdefs.h
  14037. polkit="yes"
  14038. fi
  14039. if test "x$polkit" = "xyes"; then
  14040. ENABLE_POLKIT_TRUE=
  14041. ENABLE_POLKIT_FALSE='#'
  14042. else
  14043. ENABLE_POLKIT_TRUE='#'
  14044. ENABLE_POLKIT_FALSE=
  14045. fi
  14046. #=======================================================#
  14047. # Check for DPMS support #
  14048. #=======================================================#
  14049. DPMS_LIBS=
  14050. # Check whether --enable-dpms was given.
  14051. if test "${enable_dpms+set}" = set; then :
  14052. enableval=$enable_dpms;
  14053. else
  14054. enable_dpms=yes
  14055. fi
  14056. have_dpms="no"
  14057. if test x"$enable_dpms" = x"yes"; then
  14058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMSQueryExtension in -lXext" >&5
  14059. $as_echo_n "checking for DPMSQueryExtension in -lXext... " >&6; }
  14060. if ${ac_cv_lib_Xext_DPMSQueryExtension+:} false; then :
  14061. $as_echo_n "(cached) " >&6
  14062. else
  14063. ac_check_lib_save_LIBS=$LIBS
  14064. LIBS="-lXext $LIBS"
  14065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14066. /* end confdefs.h. */
  14067. /* Override any GCC internal prototype to avoid an error.
  14068. Use char because int might match the return type of a GCC
  14069. builtin and then its argument prototype would still apply. */
  14070. #ifdef __cplusplus
  14071. extern "C"
  14072. #endif
  14073. char DPMSQueryExtension ();
  14074. int
  14075. main ()
  14076. {
  14077. return DPMSQueryExtension ();
  14078. ;
  14079. return 0;
  14080. }
  14081. _ACEOF
  14082. if ac_fn_c_try_link "$LINENO"; then :
  14083. ac_cv_lib_Xext_DPMSQueryExtension=yes
  14084. else
  14085. ac_cv_lib_Xext_DPMSQueryExtension=no
  14086. fi
  14087. rm -f core conftest.err conftest.$ac_objext \
  14088. conftest$ac_exeext conftest.$ac_ext
  14089. LIBS=$ac_check_lib_save_LIBS
  14090. fi
  14091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_DPMSQueryExtension" >&5
  14092. $as_echo "$ac_cv_lib_Xext_DPMSQueryExtension" >&6; }
  14093. if test "x$ac_cv_lib_Xext_DPMSQueryExtension" = xyes; then :
  14094. have_dpms="yes"
  14095. DPMS_LIBS=" -lXext -lX11"
  14096. $as_echo "#define HAVE_DPMS 1" >>confdefs.h
  14097. fi
  14098. fi
  14099. #=======================================================#
  14100. # Check for XF86_XK_Suspend && Hibernate #
  14101. #=======================================================#
  14102. ac_fn_c_check_decl "$LINENO" "XF86XK_Suspend" "ac_cv_have_decl_XF86XK_Suspend" "#include <X11/XF86keysym.h>
  14103. "
  14104. if test "x$ac_cv_have_decl_XF86XK_Suspend" = xyes; then :
  14105. have_XF86XK_Suspend=1
  14106. else
  14107. have_XF86XK_Suspend=0
  14108. fi
  14109. if test "x${ac_cv_have_decl_XF86XK_Suspend}" != "xno"; then
  14110. $as_echo "#define HAVE_XF86XK_SUSPEND 1" >>confdefs.h
  14111. fi
  14112. ac_fn_c_check_decl "$LINENO" "XF86XK_Hibernate" "ac_cv_have_decl_XF86XK_Hibernate" "#include <X11/XF86keysym.h>
  14113. "
  14114. if test "x$ac_cv_have_decl_XF86XK_Hibernate" = xyes; then :
  14115. have_XF86XK_Hibernate=1
  14116. else
  14117. have_XF86XK_Hibernate=0
  14118. fi
  14119. if test "x${ac_cv_have_decl_XF86XK_Hibernate}" != "xno"; then
  14120. $as_echo "#define HAVE_XF86XK_HIBERNATE 1" >>confdefs.h
  14121. fi
  14122. #=======================================================#
  14123. # Network Manager support #
  14124. #=======================================================#
  14125. # Check whether --enable-network-manager was given.
  14126. if test "${enable_network_manager+set}" = set; then :
  14127. enableval=$enable_network_manager; ac_network_manager=$enableval
  14128. else
  14129. ac_network_manager=yes
  14130. fi
  14131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with network manager support." >&5
  14132. $as_echo_n "checking whether to build with network manager support.... " >&6; }
  14133. if test "x$ac_network_manager = xyes"; then
  14134. $as_echo "#define WITH_NETWORK_MANAGER 1 " >>confdefs.h
  14135. fi
  14136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_network_manager" >&5
  14137. $as_echo "$ac_network_manager" >&6; }
  14138. #=======================================================#
  14139. # Panel plugins ? #
  14140. #=======================================================#
  14141. # Check whether --enable-panel_plugins was given.
  14142. if test "${enable_panel_plugins+set}" = set; then :
  14143. enableval=$enable_panel_plugins; ac_cv_enable_panel_plugins=$enableval
  14144. else
  14145. ac_cv_enable_panel_plugins=yes
  14146. fi
  14147. if test "x$ac_cv_enable_panel_plugins" = "xno"; then
  14148. build_panel_plugins="no"
  14149. else
  14150. build_panel_plugins="yes"
  14151. # minimum supported version of pkg-config
  14152. xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
  14153. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14154. if test -n "$ac_tool_prefix"; then
  14155. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14156. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14158. $as_echo_n "checking for $ac_word... " >&6; }
  14159. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14160. $as_echo_n "(cached) " >&6
  14161. else
  14162. case $PKG_CONFIG in
  14163. [\\/]* | ?:[\\/]*)
  14164. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14165. ;;
  14166. *)
  14167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14168. for as_dir in $PATH
  14169. do
  14170. IFS=$as_save_IFS
  14171. test -z "$as_dir" && as_dir=.
  14172. for ac_exec_ext in '' $ac_executable_extensions; do
  14173. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14174. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14175. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14176. break 2
  14177. fi
  14178. done
  14179. done
  14180. IFS=$as_save_IFS
  14181. ;;
  14182. esac
  14183. fi
  14184. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14185. if test -n "$PKG_CONFIG"; then
  14186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14187. $as_echo "$PKG_CONFIG" >&6; }
  14188. else
  14189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14190. $as_echo "no" >&6; }
  14191. fi
  14192. fi
  14193. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14194. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14195. # Extract the first word of "pkg-config", so it can be a program name with args.
  14196. set dummy pkg-config; ac_word=$2
  14197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14198. $as_echo_n "checking for $ac_word... " >&6; }
  14199. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14200. $as_echo_n "(cached) " >&6
  14201. else
  14202. case $ac_pt_PKG_CONFIG in
  14203. [\\/]* | ?:[\\/]*)
  14204. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14205. ;;
  14206. *)
  14207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14208. for as_dir in $PATH
  14209. do
  14210. IFS=$as_save_IFS
  14211. test -z "$as_dir" && as_dir=.
  14212. for ac_exec_ext in '' $ac_executable_extensions; do
  14213. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14214. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14215. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14216. break 2
  14217. fi
  14218. done
  14219. done
  14220. IFS=$as_save_IFS
  14221. ;;
  14222. esac
  14223. fi
  14224. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14225. if test -n "$ac_pt_PKG_CONFIG"; then
  14226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14227. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14228. else
  14229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14230. $as_echo "no" >&6; }
  14231. fi
  14232. if test "x$ac_pt_PKG_CONFIG" = x; then
  14233. PKG_CONFIG=""
  14234. else
  14235. case $cross_compiling:$ac_tool_warned in
  14236. yes:)
  14237. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14238. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14239. ac_tool_warned=yes ;;
  14240. esac
  14241. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14242. fi
  14243. else
  14244. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14245. fi
  14246. fi
  14247. if test -n "$PKG_CONFIG"; then
  14248. _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
  14249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14250. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14251. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14253. $as_echo "yes" >&6; }
  14254. else
  14255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14256. $as_echo "no" >&6; }
  14257. PKG_CONFIG=""
  14258. fi
  14259. fi
  14260. if test x"$PKG_CONFIG" = x""; then
  14261. echo
  14262. echo "*** Your version of pkg-config is too old. You need atleast"
  14263. echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
  14264. echo "*** from the freedesktop.org software repository at"
  14265. echo "***"
  14266. echo "*** http://www.freedesktop.org/software/pkgconfig"
  14267. echo "***"
  14268. exit 1;
  14269. fi
  14270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxfce4panel-1.0 >= 4.6.0" >&5
  14271. $as_echo_n "checking for libxfce4panel-1.0 >= 4.6.0... " >&6; }
  14272. if $PKG_CONFIG "--atleast-version=4.6.0" "libxfce4panel-1.0" >/dev/null 2>&1; then
  14273. LIBXFCE4PANEL_VERSION=`$PKG_CONFIG --modversion "libxfce4panel-1.0"`
  14274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXFCE4PANEL_VERSION" >&5
  14275. $as_echo "$LIBXFCE4PANEL_VERSION" >&6; }
  14276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXFCE4PANEL_CFLAGS" >&5
  14277. $as_echo_n "checking LIBXFCE4PANEL_CFLAGS... " >&6; }
  14278. LIBXFCE4PANEL_CFLAGS=`$PKG_CONFIG --cflags "libxfce4panel-1.0"`
  14279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXFCE4PANEL_CFLAGS" >&5
  14280. $as_echo "$LIBXFCE4PANEL_CFLAGS" >&6; }
  14281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXFCE4PANEL_LIBS" >&5
  14282. $as_echo_n "checking LIBXFCE4PANEL_LIBS... " >&6; }
  14283. LIBXFCE4PANEL_LIBS=`$PKG_CONFIG --libs "libxfce4panel-1.0"`
  14284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXFCE4PANEL_LIBS" >&5
  14285. $as_echo "$LIBXFCE4PANEL_LIBS" >&6; }
  14286. LIBXFCE4PANEL_REQUIRED_VERSION=4.6.0
  14287. elif $PKG_CONFIG --exists "libxfce4panel-1.0" >/dev/null 2>&1; then
  14288. xdt_cv_version=`$PKG_CONFIG --modversion "libxfce4panel-1.0"`
  14289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
  14290. $as_ech