Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23106 lines
713 KiB

  1. #! /bin/sh
  2. # From configure.ac Id: configure.ac,v 1.9 2004/01/23 09:41:32 rob Exp .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.59 for MPEG Audio Decoder 0.15.1b.
  5. #
  6. # Report bugs to <[email protected]>.
  7. #
  8. # Copyright (C) 2003 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be Bourne compatible
  15. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16. emulate sh
  17. NULLCMD=:
  18. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19. # is contrary to our usage. Disable this feature.
  20. alias -g '${1+"$@"}'='"$@"'
  21. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22. set -o posix
  23. fi
  24. DUALCASE=1; export DUALCASE # for MKS sh
  25. # Support unset when possible.
  26. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  27. as_unset=unset
  28. else
  29. as_unset=false
  30. fi
  31. # Work around bugs in pre-3.0 UWIN ksh.
  32. $as_unset ENV MAIL MAILPATH
  33. PS1='$ '
  34. PS2='> '
  35. PS4='+ '
  36. # NLS nuisances.
  37. for as_var in \
  38. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  39. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  40. LC_TELEPHONE LC_TIME
  41. do
  42. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  43. eval $as_var=C; export $as_var
  44. else
  45. $as_unset $as_var
  46. fi
  47. done
  48. # Required to use basename.
  49. if expr a : '\(a\)' >/dev/null 2>&1; then
  50. as_expr=expr
  51. else
  52. as_expr=false
  53. fi
  54. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  55. as_basename=basename
  56. else
  57. as_basename=false
  58. fi
  59. # Name of the executable.
  60. as_me=`$as_basename "$0" ||
  61. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  62. X"$0" : 'X\(//\)$' \| \
  63. X"$0" : 'X\(/\)$' \| \
  64. . : '\(.\)' 2>/dev/null ||
  65. echo X/"$0" |
  66. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  67. /^X\/\(\/\/\)$/{ s//\1/; q; }
  68. /^X\/\(\/\).*/{ s//\1/; q; }
  69. s/.*/./; q'`
  70. # PATH needs CR, and LINENO needs CR and PATH.
  71. # Avoid depending upon Character Ranges.
  72. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  73. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  74. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  75. as_cr_digits='0123456789'
  76. as_cr_alnum=$as_cr_Letters$as_cr_digits
  77. # The user is always right.
  78. if test "${PATH_SEPARATOR+set}" != set; then
  79. echo "#! /bin/sh" >conf$$.sh
  80. echo "exit 0" >>conf$$.sh
  81. chmod +x conf$$.sh
  82. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  83. PATH_SEPARATOR=';'
  84. else
  85. PATH_SEPARATOR=:
  86. fi
  87. rm -f conf$$.sh
  88. fi
  89. as_lineno_1=$LINENO
  90. as_lineno_2=$LINENO
  91. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  92. test "x$as_lineno_1" != "x$as_lineno_2" &&
  93. test "x$as_lineno_3" = "x$as_lineno_2" || {
  94. # Find who we are. Look in the path if we contain no path at all
  95. # relative or not.
  96. case $0 in
  97. *[\\/]* ) as_myself=$0 ;;
  98. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  99. for as_dir in $PATH
  100. do
  101. IFS=$as_save_IFS
  102. test -z "$as_dir" && as_dir=.
  103. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  104. done
  105. ;;
  106. esac
  107. # We did not find ourselves, most probably we were run as `sh COMMAND'
  108. # in which case we are not to be found in the path.
  109. if test "x$as_myself" = x; then
  110. as_myself=$0
  111. fi
  112. if test ! -f "$as_myself"; then
  113. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  114. { (exit 1); exit 1; }; }
  115. fi
  116. case $CONFIG_SHELL in
  117. '')
  118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  119. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  120. do
  121. IFS=$as_save_IFS
  122. test -z "$as_dir" && as_dir=.
  123. for as_base in sh bash ksh sh5; do
  124. case $as_dir in
  125. /*)
  126. if ("$as_dir/$as_base" -c '
  127. as_lineno_1=$LINENO
  128. as_lineno_2=$LINENO
  129. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  130. test "x$as_lineno_1" != "x$as_lineno_2" &&
  131. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  132. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  133. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  134. CONFIG_SHELL=$as_dir/$as_base
  135. export CONFIG_SHELL
  136. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  137. fi;;
  138. esac
  139. done
  140. done
  141. ;;
  142. esac
  143. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  144. # uniformly replaced by the line number. The first 'sed' inserts a
  145. # line-number line before each line; the second 'sed' does the real
  146. # work. The second script uses 'N' to pair each line-number line
  147. # with the numbered line, and appends trailing '-' during
  148. # substitution so that $LINENO is not a special case at line end.
  149. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  150. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  151. sed '=' <$as_myself |
  152. sed '
  153. N
  154. s,$,-,
  155. : loop
  156. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  157. t loop
  158. s,-$,,
  159. s,^['$as_cr_digits']*\n,,
  160. ' >$as_me.lineno &&
  161. chmod +x $as_me.lineno ||
  162. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  163. { (exit 1); exit 1; }; }
  164. # Don't try to exec as it changes $[0], causing all sort of problems
  165. # (the dirname of $[0] is not the place where we might find the
  166. # original and so on. Autoconf is especially sensible to this).
  167. . ./$as_me.lineno
  168. # Exit status is that of the last command.
  169. exit
  170. }
  171. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  172. *c*,-n*) ECHO_N= ECHO_C='
  173. ' ECHO_T=' ' ;;
  174. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  175. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  176. esac
  177. if expr a : '\(a\)' >/dev/null 2>&1; then
  178. as_expr=expr
  179. else
  180. as_expr=false
  181. fi
  182. rm -f conf$$ conf$$.exe conf$$.file
  183. echo >conf$$.file
  184. if ln -s conf$$.file conf$$ 2>/dev/null; then
  185. # We could just check for DJGPP; but this test a) works b) is more generic
  186. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  187. if test -f conf$$.exe; then
  188. # Don't use ln at all; we don't have any links
  189. as_ln_s='cp -p'
  190. else
  191. as_ln_s='ln -s'
  192. fi
  193. elif ln conf$$.file conf$$ 2>/dev/null; then
  194. as_ln_s=ln
  195. else
  196. as_ln_s='cp -p'
  197. fi
  198. rm -f conf$$ conf$$.exe conf$$.file
  199. if mkdir -p . 2>/dev/null; then
  200. as_mkdir_p=:
  201. else
  202. test -d ./-p && rmdir ./-p
  203. as_mkdir_p=false
  204. fi
  205. as_executable_p="test -f"
  206. # Sed expression to map a string onto a valid CPP name.
  207. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  208. # Sed expression to map a string onto a valid variable name.
  209. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  210. # IFS
  211. # We need space, tab and new line, in precisely that order.
  212. as_nl='
  213. '
  214. IFS=" $as_nl"
  215. # CDPATH.
  216. $as_unset CDPATH
  217. # Check that we are running under the correct shell.
  218. SHELL=${CONFIG_SHELL-/bin/sh}
  219. case X$ECHO in
  220. X*--fallback-echo)
  221. # Remove one level of quotation (which was required for Make).
  222. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  223. ;;
  224. esac
  225. echo=${ECHO-echo}
  226. if test "X$1" = X--no-reexec; then
  227. # Discard the --no-reexec flag, and continue.
  228. shift
  229. elif test "X$1" = X--fallback-echo; then
  230. # Avoid inline document here, it may be left over
  231. :
  232. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  233. # Yippee, $echo works!
  234. :
  235. else
  236. # Restart under the correct shell.
  237. exec $SHELL "$0" --no-reexec ${1+"$@"}
  238. fi
  239. if test "X$1" = X--fallback-echo; then
  240. # used as fallback echo
  241. shift
  242. cat <<EOF
  243. $*
  244. EOF
  245. exit 0
  246. fi
  247. # The HP-UX ksh and POSIX shell print the target directory to stdout
  248. # if CDPATH is set.
  249. if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  250. if test -z "$ECHO"; then
  251. if test "X${echo_test_string+set}" != Xset; then
  252. # find a string as large as possible, as long as the shell can cope with it
  253. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  254. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  255. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  256. echo_test_string="`eval $cmd`" &&
  257. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  258. then
  259. break
  260. fi
  261. done
  262. fi
  263. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  264. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  265. test "X$echo_testing_string" = "X$echo_test_string"; then
  266. :
  267. else
  268. # The Solaris, AIX, and Digital Unix default echo programs unquote
  269. # backslashes. This makes it impossible to quote backslashes using
  270. # echo "$something" | sed 's/\\/\\\\/g'
  271. #
  272. # So, first we look for a working echo in the user's PATH.
  273. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  274. for dir in $PATH /usr/ucb; do
  275. IFS="$lt_save_ifs"
  276. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  277. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  278. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  279. test "X$echo_testing_string" = "X$echo_test_string"; then
  280. echo="$dir/echo"
  281. break
  282. fi
  283. done
  284. IFS="$lt_save_ifs"
  285. if test "X$echo" = Xecho; then
  286. # We didn't find a better echo, so look for alternatives.
  287. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  288. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  289. test "X$echo_testing_string" = "X$echo_test_string"; then
  290. # This shell has a builtin print -r that does the trick.
  291. echo='print -r'
  292. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  293. test "X$CONFIG_SHELL" != X/bin/ksh; then
  294. # If we have ksh, try running configure again with it.
  295. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  296. export ORIGINAL_CONFIG_SHELL
  297. CONFIG_SHELL=/bin/ksh
  298. export CONFIG_SHELL
  299. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  300. else
  301. # Try using printf.
  302. echo='printf %s\n'
  303. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  304. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  305. test "X$echo_testing_string" = "X$echo_test_string"; then
  306. # Cool, printf works
  307. :
  308. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  309. test "X$echo_testing_string" = 'X\t' &&
  310. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  311. test "X$echo_testing_string" = "X$echo_test_string"; then
  312. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  313. export CONFIG_SHELL
  314. SHELL="$CONFIG_SHELL"
  315. export SHELL
  316. echo="$CONFIG_SHELL $0 --fallback-echo"
  317. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  318. test "X$echo_testing_string" = 'X\t' &&
  319. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  320. test "X$echo_testing_string" = "X$echo_test_string"; then
  321. echo="$CONFIG_SHELL $0 --fallback-echo"
  322. else
  323. # maybe with a smaller string...
  324. prev=:
  325. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  326. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  327. then
  328. break
  329. fi
  330. prev="$cmd"
  331. done
  332. if test "$prev" != 'sed 50q "$0"'; then
  333. echo_test_string=`eval $prev`
  334. export echo_test_string
  335. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  336. else
  337. # Oops. We lost completely, so just stick with echo.
  338. echo=echo
  339. fi
  340. fi
  341. fi
  342. fi
  343. fi
  344. fi
  345. # Copy echo and quote the copy suitably for passing to libtool from
  346. # the Makefile, instead of quoting the original, which is used later.
  347. ECHO=$echo
  348. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  349. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  350. fi
  351. tagnames=${tagnames+${tagnames},}CXX
  352. tagnames=${tagnames+${tagnames},}F77
  353. # Name of the host.
  354. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  355. # so uname gets run too.
  356. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  357. exec 6>&1
  358. #
  359. # Initializations.
  360. #
  361. ac_default_prefix=/usr/local
  362. ac_config_libobj_dir=.
  363. cross_compiling=no
  364. subdirs=
  365. MFLAGS=
  366. MAKEFLAGS=
  367. SHELL=${CONFIG_SHELL-/bin/sh}
  368. # Maximum number of lines to put in a shell here document.
  369. # This variable seems obsolete. It should probably be removed, and
  370. # only ac_max_sed_lines should be used.
  371. : ${ac_max_here_lines=38}
  372. # Identity of this package.
  373. PACKAGE_NAME='MPEG Audio Decoder'
  374. PACKAGE_TARNAME='libmad'
  375. PACKAGE_VERSION='0.15.1b'
  376. PACKAGE_STRING='MPEG Audio Decoder 0.15.1b'
  377. PACKAGE_BUGREPORT='[email protected]'
  378. ac_unique_file="decoder.h"
  379. # Factoring default headers for most tests.
  380. ac_includes_default="\
  381. #include <stdio.h>
  382. #if HAVE_SYS_TYPES_H
  383. # include <sys/types.h>
  384. #endif
  385. #if HAVE_SYS_STAT_H
  386. # include <sys/stat.h>
  387. #endif
  388. #if STDC_HEADERS
  389. # include <stdlib.h>
  390. # include <stddef.h>
  391. #else
  392. # if HAVE_STDLIB_H
  393. # include <stdlib.h>
  394. # endif
  395. #endif
  396. #if HAVE_STRING_H
  397. # if !STDC_HEADERS && HAVE_MEMORY_H
  398. # include <memory.h>
  399. # endif
  400. # include <string.h>
  401. #endif
  402. #if HAVE_STRINGS_H
  403. # include <strings.h>
  404. #endif
  405. #if HAVE_INTTYPES_H
  406. # include <inttypes.h>
  407. #else
  408. # if HAVE_STDINT_H
  409. # include <stdint.h>
  410. # endif
  411. #endif
  412. #if HAVE_UNISTD_H
  413. # include <unistd.h>
  414. #endif"
  415. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CCAS CCASFLAGS EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS FPM ASO ASO_OBJS LIBOBJS LTLIBOBJS'
  416. ac_subst_files=''
  417. # Initialize some variables set by options.
  418. ac_init_help=
  419. ac_init_version=false
  420. # The variables have the same names as the options, with
  421. # dashes changed to underlines.
  422. cache_file=/dev/null
  423. exec_prefix=NONE
  424. no_create=
  425. no_recursion=
  426. prefix=NONE
  427. program_prefix=NONE
  428. program_suffix=NONE
  429. program_transform_name=s,x,x,
  430. silent=
  431. site=
  432. srcdir=
  433. verbose=
  434. x_includes=NONE
  435. x_libraries=NONE
  436. # Installation directory options.
  437. # These are left unexpanded so users can "make install exec_prefix=/foo"
  438. # and all the variables that are supposed to be based on exec_prefix
  439. # by default will actually change.
  440. # Use braces instead of parens because sh, perl, etc. also accept them.
  441. bindir='${exec_prefix}/bin'
  442. sbindir='${exec_prefix}/sbin'
  443. libexecdir='${exec_prefix}/libexec'
  444. datadir='${prefix}/share'
  445. sysconfdir='${prefix}/etc'
  446. sharedstatedir='${prefix}/com'
  447. localstatedir='${prefix}/var'
  448. libdir='${exec_prefix}/lib'
  449. includedir='${prefix}/include'
  450. oldincludedir='/usr/include'
  451. infodir='${prefix}/info'
  452. mandir='${prefix}/man'
  453. ac_prev=
  454. for ac_option
  455. do
  456. # If the previous option needs an argument, assign it.
  457. if test -n "$ac_prev"; then
  458. eval "$ac_prev=\$ac_option"
  459. ac_prev=
  460. continue
  461. fi
  462. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  463. # Accept the important Cygnus configure options, so we can diagnose typos.
  464. case $ac_option in
  465. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  466. ac_prev=bindir ;;
  467. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  468. bindir=$ac_optarg ;;
  469. -build | --build | --buil | --bui | --bu)
  470. ac_prev=build_alias ;;
  471. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  472. build_alias=$ac_optarg ;;
  473. -cache-file | --cache-file | --cache-fil | --cache-fi \
  474. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  475. ac_prev=cache_file ;;
  476. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  477. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  478. cache_file=$ac_optarg ;;
  479. --config-cache | -C)
  480. cache_file=config.cache ;;
  481. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  482. ac_prev=datadir ;;
  483. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  484. | --da=*)
  485. datadir=$ac_optarg ;;
  486. -disable-* | --disable-*)
  487. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  488. # Reject names that are not valid shell variable names.
  489. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  490. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  491. { (exit 1); exit 1; }; }
  492. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  493. eval "enable_$ac_feature=no" ;;
  494. -enable-* | --enable-*)
  495. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  496. # Reject names that are not valid shell variable names.
  497. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  498. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  499. { (exit 1); exit 1; }; }
  500. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  501. case $ac_option in
  502. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  503. *) ac_optarg=yes ;;
  504. esac
  505. eval "enable_$ac_feature='$ac_optarg'" ;;
  506. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  507. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  508. | --exec | --exe | --ex)
  509. ac_prev=exec_prefix ;;
  510. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  511. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  512. | --exec=* | --exe=* | --ex=*)
  513. exec_prefix=$ac_optarg ;;
  514. -gas | --gas | --ga | --g)
  515. # Obsolete; use --with-gas.
  516. with_gas=yes ;;
  517. -help | --help | --hel | --he | -h)
  518. ac_init_help=long ;;
  519. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  520. ac_init_help=recursive ;;
  521. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  522. ac_init_help=short ;;
  523. -host | --host | --hos | --ho)
  524. ac_prev=host_alias ;;
  525. -host=* | --host=* | --hos=* | --ho=*)
  526. host_alias=$ac_optarg ;;
  527. -includedir | --includedir | --includedi | --included | --include \
  528. | --includ | --inclu | --incl | --inc)
  529. ac_prev=includedir ;;
  530. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  531. | --includ=* | --inclu=* | --incl=* | --inc=*)
  532. includedir=$ac_optarg ;;
  533. -infodir | --infodir | --infodi | --infod | --info | --inf)
  534. ac_prev=infodir ;;
  535. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  536. infodir=$ac_optarg ;;
  537. -libdir | --libdir | --libdi | --libd)
  538. ac_prev=libdir ;;
  539. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  540. libdir=$ac_optarg ;;
  541. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  542. | --libexe | --libex | --libe)
  543. ac_prev=libexecdir ;;
  544. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  545. | --libexe=* | --libex=* | --libe=*)
  546. libexecdir=$ac_optarg ;;
  547. -localstatedir | --localstatedir | --localstatedi | --localstated \
  548. | --localstate | --localstat | --localsta | --localst \
  549. | --locals | --local | --loca | --loc | --lo)
  550. ac_prev=localstatedir ;;
  551. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  552. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  553. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  554. localstatedir=$ac_optarg ;;
  555. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  556. ac_prev=mandir ;;
  557. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  558. mandir=$ac_optarg ;;
  559. -nfp | --nfp | --nf)
  560. # Obsolete; use --without-fp.
  561. with_fp=no ;;
  562. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  563. | --no-cr | --no-c | -n)
  564. no_create=yes ;;
  565. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  566. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  567. no_recursion=yes ;;
  568. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  569. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  570. | --oldin | --oldi | --old | --ol | --o)
  571. ac_prev=oldincludedir ;;
  572. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  573. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  574. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  575. oldincludedir=$ac_optarg ;;
  576. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  577. ac_prev=prefix ;;
  578. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  579. prefix=$ac_optarg ;;
  580. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  581. | --program-pre | --program-pr | --program-p)
  582. ac_prev=program_prefix ;;
  583. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  584. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  585. program_prefix=$ac_optarg ;;
  586. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  587. | --program-suf | --program-su | --program-s)
  588. ac_prev=program_suffix ;;
  589. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  590. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  591. program_suffix=$ac_optarg ;;
  592. -program-transform-name | --program-transform-name \
  593. | --program-transform-nam | --program-transform-na \
  594. | --program-transform-n | --program-transform- \
  595. | --program-transform | --program-transfor \
  596. | --program-transfo | --program-transf \
  597. | --program-trans | --program-tran \
  598. | --progr-tra | --program-tr | --program-t)
  599. ac_prev=program_transform_name ;;
  600. -program-transform-name=* | --program-transform-name=* \
  601. | --program-transform-nam=* | --program-transform-na=* \
  602. | --program-transform-n=* | --program-transform-=* \
  603. | --program-transform=* | --program-transfor=* \
  604. | --program-transfo=* | --program-transf=* \
  605. | --program-trans=* | --program-tran=* \
  606. | --progr-tra=* | --program-tr=* | --program-t=*)
  607. program_transform_name=$ac_optarg ;;
  608. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  609. | -silent | --silent | --silen | --sile | --sil)
  610. silent=yes ;;
  611. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  612. ac_prev=sbindir ;;
  613. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  614. | --sbi=* | --sb=*)
  615. sbindir=$ac_optarg ;;
  616. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  617. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  618. | --sharedst | --shareds | --shared | --share | --shar \
  619. | --sha | --sh)
  620. ac_prev=sharedstatedir ;;
  621. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  622. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  623. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  624. | --sha=* | --sh=*)
  625. sharedstatedir=$ac_optarg ;;
  626. -site | --site | --sit)
  627. ac_prev=site ;;
  628. -site=* | --site=* | --sit=*)
  629. site=$ac_optarg ;;
  630. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  631. ac_prev=srcdir ;;
  632. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  633. srcdir=$ac_optarg ;;
  634. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  635. | --syscon | --sysco | --sysc | --sys | --sy)
  636. ac_prev=sysconfdir ;;
  637. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  638. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  639. sysconfdir=$ac_optarg ;;
  640. -target | --target | --targe | --targ | --tar | --ta | --t)
  641. ac_prev=target_alias ;;
  642. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  643. target_alias=$ac_optarg ;;
  644. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  645. verbose=yes ;;
  646. -version | --version | --versio | --versi | --vers | -V)
  647. ac_init_version=: ;;
  648. -with-* | --with-*)
  649. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  650. # Reject names that are not valid shell variable names.
  651. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  652. { echo "$as_me: error: invalid package name: $ac_package" >&2
  653. { (exit 1); exit 1; }; }
  654. ac_package=`echo $ac_package| sed 's/-/_/g'`
  655. case $ac_option in
  656. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  657. *) ac_optarg=yes ;;
  658. esac
  659. eval "with_$ac_package='$ac_optarg'" ;;
  660. -without-* | --without-*)
  661. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  662. # Reject names that are not valid shell variable names.
  663. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  664. { echo "$as_me: error: invalid package name: $ac_package" >&2
  665. { (exit 1); exit 1; }; }
  666. ac_package=`echo $ac_package | sed 's/-/_/g'`
  667. eval "with_$ac_package=no" ;;
  668. --x)
  669. # Obsolete; use --with-x.
  670. with_x=yes ;;
  671. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  672. | --x-incl | --x-inc | --x-in | --x-i)
  673. ac_prev=x_includes ;;
  674. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  675. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  676. x_includes=$ac_optarg ;;
  677. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  678. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  679. ac_prev=x_libraries ;;
  680. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  681. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  682. x_libraries=$ac_optarg ;;
  683. -*) { echo "$as_me: error: unrecognized option: $ac_option
  684. Try \`$0 --help' for more information." >&2
  685. { (exit 1); exit 1; }; }
  686. ;;
  687. *=*)
  688. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  689. # Reject names that are not valid shell variable names.
  690. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  691. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  692. { (exit 1); exit 1; }; }
  693. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  694. eval "$ac_envvar='$ac_optarg'"
  695. export $ac_envvar ;;
  696. *)
  697. # FIXME: should be removed in autoconf 3.0.
  698. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  699. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  700. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  701. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  702. ;;
  703. esac
  704. done
  705. if test -n "$ac_prev"; then
  706. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  707. { echo "$as_me: error: missing argument to $ac_option" >&2
  708. { (exit 1); exit 1; }; }
  709. fi
  710. # Be sure to have absolute paths.
  711. for ac_var in exec_prefix prefix
  712. do
  713. eval ac_val=$`echo $ac_var`
  714. case $ac_val in
  715. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  716. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  717. { (exit 1); exit 1; }; };;
  718. esac
  719. done
  720. # Be sure to have absolute paths.
  721. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  722. localstatedir libdir includedir oldincludedir infodir mandir
  723. do
  724. eval ac_val=$`echo $ac_var`
  725. case $ac_val in
  726. [\\/$]* | ?:[\\/]* ) ;;
  727. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  728. { (exit 1); exit 1; }; };;
  729. esac
  730. done
  731. # There might be people who depend on the old broken behavior: `$host'
  732. # used to hold the argument of --host etc.
  733. # FIXME: To remove some day.
  734. build=$build_alias
  735. host=$host_alias
  736. target=$target_alias
  737. # FIXME: To remove some day.
  738. if test "x$host_alias" != x; then
  739. if test "x$build_alias" = x; then
  740. cross_compiling=maybe
  741. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  742. If a cross compiler is detected then cross compile mode will be used." >&2
  743. elif test "x$build_alias" != "x$host_alias"; then
  744. cross_compiling=yes
  745. fi
  746. fi
  747. ac_tool_prefix=
  748. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  749. test "$silent" = yes && exec 6>/dev/null
  750. # Find the source files, if location was not specified.
  751. if test -z "$srcdir"; then
  752. ac_srcdir_defaulted=yes
  753. # Try the directory containing this script, then its parent.
  754. ac_confdir=`(dirname "$0") 2>/dev/null ||
  755. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  756. X"$0" : 'X\(//\)[^/]' \| \
  757. X"$0" : 'X\(//\)$' \| \
  758. X"$0" : 'X\(/\)' \| \
  759. . : '\(.\)' 2>/dev/null ||
  760. echo X"$0" |
  761. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  762. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  763. /^X\(\/\/\)$/{ s//\1/; q; }
  764. /^X\(\/\).*/{ s//\1/; q; }
  765. s/.*/./; q'`
  766. srcdir=$ac_confdir
  767. if test ! -r $srcdir/$ac_unique_file; then
  768. srcdir=..
  769. fi
  770. else
  771. ac_srcdir_defaulted=no
  772. fi
  773. if test ! -r $srcdir/$ac_unique_file; then
  774. if test "$ac_srcdir_defaulted" = yes; then
  775. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  776. { (exit 1); exit 1; }; }
  777. else
  778. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  779. { (exit 1); exit 1; }; }
  780. fi
  781. fi
  782. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  783. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  784. { (exit 1); exit 1; }; }
  785. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  786. ac_env_build_alias_set=${build_alias+set}
  787. ac_env_build_alias_value=$build_alias
  788. ac_cv_env_build_alias_set=${build_alias+set}
  789. ac_cv_env_build_alias_value=$build_alias
  790. ac_env_host_alias_set=${host_alias+set}
  791. ac_env_host_alias_value=$host_alias
  792. ac_cv_env_host_alias_set=${host_alias+set}
  793. ac_cv_env_host_alias_value=$host_alias
  794. ac_env_target_alias_set=${target_alias+set}
  795. ac_env_target_alias_value=$target_alias
  796. ac_cv_env_target_alias_set=${target_alias+set}
  797. ac_cv_env_target_alias_value=$target_alias
  798. ac_env_CC_set=${CC+set}
  799. ac_env_CC_value=$CC
  800. ac_cv_env_CC_set=${CC+set}
  801. ac_cv_env_CC_value=$CC
  802. ac_env_CFLAGS_set=${CFLAGS+set}
  803. ac_env_CFLAGS_value=$CFLAGS
  804. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  805. ac_cv_env_CFLAGS_value=$CFLAGS
  806. ac_env_LDFLAGS_set=${LDFLAGS+set}
  807. ac_env_LDFLAGS_value=$LDFLAGS
  808. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  809. ac_cv_env_LDFLAGS_value=$LDFLAGS
  810. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  811. ac_env_CPPFLAGS_value=$CPPFLAGS
  812. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  813. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  814. ac_env_CCAS_set=${CCAS+set}
  815. ac_env_CCAS_value=$CCAS
  816. ac_cv_env_CCAS_set=${CCAS+set}
  817. ac_cv_env_CCAS_value=$CCAS
  818. ac_env_CCASFLAGS_set=${CCASFLAGS+set}
  819. ac_env_CCASFLAGS_value=$CCASFLAGS
  820. ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
  821. ac_cv_env_CCASFLAGS_value=$CCASFLAGS
  822. ac_env_CPP_set=${CPP+set}
  823. ac_env_CPP_value=$CPP
  824. ac_cv_env_CPP_set=${CPP+set}
  825. ac_cv_env_CPP_value=$CPP
  826. ac_env_CXX_set=${CXX+set}
  827. ac_env_CXX_value=$CXX
  828. ac_cv_env_CXX_set=${CXX+set}
  829. ac_cv_env_CXX_value=$CXX
  830. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  831. ac_env_CXXFLAGS_value=$CXXFLAGS
  832. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  833. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  834. ac_env_CXXCPP_set=${CXXCPP+set}
  835. ac_env_CXXCPP_value=$CXXCPP
  836. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  837. ac_cv_env_CXXCPP_value=$CXXCPP
  838. ac_env_F77_set=${F77+set}
  839. ac_env_F77_value=$F77
  840. ac_cv_env_F77_set=${F77+set}
  841. ac_cv_env_F77_value=$F77
  842. ac_env_FFLAGS_set=${FFLAGS+set}
  843. ac_env_FFLAGS_value=$FFLAGS
  844. ac_cv_env_FFLAGS_set=${FFLAGS+set}
  845. ac_cv_env_FFLAGS_value=$FFLAGS
  846. #
  847. # Report the --help message.
  848. #
  849. if test "$ac_init_help" = "long"; then
  850. # Omit some internal or obsolete options to make the list less imposing.
  851. # This message is too long to be a string in the A/UX 3.1 sh.
  852. cat <<_ACEOF
  853. \`configure' configures MPEG Audio Decoder 0.15.1b to adapt to many kinds of systems.
  854. Usage: $0 [OPTION]... [VAR=VALUE]...
  855. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  856. VAR=VALUE. See below for descriptions of some of the useful variables.
  857. Defaults for the options are specified in brackets.
  858. Configuration:
  859. -h, --help display this help and exit
  860. --help=short display options specific to this package
  861. --help=recursive display the short help of all the included packages
  862. -V, --version display version information and exit
  863. -q, --quiet, --silent do not print \`checking...' messages
  864. --cache-file=FILE cache test results in FILE [disabled]
  865. -C, --config-cache alias for \`--cache-file=config.cache'
  866. -n, --no-create do not create output files
  867. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  868. _ACEOF
  869. cat <<_ACEOF
  870. Installation directories:
  871. --prefix=PREFIX install architecture-independent files in PREFIX
  872. [$ac_default_prefix]
  873. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  874. [PREFIX]
  875. By default, \`make install' will install all the files in
  876. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  877. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  878. for instance \`--prefix=\$HOME'.
  879. For better control, use the options below.
  880. Fine tuning of the installation directories:
  881. --bindir=DIR user executables [EPREFIX/bin]
  882. --sbindir=DIR system admin executables [EPREFIX/sbin]
  883. --libexecdir=DIR program executables [EPREFIX/libexec]
  884. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  885. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  886. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  887. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  888. --libdir=DIR object code libraries [EPREFIX/lib]
  889. --includedir=DIR C header files [PREFIX/include]
  890. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  891. --infodir=DIR info documentation [PREFIX/info]
  892. --mandir=DIR man documentation [PREFIX/man]
  893. _ACEOF
  894. cat <<\_ACEOF
  895. Program names:
  896. --program-prefix=PREFIX prepend PREFIX to installed program names
  897. --program-suffix=SUFFIX append SUFFIX to installed program names
  898. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  899. System types:
  900. --build=BUILD configure for building on BUILD [guessed]
  901. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  902. _ACEOF
  903. fi
  904. if test -n "$ac_init_help"; then
  905. case $ac_init_help in
  906. short | recursive ) echo "Configuration of MPEG Audio Decoder 0.15.1b:";;
  907. esac
  908. cat <<\_ACEOF
  909. Optional Features:
  910. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  911. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  912. --disable-dependency-tracking speeds up one-time build
  913. --enable-dependency-tracking do not reject slow dependency extractors
  914. --enable-shared[=PKGS]
  915. build shared libraries [default=yes]
  916. --enable-static[=PKGS]
  917. build static libraries [default=yes]
  918. --enable-fast-install[=PKGS]
  919. optimize for fast installation [default=yes]
  920. --disable-libtool-lock avoid locking (might break parallel builds)
  921. --enable-speed optimize for speed over accuracy
  922. --enable-accuracy optimize for accuracy over speed
  923. --enable-fpm=ARCH use ARCH-specific fixed-point math routines (one of:
  924. intel, arm, mips, sparc, ppc, 64bit, default)
  925. --enable-sso use subband synthesis optimization
  926. --disable-aso disable architecture-specific optimizations
  927. --enable-strict-iso use strict ISO/IEC interpretations
  928. --enable-profiling generate profiling code
  929. --enable-debugging enable diagnostic debugging support
  930. --disable-debugging do not enable debugging and use more optimization
  931. --enable-experimental enable experimental code
  932. Optional Packages:
  933. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  934. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  935. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  936. --with-pic try to use only PIC/non-PIC objects [default=use
  937. both]
  938. --with-tags[=TAGS]
  939. include additional configurations [automatic]
  940. Some influential environment variables:
  941. CC C compiler command
  942. CFLAGS C compiler flags
  943. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  944. nonstandard directory <lib dir>
  945. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  946. headers in a nonstandard directory <include dir>
  947. CCAS assembler compiler command (defaults to CC)
  948. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  949. CPP C preprocessor
  950. CXX C++ compiler command
  951. CXXFLAGS C++ compiler flags
  952. CXXCPP C++ preprocessor
  953. F77 Fortran 77 compiler command
  954. FFLAGS Fortran 77 compiler flags
  955. Use these variables to override the choices made by `configure' or to help
  956. it to find libraries and programs with nonstandard names/locations.
  957. Report bugs to <[email protected]>.
  958. _ACEOF
  959. fi
  960. if test "$ac_init_help" = "recursive"; then
  961. # If there are subdirs, report their specific --help.
  962. ac_popdir=`pwd`
  963. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  964. test -d $ac_dir || continue
  965. ac_builddir=.
  966. if test "$ac_dir" != .; then
  967. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  968. # A "../" for each directory in $ac_dir_suffix.
  969. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  970. else
  971. ac_dir_suffix= ac_top_builddir=
  972. fi
  973. case $srcdir in
  974. .) # No --srcdir option. We are building in place.
  975. ac_srcdir=.
  976. if test -z "$ac_top_builddir"; then
  977. ac_top_srcdir=.
  978. else
  979. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  980. fi ;;
  981. [\\/]* | ?:[\\/]* ) # Absolute path.
  982. ac_srcdir=$srcdir$ac_dir_suffix;
  983. ac_top_srcdir=$srcdir ;;
  984. *) # Relative path.
  985. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  986. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  987. esac
  988. # Do not use `cd foo && pwd` to compute absolute paths, because
  989. # the directories may not exist.
  990. case `pwd` in
  991. .) ac_abs_builddir="$ac_dir";;
  992. *)
  993. case "$ac_dir" in
  994. .) ac_abs_builddir=`pwd`;;
  995. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  996. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  997. esac;;
  998. esac
  999. case $ac_abs_builddir in
  1000. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1001. *)
  1002. case ${ac_top_builddir}. in
  1003. .) ac_abs_top_builddir=$ac_abs_builddir;;
  1004. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1005. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1006. esac;;
  1007. esac
  1008. case $ac_abs_builddir in
  1009. .) ac_abs_srcdir=$ac_srcdir;;
  1010. *)
  1011. case $ac_srcdir in
  1012. .) ac_abs_srcdir=$ac_abs_builddir;;
  1013. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1014. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1015. esac;;
  1016. esac
  1017. case $ac_abs_builddir in
  1018. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1019. *)
  1020. case $ac_top_srcdir in
  1021. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1022. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1023. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1024. esac;;
  1025. esac
  1026. cd $ac_dir
  1027. # Check for guested configure; otherwise get Cygnus style configure.
  1028. if test -f $ac_srcdir/configure.gnu; then
  1029. echo
  1030. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1031. elif test -f $ac_srcdir/configure; then
  1032. echo
  1033. $SHELL $ac_srcdir/configure --help=recursive
  1034. elif test -f $ac_srcdir/configure.ac ||
  1035. test -f $ac_srcdir/configure.in; then
  1036. echo
  1037. $ac_configure --help
  1038. else
  1039. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1040. fi
  1041. cd "$ac_popdir"
  1042. done
  1043. fi
  1044. test -n "$ac_init_help" && exit 0
  1045. if $ac_init_version; then
  1046. cat <<\_ACEOF
  1047. MPEG Audio Decoder configure 0.15.1b
  1048. generated by GNU Autoconf 2.59
  1049. Copyright (C) 2003 Free Software Foundation, Inc.
  1050. This configure script is free software; the Free Software Foundation
  1051. gives unlimited permission to copy, distribute and modify it.
  1052. _ACEOF
  1053. exit 0
  1054. fi
  1055. exec 5>config.log
  1056. cat >&5 <<_ACEOF
  1057. This file contains any messages produced by compilers while
  1058. running configure, to aid debugging if configure makes a mistake.
  1059. It was created by MPEG Audio Decoder $as_me 0.15.1b, which was
  1060. generated by GNU Autoconf 2.59. Invocation command line was
  1061. $ $0 $@
  1062. _ACEOF
  1063. {
  1064. cat <<_ASUNAME
  1065. ## --------- ##
  1066. ## Platform. ##
  1067. ## --------- ##
  1068. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1069. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1070. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1071. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1072. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1073. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1074. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1075. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1076. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1077. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1078. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1079. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1080. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1081. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1082. _ASUNAME
  1083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1084. for as_dir in $PATH
  1085. do
  1086. IFS=$as_save_IFS
  1087. test -z "$as_dir" && as_dir=.
  1088. echo "PATH: $as_dir"
  1089. done
  1090. } >&5
  1091. cat >&5 <<_ACEOF
  1092. ## ----------- ##
  1093. ## Core tests. ##
  1094. ## ----------- ##
  1095. _ACEOF
  1096. # Keep a trace of the command line.
  1097. # Strip out --no-create and --no-recursion so they do not pile up.
  1098. # Strip out --silent because we don't want to record it for future runs.
  1099. # Also quote any args containing shell meta-characters.
  1100. # Make two passes to allow for proper duplicate-argument suppression.
  1101. ac_configure_args=
  1102. ac_configure_args0=
  1103. ac_configure_args1=
  1104. ac_sep=
  1105. ac_must_keep_next=false
  1106. for ac_pass in 1 2
  1107. do
  1108. for ac_arg
  1109. do
  1110. case $ac_arg in
  1111. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1112. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1113. | -silent | --silent | --silen | --sile | --sil)
  1114. continue ;;
  1115. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1116. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1117. esac
  1118. case $ac_pass in
  1119. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1120. 2)
  1121. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1122. if test $ac_must_keep_next = true; then
  1123. ac_must_keep_next=false # Got value, back to normal.
  1124. else
  1125. case $ac_arg in
  1126. *=* | --config-cache | -C | -disable-* | --disable-* \
  1127. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1128. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1129. | -with-* | --with-* | -without-* | --without-* | --x)
  1130. case "$ac_configure_args0 " in
  1131. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1132. esac
  1133. ;;
  1134. -* ) ac_must_keep_next=true ;;
  1135. esac
  1136. fi
  1137. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1138. # Get rid of the leading space.
  1139. ac_sep=" "
  1140. ;;
  1141. esac
  1142. done
  1143. done
  1144. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1145. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1146. # When interrupted or exit'd, cleanup temporary files, and complete
  1147. # config.log. We remove comments because anyway the quotes in there
  1148. # would cause problems or look ugly.
  1149. # WARNING: Be sure not to use single quotes in there, as some shells,
  1150. # such as our DU 5.0 friend, will then `close' the trap.
  1151. trap 'exit_status=$?
  1152. # Save into config.log some information that might help in debugging.
  1153. {
  1154. echo
  1155. cat <<\_ASBOX
  1156. ## ---------------- ##
  1157. ## Cache variables. ##
  1158. ## ---------------- ##
  1159. _ASBOX
  1160. echo
  1161. # The following way of writing the cache mishandles newlines in values,
  1162. {
  1163. (set) 2>&1 |
  1164. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1165. *ac_space=\ *)
  1166. sed -n \
  1167. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1168. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1169. ;;
  1170. *)
  1171. sed -n \
  1172. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1173. ;;
  1174. esac;
  1175. }
  1176. echo
  1177. cat <<\_ASBOX
  1178. ## ----------------- ##
  1179. ## Output variables. ##
  1180. ## ----------------- ##
  1181. _ASBOX
  1182. echo
  1183. for ac_var in $ac_subst_vars
  1184. do
  1185. eval ac_val=$`echo $ac_var`
  1186. echo "$ac_var='"'"'$ac_val'"'"'"
  1187. done | sort
  1188. echo
  1189. if test -n "$ac_subst_files"; then
  1190. cat <<\_ASBOX
  1191. ## ------------- ##
  1192. ## Output files. ##
  1193. ## ------------- ##
  1194. _ASBOX
  1195. echo
  1196. for ac_var in $ac_subst_files
  1197. do
  1198. eval ac_val=$`echo $ac_var`
  1199. echo "$ac_var='"'"'$ac_val'"'"'"
  1200. done | sort
  1201. echo
  1202. fi
  1203. if test -s confdefs.h; then
  1204. cat <<\_ASBOX
  1205. ## ----------- ##
  1206. ## confdefs.h. ##
  1207. ## ----------- ##
  1208. _ASBOX
  1209. echo
  1210. sed "/^$/d" confdefs.h | sort
  1211. echo
  1212. fi
  1213. test "$ac_signal" != 0 &&
  1214. echo "$as_me: caught signal $ac_signal"
  1215. echo "$as_me: exit $exit_status"
  1216. } >&5
  1217. rm -f core *.core &&
  1218. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1219. exit $exit_status
  1220. ' 0
  1221. for ac_signal in 1 2 13 15; do
  1222. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1223. done
  1224. ac_signal=0
  1225. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1226. rm -rf conftest* confdefs.h
  1227. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1228. echo >confdefs.h
  1229. # Predefined preprocessor variables.
  1230. cat >>confdefs.h <<_ACEOF
  1231. #define PACKAGE_NAME "$PACKAGE_NAME"
  1232. _ACEOF
  1233. cat >>confdefs.h <<_ACEOF
  1234. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1235. _ACEOF
  1236. cat >>confdefs.h <<_ACEOF
  1237. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1238. _ACEOF
  1239. cat >>confdefs.h <<_ACEOF
  1240. #define PACKAGE_STRING "$PACKAGE_STRING"
  1241. _ACEOF
  1242. cat >>confdefs.h <<_ACEOF
  1243. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1244. _ACEOF
  1245. # Let the site file select an alternate cache file if it wants to.
  1246. # Prefer explicitly selected file to automatically selected ones.
  1247. if test -z "$CONFIG_SITE"; then
  1248. if test "x$prefix" != xNONE; then
  1249. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1250. else
  1251. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1252. fi
  1253. fi
  1254. for ac_site_file in $CONFIG_SITE; do
  1255. if test -r "$ac_site_file"; then
  1256. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1257. echo "$as_me: loading site script $ac_site_file" >&6;}
  1258. sed 's/^/| /' "$ac_site_file" >&5
  1259. . "$ac_site_file"
  1260. fi
  1261. done
  1262. if test -r "$cache_file"; then
  1263. # Some versions of bash will fail to source /dev/null (special
  1264. # files actually), so we avoid doing that.
  1265. if test -f "$cache_file"; then
  1266. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1267. echo "$as_me: loading cache $cache_file" >&6;}
  1268. case $cache_file in
  1269. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1270. *) . ./$cache_file;;
  1271. esac
  1272. fi
  1273. else
  1274. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1275. echo "$as_me: creating cache $cache_file" >&6;}
  1276. >$cache_file
  1277. fi
  1278. # Check that the precious variables saved in the cache have kept the same
  1279. # value.
  1280. ac_cache_corrupted=false
  1281. for ac_var in `(set) 2>&1 |
  1282. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1283. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1284. eval ac_new_set=\$ac_env_${ac_var}_set
  1285. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1286. eval ac_new_val="\$ac_env_${ac_var}_value"
  1287. case $ac_old_set,$ac_new_set in
  1288. set,)
  1289. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1290. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1291. ac_cache_corrupted=: ;;
  1292. ,set)
  1293. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1294. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1295. ac_cache_corrupted=: ;;
  1296. ,);;
  1297. *)
  1298. if test "x$ac_old_val" != "x$ac_new_val"; then
  1299. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1300. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1301. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1302. echo "$as_me: former value: $ac_old_val" >&2;}
  1303. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1304. echo "$as_me: current value: $ac_new_val" >&2;}
  1305. ac_cache_corrupted=:
  1306. fi;;
  1307. esac
  1308. # Pass precious variables to config.status.
  1309. if test "$ac_new_set" = set; then
  1310. case $ac_new_val in
  1311. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1312. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1313. *) ac_arg=$ac_var=$ac_new_val ;;
  1314. esac
  1315. case " $ac_configure_args " in
  1316. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1317. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1318. esac
  1319. fi
  1320. done
  1321. if $ac_cache_corrupted; then
  1322. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1323. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1324. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1325. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1326. { (exit 1); exit 1; }; }
  1327. fi
  1328. ac_ext=c
  1329. ac_cpp='$CPP $CPPFLAGS'
  1330. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1331. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1332. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1333. am__api_version="1.8"
  1334. ac_aux_dir=
  1335. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1336. if test -f $ac_dir/install-sh; then
  1337. ac_aux_dir=$ac_dir
  1338. ac_install_sh="$ac_aux_dir/install-sh -c"
  1339. break
  1340. elif test -f $ac_dir/install.sh; then
  1341. ac_aux_dir=$ac_dir
  1342. ac_install_sh="$ac_aux_dir/install.sh -c"
  1343. break
  1344. elif test -f $ac_dir/shtool; then
  1345. ac_aux_dir=$ac_dir
  1346. ac_install_sh="$ac_aux_dir/shtool install -c"
  1347. break
  1348. fi
  1349. done
  1350. if test -z "$ac_aux_dir"; then
  1351. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1352. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1353. { (exit 1); exit 1; }; }
  1354. fi
  1355. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1356. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1357. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1358. # Find a good install program. We prefer a C program (faster),
  1359. # so one script is as good as another. But avoid the broken or
  1360. # incompatible versions:
  1361. # SysV /etc/install, /usr/sbin/install
  1362. # SunOS /usr/etc/install
  1363. # IRIX /sbin/install
  1364. # AIX /bin/install
  1365. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1366. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1367. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1368. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1369. # OS/2's system install, which has a completely different semantic
  1370. # ./install, which can be erroneously created by make from ./install.sh.
  1371. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1372. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1373. if test -z "$INSTALL"; then
  1374. if test "${ac_cv_path_install+set}" = set; then
  1375. echo $ECHO_N "(cached) $ECHO_C" >&6
  1376. else
  1377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1378. for as_dir in $PATH
  1379. do
  1380. IFS=$as_save_IFS
  1381. test -z "$as_dir" && as_dir=.
  1382. # Account for people who put trailing slashes in PATH elements.
  1383. case $as_dir/ in
  1384. ./ | .// | /cC/* | \
  1385. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1386. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1387. /usr/ucb/* ) ;;
  1388. *)
  1389. # OSF1 and SCO ODT 3.0 have their own names for install.
  1390. # Don't use installbsd from OSF since it installs stuff as root
  1391. # by default.
  1392. for ac_prog in ginstall scoinst install; do
  1393. for ac_exec_ext in '' $ac_executable_extensions; do
  1394. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1395. if test $ac_prog = install &&
  1396. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1397. # AIX install. It has an incompatible calling convention.
  1398. :
  1399. elif test $ac_prog = install &&
  1400. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1401. # program-specific install script used by HP pwplus--don't use.
  1402. :
  1403. else
  1404. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1405. break 3
  1406. fi
  1407. fi
  1408. done
  1409. done
  1410. ;;
  1411. esac
  1412. done
  1413. fi
  1414. if test "${ac_cv_path_install+set}" = set; then
  1415. INSTALL=$ac_cv_path_install
  1416. else
  1417. # As a last resort, use the slow shell script. We don't cache a
  1418. # path for INSTALL within a source directory, because that will
  1419. # break other packages using the cache if that directory is
  1420. # removed, or if the path is relative.
  1421. INSTALL=$ac_install_sh
  1422. fi
  1423. fi
  1424. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1425. echo "${ECHO_T}$INSTALL" >&6
  1426. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1427. # It thinks the first close brace ends the variable substitution.
  1428. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1429. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1430. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1431. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1432. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1433. # Just in case
  1434. sleep 1
  1435. echo timestamp > conftest.file
  1436. # Do `set' in a subshell so we don't clobber the current shell's
  1437. # arguments. Must try -L first in case configure is actually a
  1438. # symlink; some systems play weird games with the mod time of symlinks
  1439. # (eg FreeBSD returns the mod time of the symlink's containing
  1440. # directory).
  1441. if (
  1442. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1443. if test "$*" = "X"; then
  1444. # -L didn't work.
  1445. set X `ls -t $srcdir/configure conftest.file`
  1446. fi
  1447. rm -f conftest.file
  1448. if test "$*" != "X $srcdir/configure conftest.file" \
  1449. && test "$*" != "X conftest.file $srcdir/configure"; then
  1450. # If neither matched, then we have a broken ls. This can happen
  1451. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1452. # broken ls alias from the environment. This has actually
  1453. # happened. Such a system could not be considered "sane".
  1454. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1455. alias in your environment" >&5
  1456. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1457. alias in your environment" >&2;}
  1458. { (exit 1); exit 1; }; }
  1459. fi
  1460. test "$2" = conftest.file
  1461. )
  1462. then
  1463. # Ok.
  1464. :
  1465. else
  1466. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1467. Check your system clock" >&5
  1468. echo "$as_me: error: newly created file is older than distributed files!
  1469. Check your system clock" >&2;}
  1470. { (exit 1); exit 1; }; }
  1471. fi
  1472. echo "$as_me:$LINENO: result: yes" >&5
  1473. echo "${ECHO_T}yes" >&6
  1474. test "$program_prefix" != NONE &&
  1475. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1476. # Use a double $ so make ignores it.
  1477. test "$program_suffix" != NONE &&
  1478. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1479. # Double any \ or $. echo might interpret backslashes.
  1480. # By default was `s,x,x', remove it if useless.
  1481. cat <<\_ACEOF >conftest.sed
  1482. s/[\\$]/&&/g;s/;s,x,x,$//
  1483. _ACEOF
  1484. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1485. rm conftest.sed
  1486. # expand $ac_aux_dir to an absolute path
  1487. am_aux_dir=`cd $ac_aux_dir && pwd`
  1488. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1489. # Use eval to expand $SHELL
  1490. if eval "$MISSING --run true"; then
  1491. am_missing_run="$MISSING --run "
  1492. else
  1493. am_missing_run=
  1494. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1495. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1496. fi
  1497. if mkdir -p -- . 2>/dev/null; then
  1498. # Keeping the `.' argument allows $(mkdir_p) to be used without
  1499. # argument. Indeed, we sometimes output rules like
  1500. # $(mkdir_p) $(somedir)
  1501. # where $(somedir) is conditionally defined.
  1502. # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
  1503. # expensive solution, as it forces Make to start a sub-shell.)
  1504. mkdir_p='mkdir -p -- .'
  1505. else
  1506. # On NextStep and OpenStep, the `mkdir' command does not
  1507. # recognize any option. It will interpret all options as
  1508. # directories to create, and then abort because `.' already
  1509. # exists.
  1510. for d in ./-p ./--;
  1511. do
  1512. test -d $d && rmdir $d
  1513. done
  1514. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1515. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1516. mkdir_p='$(mkinstalldirs)'
  1517. else
  1518. mkdir_p='$(install_sh) -d'
  1519. fi
  1520. fi
  1521. for ac_prog in gawk mawk nawk awk
  1522. do
  1523. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1524. set dummy $ac_prog; ac_word=$2
  1525. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1526. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1527. if test "${ac_cv_prog_AWK+set}" = set; then
  1528. echo $ECHO_N "(cached) $ECHO_C" >&6
  1529. else
  1530. if test -n "$AWK"; then
  1531. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1532. else
  1533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1534. for as_dir in $PATH
  1535. do
  1536. IFS=$as_save_IFS
  1537. test -z "$as_dir" && as_dir=.
  1538. for ac_exec_ext in '' $ac_executable_extensions; do
  1539. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1540. ac_cv_prog_AWK="$ac_prog"
  1541. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1542. break 2
  1543. fi
  1544. done
  1545. done
  1546. fi
  1547. fi
  1548. AWK=$ac_cv_prog_AWK
  1549. if test -n "$AWK"; then
  1550. echo "$as_me:$LINENO: result: $AWK" >&5
  1551. echo "${ECHO_T}$AWK" >&6
  1552. else
  1553. echo "$as_me:$LINENO: result: no" >&5
  1554. echo "${ECHO_T}no" >&6
  1555. fi
  1556. test -n "$AWK" && break
  1557. done
  1558. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1559. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1560. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1561. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1562. echo $ECHO_N "(cached) $ECHO_C" >&6
  1563. else
  1564. cat >conftest.make <<\_ACEOF
  1565. all:
  1566. @echo 'ac_maketemp="$(MAKE)"'
  1567. _ACEOF
  1568. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1569. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1570. if test -n "$ac_maketemp"; then
  1571. eval ac_cv_prog_make_${ac_make}_set=yes
  1572. else
  1573. eval ac_cv_prog_make_${ac_make}_set=no
  1574. fi
  1575. rm -f conftest.make
  1576. fi
  1577. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1578. echo "$as_me:$LINENO: result: yes" >&5
  1579. echo "${ECHO_T}yes" >&6
  1580. SET_MAKE=
  1581. else
  1582. echo "$as_me:$LINENO: result: no" >&5
  1583. echo "${ECHO_T}no" >&6
  1584. SET_MAKE="MAKE=${MAKE-make}"
  1585. fi
  1586. rm -rf .tst 2>/dev/null
  1587. mkdir .tst 2>/dev/null
  1588. if test -d .tst; then
  1589. am__leading_dot=.
  1590. else
  1591. am__leading_dot=_
  1592. fi
  1593. rmdir .tst 2>/dev/null
  1594. # test to see if srcdir already configured
  1595. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1596. test -f $srcdir/config.status; then
  1597. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1598. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1599. { (exit 1); exit 1; }; }
  1600. fi
  1601. # test whether we have cygpath
  1602. if test -z "$CYGPATH_W"; then
  1603. if (cygpath --version) >/dev/null 2>/dev/null; then
  1604. CYGPATH_W='cygpath -w'
  1605. else
  1606. CYGPATH_W=echo
  1607. fi
  1608. fi
  1609. # Define the identity of the package.
  1610. PACKAGE='libmad'
  1611. VERSION='0.15.1b'
  1612. cat >>confdefs.h <<_ACEOF
  1613. #define PACKAGE "$PACKAGE"
  1614. _ACEOF
  1615. cat >>confdefs.h <<_ACEOF
  1616. #define VERSION "$VERSION"
  1617. _ACEOF
  1618. # Some tools Automake needs.
  1619. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1620. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1621. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1622. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1623. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1624. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1625. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1626. # Installed binaries are usually stripped using `strip' when the user
  1627. # run `make install-strip'. However `strip' might not be the right
  1628. # tool to use in cross-compilation environments, therefore Automake
  1629. # will honor the `STRIP' environment variable to overrule this program.
  1630. if test "$cross_compiling" != no; then
  1631. if test -n "$ac_tool_prefix"; then
  1632. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1633. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1634. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1635. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1636. if test "${ac_cv_prog_STRIP+set}" = set; then
  1637. echo $ECHO_N "(cached) $ECHO_C" >&6
  1638. else
  1639. if test -n "$STRIP"; then
  1640. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1641. else
  1642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1643. for as_dir in $PATH
  1644. do
  1645. IFS=$as_save_IFS
  1646. test -z "$as_dir" && as_dir=.
  1647. for ac_exec_ext in '' $ac_executable_extensions; do
  1648. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1649. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1650. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1651. break 2
  1652. fi
  1653. done
  1654. done
  1655. fi
  1656. fi
  1657. STRIP=$ac_cv_prog_STRIP
  1658. if test -n "$STRIP"; then
  1659. echo "$as_me:$LINENO: result: $STRIP" >&5
  1660. echo "${ECHO_T}$STRIP" >&6
  1661. else
  1662. echo "$as_me:$LINENO: result: no" >&5
  1663. echo "${ECHO_T}no" >&6
  1664. fi
  1665. fi
  1666. if test -z "$ac_cv_prog_STRIP"; then
  1667. ac_ct_STRIP=$STRIP
  1668. # Extract the first word of "strip", so it can be a program name with args.
  1669. set dummy strip; ac_word=$2
  1670. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1671. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1672. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1673. echo $ECHO_N "(cached) $ECHO_C" >&6
  1674. else
  1675. if test -n "$ac_ct_STRIP"; then
  1676. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1677. else
  1678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1679. for as_dir in $PATH
  1680. do
  1681. IFS=$as_save_IFS
  1682. test -z "$as_dir" && as_dir=.
  1683. for ac_exec_ext in '' $ac_executable_extensions; do
  1684. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1685. ac_cv_prog_ac_ct_STRIP="strip"
  1686. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1687. break 2
  1688. fi
  1689. done
  1690. done
  1691. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1692. fi
  1693. fi
  1694. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1695. if test -n "$ac_ct_STRIP"; then
  1696. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1697. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1698. else
  1699. echo "$as_me:$LINENO: result: no" >&5
  1700. echo "${ECHO_T}no" >&6
  1701. fi
  1702. STRIP=$ac_ct_STRIP
  1703. else
  1704. STRIP="$ac_cv_prog_STRIP"
  1705. fi
  1706. fi
  1707. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1708. # We need awk for the "check" target. The system "awk" is bad on
  1709. # some platforms.
  1710. ac_config_headers="$ac_config_headers config.h"
  1711. # Make sure we can run config.sub.
  1712. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1713. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1714. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1715. { (exit 1); exit 1; }; }
  1716. echo "$as_me:$LINENO: checking build system type" >&5
  1717. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1718. if test "${ac_cv_build+set}" = set; then
  1719. echo $ECHO_N "(cached) $ECHO_C" >&6
  1720. else
  1721. ac_cv_build_alias=$build_alias
  1722. test -z "$ac_cv_build_alias" &&
  1723. ac_cv_build_alias=`$ac_config_guess`
  1724. test -z "$ac_cv_build_alias" &&
  1725. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1726. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1727. { (exit 1); exit 1; }; }
  1728. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1729. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1730. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1731. { (exit 1); exit 1; }; }
  1732. fi
  1733. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1734. echo "${ECHO_T}$ac_cv_build" >&6
  1735. build=$ac_cv_build
  1736. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1737. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1738. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1739. echo "$as_me:$LINENO: checking host system type" >&5
  1740. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1741. if test "${ac_cv_host+set}" = set; then
  1742. echo $ECHO_N "(cached) $ECHO_C" >&6
  1743. else
  1744. ac_cv_host_alias=$host_alias
  1745. test -z "$ac_cv_host_alias" &&
  1746. ac_cv_host_alias=$ac_cv_build_alias
  1747. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1748. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1749. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1750. { (exit 1); exit 1; }; }
  1751. fi
  1752. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1753. echo "${ECHO_T}$ac_cv_host" >&6
  1754. host=$ac_cv_host
  1755. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1756. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1757. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1758. ac_ext=c
  1759. ac_cpp='$CPP $CPPFLAGS'
  1760. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1761. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1762. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1763. if test -n "$ac_tool_prefix"; then
  1764. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1765. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1766. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1767. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1768. if test "${ac_cv_prog_CC+set}" = set; then
  1769. echo $ECHO_N "(cached) $ECHO_C" >&6
  1770. else
  1771. if test -n "$CC"; then
  1772. ac_cv_prog_CC="$CC" # Let the user override the test.
  1773. else
  1774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1775. for as_dir in $PATH
  1776. do
  1777. IFS=$as_save_IFS
  1778. test -z "$as_dir" && as_dir=.
  1779. for ac_exec_ext in '' $ac_executable_extensions; do
  1780. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1781. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1782. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1783. break 2
  1784. fi
  1785. done
  1786. done
  1787. fi
  1788. fi
  1789. CC=$ac_cv_prog_CC
  1790. if test -n "$CC"; then
  1791. echo "$as_me:$LINENO: result: $CC" >&5
  1792. echo "${ECHO_T}$CC" >&6
  1793. else
  1794. echo "$as_me:$LINENO: result: no" >&5
  1795. echo "${ECHO_T}no" >&6
  1796. fi
  1797. fi
  1798. if test -z "$ac_cv_prog_CC"; then
  1799. ac_ct_CC=$CC
  1800. # Extract the first word of "gcc", so it can be a program name with args.
  1801. set dummy gcc; ac_word=$2
  1802. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1803. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1804. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1805. echo $ECHO_N "(cached) $ECHO_C" >&6
  1806. else
  1807. if test -n "$ac_ct_CC"; then
  1808. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1809. else
  1810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1811. for as_dir in $PATH
  1812. do
  1813. IFS=$as_save_IFS
  1814. test -z "$as_dir" && as_dir=.
  1815. for ac_exec_ext in '' $ac_executable_extensions; do
  1816. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1817. ac_cv_prog_ac_ct_CC="gcc"
  1818. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1819. break 2
  1820. fi
  1821. done
  1822. done
  1823. fi
  1824. fi
  1825. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1826. if test -n "$ac_ct_CC"; then
  1827. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1828. echo "${ECHO_T}$ac_ct_CC" >&6
  1829. else
  1830. echo "$as_me:$LINENO: result: no" >&5
  1831. echo "${ECHO_T}no" >&6
  1832. fi
  1833. CC=$ac_ct_CC
  1834. else
  1835. CC="$ac_cv_prog_CC"
  1836. fi
  1837. if test -z "$CC"; then
  1838. if test -n "$ac_tool_prefix"; then
  1839. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1840. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1841. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1842. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1843. if test "${ac_cv_prog_CC+set}" = set; then
  1844. echo $ECHO_N "(cached) $ECHO_C" >&6
  1845. else
  1846. if test -n "$CC"; then
  1847. ac_cv_prog_CC="$CC" # Let the user override the test.
  1848. else
  1849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1850. for as_dir in $PATH
  1851. do
  1852. IFS=$as_save_IFS
  1853. test -z "$as_dir" && as_dir=.
  1854. for ac_exec_ext in '' $ac_executable_extensions; do
  1855. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1856. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1857. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1858. break 2
  1859. fi
  1860. done
  1861. done
  1862. fi
  1863. fi
  1864. CC=$ac_cv_prog_CC
  1865. if test -n "$CC"; then
  1866. echo "$as_me:$LINENO: result: $CC" >&5
  1867. echo "${ECHO_T}$CC" >&6
  1868. else
  1869. echo "$as_me:$LINENO: result: no" >&5
  1870. echo "${ECHO_T}no" >&6
  1871. fi
  1872. fi
  1873. if test -z "$ac_cv_prog_CC"; then
  1874. ac_ct_CC=$CC
  1875. # Extract the first word of "cc", so it can be a program name with args.
  1876. set dummy cc; ac_word=$2
  1877. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1878. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1879. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1880. echo $ECHO_N "(cached) $ECHO_C" >&6
  1881. else
  1882. if test -n "$ac_ct_CC"; then
  1883. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1884. else
  1885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1886. for as_dir in $PATH
  1887. do
  1888. IFS=$as_save_IFS
  1889. test -z "$as_dir" && as_dir=.
  1890. for ac_exec_ext in '' $ac_executable_extensions; do
  1891. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1892. ac_cv_prog_ac_ct_CC="cc"
  1893. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1894. break 2
  1895. fi
  1896. done
  1897. done
  1898. fi
  1899. fi
  1900. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1901. if test -n "$ac_ct_CC"; then
  1902. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1903. echo "${ECHO_T}$ac_ct_CC" >&6
  1904. else
  1905. echo "$as_me:$LINENO: result: no" >&5
  1906. echo "${ECHO_T}no" >&6
  1907. fi
  1908. CC=$ac_ct_CC
  1909. else
  1910. CC="$ac_cv_prog_CC"
  1911. fi
  1912. fi
  1913. if test -z "$CC"; then
  1914. # Extract the first word of "cc", so it can be a program name with args.
  1915. set dummy cc; ac_word=$2
  1916. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1917. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1918. if test "${ac_cv_prog_CC+set}" = set; then
  1919. echo $ECHO_N "(cached) $ECHO_C" >&6
  1920. else
  1921. if test -n "$CC"; then
  1922. ac_cv_prog_CC="$CC" # Let the user override the test.
  1923. else
  1924. ac_prog_rejected=no
  1925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1926. for as_dir in $PATH
  1927. do
  1928. IFS=$as_save_IFS
  1929. test -z "$as_dir" && as_dir=.
  1930. for ac_exec_ext in '' $ac_executable_extensions; do
  1931. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1932. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1933. ac_prog_rejected=yes
  1934. continue
  1935. fi
  1936. ac_cv_prog_CC="cc"
  1937. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1938. break 2
  1939. fi
  1940. done
  1941. done
  1942. if test $ac_prog_rejected = yes; then
  1943. # We found a bogon in the path, so make sure we never use it.
  1944. set dummy $ac_cv_prog_CC
  1945. shift
  1946. if test $# != 0; then
  1947. # We chose a different compiler from the bogus one.
  1948. # However, it has the same basename, so the bogon will be chosen
  1949. # first if we set CC to just the basename; use the full file name.
  1950. shift
  1951. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1952. fi
  1953. fi
  1954. fi
  1955. fi
  1956. CC=$ac_cv_prog_CC
  1957. if test -n "$CC"; then
  1958. echo "$as_me:$LINENO: result: $CC" >&5
  1959. echo "${ECHO_T}$CC" >&6
  1960. else
  1961. echo "$as_me:$LINENO: result: no" >&5
  1962. echo "${ECHO_T}no" >&6
  1963. fi
  1964. fi
  1965. if test -z "$CC"; then
  1966. if test -n "$ac_tool_prefix"; then
  1967. for ac_prog in cl
  1968. do
  1969. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1970. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1971. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1972. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1973. if test "${ac_cv_prog_CC+set}" = set; then
  1974. echo $ECHO_N "(cached) $ECHO_C" >&6
  1975. else
  1976. if test -n "$CC"; then
  1977. ac_cv_prog_CC="$CC" # Let the user override the test.
  1978. else
  1979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1980. for as_dir in $PATH
  1981. do
  1982. IFS=$as_save_IFS
  1983. test -z "$as_dir" && as_dir=.
  1984. for ac_exec_ext in '' $ac_executable_extensions; do
  1985. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1986. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1987. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1988. break 2
  1989. fi
  1990. done
  1991. done
  1992. fi
  1993. fi
  1994. CC=$ac_cv_prog_CC
  1995. if test -n "$CC"; then
  1996. echo "$as_me:$LINENO: result: $CC" >&5
  1997. echo "${ECHO_T}$CC" >&6
  1998. else
  1999. echo "$as_me:$LINENO: result: no" >&5
  2000. echo "${ECHO_T}no" >&6
  2001. fi
  2002. test -n "$CC" && break
  2003. done
  2004. fi
  2005. if test -z "$CC"; then
  2006. ac_ct_CC=$CC
  2007. for ac_prog in cl
  2008. do
  2009. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2010. set dummy $ac_prog; ac_word=$2
  2011. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2012. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2013. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2014. echo $ECHO_N "(cached) $ECHO_C" >&6
  2015. else
  2016. if test -n "$ac_ct_CC"; then
  2017. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2018. else
  2019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2020. for as_dir in $PATH
  2021. do
  2022. IFS=$as_save_IFS
  2023. test -z "$as_dir" && as_dir=.
  2024. for ac_exec_ext in '' $ac_executable_extensions; do
  2025. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2026. ac_cv_prog_ac_ct_CC="$ac_prog"
  2027. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2028. break 2
  2029. fi
  2030. done
  2031. done
  2032. fi
  2033. fi
  2034. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2035. if test -n "$ac_ct_CC"; then
  2036. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2037. echo "${ECHO_T}$ac_ct_CC" >&6
  2038. else
  2039. echo "$as_me:$LINENO: result: no" >&5
  2040. echo "${ECHO_T}no" >&6
  2041. fi
  2042. test -n "$ac_ct_CC" && break
  2043. done
  2044. CC=$ac_ct_CC
  2045. fi
  2046. fi
  2047. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2048. See \`config.log' for more details." >&5
  2049. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2050. See \`config.log' for more details." >&2;}
  2051. { (exit 1); exit 1; }; }
  2052. # Provide some information about the compiler.
  2053. echo "$as_me:$LINENO:" \
  2054. "checking for C compiler version" >&5
  2055. ac_compiler=`set X $ac_compile; echo $2`
  2056. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2057. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2058. ac_status=$?
  2059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2060. (exit $ac_status); }
  2061. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2062. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2063. ac_status=$?
  2064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2065. (exit $ac_status); }
  2066. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2067. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2068. ac_status=$?
  2069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2070. (exit $ac_status); }
  2071. cat >conftest.$ac_ext <<_ACEOF
  2072. /* confdefs.h. */
  2073. _ACEOF
  2074. cat confdefs.h >>conftest.$ac_ext
  2075. cat >>conftest.$ac_ext <<_ACEOF
  2076. /* end confdefs.h. */
  2077. int
  2078. main ()
  2079. {
  2080. ;
  2081. return 0;
  2082. }
  2083. _ACEOF
  2084. ac_clean_files_save=$ac_clean_files
  2085. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2086. # Try to create an executable without -o first, disregard a.out.
  2087. # It will help us diagnose broken compilers, and finding out an intuition
  2088. # of exeext.
  2089. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2090. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  2091. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2092. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2093. (eval $ac_link_default) 2>&5
  2094. ac_status=$?
  2095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2096. (exit $ac_status); }; then
  2097. # Find the output, starting from the most likely. This scheme is
  2098. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2099. # resort.
  2100. # Be careful to initialize this variable, since it used to be cached.
  2101. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2102. ac_cv_exeext=
  2103. # b.out is created by i960 compilers.
  2104. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2105. do
  2106. test -f "$ac_file" || continue
  2107. case $ac_file in
  2108. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2109. ;;
  2110. conftest.$ac_ext )
  2111. # This is the source file.
  2112. ;;
  2113. [ab].out )
  2114. # We found the default executable, but exeext='' is most
  2115. # certainly right.
  2116. break;;
  2117. *.* )
  2118. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2119. # FIXME: I believe we export ac_cv_exeext for Libtool,
  2120. # but it would be cool to find out if it's true. Does anybody
  2121. # maintain Libtool? --akim.
  2122. export ac_cv_exeext
  2123. break;;
  2124. * )
  2125. break;;
  2126. esac
  2127. done
  2128. else
  2129. echo "$as_me: failed program was:" >&5
  2130. sed 's/^/| /' conftest.$ac_ext >&5
  2131. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2132. See \`config.log' for more details." >&5
  2133. echo "$as_me: error: C compiler cannot create executables
  2134. See \`config.log' for more details." >&2;}
  2135. { (exit 77); exit 77; }; }
  2136. fi
  2137. ac_exeext=$ac_cv_exeext
  2138. echo "$as_me:$LINENO: result: $ac_file" >&5
  2139. echo "${ECHO_T}$ac_file" >&6
  2140. # Check the compiler produces executables we can run. If not, either
  2141. # the compiler is broken, or we cross compile.
  2142. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2143. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2144. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2145. # If not cross compiling, check that we can run a simple program.
  2146. if test "$cross_compiling" != yes; then
  2147. if { ac_try='./$ac_file'
  2148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2149. (eval $ac_try) 2>&5
  2150. ac_status=$?
  2151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2152. (exit $ac_status); }; }; then
  2153. cross_compiling=no
  2154. else
  2155. if test "$cross_compiling" = maybe; then
  2156. cross_compiling=yes
  2157. else
  2158. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2159. If you meant to cross compile, use \`--host'.
  2160. See \`config.log' for more details." >&5
  2161. echo "$as_me: error: cannot run C compiled programs.
  2162. If you meant to cross compile, use \`--host'.
  2163. See \`config.log' for more details." >&2;}
  2164. { (exit 1); exit 1; }; }
  2165. fi
  2166. fi
  2167. fi
  2168. echo "$as_me:$LINENO: result: yes" >&5
  2169. echo "${ECHO_T}yes" >&6
  2170. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2171. ac_clean_files=$ac_clean_files_save
  2172. # Check the compiler produces executables we can run. If not, either
  2173. # the compiler is broken, or we cross compile.
  2174. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2175. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2176. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2177. echo "${ECHO_T}$cross_compiling" >&6
  2178. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2179. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2180. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2181. (eval $ac_link) 2>&5
  2182. ac_status=$?
  2183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2184. (exit $ac_status); }; then
  2185. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2186. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2187. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2188. # `rm'.
  2189. for ac_file in conftest.exe conftest conftest.*; do
  2190. test -f "$ac_file" || continue
  2191. case $ac_file in
  2192. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2193. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2194. export ac_cv_exeext
  2195. break;;
  2196. * ) break;;
  2197. esac
  2198. done
  2199. else
  2200. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2201. See \`config.log' for more details." >&5
  2202. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2203. See \`config.log' for more details." >&2;}
  2204. { (exit 1); exit 1; }; }
  2205. fi
  2206. rm -f conftest$ac_cv_exeext
  2207. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2208. echo "${ECHO_T}$ac_cv_exeext" >&6
  2209. rm -f conftest.$ac_ext
  2210. EXEEXT=$ac_cv_exeext
  2211. ac_exeext=$EXEEXT
  2212. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2213. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2214. if test "${ac_cv_objext+set}" = set; then
  2215. echo $ECHO_N "(cached) $ECHO_C" >&6
  2216. else
  2217. cat >conftest.$ac_ext <<_ACEOF
  2218. /* confdefs.h. */
  2219. _ACEOF
  2220. cat confdefs.h >>conftest.$ac_ext
  2221. cat >>conftest.$ac_ext <<_ACEOF
  2222. /* end confdefs.h. */
  2223. int
  2224. main ()
  2225. {
  2226. ;
  2227. return 0;
  2228. }
  2229. _ACEOF
  2230. rm -f conftest.o conftest.obj
  2231. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2232. (eval $ac_compile) 2>&5
  2233. ac_status=$?
  2234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2235. (exit $ac_status); }; then
  2236. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2237. case $ac_file in
  2238. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2239. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2240. break;;
  2241. esac
  2242. done
  2243. else
  2244. echo "$as_me: failed program was:" >&5
  2245. sed 's/^/| /' conftest.$ac_ext >&5
  2246. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2247. See \`config.log' for more details." >&5
  2248. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2249. See \`config.log' for more details." >&2;}
  2250. { (exit 1); exit 1; }; }
  2251. fi
  2252. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2253. fi
  2254. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2255. echo "${ECHO_T}$ac_cv_objext" >&6
  2256. OBJEXT=$ac_cv_objext
  2257. ac_objext=$OBJEXT
  2258. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2259. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2260. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2261. echo $ECHO_N "(cached) $ECHO_C" >&6
  2262. else
  2263. cat >conftest.$ac_ext <<_ACEOF
  2264. /* confdefs.h. */
  2265. _ACEOF
  2266. cat confdefs.h >>conftest.$ac_ext
  2267. cat >>conftest.$ac_ext <<_ACEOF
  2268. /* end confdefs.h. */
  2269. int
  2270. main ()
  2271. {
  2272. #ifndef __GNUC__
  2273. choke me
  2274. #endif
  2275. ;
  2276. return 0;
  2277. }
  2278. _ACEOF
  2279. rm -f conftest.$ac_objext
  2280. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2281. (eval $ac_compile) 2>conftest.er1
  2282. ac_status=$?
  2283. grep -v '^ *+' conftest.er1 >conftest.err
  2284. rm -f conftest.er1
  2285. cat conftest.err >&5
  2286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2287. (exit $ac_status); } &&
  2288. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2289. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2290. (eval $ac_try) 2>&5
  2291. ac_status=$?
  2292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2293. (exit $ac_status); }; } &&
  2294. { ac_try='test -s conftest.$ac_objext'
  2295. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2296. (eval $ac_try) 2>&5
  2297. ac_status=$?
  2298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2299. (exit $ac_status); }; }; then
  2300. ac_compiler_gnu=yes
  2301. else
  2302. echo "$as_me: failed program was:" >&5
  2303. sed 's/^/| /' conftest.$ac_ext >&5
  2304. ac_compiler_gnu=no
  2305. fi
  2306. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2307. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2308. fi
  2309. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2310. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2311. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2312. ac_test_CFLAGS=${CFLAGS+set}
  2313. ac_save_CFLAGS=$CFLAGS
  2314. CFLAGS="-g"
  2315. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2316. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2317. if test "${ac_cv_prog_cc_g+set}" = set; then
  2318. echo $ECHO_N "(cached) $ECHO_C" >&6
  2319. else
  2320. cat >conftest.$ac_ext <<_ACEOF
  2321. /* confdefs.h. */
  2322. _ACEOF
  2323. cat confdefs.h >>conftest.$ac_ext
  2324. cat >>conftest.$ac_ext <<_ACEOF
  2325. /* end confdefs.h. */
  2326. int
  2327. main ()
  2328. {
  2329. ;
  2330. return 0;
  2331. }
  2332. _ACEOF
  2333. rm -f conftest.$ac_objext
  2334. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2335. (eval $ac_compile) 2>conftest.er1
  2336. ac_status=$?
  2337. grep -v '^ *+' conftest.er1 >conftest.err
  2338. rm -f conftest.er1
  2339. cat conftest.err >&5
  2340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2341. (exit $ac_status); } &&
  2342. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2343. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2344. (eval $ac_try) 2>&5
  2345. ac_status=$?
  2346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2347. (exit $ac_status); }; } &&
  2348. { ac_try='test -s conftest.$ac_objext'
  2349. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2350. (eval $ac_try) 2>&5
  2351. ac_status=$?
  2352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2353. (exit $ac_status); }; }; then
  2354. ac_cv_prog_cc_g=yes
  2355. else
  2356. echo "$as_me: failed program was:" >&5
  2357. sed 's/^/| /' conftest.$ac_ext >&5
  2358. ac_cv_prog_cc_g=no
  2359. fi
  2360. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2361. fi
  2362. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2363. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2364. if test "$ac_test_CFLAGS" = set; then
  2365. CFLAGS=$ac_save_CFLAGS
  2366. elif test $ac_cv_prog_cc_g = yes; then
  2367. if test "$GCC" = yes; then
  2368. CFLAGS="-g -O2"
  2369. else
  2370. CFLAGS="-g"
  2371. fi
  2372. else
  2373. if test "$GCC" = yes; then
  2374. CFLAGS="-O2"
  2375. else
  2376. CFLAGS=
  2377. fi
  2378. fi
  2379. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2380. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2381. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2382. echo $ECHO_N "(cached) $ECHO_C" >&6
  2383. else
  2384. ac_cv_prog_cc_stdc=no
  2385. ac_save_CC=$CC
  2386. cat >conftest.$ac_ext <<_ACEOF
  2387. /* confdefs.h. */
  2388. _ACEOF
  2389. cat confdefs.h >>conftest.$ac_ext
  2390. cat >>conftest.$ac_ext <<_ACEOF
  2391. /* end confdefs.h. */
  2392. #include <stdarg.h>
  2393. #include <stdio.h>
  2394. #include <sys/types.h>
  2395. #include <sys/stat.h>
  2396. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2397. struct buf { int x; };
  2398. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2399. static char *e (p, i)
  2400. char **p;
  2401. int i;
  2402. {
  2403. return p[i];
  2404. }
  2405. static char *f (char * (*g) (char **, int), char **p, ...)
  2406. {
  2407. char *s;
  2408. va_list v;
  2409. va_start (v,p);
  2410. s = g (p, va_arg (v,int));
  2411. va_end (v);
  2412. return s;
  2413. }
  2414. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2415. function prototypes and stuff, but not '\xHH' hex character constants.
  2416. These don't provoke an error unfortunately, instead are silently treated
  2417. as 'x'. The following induces an error, until -std1 is added to get
  2418. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2419. array size at least. It's necessary to write '\x00'==0 to get something
  2420. that's true only with -std1. */
  2421. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2422. int test (int i, double x);
  2423. struct s1 {int (*f) (int a);};
  2424. struct s2 {int (*f) (double a);};
  2425. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2426. int argc;
  2427. char **argv;
  2428. int
  2429. main ()
  2430. {
  2431. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2432. ;
  2433. return 0;
  2434. }
  2435. _ACEOF
  2436. # Don't try gcc -ansi; that turns off useful extensions and
  2437. # breaks some systems' header files.
  2438. # AIX -qlanglvl=ansi
  2439. # Ultrix and OSF/1 -std1
  2440. # HP-UX 10.20 and later -Ae
  2441. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2442. # SVR4 -Xc -D__EXTENSIONS__
  2443. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2444. do
  2445. CC="$ac_save_CC $ac_arg"
  2446. rm -f conftest.$ac_objext
  2447. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2448. (eval $ac_compile) 2>conftest.er1
  2449. ac_status=$?
  2450. grep -v '^ *+' conftest.er1 >conftest.err
  2451. rm -f conftest.er1
  2452. cat conftest.err >&5
  2453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2454. (exit $ac_status); } &&
  2455. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2456. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2457. (eval $ac_try) 2>&5
  2458. ac_status=$?
  2459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2460. (exit $ac_status); }; } &&
  2461. { ac_try='test -s conftest.$ac_objext'
  2462. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2463. (eval $ac_try) 2>&5
  2464. ac_status=$?
  2465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2466. (exit $ac_status); }; }; then
  2467. ac_cv_prog_cc_stdc=$ac_arg
  2468. break
  2469. else
  2470. echo "$as_me: failed program was:" >&5
  2471. sed 's/^/| /' conftest.$ac_ext >&5
  2472. fi
  2473. rm -f conftest.err conftest.$ac_objext
  2474. done
  2475. rm -f conftest.$ac_ext conftest.$ac_objext
  2476. CC=$ac_save_CC
  2477. fi
  2478. case "x$ac_cv_prog_cc_stdc" in
  2479. x|xno)
  2480. echo "$as_me:$LINENO: result: none needed" >&5
  2481. echo "${ECHO_T}none needed" >&6 ;;
  2482. *)
  2483. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2484. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2485. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2486. esac
  2487. # Some people use a C++ compiler to compile C. Since we use `exit',
  2488. # in C++ we need to declare it. In case someone uses the same compiler
  2489. # for both compiling C and C++ we need to have the C++ compiler decide
  2490. # the declaration of exit, since it's the most demanding environment.
  2491. cat >conftest.$ac_ext <<_ACEOF
  2492. #ifndef __cplusplus
  2493. choke me
  2494. #endif
  2495. _ACEOF
  2496. rm -f conftest.$ac_objext
  2497. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2498. (eval $ac_compile) 2>conftest.er1
  2499. ac_status=$?
  2500. grep -v '^ *+' conftest.er1 >conftest.err
  2501. rm -f conftest.er1
  2502. cat conftest.err >&5
  2503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2504. (exit $ac_status); } &&
  2505. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2506. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2507. (eval $ac_try) 2>&5
  2508. ac_status=$?
  2509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2510. (exit $ac_status); }; } &&
  2511. { ac_try='test -s conftest.$ac_objext'
  2512. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2513. (eval $ac_try) 2>&5
  2514. ac_status=$?
  2515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2516. (exit $ac_status); }; }; then
  2517. for ac_declaration in \
  2518. '' \
  2519. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2520. 'extern "C" void std::exit (int); using std::exit;' \
  2521. 'extern "C" void exit (int) throw ();' \
  2522. 'extern "C" void exit (int);' \
  2523. 'void exit (int);'
  2524. do
  2525. cat >conftest.$ac_ext <<_ACEOF
  2526. /* confdefs.h. */
  2527. _ACEOF
  2528. cat confdefs.h >>conftest.$ac_ext
  2529. cat >>conftest.$ac_ext <<_ACEOF
  2530. /* end confdefs.h. */
  2531. $ac_declaration
  2532. #include <stdlib.h>
  2533. int
  2534. main ()
  2535. {
  2536. exit (42);
  2537. ;
  2538. return 0;
  2539. }
  2540. _ACEOF
  2541. rm -f conftest.$ac_objext
  2542. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2543. (eval $ac_compile) 2>conftest.er1
  2544. ac_status=$?
  2545. grep -v '^ *+' conftest.er1 >conftest.err
  2546. rm -f conftest.er1
  2547. cat conftest.err >&5
  2548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2549. (exit $ac_status); } &&
  2550. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2552. (eval $ac_try) 2>&5
  2553. ac_status=$?
  2554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2555. (exit $ac_status); }; } &&
  2556. { ac_try='test -s conftest.$ac_objext'
  2557. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2558. (eval $ac_try) 2>&5
  2559. ac_status=$?
  2560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2561. (exit $ac_status); }; }; then
  2562. :
  2563. else
  2564. echo "$as_me: failed program was:" >&5
  2565. sed 's/^/| /' conftest.$ac_ext >&5
  2566. continue
  2567. fi
  2568. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2569. cat >conftest.$ac_ext <<_ACEOF
  2570. /* confdefs.h. */
  2571. _ACEOF
  2572. cat confdefs.h >>conftest.$ac_ext
  2573. cat >>conftest.$ac_ext <<_ACEOF
  2574. /* end confdefs.h. */
  2575. $ac_declaration
  2576. int
  2577. main ()
  2578. {
  2579. exit (42);
  2580. ;
  2581. return 0;
  2582. }
  2583. _ACEOF
  2584. rm -f conftest.$ac_objext
  2585. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2586. (eval $ac_compile) 2>conftest.er1
  2587. ac_status=$?
  2588. grep -v '^ *+' conftest.er1 >conftest.err
  2589. rm -f conftest.er1
  2590. cat conftest.err >&5
  2591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2592. (exit $ac_status); } &&
  2593. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2594. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2595. (eval $ac_try) 2>&5
  2596. ac_status=$?
  2597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2598. (exit $ac_status); }; } &&
  2599. { ac_try='test -s conftest.$ac_objext'
  2600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2601. (eval $ac_try) 2>&5
  2602. ac_status=$?
  2603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2604. (exit $ac_status); }; }; then
  2605. break
  2606. else
  2607. echo "$as_me: failed program was:" >&5
  2608. sed 's/^/| /' conftest.$ac_ext >&5
  2609. fi
  2610. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2611. done
  2612. rm -f conftest*
  2613. if test -n "$ac_declaration"; then
  2614. echo '#ifdef __cplusplus' >>confdefs.h
  2615. echo $ac_declaration >>confdefs.h
  2616. echo '#endif' >>confdefs.h
  2617. fi
  2618. else
  2619. echo "$as_me: failed program was:" >&5
  2620. sed 's/^/| /' conftest.$ac_ext >&5
  2621. fi
  2622. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2623. ac_ext=c
  2624. ac_cpp='$CPP $CPPFLAGS'
  2625. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2626. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2627. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2628. DEPDIR="${am__leading_dot}deps"
  2629. ac_config_commands="$ac_config_commands depfiles"
  2630. am_make=${MAKE-make}
  2631. cat > confinc << 'END'
  2632. am__doit:
  2633. @echo done
  2634. .PHONY: am__doit
  2635. END
  2636. # If we don't find an include directive, just comment out the code.
  2637. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2638. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2639. am__include="#"
  2640. am__quote=
  2641. _am_result=none
  2642. # First try GNU make style include.
  2643. echo "include confinc" > confmf
  2644. # We grep out `Entering directory' and `Leaving directory'
  2645. # messages which can occur if `w' ends up in MAKEFLAGS.
  2646. # In particular we don't look at `^make:' because GNU make might
  2647. # be invoked under some other name (usually "gmake"), in which
  2648. # case it prints its new name instead of `make'.
  2649. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2650. am__include=include
  2651. am__quote=
  2652. _am_result=GNU
  2653. fi
  2654. # Now try BSD make style include.
  2655. if test "$am__include" = "#"; then
  2656. echo '.include "confinc"' > confmf
  2657. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2658. am__include=.include
  2659. am__quote="\""
  2660. _am_result=BSD
  2661. fi
  2662. fi
  2663. echo "$as_me:$LINENO: result: $_am_result" >&5
  2664. echo "${ECHO_T}$_am_result" >&6
  2665. rm -f confinc confmf
  2666. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2667. if test "${enable_dependency_tracking+set}" = set; then
  2668. enableval="$enable_dependency_tracking"
  2669. fi;
  2670. if test "x$enable_dependency_tracking" != xno; then
  2671. am_depcomp="$ac_aux_dir/depcomp"
  2672. AMDEPBACKSLASH='\'
  2673. fi
  2674. if test "x$enable_dependency_tracking" != xno; then
  2675. AMDEP_TRUE=
  2676. AMDEP_FALSE='#'
  2677. else
  2678. AMDEP_TRUE='#'
  2679. AMDEP_FALSE=
  2680. fi
  2681. depcc="$CC" am_compiler_list=
  2682. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2683. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2684. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2685. echo $ECHO_N "(cached) $ECHO_C" >&6
  2686. else
  2687. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2688. # We make a subdir and do the tests there. Otherwise we can end up
  2689. # making bogus files that we don't know about and never remove. For
  2690. # instance it was reported that on HP-UX the gcc test will end up
  2691. # making a dummy file named `D' -- because `-MD' means `put the output
  2692. # in D'.
  2693. mkdir conftest.dir
  2694. # Copy depcomp to subdir because otherwise we won't find it if we're
  2695. # using a relative directory.
  2696. cp "$am_depcomp" conftest.dir
  2697. cd conftest.dir
  2698. # We will build objects and dependencies in a subdirectory because
  2699. # it helps to detect inapplicable dependency modes. For instance
  2700. # both Tru64's cc and ICC support -MD to output dependencies as a
  2701. # side effect of compilation, but ICC will put the dependencies in
  2702. # the current directory while Tru64 will put them in the object
  2703. # directory.
  2704. mkdir sub
  2705. am_cv_CC_dependencies_compiler_type=none
  2706. if test "$am_compiler_list" = ""; then
  2707. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2708. fi
  2709. for depmode in $am_compiler_list; do
  2710. # Setup a source with many dependencies, because some compilers
  2711. # like to wrap large dependency lists on column 80 (with \), and
  2712. # we should not choose a depcomp mode which is confused by this.
  2713. #
  2714. # We need to recreate these files for each test, as the compiler may
  2715. # overwrite some of them when testing with obscure command lines.
  2716. # This happens at least with the AIX C compiler.
  2717. : > sub/conftest.c
  2718. for i in 1 2 3 4 5 6; do
  2719. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2720. : > sub/conftst$i.h
  2721. done
  2722. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2723. case $depmode in
  2724. nosideeffect)
  2725. # after this tag, mechanisms are not by side-effect, so they'll
  2726. # only be used when explicitly requested
  2727. if test "x$enable_dependency_tracking" = xyes; then
  2728. continue
  2729. else
  2730. break
  2731. fi
  2732. ;;
  2733. none) break ;;
  2734. esac
  2735. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2736. # mode. It turns out that the SunPro C++ compiler does not properly
  2737. # handle `-M -o', and we need to detect this.
  2738. if depmode=$depmode \
  2739. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2740. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2741. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2742. >/dev/null 2>conftest.err &&
  2743. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2744. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2745. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2746. # icc doesn't choke on unknown options, it will just issue warnings
  2747. # (even with -Werror). So we grep stderr for any message
  2748. # that says an option was ignored.
  2749. if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  2750. am_cv_CC_dependencies_compiler_type=$depmode
  2751. break
  2752. fi
  2753. fi
  2754. done
  2755. cd ..
  2756. rm -rf conftest.dir
  2757. else
  2758. am_cv_CC_dependencies_compiler_type=none
  2759. fi
  2760. fi
  2761. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  2762. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  2763. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  2764. if
  2765. test "x$enable_dependency_tracking" != xno \
  2766. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  2767. am__fastdepCC_TRUE=
  2768. am__fastdepCC_FALSE='#'
  2769. else
  2770. am__fastdepCC_TRUE='#'
  2771. am__fastdepCC_FALSE=
  2772. fi
  2773. # By default we simply use the C compiler to build assembly code.
  2774. test "${CCAS+set}" = set || CCAS=$CC
  2775. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  2776. if test "$GCC" = yes
  2777. then
  2778. case "$host" in
  2779. *-*-mingw*)
  2780. case "$build" in
  2781. *-*-cygwin*)
  2782. CPPFLAGS="$CPPFLAGS -mno-cygwin"
  2783. LDFLAGS="$LDFLAGS -mno-cygwin"
  2784. ;;
  2785. esac
  2786. esac
  2787. fi
  2788. # Check whether --enable-shared or --disable-shared was given.
  2789. if test "${enable_shared+set}" = set; then
  2790. enableval="$enable_shared"
  2791. p=${PACKAGE-default}
  2792. case $enableval in
  2793. yes) enable_shared=yes ;;
  2794. no) enable_shared=no ;;
  2795. *)
  2796. enable_shared=no
  2797. # Look at the argument we got. We use all the common list separators.
  2798. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2799. for pkg in $enableval; do
  2800. IFS="$lt_save_ifs"
  2801. if test "X$pkg" = "X$p"; then
  2802. enable_shared=yes
  2803. fi
  2804. done
  2805. IFS="$lt_save_ifs"
  2806. ;;
  2807. esac
  2808. else
  2809. enable_shared=yes
  2810. fi;
  2811. # Check whether --enable-static or --disable-static was given.
  2812. if test "${enable_static+set}" = set; then
  2813. enableval="$enable_static"
  2814. p=${PACKAGE-default}
  2815. case $enableval in
  2816. yes) enable_static=yes ;;
  2817. no) enable_static=no ;;
  2818. *)
  2819. enable_static=no
  2820. # Look at the argument we got. We use all the common list separators.
  2821. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2822. for pkg in $enableval; do
  2823. IFS="$lt_save_ifs"
  2824. if test "X$pkg" = "X$p"; then
  2825. enable_static=yes
  2826. fi
  2827. done
  2828. IFS="$lt_save_ifs"
  2829. ;;
  2830. esac
  2831. else
  2832. enable_static=yes
  2833. fi;
  2834. # Check whether --enable-fast-install or --disable-fast-install was given.
  2835. if test "${enable_fast_install+set}" = set; then
  2836. enableval="$enable_fast_install"
  2837. p=${PACKAGE-default}
  2838. case $enableval in
  2839. yes) enable_fast_install=yes ;;
  2840. no) enable_fast_install=no ;;
  2841. *)
  2842. enable_fast_install=no
  2843. # Look at the argument we got. We use all the common list separators.
  2844. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2845. for pkg in $enableval; do
  2846. IFS="$lt_save_ifs"
  2847. if test "X$pkg" = "X$p"; then
  2848. enable_fast_install=yes
  2849. fi
  2850. done
  2851. IFS="$lt_save_ifs"
  2852. ;;
  2853. esac
  2854. else
  2855. enable_fast_install=yes
  2856. fi;
  2857. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  2858. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  2859. if test "${lt_cv_path_SED+set}" = set; then
  2860. echo $ECHO_N "(cached) $ECHO_C" >&6
  2861. else
  2862. # Loop through the user's path and test for sed and gsed.
  2863. # Then use that list of sed's as ones to test for truncation.
  2864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2865. for as_dir in $PATH
  2866. do
  2867. IFS=$as_save_IFS
  2868. test -z "$as_dir" && as_dir=.
  2869. for lt_ac_prog in sed gsed; do
  2870. for ac_exec_ext in '' $ac_executable_extensions; do
  2871. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  2872. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  2873. fi
  2874. done
  2875. done
  2876. done
  2877. lt_ac_max=0
  2878. lt_ac_count=0
  2879. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  2880. # along with /bin/sed that truncates output.
  2881. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  2882. test ! -f $lt_ac_sed && break
  2883. cat /dev/null > conftest.in
  2884. lt_ac_count=0
  2885. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  2886. # Check for GNU sed and select it if it is found.
  2887. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  2888. lt_cv_path_SED=$lt_ac_sed
  2889. break
  2890. fi
  2891. while true; do
  2892. cat conftest.in conftest.in >conftest.tmp
  2893. mv conftest.tmp conftest.in
  2894. cp conftest.in conftest.nl
  2895. echo >>conftest.nl
  2896. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  2897. cmp -s conftest.out conftest.nl || break
  2898. # 10000 chars as input seems more than enough
  2899. test $lt_ac_count -gt 10 && break
  2900. lt_ac_count=`expr $lt_ac_count + 1`
  2901. if test $lt_ac_count -gt $lt_ac_max; then
  2902. lt_ac_max=$lt_ac_count
  2903. lt_cv_path_SED=$lt_ac_sed
  2904. fi
  2905. done
  2906. done
  2907. SED=$lt_cv_path_SED
  2908. fi
  2909. echo "$as_me:$LINENO: result: $SED" >&5
  2910. echo "${ECHO_T}$SED" >&6
  2911. echo "$as_me:$LINENO: checking for egrep" >&5
  2912. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2913. if test "${ac_cv_prog_egrep+set}" = set; then
  2914. echo $ECHO_N "(cached) $ECHO_C" >&6
  2915. else
  2916. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2917. then ac_cv_prog_egrep='grep -E'
  2918. else ac_cv_prog_egrep='egrep'
  2919. fi
  2920. fi
  2921. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2922. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2923. EGREP=$ac_cv_prog_egrep
  2924. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  2925. if test "${with_gnu_ld+set}" = set; then
  2926. withval="$with_gnu_ld"
  2927. test "$withval" = no || with_gnu_ld=yes
  2928. else
  2929. with_gnu_ld=no
  2930. fi;
  2931. ac_prog=ld
  2932. if test "$GCC" = yes; then
  2933. # Check if gcc -print-prog-name=ld gives a path.
  2934. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  2935. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  2936. case $host in
  2937. *-*-mingw*)
  2938. # gcc leaves a trailing carriage return which upsets mingw
  2939. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2940. *)
  2941. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2942. esac
  2943. case $ac_prog in
  2944. # Accept absolute paths.
  2945. [\\/]* | ?:[\\/]*)
  2946. re_direlt='/[^/][^/]*/\.\./'
  2947. # Canonicalize the pathname of ld
  2948. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2949. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2950. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2951. done
  2952. test -z "$LD" && LD="$ac_prog"
  2953. ;;
  2954. "")
  2955. # If it fails, then pretend we aren't using GCC.
  2956. ac_prog=ld
  2957. ;;
  2958. *)
  2959. # If it is relative, then search for the first ld in PATH.
  2960. with_gnu_ld=unknown
  2961. ;;
  2962. esac
  2963. elif test "$with_gnu_ld" = yes; then
  2964. echo "$as_me:$LINENO: checking for GNU ld" >&5
  2965. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  2966. else
  2967. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  2968. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  2969. fi
  2970. if test "${lt_cv_path_LD+set}" = set; then
  2971. echo $ECHO_N "(cached) $ECHO_C" >&6
  2972. else
  2973. if test -z "$LD"; then
  2974. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2975. for ac_dir in $PATH; do
  2976. IFS="$lt_save_ifs"
  2977. test -z "$ac_dir" && ac_dir=.
  2978. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2979. lt_cv_path_LD="$ac_dir/$ac_prog"
  2980. # Check to see if the program is GNU ld. I'd rather use --version,
  2981. # but apparently some GNU ld's only accept -v.
  2982. # Break only if it was the GNU/non-GNU ld that we prefer.
  2983. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2984. *GNU* | *'with BFD'*)
  2985. test "$with_gnu_ld" != no && break
  2986. ;;
  2987. *)
  2988. test "$with_gnu_ld" != yes && break
  2989. ;;
  2990. esac
  2991. fi
  2992. done
  2993. IFS="$lt_save_ifs"
  2994. else
  2995. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2996. fi
  2997. fi
  2998. LD="$lt_cv_path_LD"
  2999. if test -n "$LD"; then
  3000. echo "$as_me:$LINENO: result: $LD" >&5
  3001. echo "${ECHO_T}$LD" >&6
  3002. else
  3003. echo "$as_me:$LINENO: result: no" >&5
  3004. echo "${ECHO_T}no" >&6
  3005. fi
  3006. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3007. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3008. { (exit 1); exit 1; }; }
  3009. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3010. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  3011. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3012. echo $ECHO_N "(cached) $ECHO_C" >&6
  3013. else
  3014. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3015. case `$LD -v 2>&1 </dev/null` in
  3016. *GNU* | *'with BFD'*)
  3017. lt_cv_prog_gnu_ld=yes
  3018. ;;
  3019. *)
  3020. lt_cv_prog_gnu_ld=no
  3021. ;;
  3022. esac
  3023. fi
  3024. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3025. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  3026. with_gnu_ld=$lt_cv_prog_gnu_ld
  3027. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3028. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  3029. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3030. echo $ECHO_N "(cached) $ECHO_C" >&6
  3031. else
  3032. lt_cv_ld_reload_flag='-r'
  3033. fi
  3034. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3035. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  3036. reload_flag=$lt_cv_ld_reload_flag
  3037. case $reload_flag in
  3038. "" | " "*) ;;
  3039. *) reload_flag=" $reload_flag" ;;
  3040. esac
  3041. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3042. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3043. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  3044. if test "${lt_cv_path_NM+set}" = set; then
  3045. echo $ECHO_N "(cached) $ECHO_C" >&6
  3046. else
  3047. if test -n "$NM"; then
  3048. # Let the user override the test.
  3049. lt_cv_path_NM="$NM"
  3050. else
  3051. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3052. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  3053. IFS="$lt_save_ifs"
  3054. test -z "$ac_dir" && ac_dir=.
  3055. tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  3056. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3057. # Check to see if the nm accepts a BSD-compat flag.
  3058. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3059. # nm: unknown option "B" ignored
  3060. # Tru64's nm complains that /dev/null is an invalid object file
  3061. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3062. */dev/null* | *'Invalid file or object type'*)
  3063. lt_cv_path_NM="$tmp_nm -B"
  3064. break
  3065. ;;
  3066. *)
  3067. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3068. */dev/null*)
  3069. lt_cv_path_NM="$tmp_nm -p"
  3070. break
  3071. ;;
  3072. *)
  3073. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3074. continue # so that we can try to find one that supports BSD flags
  3075. ;;
  3076. esac
  3077. esac
  3078. fi
  3079. done
  3080. IFS="$lt_save_ifs"
  3081. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3082. fi
  3083. fi
  3084. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3085. echo "${ECHO_T}$lt_cv_path_NM" >&6
  3086. NM="$lt_cv_path_NM"
  3087. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3088. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  3089. LN_S=$as_ln_s
  3090. if test "$LN_S" = "ln -s"; then
  3091. echo "$as_me:$LINENO: result: yes" >&5
  3092. echo "${ECHO_T}yes" >&6
  3093. else
  3094. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3095. echo "${ECHO_T}no, using $LN_S" >&6
  3096. fi
  3097. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3098. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  3099. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3100. echo $ECHO_N "(cached) $ECHO_C" >&6
  3101. else
  3102. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3103. lt_cv_file_magic_test_file=
  3104. lt_cv_deplibs_check_method='unknown'
  3105. # Need to set the preceding variable on all platforms that support
  3106. # interlibrary dependencies.
  3107. # 'none' -- dependencies not supported.
  3108. # `unknown' -- same as none, but documents that we really don't know.
  3109. # 'pass_all' -- all dependencies passed with no checks.
  3110. # 'test_compile' -- check by making test program.
  3111. # 'file_magic [[regex]]' -- check by looking for files in library path
  3112. # which responds to the $file_magic_cmd with a given extended regex.
  3113. # If you have `file' or equivalent on your system and you're not sure
  3114. # whether `pass_all' will *always* work, you probably want this one.
  3115. case $host_os in
  3116. aix4* | aix5*)
  3117. lt_cv_deplibs_check_method=pass_all
  3118. ;;
  3119. beos*)
  3120. lt_cv_deplibs_check_method=pass_all
  3121. ;;
  3122. bsdi4*)
  3123. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3124. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3125. lt_cv_file_magic_test_file=/shlib/libc.so
  3126. ;;
  3127. cygwin*)
  3128. # win32_libid is a shell function defined in ltmain.sh
  3129. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3130. lt_cv_file_magic_cmd='win32_libid'
  3131. ;;
  3132. mingw* | pw32*)
  3133. # Base MSYS/MinGW do not provide the 'file' command needed by
  3134. # win32_libid shell function, so use a weaker test based on 'objdump'.
  3135. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3136. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3137. ;;
  3138. darwin* | rhapsody*)
  3139. lt_cv_deplibs_check_method=pass_all
  3140. ;;
  3141. freebsd* | kfreebsd*-gnu)
  3142. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3143. case $host_cpu in
  3144. i*86 )
  3145. # Not sure whether the presence of OpenBSD here was a mistake.
  3146. # Let's accept both of them until this is cleared up.
  3147. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  3148. lt_cv_file_magic_cmd=/usr/bin/file
  3149. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3150. ;;
  3151. esac
  3152. else
  3153. lt_cv_deplibs_check_method=pass_all
  3154. fi
  3155. ;;
  3156. gnu*)
  3157. lt_cv_deplibs_check_method=pass_all
  3158. ;;
  3159. hpux10.20* | hpux11*)
  3160. lt_cv_file_magic_cmd=/usr/bin/file
  3161. case "$host_cpu" in
  3162. ia64*)
  3163. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3164. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3165. ;;
  3166. hppa*64*)
  3167. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  3168. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3169. ;;
  3170. *)
  3171. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3172. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3173. ;;
  3174. esac
  3175. ;;
  3176. irix5* | irix6* | nonstopux*)
  3177. case $LD in
  3178. *-32|*"-32 ") libmagic=32-bit;;
  3179. *-n32|*"-n32 ") libmagic=N32;;
  3180. *-64|*"-64 ") libmagic=64-bit;;
  3181. *) libmagic=never-match;;
  3182. esac
  3183. lt_cv_deplibs_check_method=pass_all
  3184. ;;
  3185. # This must be Linux ELF.
  3186. linux*)
  3187. lt_cv_deplibs_check_method=pass_all
  3188. ;;
  3189. netbsd* | knetbsd*-gnu)
  3190. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3191. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3192. else
  3193. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3194. fi
  3195. ;;
  3196. newos6*)
  3197. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3198. lt_cv_file_magic_cmd=/usr/bin/file
  3199. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3200. ;;
  3201. nto-qnx*)
  3202. lt_cv_deplibs_check_method=unknown
  3203. ;;
  3204. openbsd*)
  3205. lt_cv_file_magic_cmd=/usr/bin/file
  3206. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3207. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3208. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  3209. else
  3210. lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  3211. fi
  3212. ;;
  3213. osf3* | osf4* | osf5*)
  3214. lt_cv_deplibs_check_method=pass_all
  3215. ;;
  3216. sco3.2v5*)
  3217. lt_cv_deplibs_check_method=pass_all
  3218. ;;
  3219. solaris*)
  3220. lt_cv_deplibs_check_method=pass_all
  3221. ;;
  3222. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3223. case $host_vendor in
  3224. motorola)
  3225. 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]'
  3226. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3227. ;;
  3228. ncr)
  3229. lt_cv_deplibs_check_method=pass_all
  3230. ;;
  3231. sequent)
  3232. lt_cv_file_magic_cmd='/bin/file'
  3233. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3234. ;;
  3235. sni)
  3236. lt_cv_file_magic_cmd='/bin/file'
  3237. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3238. lt_cv_file_magic_test_file=/lib/libc.so
  3239. ;;
  3240. siemens)
  3241. lt_cv_deplibs_check_method=pass_all
  3242. ;;
  3243. esac
  3244. ;;
  3245. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  3246. lt_cv_deplibs_check_method=pass_all
  3247. ;;
  3248. esac
  3249. fi
  3250. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3251. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  3252. file_magic_cmd=$lt_cv_file_magic_cmd
  3253. deplibs_check_method=$lt_cv_deplibs_check_method
  3254. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3255. # If no C compiler was specified, use CC.
  3256. LTCC=${LTCC-"$CC"}
  3257. # Allow CC to be a program name with arguments.
  3258. compiler=$CC
  3259. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  3260. if test "${enable_libtool_lock+set}" = set; then
  3261. enableval="$enable_libtool_lock"
  3262. fi;
  3263. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3264. # Some flags need to be propagated to the compiler or linker for good
  3265. # libtool support.
  3266. case $host in
  3267. ia64-*-hpux*)
  3268. # Find out which ABI we are using.
  3269. echo 'int i;' > conftest.$ac_ext
  3270. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3271. (eval $ac_compile) 2>&5
  3272. ac_status=$?
  3273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3274. (exit $ac_status); }; then
  3275. case `/usr/bin/file conftest.$ac_objext` in
  3276. *ELF-32*)
  3277. HPUX_IA64_MODE="32"
  3278. ;;
  3279. *ELF-64*)
  3280. HPUX_IA64_MODE="64"
  3281. ;;
  3282. esac
  3283. fi
  3284. rm -rf conftest*
  3285. ;;
  3286. *-*-irix6*)
  3287. # Find out which ABI we are using.
  3288. echo '#line 3683 "configure"' > conftest.$ac_ext
  3289. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3290. (eval $ac_compile) 2>&5
  3291. ac_status=$?
  3292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3293. (exit $ac_status); }; then
  3294. if test "$lt_cv_prog_gnu_ld" = yes; then
  3295. case `/usr/bin/file conftest.$ac_objext` in
  3296. *32-bit*)
  3297. LD="${LD-ld} -melf32bsmip"
  3298. ;;
  3299. *N32*)
  3300. LD="${LD-ld} -melf32bmipn32"
  3301. ;;
  3302. *64-bit*)
  3303. LD="${LD-ld} -melf64bmip"
  3304. ;;
  3305. esac
  3306. else
  3307. case `/usr/bin/file conftest.$ac_objext` in
  3308. *32-bit*)
  3309. LD="${LD-ld} -32"
  3310. ;;
  3311. *N32*)
  3312. LD="${LD-ld} -n32"
  3313. ;;
  3314. *64-bit*)
  3315. LD="${LD-ld} -64"
  3316. ;;
  3317. esac
  3318. fi
  3319. fi
  3320. rm -rf conftest*
  3321. ;;
  3322. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  3323. # Find out which ABI we are using.
  3324. echo 'int i;' > conftest.$ac_ext
  3325. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3326. (eval $ac_compile) 2>&5
  3327. ac_status=$?
  3328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3329. (exit $ac_status); }; then
  3330. case "`/usr/bin/file conftest.o`" in
  3331. *32-bit*)
  3332. case $host in
  3333. x86_64-*linux*)
  3334. LD="${LD-ld} -m elf_i386"
  3335. ;;
  3336. ppc64-*linux*|powerpc64-*linux*)
  3337. LD="${LD-ld} -m elf32ppclinux"
  3338. ;;
  3339. s390x-*linux*)
  3340. LD="${LD-ld} -m elf_s390"
  3341. ;;
  3342. sparc64-*linux*)
  3343. LD="${LD-ld} -m elf32_sparc"
  3344. ;;
  3345. esac
  3346. ;;
  3347. *64-bit*)
  3348. case $host in
  3349. x86_64-*linux*)
  3350. LD="${LD-ld} -m elf_x86_64"
  3351. ;;
  3352. ppc*-*linux*|powerpc*-*linux*)
  3353. LD="${LD-ld} -m elf64ppc"
  3354. ;;
  3355. s390*-*linux*)
  3356. LD="${LD-ld} -m elf64_s390"
  3357. ;;
  3358. sparc*-*linux*)
  3359. LD="${LD-ld} -m elf64_sparc"
  3360. ;;
  3361. esac
  3362. ;;
  3363. esac
  3364. fi
  3365. rm -rf conftest*
  3366. ;;
  3367. *-*-sco3.2v5*)
  3368. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  3369. SAVE_CFLAGS="$CFLAGS"
  3370. CFLAGS="$CFLAGS -belf"
  3371. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  3372. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  3373. if test "${lt_cv_cc_needs_belf+set}" = set; then
  3374. echo $ECHO_N "(cached) $ECHO_C" >&6
  3375. else
  3376. ac_ext=c
  3377. ac_cpp='$CPP $CPPFLAGS'
  3378. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3379. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3380. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3381. cat >conftest.$ac_ext <<_ACEOF
  3382. /* confdefs.h. */
  3383. _ACEOF
  3384. cat confdefs.h >>conftest.$ac_ext
  3385. cat >>conftest.$ac_ext <<_ACEOF
  3386. /* end confdefs.h. */
  3387. int
  3388. main ()
  3389. {
  3390. ;
  3391. return 0;
  3392. }
  3393. _ACEOF
  3394. rm -f conftest.$ac_objext conftest$ac_exeext
  3395. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3396. (eval $ac_link) 2>conftest.er1
  3397. ac_status=$?
  3398. grep -v '^ *+' conftest.er1 >conftest.err
  3399. rm -f conftest.er1
  3400. cat conftest.err >&5
  3401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3402. (exit $ac_status); } &&
  3403. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3404. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3405. (eval $ac_try) 2>&5
  3406. ac_status=$?
  3407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3408. (exit $ac_status); }; } &&
  3409. { ac_try='test -s conftest$ac_exeext'
  3410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3411. (eval $ac_try) 2>&5
  3412. ac_status=$?
  3413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3414. (exit $ac_status); }; }; then
  3415. lt_cv_cc_needs_belf=yes
  3416. else
  3417. echo "$as_me: failed program was:" >&5
  3418. sed 's/^/| /' conftest.$ac_ext >&5
  3419. lt_cv_cc_needs_belf=no
  3420. fi
  3421. rm -f conftest.err conftest.$ac_objext \
  3422. conftest$ac_exeext conftest.$ac_ext
  3423. ac_ext=c
  3424. ac_cpp='$CPP $CPPFLAGS'
  3425. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3426. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3427. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3428. fi
  3429. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  3430. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  3431. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  3432. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  3433. CFLAGS="$SAVE_CFLAGS"
  3434. fi
  3435. ;;
  3436. esac
  3437. need_locks="$enable_libtool_lock"
  3438. ac_ext=c
  3439. ac_cpp='$CPP $CPPFLAGS'
  3440. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3441. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3442. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3443. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3444. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3445. # On Suns, sometimes $CPP names a directory.
  3446. if test -n "$CPP" && test -d "$CPP"; then
  3447. CPP=
  3448. fi
  3449. if test -z "$CPP"; then
  3450. if test "${ac_cv_prog_CPP+set}" = set; then
  3451. echo $ECHO_N "(cached) $ECHO_C" >&6
  3452. else
  3453. # Double quotes because CPP needs to be expanded
  3454. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3455. do
  3456. ac_preproc_ok=false
  3457. for ac_c_preproc_warn_flag in '' yes
  3458. do
  3459. # Use a header file that comes with gcc, so configuring glibc
  3460. # with a fresh cross-compiler works.
  3461. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3462. # <limits.h> exists even on freestanding compilers.
  3463. # On the NeXT, cc -E runs the code through the compiler's parser,
  3464. # not just through cpp. "Syntax error" is here to catch this case.
  3465. cat >conftest.$ac_ext <<_ACEOF
  3466. /* confdefs.h. */
  3467. _ACEOF
  3468. cat confdefs.h >>conftest.$ac_ext
  3469. cat >>conftest.$ac_ext <<_ACEOF
  3470. /* end confdefs.h. */
  3471. #ifdef __STDC__
  3472. # include <limits.h>
  3473. #else
  3474. # include <assert.h>
  3475. #endif
  3476. Syntax error
  3477. _ACEOF
  3478. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3479. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3480. ac_status=$?
  3481. grep -v '^ *+' conftest.er1 >conftest.err
  3482. rm -f conftest.er1
  3483. cat conftest.err >&5
  3484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3485. (exit $ac_status); } >/dev/null; then
  3486. if test -s conftest.err; then
  3487. ac_cpp_err=$ac_c_preproc_warn_flag
  3488. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3489. else
  3490. ac_cpp_err=
  3491. fi
  3492. else
  3493. ac_cpp_err=yes
  3494. fi
  3495. if test -z "$ac_cpp_err"; then
  3496. :
  3497. else
  3498. echo "$as_me: failed program was:" >&5
  3499. sed 's/^/| /' conftest.$ac_ext >&5
  3500. # Broken: fails on valid input.
  3501. continue
  3502. fi
  3503. rm -f conftest.err conftest.$ac_ext
  3504. # OK, works on sane cases. Now check whether non-existent headers
  3505. # can be detected and how.
  3506. cat >conftest.$ac_ext <<_ACEOF
  3507. /* confdefs.h. */
  3508. _ACEOF
  3509. cat confdefs.h >>conftest.$ac_ext
  3510. cat >>conftest.$ac_ext <<_ACEOF
  3511. /* end confdefs.h. */
  3512. #include <ac_nonexistent.h>
  3513. _ACEOF
  3514. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3515. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3516. ac_status=$?
  3517. grep -v '^ *+' conftest.er1 >conftest.err
  3518. rm -f conftest.er1
  3519. cat conftest.err >&5
  3520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3521. (exit $ac_status); } >/dev/null; then
  3522. if test -s conftest.err; then
  3523. ac_cpp_err=$ac_c_preproc_warn_flag
  3524. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3525. else
  3526. ac_cpp_err=
  3527. fi
  3528. else
  3529. ac_cpp_err=yes
  3530. fi
  3531. if test -z "$ac_cpp_err"; then
  3532. # Broken: success on invalid input.
  3533. continue
  3534. else
  3535. echo "$as_me: failed program was:" >&5
  3536. sed 's/^/| /' conftest.$ac_ext >&5
  3537. # Passes both tests.
  3538. ac_preproc_ok=:
  3539. break
  3540. fi
  3541. rm -f conftest.err conftest.$ac_ext
  3542. done
  3543. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3544. rm -f conftest.err conftest.$ac_ext
  3545. if $ac_preproc_ok; then
  3546. break
  3547. fi
  3548. done
  3549. ac_cv_prog_CPP=$CPP
  3550. fi
  3551. CPP=$ac_cv_prog_CPP
  3552. else
  3553. ac_cv_prog_CPP=$CPP
  3554. fi
  3555. echo "$as_me:$LINENO: result: $CPP" >&5
  3556. echo "${ECHO_T}$CPP" >&6
  3557. ac_preproc_ok=false
  3558. for ac_c_preproc_warn_flag in '' yes
  3559. do
  3560. # Use a header file that comes with gcc, so configuring glibc
  3561. # with a fresh cross-compiler works.
  3562. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3563. # <limits.h> exists even on freestanding compilers.
  3564. # On the NeXT, cc -E runs the code through the compiler's parser,
  3565. # not just through cpp. "Syntax error" is here to catch this case.
  3566. cat >conftest.$ac_ext <<_ACEOF
  3567. /* confdefs.h. */
  3568. _ACEOF
  3569. cat confdefs.h >>conftest.$ac_ext
  3570. cat >>conftest.$ac_ext <<_ACEOF
  3571. /* end confdefs.h. */
  3572. #ifdef __STDC__
  3573. # include <limits.h>
  3574. #else
  3575. # include <assert.h>
  3576. #endif
  3577. Syntax error
  3578. _ACEOF
  3579. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3580. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3581. ac_status=$?
  3582. grep -v '^ *+' conftest.er1 >conftest.err
  3583. rm -f conftest.er1
  3584. cat conftest.err >&5
  3585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3586. (exit $ac_status); } >/dev/null; then
  3587. if test -s conftest.err; then
  3588. ac_cpp_err=$ac_c_preproc_warn_flag
  3589. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3590. else
  3591. ac_cpp_err=
  3592. fi
  3593. else
  3594. ac_cpp_err=yes
  3595. fi
  3596. if test -z "$ac_cpp_err"; then
  3597. :
  3598. else
  3599. echo "$as_me: failed program was:" >&5
  3600. sed 's/^/| /' conftest.$ac_ext >&5
  3601. # Broken: fails on valid input.
  3602. continue
  3603. fi
  3604. rm -f conftest.err conftest.$ac_ext
  3605. # OK, works on sane cases. Now check whether non-existent headers
  3606. # can be detected and how.
  3607. cat >conftest.$ac_ext <<_ACEOF
  3608. /* confdefs.h. */
  3609. _ACEOF
  3610. cat confdefs.h >>conftest.$ac_ext
  3611. cat >>conftest.$ac_ext <<_ACEOF
  3612. /* end confdefs.h. */
  3613. #include <ac_nonexistent.h>
  3614. _ACEOF
  3615. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3616. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3617. ac_status=$?
  3618. grep -v '^ *+' conftest.er1 >conftest.err
  3619. rm -f conftest.er1
  3620. cat conftest.err >&5
  3621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3622. (exit $ac_status); } >/dev/null; then
  3623. if test -s conftest.err; then
  3624. ac_cpp_err=$ac_c_preproc_warn_flag
  3625. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3626. else
  3627. ac_cpp_err=
  3628. fi
  3629. else
  3630. ac_cpp_err=yes
  3631. fi
  3632. if test -z "$ac_cpp_err"; then
  3633. # Broken: success on invalid input.
  3634. continue
  3635. else
  3636. echo "$as_me: failed program was:" >&5
  3637. sed 's/^/| /' conftest.$ac_ext >&5
  3638. # Passes both tests.
  3639. ac_preproc_ok=:
  3640. break
  3641. fi
  3642. rm -f conftest.err conftest.$ac_ext
  3643. done
  3644. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3645. rm -f conftest.err conftest.$ac_ext
  3646. if $ac_preproc_ok; then
  3647. :
  3648. else
  3649. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3650. See \`config.log' for more details." >&5
  3651. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3652. See \`config.log' for more details." >&2;}
  3653. { (exit 1); exit 1; }; }
  3654. fi
  3655. ac_ext=c
  3656. ac_cpp='$CPP $CPPFLAGS'
  3657. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3658. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3659. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3660. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3661. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3662. if test "${ac_cv_header_stdc+set}" = set; then
  3663. echo $ECHO_N "(cached) $ECHO_C" >&6
  3664. else
  3665. cat >conftest.$ac_ext <<_ACEOF
  3666. /* confdefs.h. */
  3667. _ACEOF
  3668. cat confdefs.h >>conftest.$ac_ext
  3669. cat >>conftest.$ac_ext <<_ACEOF
  3670. /* end confdefs.h. */
  3671. #include <stdlib.h>
  3672. #include <stdarg.h>
  3673. #include <string.h>
  3674. #include <float.h>
  3675. int
  3676. main ()
  3677. {
  3678. ;
  3679. return 0;
  3680. }
  3681. _ACEOF
  3682. rm -f conftest.$ac_objext
  3683. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3684. (eval $ac_compile) 2>conftest.er1
  3685. ac_status=$?
  3686. grep -v '^ *+' conftest.er1 >conftest.err
  3687. rm -f conftest.er1
  3688. cat conftest.err >&5
  3689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3690. (exit $ac_status); } &&
  3691. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3693. (eval $ac_try) 2>&5
  3694. ac_status=$?
  3695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3696. (exit $ac_status); }; } &&
  3697. { ac_try='test -s conftest.$ac_objext'
  3698. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3699. (eval $ac_try) 2>&5
  3700. ac_status=$?
  3701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3702. (exit $ac_status); }; }; then
  3703. ac_cv_header_stdc=yes
  3704. else
  3705. echo "$as_me: failed program was:" >&5
  3706. sed 's/^/| /' conftest.$ac_ext >&5
  3707. ac_cv_header_stdc=no
  3708. fi
  3709. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3710. if test $ac_cv_header_stdc = yes; then
  3711. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3712. cat >conftest.$ac_ext <<_ACEOF
  3713. /* confdefs.h. */
  3714. _ACEOF
  3715. cat confdefs.h >>conftest.$ac_ext
  3716. cat >>conftest.$ac_ext <<_ACEOF
  3717. /* end confdefs.h. */
  3718. #include <string.h>
  3719. _ACEOF
  3720. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3721. $EGREP "memchr" >/dev/null 2>&1; then
  3722. :
  3723. else
  3724. ac_cv_header_stdc=no
  3725. fi
  3726. rm -f conftest*
  3727. fi
  3728. if test $ac_cv_header_stdc = yes; then
  3729. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3730. cat >conftest.$ac_ext <<_ACEOF
  3731. /* confdefs.h. */
  3732. _ACEOF
  3733. cat confdefs.h >>conftest.$ac_ext
  3734. cat >>conftest.$ac_ext <<_ACEOF
  3735. /* end confdefs.h. */
  3736. #include <stdlib.h>
  3737. _ACEOF
  3738. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3739. $EGREP "free" >/dev/null 2>&1; then
  3740. :
  3741. else
  3742. ac_cv_header_stdc=no
  3743. fi
  3744. rm -f conftest*
  3745. fi
  3746. if test $ac_cv_header_stdc = yes; then
  3747. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3748. if test "$cross_compiling" = yes; then
  3749. :
  3750. else
  3751. cat >conftest.$ac_ext <<_ACEOF
  3752. /* confdefs.h. */
  3753. _ACEOF
  3754. cat confdefs.h >>conftest.$ac_ext
  3755. cat >>conftest.$ac_ext <<_ACEOF
  3756. /* end confdefs.h. */
  3757. #include <ctype.h>
  3758. #if ((' ' & 0x0FF) == 0x020)
  3759. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3760. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3761. #else
  3762. # define ISLOWER(c) \
  3763. (('a' <= (c) && (c) <= 'i') \
  3764. || ('j' <= (c) && (c) <= 'r') \
  3765. || ('s' <= (c) && (c) <= 'z'))
  3766. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3767. #endif
  3768. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3769. int
  3770. main ()
  3771. {
  3772. int i;
  3773. for (i = 0; i < 256; i++)
  3774. if (XOR (islower (i), ISLOWER (i))
  3775. || toupper (i) != TOUPPER (i))
  3776. exit(2);
  3777. exit (0);
  3778. }
  3779. _ACEOF
  3780. rm -f conftest$ac_exeext
  3781. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3782. (eval $ac_link) 2>&5
  3783. ac_status=$?
  3784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3785. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3786. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3787. (eval $ac_try) 2>&5
  3788. ac_status=$?
  3789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3790. (exit $ac_status); }; }; then
  3791. :
  3792. else
  3793. echo "$as_me: program exited with status $ac_status" >&5
  3794. echo "$as_me: failed program was:" >&5
  3795. sed 's/^/| /' conftest.$ac_ext >&5
  3796. ( exit $ac_status )
  3797. ac_cv_header_stdc=no
  3798. fi
  3799. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3800. fi
  3801. fi
  3802. fi
  3803. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3804. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3805. if test $ac_cv_header_stdc = yes; then
  3806. cat >>confdefs.h <<\_ACEOF
  3807. #define STDC_HEADERS 1
  3808. _ACEOF
  3809. fi
  3810. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3811. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3812. inttypes.h stdint.h unistd.h
  3813. do
  3814. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3815. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3816. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3817. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3818. echo $ECHO_N "(cached) $ECHO_C" >&6
  3819. else
  3820. cat >conftest.$ac_ext <<_ACEOF
  3821. /* confdefs.h. */
  3822. _ACEOF
  3823. cat confdefs.h >>conftest.$ac_ext
  3824. cat >>conftest.$ac_ext <<_ACEOF
  3825. /* end confdefs.h. */
  3826. $ac_includes_default
  3827. #include <$ac_header>
  3828. _ACEOF
  3829. rm -f conftest.$ac_objext
  3830. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3831. (eval $ac_compile) 2>conftest.er1
  3832. ac_status=$?
  3833. grep -v '^ *+' conftest.er1 >conftest.err
  3834. rm -f conftest.er1
  3835. cat conftest.err >&5
  3836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3837. (exit $ac_status); } &&
  3838. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3839. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3840. (eval $ac_try) 2>&5
  3841. ac_status=$?
  3842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3843. (exit $ac_status); }; } &&
  3844. { ac_try='test -s conftest.$ac_objext'
  3845. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3846. (eval $ac_try) 2>&5
  3847. ac_status=$?
  3848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3849. (exit $ac_status); }; }; then
  3850. eval "$as_ac_Header=yes"
  3851. else
  3852. echo "$as_me: failed program was:" >&5
  3853. sed 's/^/| /' conftest.$ac_ext >&5
  3854. eval "$as_ac_Header=no"
  3855. fi
  3856. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3857. fi
  3858. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3859. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3860. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3861. cat >>confdefs.h <<_ACEOF
  3862. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3863. _ACEOF
  3864. fi
  3865. done
  3866. for ac_header in dlfcn.h
  3867. do
  3868. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3869. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3870. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3871. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3872. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3873. echo $ECHO_N "(cached) $ECHO_C" >&6
  3874. fi
  3875. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3876. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3877. else
  3878. # Is the header compilable?
  3879. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3880. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3881. cat >conftest.$ac_ext <<_ACEOF
  3882. /* confdefs.h. */
  3883. _ACEOF
  3884. cat confdefs.h >>conftest.$ac_ext
  3885. cat >>conftest.$ac_ext <<_ACEOF
  3886. /* end confdefs.h. */
  3887. $ac_includes_default
  3888. #include <$ac_header>
  3889. _ACEOF
  3890. rm -f conftest.$ac_objext
  3891. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3892. (eval $ac_compile) 2>conftest.er1
  3893. ac_status=$?
  3894. grep -v '^ *+' conftest.er1 >conftest.err
  3895. rm -f conftest.er1
  3896. cat conftest.err >&5
  3897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3898. (exit $ac_status); } &&
  3899. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3900. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3901. (eval $ac_try) 2>&5
  3902. ac_status=$?
  3903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3904. (exit $ac_status); }; } &&
  3905. { ac_try='test -s conftest.$ac_objext'
  3906. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3907. (eval $ac_try) 2>&5
  3908. ac_status=$?
  3909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3910. (exit $ac_status); }; }; then
  3911. ac_header_compiler=yes
  3912. else
  3913. echo "$as_me: failed program was:" >&5
  3914. sed 's/^/| /' conftest.$ac_ext >&5
  3915. ac_header_compiler=no
  3916. fi
  3917. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3918. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3919. echo "${ECHO_T}$ac_header_compiler" >&6
  3920. # Is the header present?
  3921. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3922. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3923. cat >conftest.$ac_ext <<_ACEOF
  3924. /* confdefs.h. */
  3925. _ACEOF
  3926. cat confdefs.h >>conftest.$ac_ext
  3927. cat >>conftest.$ac_ext <<_ACEOF
  3928. /* end confdefs.h. */
  3929. #include <$ac_header>
  3930. _ACEOF
  3931. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3932. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3933. ac_status=$?
  3934. grep -v '^ *+' conftest.er1 >conftest.err
  3935. rm -f conftest.er1
  3936. cat conftest.err >&5
  3937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3938. (exit $ac_status); } >/dev/null; then
  3939. if test -s conftest.err; then
  3940. ac_cpp_err=$ac_c_preproc_warn_flag
  3941. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3942. else
  3943. ac_cpp_err=
  3944. fi
  3945. else
  3946. ac_cpp_err=yes
  3947. fi
  3948. if test -z "$ac_cpp_err"; then
  3949. ac_header_preproc=yes
  3950. else
  3951. echo "$as_me: failed program was:" >&5
  3952. sed 's/^/| /' conftest.$ac_ext >&5
  3953. ac_header_preproc=no
  3954. fi
  3955. rm -f conftest.err conftest.$ac_ext
  3956. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3957. echo "${ECHO_T}$ac_header_preproc" >&6
  3958. # So? What about this header?
  3959. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3960. yes:no: )
  3961. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3962. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3963. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3964. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3965. ac_header_preproc=yes
  3966. ;;
  3967. no:yes:* )
  3968. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3969. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3970. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3971. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3972. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3973. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3974. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3975. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3976. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3977. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3978. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3979. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3980. (
  3981. cat <<\_ASBOX
  3982. ## ----------------------------------- ##
  3983. ## Report this to [email protected] ##
  3984. ## ----------------------------------- ##
  3985. _ASBOX
  3986. ) |
  3987. sed "s/^/$as_me: WARNING: /" >&2
  3988. ;;
  3989. esac
  3990. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3991. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3992. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3993. echo $ECHO_N "(cached) $ECHO_C" >&6
  3994. else
  3995. eval "$as_ac_Header=\$ac_header_preproc"
  3996. fi
  3997. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3998. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3999. fi
  4000. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4001. cat >>confdefs.h <<_ACEOF
  4002. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4003. _ACEOF
  4004. fi
  4005. done
  4006. ac_ext=cc
  4007. ac_cpp='$CXXCPP $CPPFLAGS'
  4008. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4009. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4010. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4011. if test -n "$ac_tool_prefix"; then
  4012. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  4013. do
  4014. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4015. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4016. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4017. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4018. if test "${ac_cv_prog_CXX+set}" = set; then
  4019. echo $ECHO_N "(cached) $ECHO_C" >&6
  4020. else
  4021. if test -n "$CXX"; then
  4022. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4023. else
  4024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4025. for as_dir in $PATH
  4026. do
  4027. IFS=$as_save_IFS
  4028. test -z "$as_dir" && as_dir=.
  4029. for ac_exec_ext in '' $ac_executable_extensions; do
  4030. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4031. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4032. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4033. break 2
  4034. fi
  4035. done
  4036. done
  4037. fi
  4038. fi
  4039. CXX=$ac_cv_prog_CXX
  4040. if test -n "$CXX"; then
  4041. echo "$as_me:$LINENO: result: $CXX" >&5
  4042. echo "${ECHO_T}$CXX" >&6
  4043. else
  4044. echo "$as_me:$LINENO: result: no" >&5
  4045. echo "${ECHO_T}no" >&6
  4046. fi
  4047. test -n "$CXX" && break
  4048. done
  4049. fi
  4050. if test -z "$CXX"; then
  4051. ac_ct_CXX=$CXX
  4052. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  4053. do
  4054. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4055. set dummy $ac_prog; ac_word=$2
  4056. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4057. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4058. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4059. echo $ECHO_N "(cached) $ECHO_C" >&6
  4060. else
  4061. if test -n "$ac_ct_CXX"; then
  4062. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4063. else
  4064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4065. for as_dir in $PATH
  4066. do
  4067. IFS=$as_save_IFS
  4068. test -z "$as_dir" && as_dir=.
  4069. for ac_exec_ext in '' $ac_executable_extensions; do
  4070. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4071. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4072. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4073. break 2
  4074. fi
  4075. done
  4076. done
  4077. fi
  4078. fi
  4079. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4080. if test -n "$ac_ct_CXX"; then
  4081. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4082. echo "${ECHO_T}$ac_ct_CXX" >&6
  4083. else
  4084. echo "$as_me:$LINENO: result: no" >&5
  4085. echo "${ECHO_T}no" >&6
  4086. fi
  4087. test -n "$ac_ct_CXX" && break
  4088. done
  4089. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  4090. CXX=$ac_ct_CXX
  4091. fi
  4092. # Provide some information about the compiler.
  4093. echo "$as_me:$LINENO:" \
  4094. "checking for C++ compiler version" >&5
  4095. ac_compiler=`set X $ac_compile; echo $2`
  4096. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4097. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4098. ac_status=$?
  4099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4100. (exit $ac_status); }
  4101. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4102. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4103. ac_status=$?
  4104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4105. (exit $ac_status); }
  4106. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4107. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4108. ac_status=$?
  4109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4110. (exit $ac_status); }
  4111. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4112. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  4113. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4114. echo $ECHO_N "(cached) $ECHO_C" >&6
  4115. else
  4116. cat >conftest.$ac_ext <<_ACEOF
  4117. /* confdefs.h. */
  4118. _ACEOF
  4119. cat confdefs.h >>conftest.$ac_ext
  4120. cat >>conftest.$ac_ext <<_ACEOF
  4121. /* end confdefs.h. */
  4122. int
  4123. main ()
  4124. {
  4125. #ifndef __GNUC__
  4126. choke me
  4127. #endif
  4128. ;
  4129. return 0;
  4130. }
  4131. _ACEOF
  4132. rm -f conftest.$ac_objext
  4133. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4134. (eval $ac_compile) 2>conftest.er1
  4135. ac_status=$?
  4136. grep -v '^ *+' conftest.er1 >conftest.err
  4137. rm -f conftest.er1
  4138. cat conftest.err >&5
  4139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4140. (exit $ac_status); } &&
  4141. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4142. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4143. (eval $ac_try) 2>&5
  4144. ac_status=$?
  4145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4146. (exit $ac_status); }; } &&
  4147. { ac_try='test -s conftest.$ac_objext'
  4148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4149. (eval $ac_try) 2>&5
  4150. ac_status=$?
  4151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4152. (exit $ac_status); }; }; then
  4153. ac_compiler_gnu=yes
  4154. else
  4155. echo "$as_me: failed program was:" >&5
  4156. sed 's/^/| /' conftest.$ac_ext >&5
  4157. ac_compiler_gnu=no
  4158. fi
  4159. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4160. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4161. fi
  4162. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  4163. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  4164. GXX=`test $ac_compiler_gnu = yes && echo yes`
  4165. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4166. ac_save_CXXFLAGS=$CXXFLAGS
  4167. CXXFLAGS="-g"
  4168. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  4169. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  4170. if test "${ac_cv_prog_cxx_g+set}" = set; then
  4171. echo $ECHO_N "(cached) $ECHO_C" >&6
  4172. else
  4173. cat >conftest.$ac_ext <<_ACEOF
  4174. /* confdefs.h. */
  4175. _ACEOF
  4176. cat confdefs.h >>conftest.$ac_ext
  4177. cat >>conftest.$ac_ext <<_ACEOF
  4178. /* end confdefs.h. */
  4179. int
  4180. main ()
  4181. {
  4182. ;
  4183. return 0;
  4184. }
  4185. _ACEOF
  4186. rm -f conftest.$ac_objext
  4187. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4188. (eval $ac_compile) 2>conftest.er1
  4189. ac_status=$?
  4190. grep -v '^ *+' conftest.er1 >conftest.err
  4191. rm -f conftest.er1
  4192. cat conftest.err >&5
  4193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4194. (exit $ac_status); } &&
  4195. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4196. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4197. (eval $ac_try) 2>&5
  4198. ac_status=$?
  4199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4200. (exit $ac_status); }; } &&
  4201. { ac_try='test -s conftest.$ac_objext'
  4202. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4203. (eval $ac_try) 2>&5
  4204. ac_status=$?
  4205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4206. (exit $ac_status); }; }; then
  4207. ac_cv_prog_cxx_g=yes
  4208. else
  4209. echo "$as_me: failed program was:" >&5
  4210. sed 's/^/| /' conftest.$ac_ext >&5
  4211. ac_cv_prog_cxx_g=no
  4212. fi
  4213. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4214. fi
  4215. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  4216. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  4217. if test "$ac_test_CXXFLAGS" = set; then
  4218. CXXFLAGS=$ac_save_CXXFLAGS
  4219. elif test $ac_cv_prog_cxx_g = yes; then
  4220. if test "$GXX" = yes; then
  4221. CXXFLAGS="-g -O2"
  4222. else
  4223. CXXFLAGS="-g"
  4224. fi
  4225. else
  4226. if test "$GXX" = yes; then
  4227. CXXFLAGS="-O2"
  4228. else
  4229. CXXFLAGS=
  4230. fi
  4231. fi
  4232. for ac_declaration in \
  4233. '' \
  4234. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  4235. 'extern "C" void std::exit (int); using std::exit;' \
  4236. 'extern "C" void exit (int) throw ();' \
  4237. 'extern "C" void exit (int);' \
  4238. 'void exit (int);'
  4239. do
  4240. cat >conftest.$ac_ext <<_ACEOF
  4241. /* confdefs.h. */
  4242. _ACEOF
  4243. cat confdefs.h >>conftest.$ac_ext
  4244. cat >>conftest.$ac_ext <<_ACEOF
  4245. /* end confdefs.h. */
  4246. $ac_declaration
  4247. #include <stdlib.h>
  4248. int
  4249. main ()
  4250. {
  4251. exit (42);
  4252. ;
  4253. return 0;
  4254. }
  4255. _ACEOF
  4256. rm -f conftest.$ac_objext
  4257. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4258. (eval $ac_compile) 2>conftest.er1
  4259. ac_status=$?
  4260. grep -v '^ *+' conftest.er1 >conftest.err
  4261. rm -f conftest.er1
  4262. cat conftest.err >&5
  4263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4264. (exit $ac_status); } &&
  4265. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4266. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4267. (eval $ac_try) 2>&5
  4268. ac_status=$?
  4269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4270. (exit $ac_status); }; } &&
  4271. { ac_try='test -s conftest.$ac_objext'
  4272. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4273. (eval $ac_try) 2>&5
  4274. ac_status=$?
  4275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4276. (exit $ac_status); }; }; then
  4277. :
  4278. else
  4279. echo "$as_me: failed program was:" >&5
  4280. sed 's/^/| /' conftest.$ac_ext >&5
  4281. continue
  4282. fi
  4283. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4284. cat >conftest.$ac_ext <<_ACEOF
  4285. /* confdefs.h. */
  4286. _ACEOF
  4287. cat confdefs.h >>conftest.$ac_ext
  4288. cat >>conftest.$ac_ext <<_ACEOF
  4289. /* end confdefs.h. */
  4290. $ac_declaration
  4291. int
  4292. main ()
  4293. {
  4294. exit (42);
  4295. ;
  4296. return 0;
  4297. }
  4298. _ACEOF
  4299. rm -f conftest.$ac_objext
  4300. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4301. (eval $ac_compile) 2>conftest.er1
  4302. ac_status=$?
  4303. grep -v '^ *+' conftest.er1 >conftest.err
  4304. rm -f conftest.er1
  4305. cat conftest.err >&5
  4306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4307. (exit $ac_status); } &&
  4308. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4309. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4310. (eval $ac_try) 2>&5
  4311. ac_status=$?
  4312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4313. (exit $ac_status); }; } &&
  4314. { ac_try='test -s conftest.$ac_objext'
  4315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4316. (eval $ac_try) 2>&5
  4317. ac_status=$?
  4318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4319. (exit $ac_status); }; }; then
  4320. break
  4321. else
  4322. echo "$as_me: failed program was:" >&5
  4323. sed 's/^/| /' conftest.$ac_ext >&5
  4324. fi
  4325. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4326. done
  4327. rm -f conftest*
  4328. if test -n "$ac_declaration"; then
  4329. echo '#ifdef __cplusplus' >>confdefs.h
  4330. echo $ac_declaration >>confdefs.h
  4331. echo '#endif' >>confdefs.h
  4332. fi
  4333. ac_ext=cc
  4334. ac_cpp='$CXXCPP $CPPFLAGS'
  4335. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4336. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4337. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4338. depcc="$CXX" am_compiler_list=
  4339. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4340. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  4341. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  4342. echo $ECHO_N "(cached) $ECHO_C" >&6
  4343. else
  4344. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4345. # We make a subdir and do the tests there. Otherwise we can end up
  4346. # making bogus files that we don't know about and never remove. For
  4347. # instance it was reported that on HP-UX the gcc test will end up
  4348. # making a dummy file named `D' -- because `-MD' means `put the output
  4349. # in D'.
  4350. mkdir conftest.dir
  4351. # Copy depcomp to subdir because otherwise we won't find it if we're
  4352. # using a relative directory.
  4353. cp "$am_depcomp" conftest.dir
  4354. cd conftest.dir
  4355. # We will build objects and dependencies in a subdirectory because
  4356. # it helps to detect inapplicable dependency modes. For instance
  4357. # both Tru64's cc and ICC support -MD to output dependencies as a
  4358. # side effect of compilation, but ICC will put the dependencies in
  4359. # the current directory while Tru64 will put them in the object
  4360. # directory.
  4361. mkdir sub
  4362. am_cv_CXX_dependencies_compiler_type=none
  4363. if test "$am_compiler_list" = ""; then
  4364. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4365. fi
  4366. for depmode in $am_compiler_list; do
  4367. # Setup a source with many dependencies, because some compilers
  4368. # like to wrap large dependency lists on column 80 (with \), and
  4369. # we should not choose a depcomp mode which is confused by this.
  4370. #
  4371. # We need to recreate these files for each test, as the compiler may
  4372. # overwrite some of them when testing with obscure command lines.
  4373. # This happens at least with the AIX C compiler.
  4374. : > sub/conftest.c
  4375. for i in 1 2 3 4 5 6; do
  4376. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4377. : > sub/conftst$i.h
  4378. done
  4379. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4380. case $depmode in
  4381. nosideeffect)
  4382. # after this tag, mechanisms are not by side-effect, so they'll
  4383. # only be used when explicitly requested
  4384. if test "x$enable_dependency_tracking" = xyes; then
  4385. continue
  4386. else
  4387. break
  4388. fi
  4389. ;;
  4390. none) break ;;
  4391. esac
  4392. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4393. # mode. It turns out that the SunPro C++ compiler does not properly
  4394. # handle `-M -o', and we need to detect this.
  4395. if depmode=$depmode \
  4396. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4397. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4398. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4399. >/dev/null 2>conftest.err &&
  4400. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4401. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4402. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4403. # icc doesn't choke on unknown options, it will just issue warnings
  4404. # (even with -Werror). So we grep stderr for any message
  4405. # that says an option was ignored.
  4406. if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  4407. am_cv_CXX_dependencies_compiler_type=$depmode
  4408. break
  4409. fi
  4410. fi
  4411. done
  4412. cd ..
  4413. rm -rf conftest.dir
  4414. else
  4415. am_cv_CXX_dependencies_compiler_type=none
  4416. fi
  4417. fi
  4418. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4419. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  4420. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4421. if
  4422. test "x$enable_dependency_tracking" != xno \
  4423. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4424. am__fastdepCXX_TRUE=
  4425. am__fastdepCXX_FALSE='#'
  4426. else
  4427. am__fastdepCXX_TRUE='#'
  4428. am__fastdepCXX_FALSE=
  4429. fi
  4430. ac_ext=cc
  4431. ac_cpp='$CXXCPP $CPPFLAGS'
  4432. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4433. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4434. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4435. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4436. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  4437. if test -z "$CXXCPP"; then
  4438. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4439. echo $ECHO_N "(cached) $ECHO_C" >&6
  4440. else
  4441. # Double quotes because CXXCPP needs to be expanded
  4442. for CXXCPP in "$CXX -E" "/lib/cpp"
  4443. do
  4444. ac_preproc_ok=false
  4445. for ac_cxx_preproc_warn_flag in '' yes
  4446. do
  4447. # Use a header file that comes with gcc, so configuring glibc
  4448. # with a fresh cross-compiler works.
  4449. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4450. # <limits.h> exists even on freestanding compilers.
  4451. # On the NeXT, cc -E runs the code through the compiler's parser,
  4452. # not just through cpp. "Syntax error" is here to catch this case.
  4453. cat >conftest.$ac_ext <<_ACEOF
  4454. /* confdefs.h. */
  4455. _ACEOF
  4456. cat confdefs.h >>conftest.$ac_ext
  4457. cat >>conftest.$ac_ext <<_ACEOF
  4458. /* end confdefs.h. */
  4459. #ifdef __STDC__
  4460. # include <limits.h>
  4461. #else
  4462. # include <assert.h>
  4463. #endif
  4464. Syntax error
  4465. _ACEOF
  4466. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4467. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4468. ac_status=$?
  4469. grep -v '^ *+' conftest.er1 >conftest.err
  4470. rm -f conftest.er1
  4471. cat conftest.err >&5
  4472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4473. (exit $ac_status); } >/dev/null; then
  4474. if test -s conftest.err; then
  4475. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4476. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4477. else
  4478. ac_cpp_err=
  4479. fi
  4480. else
  4481. ac_cpp_err=yes
  4482. fi
  4483. if test -z "$ac_cpp_err"; then
  4484. :
  4485. else
  4486. echo "$as_me: failed program was:" >&5
  4487. sed 's/^/| /' conftest.$ac_ext >&5
  4488. # Broken: fails on valid input.
  4489. continue
  4490. fi
  4491. rm -f conftest.err conftest.$ac_ext
  4492. # OK, works on sane cases. Now check whether non-existent headers
  4493. # can be detected and how.
  4494. cat >conftest.$ac_ext <<_ACEOF
  4495. /* confdefs.h. */
  4496. _ACEOF
  4497. cat confdefs.h >>conftest.$ac_ext
  4498. cat >>conftest.$ac_ext <<_ACEOF
  4499. /* end confdefs.h. */
  4500. #include <ac_nonexistent.h>
  4501. _ACEOF
  4502. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4503. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4504. ac_status=$?
  4505. grep -v '^ *+' conftest.er1 >conftest.err
  4506. rm -f conftest.er1
  4507. cat conftest.err >&5
  4508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4509. (exit $ac_status); } >/dev/null; then
  4510. if test -s conftest.err; then
  4511. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4512. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4513. else
  4514. ac_cpp_err=
  4515. fi
  4516. else
  4517. ac_cpp_err=yes
  4518. fi
  4519. if test -z "$ac_cpp_err"; then
  4520. # Broken: success on invalid input.
  4521. continue
  4522. else
  4523. echo "$as_me: failed program was:" >&5
  4524. sed 's/^/| /' conftest.$ac_ext >&5
  4525. # Passes both tests.
  4526. ac_preproc_ok=:
  4527. break
  4528. fi
  4529. rm -f conftest.err conftest.$ac_ext
  4530. done
  4531. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4532. rm -f conftest.err conftest.$ac_ext
  4533. if $ac_preproc_ok; then
  4534. break
  4535. fi
  4536. done
  4537. ac_cv_prog_CXXCPP=$CXXCPP
  4538. fi
  4539. CXXCPP=$ac_cv_prog_CXXCPP
  4540. else
  4541. ac_cv_prog_CXXCPP=$CXXCPP
  4542. fi
  4543. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4544. echo "${ECHO_T}$CXXCPP" >&6
  4545. ac_preproc_ok=false
  4546. for ac_cxx_preproc_warn_flag in '' yes
  4547. do
  4548. # Use a header file that comes with gcc, so configuring glibc
  4549. # with a fresh cross-compiler works.
  4550. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4551. # <limits.h> exists even on freestanding compilers.
  4552. # On the NeXT, cc -E runs the code through the compiler's parser,
  4553. # not just through cpp. "Syntax error" is here to catch this case.
  4554. cat >conftest.$ac_ext <<_ACEOF
  4555. /* confdefs.h. */
  4556. _ACEOF
  4557. cat confdefs.h >>conftest.$ac_ext
  4558. cat >>conftest.$ac_ext <<_ACEOF
  4559. /* end confdefs.h. */
  4560. #ifdef __STDC__
  4561. # include <limits.h>
  4562. #else
  4563. # include <assert.h>
  4564. #endif
  4565. Syntax error
  4566. _ACEOF
  4567. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4568. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4569. ac_status=$?
  4570. grep -v '^ *+' conftest.er1 >conftest.err
  4571. rm -f conftest.er1
  4572. cat conftest.err >&5
  4573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4574. (exit $ac_status); } >/dev/null; then
  4575. if test -s conftest.err; then
  4576. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4577. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4578. else
  4579. ac_cpp_err=
  4580. fi
  4581. else
  4582. ac_cpp_err=yes
  4583. fi
  4584. if test -z "$ac_cpp_err"; then
  4585. :
  4586. else
  4587. echo "$as_me: failed program was:" >&5
  4588. sed 's/^/| /' conftest.$ac_ext >&5
  4589. # Broken: fails on valid input.
  4590. continue
  4591. fi
  4592. rm -f conftest.err conftest.$ac_ext
  4593. # OK, works on sane cases. Now check whether non-existent headers
  4594. # can be detected and how.
  4595. cat >conftest.$ac_ext <<_ACEOF
  4596. /* confdefs.h. */
  4597. _ACEOF
  4598. cat confdefs.h >>conftest.$ac_ext
  4599. cat >>conftest.$ac_ext <<_ACEOF
  4600. /* end confdefs.h. */
  4601. #include <ac_nonexistent.h>
  4602. _ACEOF
  4603. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4604. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4605. ac_status=$?
  4606. grep -v '^ *+' conftest.er1 >conftest.err
  4607. rm -f conftest.er1
  4608. cat conftest.err >&5
  4609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4610. (exit $ac_status); } >/dev/null; then
  4611. if test -s conftest.err; then
  4612. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4613. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4614. else
  4615. ac_cpp_err=
  4616. fi
  4617. else
  4618. ac_cpp_err=yes
  4619. fi
  4620. if test -z "$ac_cpp_err"; then
  4621. # Broken: success on invalid input.
  4622. continue
  4623. else
  4624. echo "$as_me: failed program was:" >&5
  4625. sed 's/^/| /' conftest.$ac_ext >&5
  4626. # Passes both tests.
  4627. ac_preproc_ok=:
  4628. break
  4629. fi
  4630. rm -f conftest.err conftest.$ac_ext
  4631. done
  4632. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4633. rm -f conftest.err conftest.$ac_ext
  4634. if $ac_preproc_ok; then
  4635. :
  4636. else
  4637. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4638. See \`config.log' for more details." >&5
  4639. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4640. See \`config.log' for more details." >&2;}
  4641. { (exit 1); exit 1; }; }
  4642. fi
  4643. ac_ext=cc
  4644. ac_cpp='$CXXCPP $CPPFLAGS'
  4645. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4646. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4647. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4648. ac_ext=f
  4649. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4650. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4651. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4652. if test -n "$ac_tool_prefix"; then
  4653. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4654. do
  4655. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4656. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4657. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4658. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4659. if test "${ac_cv_prog_F77+set}" = set; then
  4660. echo $ECHO_N "(cached) $ECHO_C" >&6
  4661. else
  4662. if test -n "$F77"; then
  4663. ac_cv_prog_F77="$F77" # Let the user override the test.
  4664. else
  4665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4666. for as_dir in $PATH
  4667. do
  4668. IFS=$as_save_IFS
  4669. test -z "$as_dir" && as_dir=.
  4670. for ac_exec_ext in '' $ac_executable_extensions; do
  4671. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4672. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4673. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4674. break 2
  4675. fi
  4676. done
  4677. done
  4678. fi
  4679. fi
  4680. F77=$ac_cv_prog_F77
  4681. if test -n "$F77"; then
  4682. echo "$as_me:$LINENO: result: $F77" >&5
  4683. echo "${ECHO_T}$F77" >&6
  4684. else
  4685. echo "$as_me:$LINENO: result: no" >&5
  4686. echo "${ECHO_T}no" >&6
  4687. fi
  4688. test -n "$F77" && break
  4689. done
  4690. fi
  4691. if test -z "$F77"; then
  4692. ac_ct_F77=$F77
  4693. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4694. do
  4695. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4696. set dummy $ac_prog; ac_word=$2
  4697. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4698. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4699. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4700. echo $ECHO_N "(cached) $ECHO_C" >&6
  4701. else
  4702. if test -n "$ac_ct_F77"; then
  4703. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4704. else
  4705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4706. for as_dir in $PATH
  4707. do
  4708. IFS=$as_save_IFS
  4709. test -z "$as_dir" && as_dir=.
  4710. for ac_exec_ext in '' $ac_executable_extensions; do
  4711. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4712. ac_cv_prog_ac_ct_F77="$ac_prog"
  4713. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4714. break 2
  4715. fi
  4716. done
  4717. done
  4718. fi
  4719. fi
  4720. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4721. if test -n "$ac_ct_F77"; then
  4722. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4723. echo "${ECHO_T}$ac_ct_F77" >&6
  4724. else
  4725. echo "$as_me:$LINENO: result: no" >&5
  4726. echo "${ECHO_T}no" >&6
  4727. fi
  4728. test -n "$ac_ct_F77" && break
  4729. done
  4730. F77=$ac_ct_F77
  4731. fi
  4732. # Provide some information about the compiler.
  4733. echo "$as_me:5240:" \
  4734. "checking for Fortran 77 compiler version" >&5
  4735. ac_compiler=`set X $ac_compile; echo $2`
  4736. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4737. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4738. ac_status=$?
  4739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4740. (exit $ac_status); }
  4741. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4742. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4743. ac_status=$?
  4744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4745. (exit $ac_status); }
  4746. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4747. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4748. ac_status=$?
  4749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4750. (exit $ac_status); }
  4751. rm -f a.out
  4752. # If we don't use `.F' as extension, the preprocessor is not run on the
  4753. # input file. (Note that this only needs to work for GNU compilers.)
  4754. ac_save_ext=$ac_ext
  4755. ac_ext=F
  4756. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  4757. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  4758. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  4759. echo $ECHO_N "(cached) $ECHO_C" >&6
  4760. else
  4761. cat >conftest.$ac_ext <<_ACEOF
  4762. program main
  4763. #ifndef __GNUC__
  4764. choke me
  4765. #endif
  4766. end
  4767. _ACEOF
  4768. rm -f conftest.$ac_objext
  4769. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4770. (eval $ac_compile) 2>conftest.er1
  4771. ac_status=$?
  4772. grep -v '^ *+' conftest.er1 >conftest.err
  4773. rm -f conftest.er1
  4774. cat conftest.err >&5
  4775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4776. (exit $ac_status); } &&
  4777. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  4778. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4779. (eval $ac_try) 2>&5
  4780. ac_status=$?
  4781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4782. (exit $ac_status); }; } &&
  4783. { ac_try='test -s conftest.$ac_objext'
  4784. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4785. (eval $ac_try) 2>&5
  4786. ac_status=$?
  4787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4788. (exit $ac_status); }; }; then
  4789. ac_compiler_gnu=yes
  4790. else
  4791. echo "$as_me: failed program was:" >&5
  4792. sed 's/^/| /' conftest.$ac_ext >&5
  4793. ac_compiler_gnu=no
  4794. fi
  4795. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4796. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  4797. fi
  4798. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  4799. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  4800. ac_ext=$ac_save_ext
  4801. ac_test_FFLAGS=${FFLAGS+set}
  4802. ac_save_FFLAGS=$FFLAGS
  4803. FFLAGS=
  4804. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  4805. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  4806. if test "${ac_cv_prog_f77_g+set}" = set; then
  4807. echo $ECHO_N "(cached) $ECHO_C" >&6
  4808. else
  4809. FFLAGS=-g
  4810. cat >conftest.$ac_ext <<_ACEOF
  4811. program main
  4812. end
  4813. _ACEOF
  4814. rm -f conftest.$ac_objext
  4815. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4816. (eval $ac_compile) 2>conftest.er1
  4817. ac_status=$?
  4818. grep -v '^ *+' conftest.er1 >conftest.err
  4819. rm -f conftest.er1
  4820. cat conftest.err >&5
  4821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4822. (exit $ac_status); } &&
  4823. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  4824. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4825. (eval $ac_try) 2>&5
  4826. ac_status=$?
  4827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4828. (exit $ac_status); }; } &&
  4829. { ac_try='test -s conftest.$ac_objext'
  4830. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4831. (eval $ac_try) 2>&5
  4832. ac_status=$?
  4833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4834. (exit $ac_status); }; }; then
  4835. ac_cv_prog_f77_g=yes
  4836. else
  4837. echo "$as_me: failed program was:" >&5
  4838. sed 's/^/| /' conftest.$ac_ext >&5
  4839. ac_cv_prog_f77_g=no
  4840. fi
  4841. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4842. fi
  4843. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  4844. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  4845. if test "$ac_test_FFLAGS" = set; then
  4846. FFLAGS=$ac_save_FFLAGS
  4847. elif test $ac_cv_prog_f77_g = yes; then
  4848. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  4849. FFLAGS="-g -O2"
  4850. else
  4851. FFLAGS="-g"
  4852. fi
  4853. else
  4854. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  4855. FFLAGS="-O2"
  4856. else
  4857. FFLAGS=
  4858. fi
  4859. fi
  4860. G77=`test $ac_compiler_gnu = yes && echo yes`
  4861. ac_ext=c
  4862. ac_cpp='$CPP $CPPFLAGS'
  4863. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4864. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4865. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4866. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  4867. # find the maximum length of command line arguments
  4868. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4869. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  4870. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4871. echo $ECHO_N "(cached) $ECHO_C" >&6
  4872. else
  4873. i=0
  4874. testring="ABCD"
  4875. case $build_os in
  4876. msdosdjgpp*)
  4877. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4878. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4879. # during glob expansion). Even if it were fixed, the result of this
  4880. # check would be larger than it should be.
  4881. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4882. ;;
  4883. gnu*)
  4884. # Under GNU Hurd, this test is not required because there is
  4885. # no limit to the length of command line arguments.
  4886. # Libtool will interpret -1 as no limit whatsoever
  4887. lt_cv_sys_max_cmd_len=-1;
  4888. ;;
  4889. cygwin* | mingw*)
  4890. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4891. # about 5 minutes as the teststring grows exponentially.
  4892. # Worse, since 9x/ME are not pre-emptively multitasking,
  4893. # you end up with a "frozen" computer, even though with patience
  4894. # the test eventually succeeds (with a max line length of 256k).
  4895. # Instead, let's just punt: use the minimum linelength reported by
  4896. # all of the supported platforms: 8192 (on NT/2K/XP).
  4897. lt_cv_sys_max_cmd_len=8192;
  4898. ;;
  4899. amigaos*)
  4900. # On AmigaOS with pdksh, this test takes hours, literally.
  4901. # So we just punt and use a minimum line length of 8192.
  4902. lt_cv_sys_max_cmd_len=8192;
  4903. ;;
  4904. *)
  4905. # If test is not a shell built-in, we'll probably end up computing a
  4906. # maximum length that is only half of the actual maximum length, but
  4907. # we can't tell.
  4908. while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
  4909. = "XX$testring") >/dev/null 2>&1 &&
  4910. new_result=`expr "X$testring" : ".*" 2>&1` &&
  4911. lt_cv_sys_max_cmd_len=$new_result &&
  4912. test $i != 17 # 1/2 MB should be enough
  4913. do
  4914. i=`expr $i + 1`
  4915. testring=$testring$testring
  4916. done
  4917. testring=
  4918. # Add a significant safety factor because C++ compilers can tack on massive
  4919. # amounts of additional arguments before passing them to the linker.
  4920. # It appears as though 1/2 is a usable value.
  4921. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4922. ;;
  4923. esac
  4924. fi
  4925. if test -n $lt_cv_sys_max_cmd_len ; then
  4926. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4927. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  4928. else
  4929. echo "$as_me:$LINENO: result: none" >&5
  4930. echo "${ECHO_T}none" >&6
  4931. fi
  4932. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4933. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  4934. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  4935. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  4936. echo $ECHO_N "(cached) $ECHO_C" >&6
  4937. else
  4938. # These are sane defaults that work on at least a few old systems.
  4939. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4940. # Character class describing NM global symbol codes.
  4941. symcode='[BCDEGRST]'
  4942. # Regexp to match symbols that can be accessed directly from C.
  4943. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4944. # Transform the above into a raw symbol and a C symbol.
  4945. symxfrm='\1 \2\3 \3'
  4946. # Transform an extracted symbol line into a proper C declaration
  4947. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  4948. # Transform an extracted symbol line into symbol name and symbol address
  4949. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4950. # Define system-specific variables.
  4951. case $host_os in
  4952. aix*)
  4953. symcode='[BCDT]'
  4954. ;;
  4955. cygwin* | mingw* | pw32*)
  4956. symcode='[ABCDGISTW]'
  4957. ;;
  4958. hpux*) # Its linker distinguishes data from code symbols
  4959. if test "$host_cpu" = ia64; then
  4960. symcode='[ABCDEGRST]'
  4961. fi
  4962. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4963. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4964. ;;
  4965. irix* | nonstopux*)
  4966. symcode='[BCDEGRST]'
  4967. ;;
  4968. osf*)
  4969. symcode='[BCDEGQRST]'
  4970. ;;
  4971. solaris* | sysv5*)
  4972. symcode='[BDRT]'
  4973. ;;
  4974. sysv4)
  4975. symcode='[DFNSTU]'
  4976. ;;
  4977. esac
  4978. # Handle CRLF in mingw tool chain
  4979. opt_cr=
  4980. case $build_os in
  4981. mingw*)
  4982. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4983. ;;
  4984. esac
  4985. # If we're using GNU nm, then use its standard symbol codes.
  4986. case `$NM -V 2>&1` in
  4987. *GNU* | *'with BFD'*)
  4988. symcode='[ABCDGIRSTW]' ;;
  4989. esac
  4990. # Try without a prefix undercore, then with it.
  4991. for ac_symprfx in "" "_"; do
  4992. # Write the raw and C identifiers.
  4993. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  4994. # Check to see that the pipe works correctly.
  4995. pipe_works=no
  4996. rm -f conftest*
  4997. cat > conftest.$ac_ext <<EOF
  4998. #ifdef __cplusplus
  4999. extern "C" {
  5000. #endif
  5001. char nm_test_var;
  5002. void nm_test_func(){}
  5003. #ifdef __cplusplus
  5004. }
  5005. #endif
  5006. int main(){nm_test_var='a';nm_test_func();return(0);}
  5007. EOF
  5008. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5009. (eval $ac_compile) 2>&5
  5010. ac_status=$?
  5011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5012. (exit $ac_status); }; then
  5013. # Now try to grab the symbols.
  5014. nlist=conftest.nm
  5015. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5016. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5017. ac_status=$?
  5018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5019. (exit $ac_status); } && test -s "$nlist"; then
  5020. # Try sorting and uniquifying the output.
  5021. if sort "$nlist" | uniq > "$nlist"T; then
  5022. mv -f "$nlist"T "$nlist"
  5023. else
  5024. rm -f "$nlist"T
  5025. fi
  5026. # Make sure that we snagged all the symbols we need.
  5027. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5028. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5029. cat <<EOF > conftest.$ac_ext
  5030. #ifdef __cplusplus
  5031. extern "C" {
  5032. #endif
  5033. EOF
  5034. # Now generate the symbol file.
  5035. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5036. cat <<EOF >> conftest.$ac_ext
  5037. #if defined (__STDC__) && __STDC__
  5038. # define lt_ptr_t void *
  5039. #else
  5040. # define lt_ptr_t char *
  5041. # define const
  5042. #endif
  5043. /* The mapping between symbol names and symbols. */
  5044. const struct {
  5045. const char *name;
  5046. lt_ptr_t address;
  5047. }
  5048. lt_preloaded_symbols[] =
  5049. {
  5050. EOF
  5051. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5052. cat <<\EOF >> conftest.$ac_ext
  5053. {0, (lt_ptr_t) 0}
  5054. };
  5055. #ifdef __cplusplus
  5056. }
  5057. #endif
  5058. EOF
  5059. # Now try linking the two files.
  5060. mv conftest.$ac_objext conftstm.$ac_objext
  5061. lt_save_LIBS="$LIBS"
  5062. lt_save_CFLAGS="$CFLAGS"
  5063. LIBS="conftstm.$ac_objext"
  5064. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5065. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5066. (eval $ac_link) 2>&5
  5067. ac_status=$?
  5068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5069. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5070. pipe_works=yes
  5071. fi
  5072. LIBS="$lt_save_LIBS"
  5073. CFLAGS="$lt_save_CFLAGS"
  5074. else
  5075. echo "cannot find nm_test_func in $nlist" >&5
  5076. fi
  5077. else
  5078. echo "cannot find nm_test_var in $nlist" >&5
  5079. fi
  5080. else
  5081. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5082. fi
  5083. else
  5084. echo "$progname: failed program was:" >&5
  5085. cat conftest.$ac_ext >&5
  5086. fi
  5087. rm -f conftest* conftst*
  5088. # Do not use the global_symbol_pipe unless it works.
  5089. if test "$pipe_works" = yes; then
  5090. break
  5091. else
  5092. lt_cv_sys_global_symbol_pipe=
  5093. fi
  5094. done
  5095. fi
  5096. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5097. lt_cv_sys_global_symbol_to_cdecl=
  5098. fi
  5099. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5100. echo "$as_me:$LINENO: result: failed" >&5
  5101. echo "${ECHO_T}failed" >&6
  5102. else
  5103. echo "$as_me:$LINENO: result: ok" >&5
  5104. echo "${ECHO_T}ok" >&6
  5105. fi
  5106. echo "$as_me:$LINENO: checking for objdir" >&5
  5107. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  5108. if test "${lt_cv_objdir+set}" = set; then
  5109. echo $ECHO_N "(cached) $ECHO_C" >&6
  5110. else
  5111. rm -f .libs 2>/dev/null
  5112. mkdir .libs 2>/dev/null
  5113. if test -d .libs; then
  5114. lt_cv_objdir=.libs
  5115. else
  5116. # MS-DOS does not allow filenames that begin with a dot.
  5117. lt_cv_objdir=_libs
  5118. fi
  5119. rmdir .libs 2>/dev/null
  5120. fi
  5121. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5122. echo "${ECHO_T}$lt_cv_objdir" >&6
  5123. objdir=$lt_cv_objdir
  5124. case $host_os in
  5125. aix3*)
  5126. # AIX sometimes has problems with the GCC collect2 program. For some
  5127. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5128. # vanish in a puff of smoke.
  5129. if test "X${COLLECT_NAMES+set}" != Xset; then
  5130. COLLECT_NAMES=
  5131. export COLLECT_NAMES
  5132. fi
  5133. ;;
  5134. esac
  5135. # Sed substitution that helps us do robust quoting. It backslashifies
  5136. # metacharacters that are still active within double-quoted strings.
  5137. Xsed='sed -e s/^X//'
  5138. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5139. # Same as above, but do not quote variable references.
  5140. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5141. # Sed substitution to delay expansion of an escaped shell variable in a
  5142. # double_quote_subst'ed string.
  5143. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5144. # Sed substitution to avoid accidental globbing in evaled expressions
  5145. no_glob_subst='s/\*/\\\*/g'
  5146. # Constants:
  5147. rm="rm -f"
  5148. # Global variables:
  5149. default_ofile=libtool
  5150. can_build_shared=yes
  5151. # All known linkers require a `.a' archive for static linking (except M$VC,
  5152. # which needs '.lib').
  5153. libext=a
  5154. ltmain="$ac_aux_dir/ltmain.sh"
  5155. ofile="$default_ofile"
  5156. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5157. if test -n "$ac_tool_prefix"; then
  5158. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5159. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5160. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5161. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5162. if test "${ac_cv_prog_AR+set}" = set; then
  5163. echo $ECHO_N "(cached) $ECHO_C" >&6
  5164. else
  5165. if test -n "$AR"; then
  5166. ac_cv_prog_AR="$AR" # Let the user override the test.
  5167. else
  5168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5169. for as_dir in $PATH
  5170. do
  5171. IFS=$as_save_IFS
  5172. test -z "$as_dir" && as_dir=.
  5173. for ac_exec_ext in '' $ac_executable_extensions; do
  5174. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5175. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5176. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5177. break 2
  5178. fi
  5179. done
  5180. done
  5181. fi
  5182. fi
  5183. AR=$ac_cv_prog_AR
  5184. if test -n "$AR"; then
  5185. echo "$as_me:$LINENO: result: $AR" >&5
  5186. echo "${ECHO_T}$AR" >&6
  5187. else
  5188. echo "$as_me:$LINENO: result: no" >&5
  5189. echo "${ECHO_T}no" >&6
  5190. fi
  5191. fi
  5192. if test -z "$ac_cv_prog_AR"; then
  5193. ac_ct_AR=$AR
  5194. # Extract the first word of "ar", so it can be a program name with args.
  5195. set dummy ar; ac_word=$2
  5196. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5197. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5198. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5199. echo $ECHO_N "(cached) $ECHO_C" >&6
  5200. else
  5201. if test -n "$ac_ct_AR"; then
  5202. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5203. else
  5204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5205. for as_dir in $PATH
  5206. do
  5207. IFS=$as_save_IFS
  5208. test -z "$as_dir" && as_dir=.
  5209. for ac_exec_ext in '' $ac_executable_extensions; do
  5210. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5211. ac_cv_prog_ac_ct_AR="ar"
  5212. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5213. break 2
  5214. fi
  5215. done
  5216. done
  5217. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  5218. fi
  5219. fi
  5220. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5221. if test -n "$ac_ct_AR"; then
  5222. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5223. echo "${ECHO_T}$ac_ct_AR" >&6
  5224. else
  5225. echo "$as_me:$LINENO: result: no" >&5
  5226. echo "${ECHO_T}no" >&6
  5227. fi
  5228. AR=$ac_ct_AR
  5229. else
  5230. AR="$ac_cv_prog_AR"
  5231. fi
  5232. if test -n "$ac_tool_prefix"; then
  5233. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5234. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5235. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5236. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5237. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5238. echo $ECHO_N "(cached) $ECHO_C" >&6
  5239. else
  5240. if test -n "$RANLIB"; then
  5241. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5242. else
  5243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5244. for as_dir in $PATH
  5245. do
  5246. IFS=$as_save_IFS
  5247. test -z "$as_dir" && as_dir=.
  5248. for ac_exec_ext in '' $ac_executable_extensions; do
  5249. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5250. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5251. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5252. break 2
  5253. fi
  5254. done
  5255. done
  5256. fi
  5257. fi
  5258. RANLIB=$ac_cv_prog_RANLIB
  5259. if test -n "$RANLIB"; then
  5260. echo "$as_me:$LINENO: result: $RANLIB" >&5
  5261. echo "${ECHO_T}$RANLIB" >&6
  5262. else
  5263. echo "$as_me:$LINENO: result: no" >&5
  5264. echo "${ECHO_T}no" >&6
  5265. fi
  5266. fi
  5267. if test -z "$ac_cv_prog_RANLIB"; then
  5268. ac_ct_RANLIB=$RANLIB
  5269. # Extract the first word of "ranlib", so it can be a program name with args.
  5270. set dummy ranlib; ac_word=$2
  5271. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5272. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5273. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5274. echo $ECHO_N "(cached) $ECHO_C" >&6
  5275. else
  5276. if test -n "$ac_ct_RANLIB"; then
  5277. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5278. else
  5279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5280. for as_dir in $PATH
  5281. do
  5282. IFS=$as_save_IFS
  5283. test -z "$as_dir" && as_dir=.
  5284. for ac_exec_ext in '' $ac_executable_extensions; do
  5285. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5286. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5287. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5288. break 2
  5289. fi
  5290. done
  5291. done
  5292. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  5293. fi
  5294. fi
  5295. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5296. if test -n "$ac_ct_RANLIB"; then
  5297. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5298. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  5299. else
  5300. echo "$as_me:$LINENO: result: no" >&5
  5301. echo "${ECHO_T}no" >&6
  5302. fi
  5303. RANLIB=$ac_ct_RANLIB
  5304. else
  5305. RANLIB="$ac_cv_prog_RANLIB"
  5306. fi
  5307. if test -n "$ac_tool_prefix"; then
  5308. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5309. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5310. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5311. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5312. if test "${ac_cv_prog_STRIP+set}" = set; then
  5313. echo $ECHO_N "(cached) $ECHO_C" >&6
  5314. else
  5315. if test -n "$STRIP"; then
  5316. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5317. else
  5318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5319. for as_dir in $PATH
  5320. do
  5321. IFS=$as_save_IFS
  5322. test -z "$as_dir" && as_dir=.
  5323. for ac_exec_ext in '' $ac_executable_extensions; do
  5324. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5325. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5326. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5327. break 2
  5328. fi
  5329. done
  5330. done
  5331. fi
  5332. fi
  5333. STRIP=$ac_cv_prog_STRIP
  5334. if test -n "$STRIP"; then
  5335. echo "$as_me:$LINENO: result: $STRIP" >&5
  5336. echo "${ECHO_T}$STRIP" >&6
  5337. else
  5338. echo "$as_me:$LINENO: result: no" >&5
  5339. echo "${ECHO_T}no" >&6
  5340. fi
  5341. fi
  5342. if test -z "$ac_cv_prog_STRIP"; then
  5343. ac_ct_STRIP=$STRIP
  5344. # Extract the first word of "strip", so it can be a program name with args.
  5345. set dummy strip; ac_word=$2
  5346. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5347. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5348. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5349. echo $ECHO_N "(cached) $ECHO_C" >&6
  5350. else
  5351. if test -n "$ac_ct_STRIP"; then
  5352. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5353. else
  5354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5355. for as_dir in $PATH
  5356. do
  5357. IFS=$as_save_IFS
  5358. test -z "$as_dir" && as_dir=.
  5359. for ac_exec_ext in '' $ac_executable_extensions; do
  5360. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5361. ac_cv_prog_ac_ct_STRIP="strip"
  5362. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5363. break 2
  5364. fi
  5365. done
  5366. done
  5367. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  5368. fi
  5369. fi
  5370. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5371. if test -n "$ac_ct_STRIP"; then
  5372. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5373. echo "${ECHO_T}$ac_ct_STRIP" >&6
  5374. else
  5375. echo "$as_me:$LINENO: result: no" >&5
  5376. echo "${ECHO_T}no" >&6
  5377. fi
  5378. STRIP=$ac_ct_STRIP
  5379. else
  5380. STRIP="$ac_cv_prog_STRIP"
  5381. fi
  5382. old_CC="$CC"
  5383. old_CFLAGS="$CFLAGS"
  5384. # Set sane defaults for various variables
  5385. test -z "$AR" && AR=ar
  5386. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5387. test -z "$AS" && AS=as
  5388. test -z "$CC" && CC=cc
  5389. test -z "$LTCC" && LTCC=$CC
  5390. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5391. test -z "$LD" && LD=ld
  5392. test -z "$LN_S" && LN_S="ln -s"
  5393. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5394. test -z "$NM" && NM=nm
  5395. test -z "$SED" && SED=sed
  5396. test -z "$OBJDUMP" && OBJDUMP=objdump
  5397. test -z "$RANLIB" && RANLIB=:
  5398. test -z "$STRIP" && STRIP=:
  5399. test -z "$ac_objext" && ac_objext=o
  5400. # Determine commands to create old-style static archives.
  5401. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  5402. old_postinstall_cmds='chmod 644 $oldlib'
  5403. old_postuninstall_cmds=
  5404. if test -n "$RANLIB"; then
  5405. case $host_os in
  5406. openbsd*)
  5407. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  5408. ;;
  5409. *)
  5410. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  5411. ;;
  5412. esac
  5413. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5414. fi
  5415. # Only perform the check for file, if the check method requires it
  5416. case $deplibs_check_method in
  5417. file_magic*)
  5418. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5419. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5420. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  5421. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5422. echo $ECHO_N "(cached) $ECHO_C" >&6
  5423. else
  5424. case $MAGIC_CMD in
  5425. [\\/*] | ?:[\\/]*)
  5426. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5427. ;;
  5428. *)
  5429. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5430. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5431. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5432. for ac_dir in $ac_dummy; do
  5433. IFS="$lt_save_ifs"
  5434. test -z "$ac_dir" && ac_dir=.
  5435. if test -f $ac_dir/${ac_tool_prefix}file; then
  5436. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5437. if test -n "$file_magic_test_file"; then
  5438. case $deplibs_check_method in
  5439. "file_magic "*)
  5440. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  5441. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5442. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5443. $EGREP "$file_magic_regex" > /dev/null; then
  5444. :
  5445. else
  5446. cat <<EOF 1>&2
  5447. *** Warning: the command libtool uses to detect shared libraries,
  5448. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5449. *** The result is that libtool may fail to recognize shared libraries
  5450. *** as such. This will affect the creation of libtool libraries that
  5451. *** depend on shared libraries, but programs linked with such libtool
  5452. *** libraries will work regardless of this problem. Nevertheless, you
  5453. *** may want to report the problem to your system manager and/or to
  5454. *** [email protected]
  5455. EOF
  5456. fi ;;
  5457. esac
  5458. fi
  5459. break
  5460. fi
  5461. done
  5462. IFS="$lt_save_ifs"
  5463. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5464. ;;
  5465. esac
  5466. fi
  5467. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5468. if test -n "$MAGIC_CMD"; then
  5469. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5470. echo "${ECHO_T}$MAGIC_CMD" >&6
  5471. else
  5472. echo "$as_me:$LINENO: result: no" >&5
  5473. echo "${ECHO_T}no" >&6
  5474. fi
  5475. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5476. if test -n "$ac_tool_prefix"; then
  5477. echo "$as_me:$LINENO: checking for file" >&5
  5478. echo $ECHO_N "checking for file... $ECHO_C" >&6
  5479. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5480. echo $ECHO_N "(cached) $ECHO_C" >&6
  5481. else
  5482. case $MAGIC_CMD in
  5483. [\\/*] | ?:[\\/]*)
  5484. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5485. ;;
  5486. *)
  5487. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5488. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5489. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5490. for ac_dir in $ac_dummy; do
  5491. IFS="$lt_save_ifs"
  5492. test -z "$ac_dir" && ac_dir=.
  5493. if test -f $ac_dir/file; then
  5494. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5495. if test -n "$file_magic_test_file"; then
  5496. case $deplibs_check_method in
  5497. "file_magic "*)
  5498. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  5499. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5500. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5501. $EGREP "$file_magic_regex" > /dev/null; then
  5502. :
  5503. else
  5504. cat <<EOF 1>&2
  5505. *** Warning: the command libtool uses to detect shared libraries,
  5506. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5507. *** The result is that libtool may fail to recognize shared libraries
  5508. *** as such. This will affect the creation of libtool libraries that
  5509. *** depend on shared libraries, but programs linked with such libtool
  5510. *** libraries will work regardless of this problem. Nevertheless, you
  5511. *** may want to report the problem to your system manager and/or to
  5512. *** [email protected]
  5513. EOF
  5514. fi ;;
  5515. esac
  5516. fi
  5517. break
  5518. fi
  5519. done
  5520. IFS="$lt_save_ifs"
  5521. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5522. ;;
  5523. esac
  5524. fi
  5525. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5526. if test -n "$MAGIC_CMD"; then
  5527. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5528. echo "${ECHO_T}$MAGIC_CMD" >&6
  5529. else
  5530. echo "$as_me:$LINENO: result: no" >&5
  5531. echo "${ECHO_T}no" >&6
  5532. fi
  5533. else
  5534. MAGIC_CMD=:
  5535. fi
  5536. fi
  5537. fi
  5538. ;;
  5539. esac
  5540. enable_dlopen=no
  5541. enable_win32_dll=no
  5542. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5543. if test "${enable_libtool_lock+set}" = set; then
  5544. enableval="$enable_libtool_lock"
  5545. fi;
  5546. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5547. # Check whether --with-pic or --without-pic was given.
  5548. if test "${with_pic+set}" = set; then
  5549. withval="$with_pic"
  5550. pic_mode="$withval"
  5551. else
  5552. pic_mode=default
  5553. fi;
  5554. test -z "$pic_mode" && pic_mode=default
  5555. # Use C for the default configuration in the libtool script
  5556. tagname=
  5557. lt_save_CC="$CC"
  5558. ac_ext=c
  5559. ac_cpp='$CPP $CPPFLAGS'
  5560. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5561. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5562. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5563. # Source file extension for C test sources.
  5564. ac_ext=c
  5565. # Object file extension for compiled C test sources.
  5566. objext=o
  5567. objext=$objext
  5568. # Code to be used in simple compile tests
  5569. lt_simple_compile_test_code="int some_variable = 0;\n"
  5570. # Code to be used in simple link tests
  5571. lt_simple_link_test_code='int main(){return(0);}\n'
  5572. # If no C compiler was specified, use CC.
  5573. LTCC=${LTCC-"$CC"}
  5574. # Allow CC to be a program name with arguments.
  5575. compiler=$CC
  5576. #
  5577. # Check for any special shared library compilation flags.
  5578. #
  5579. lt_prog_cc_shlib=
  5580. if test "$GCC" = no; then
  5581. case $host_os in
  5582. sco3.2v5*)
  5583. lt_prog_cc_shlib='-belf'
  5584. ;;
  5585. esac
  5586. fi
  5587. if test -n "$lt_prog_cc_shlib"; then
  5588. { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  5589. echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  5590. if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  5591. else
  5592. { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  5593. echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  5594. lt_cv_prog_cc_can_build_shared=no
  5595. fi
  5596. fi
  5597. #
  5598. # Check to make sure the static flag actually works.
  5599. #
  5600. echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  5601. echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
  5602. if test "${lt_prog_compiler_static_works+set}" = set; then
  5603. echo $ECHO_N "(cached) $ECHO_C" >&6
  5604. else
  5605. lt_prog_compiler_static_works=no
  5606. save_LDFLAGS="$LDFLAGS"
  5607. LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  5608. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  5609. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  5610. # The compiler can only warn and ignore the option if not recognized
  5611. # So say no if there are warnings
  5612. if test -s conftest.err; then
  5613. # Append any errors to the config.log.
  5614. cat conftest.err 1>&5
  5615. else
  5616. lt_prog_compiler_static_works=yes
  5617. fi
  5618. fi
  5619. $rm conftest*
  5620. LDFLAGS="$save_LDFLAGS"
  5621. fi
  5622. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  5623. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  5624. if test x"$lt_prog_compiler_static_works" = xyes; then
  5625. :
  5626. else
  5627. lt_prog_compiler_static=
  5628. fi
  5629. lt_prog_compiler_no_builtin_flag=
  5630. if test "$GCC" = yes; then
  5631. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5632. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5633. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5634. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5635. echo $ECHO_N "(cached) $ECHO_C" >&6
  5636. else
  5637. lt_cv_prog_compiler_rtti_exceptions=no
  5638. ac_outfile=conftest.$ac_objext
  5639. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5640. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5641. # Insert the option either (1) after the last *FLAGS variable, or
  5642. # (2) before a word containing "conftest.", or (3) at the end.
  5643. # Note that $ac_compile itself does not contain backslashes and begins
  5644. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5645. # The option is referenced via a variable to avoid confusing sed.
  5646. lt_compile=`echo "$ac_compile" | $SED \
  5647. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  5648. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5649. -e 's:$: $lt_compiler_flag:'`
  5650. (eval echo "\"\$as_me:6272: $lt_compile\"" >&5)
  5651. (eval "$lt_compile" 2>conftest.err)
  5652. ac_status=$?
  5653. cat conftest.err >&5
  5654. echo "$as_me:6276: \$? = $ac_status" >&5
  5655. if (exit $ac_status) && test -s "$ac_outfile"; then
  5656. # The compiler can only warn and ignore the option if not recognized
  5657. # So say no if there are warnings
  5658. if test ! -s conftest.err; then
  5659. lt_cv_prog_compiler_rtti_exceptions=yes
  5660. fi
  5661. fi
  5662. $rm conftest*
  5663. fi
  5664. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5665. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5666. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5667. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5668. else
  5669. :
  5670. fi
  5671. fi
  5672. lt_prog_compiler_wl=
  5673. lt_prog_compiler_pic=
  5674. lt_prog_compiler_static=
  5675. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5676. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5677. if test "$GCC" = yes; then
  5678. lt_prog_compiler_wl='-Wl,'
  5679. lt_prog_compiler_static='-static'
  5680. case $host_os in
  5681. aix*)
  5682. # All AIX code is PIC.
  5683. if test "$host_cpu" = ia64; then
  5684. # AIX 5 now supports IA64 processor
  5685. lt_prog_compiler_static='-Bstatic'
  5686. fi
  5687. ;;
  5688. amigaos*)
  5689. # FIXME: we need at least 68020 code to build shared libraries, but
  5690. # adding the `-m68020' flag to GCC prevents building anything better,
  5691. # like `-m68040'.
  5692. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5693. ;;
  5694. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5695. # PIC is the default for these OSes.
  5696. ;;
  5697. mingw* | pw32* | os2*)
  5698. # This hack is so that the source file can tell whether it is being
  5699. # built for inclusion in a dll (and should export symbols for example).
  5700. lt_prog_compiler_pic='-DDLL_EXPORT'
  5701. ;;
  5702. darwin* | rhapsody*)
  5703. # PIC is the default on this platform
  5704. # Common symbols not allowed in MH_DYLIB files
  5705. lt_prog_compiler_pic='-fno-common'
  5706. ;;
  5707. msdosdjgpp*)
  5708. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5709. # on systems that don't support them.
  5710. lt_prog_compiler_can_build_shared=no
  5711. enable_shared=no
  5712. ;;
  5713. sysv4*MP*)
  5714. if test -d /usr/nec; then
  5715. lt_prog_compiler_pic=-Kconform_pic
  5716. fi
  5717. ;;
  5718. hpux*)
  5719. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5720. # not for PA HP-UX.
  5721. case "$host_cpu" in
  5722. hppa*64*|ia64*)
  5723. # +Z the default
  5724. ;;
  5725. *)
  5726. lt_prog_compiler_pic='-fPIC'
  5727. ;;
  5728. esac
  5729. ;;
  5730. *)
  5731. lt_prog_compiler_pic='-fPIC'
  5732. ;;
  5733. esac
  5734. else
  5735. # PORTME Check for flag to pass linker flags through the system compiler.
  5736. case $host_os in
  5737. aix*)
  5738. lt_prog_compiler_wl='-Wl,'
  5739. if test "$host_cpu" = ia64; then
  5740. # AIX 5 now supports IA64 processor
  5741. lt_prog_compiler_static='-Bstatic'
  5742. else
  5743. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  5744. fi
  5745. ;;
  5746. mingw* | pw32* | os2*)
  5747. # This hack is so that the source file can tell whether it is being
  5748. # built for inclusion in a dll (and should export symbols for example).
  5749. lt_prog_compiler_pic='-DDLL_EXPORT'
  5750. ;;
  5751. hpux9* | hpux10* | hpux11*)
  5752. lt_prog_compiler_wl='-Wl,'
  5753. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5754. # not for PA HP-UX.
  5755. case "$host_cpu" in
  5756. hppa*64*|ia64*)
  5757. # +Z the default
  5758. ;;
  5759. *)
  5760. lt_prog_compiler_pic='+Z'
  5761. ;;
  5762. esac
  5763. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5764. lt_prog_compiler_static='${wl}-a ${wl}archive'
  5765. ;;
  5766. irix5* | irix6* | nonstopux*)
  5767. lt_prog_compiler_wl='-Wl,'
  5768. # PIC (with -KPIC) is the default.
  5769. lt_prog_compiler_static='-non_shared'
  5770. ;;
  5771. newsos6)
  5772. lt_prog_compiler_pic='-KPIC'
  5773. lt_prog_compiler_static='-Bstatic'
  5774. ;;
  5775. linux*)
  5776. case $CC in
  5777. icc* | ecc*)
  5778. lt_prog_compiler_wl='-Wl,'
  5779. lt_prog_compiler_pic='-KPIC'
  5780. lt_prog_compiler_static='-static'
  5781. ;;
  5782. ccc*)
  5783. lt_prog_compiler_wl='-Wl,'
  5784. # All Alpha code is PIC.
  5785. lt_prog_compiler_static='-non_shared'
  5786. ;;
  5787. esac
  5788. ;;
  5789. osf3* | osf4* | osf5*)
  5790. lt_prog_compiler_wl='-Wl,'
  5791. # All OSF/1 code is PIC.
  5792. lt_prog_compiler_static='-non_shared'
  5793. ;;
  5794. sco3.2v5*)
  5795. lt_prog_compiler_pic='-Kpic'
  5796. lt_prog_compiler_static='-dn'
  5797. ;;
  5798. solaris*)
  5799. lt_prog_compiler_wl='-Wl,'
  5800. lt_prog_compiler_pic='-KPIC'
  5801. lt_prog_compiler_static='-Bstatic'
  5802. ;;
  5803. sunos4*)
  5804. lt_prog_compiler_wl='-Qoption ld '
  5805. lt_prog_compiler_pic='-PIC'
  5806. lt_prog_compiler_static='-Bstatic'
  5807. ;;
  5808. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5809. lt_prog_compiler_wl='-Wl,'
  5810. lt_prog_compiler_pic='-KPIC'
  5811. lt_prog_compiler_static='-Bstatic'
  5812. ;;
  5813. sysv4*MP*)
  5814. if test -d /usr/nec ;then
  5815. lt_prog_compiler_pic='-Kconform_pic'
  5816. lt_prog_compiler_static='-Bstatic'
  5817. fi
  5818. ;;
  5819. uts4*)
  5820. lt_prog_compiler_pic='-pic'
  5821. lt_prog_compiler_static='-Bstatic'
  5822. ;;
  5823. *)
  5824. lt_prog_compiler_can_build_shared=no
  5825. ;;
  5826. esac
  5827. fi
  5828. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  5829. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  5830. #
  5831. # Check to make sure the PIC flag actually works.
  5832. #
  5833. if test -n "$lt_prog_compiler_pic"; then
  5834. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  5835. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  5836. if test "${lt_prog_compiler_pic_works+set}" = set; then
  5837. echo $ECHO_N "(cached) $ECHO_C" >&6
  5838. else
  5839. lt_prog_compiler_pic_works=no
  5840. ac_outfile=conftest.$ac_objext
  5841. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5842. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  5843. # Insert the option either (1) after the last *FLAGS variable, or
  5844. # (2) before a word containing "conftest.", or (3) at the end.
  5845. # Note that $ac_compile itself does not contain backslashes and begins
  5846. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5847. # The option is referenced via a variable to avoid confusing sed.
  5848. lt_compile=`echo "$ac_compile" | $SED \
  5849. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  5850. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5851. -e 's:$: $lt_compiler_flag:'`
  5852. (eval echo "\"\$as_me:6505: $lt_compile\"" >&5)
  5853. (eval "$lt_compile" 2>conftest.err)
  5854. ac_status=$?
  5855. cat conftest.err >&5
  5856. echo "$as_me:6509: \$? = $ac_status" >&5
  5857. if (exit $ac_status) && test -s "$ac_outfile"; then
  5858. # The compiler can only warn and ignore the option if not recognized
  5859. # So say no if there are warnings
  5860. if test ! -s conftest.err; then
  5861. lt_prog_compiler_pic_works=yes
  5862. fi
  5863. fi
  5864. $rm conftest*
  5865. fi
  5866. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  5867. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  5868. if test x"$lt_prog_compiler_pic_works" = xyes; then
  5869. case $lt_prog_compiler_pic in
  5870. "" | " "*) ;;
  5871. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  5872. esac
  5873. else
  5874. lt_prog_compiler_pic=
  5875. lt_prog_compiler_can_build_shared=no
  5876. fi
  5877. fi
  5878. case "$host_os" in
  5879. # For platforms which do not support PIC, -DPIC is meaningless:
  5880. *djgpp*)
  5881. lt_prog_compiler_pic=
  5882. ;;
  5883. *)
  5884. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  5885. ;;
  5886. esac
  5887. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  5888. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  5889. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  5890. echo $ECHO_N "(cached) $ECHO_C" >&6
  5891. else
  5892. lt_cv_prog_compiler_c_o=no
  5893. $rm -r conftest 2>/dev/null
  5894. mkdir conftest
  5895. cd conftest
  5896. mkdir out
  5897. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5898. lt_compiler_flag="-o out/conftest2.$ac_objext"
  5899. # Insert the option either (1) after the last *FLAGS variable, or
  5900. # (2) before a word containing "conftest.", or (3) at the end.
  5901. # Note that $ac_compile itself does not contain backslashes and begins
  5902. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5903. lt_compile=`echo "$ac_compile" | $SED \
  5904. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  5905. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5906. -e 's:$: $lt_compiler_flag:'`
  5907. (eval echo "\"\$as_me:6565: $lt_compile\"" >&5)
  5908. (eval "$lt_compile" 2>out/conftest.err)
  5909. ac_status=$?
  5910. cat out/conftest.err >&5
  5911. echo "$as_me:6569: \$? = $ac_status" >&5
  5912. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  5913. then
  5914. # The compiler can only warn and ignore the option if not recognized
  5915. # So say no if there are warnings
  5916. if test ! -s out/conftest.err; then
  5917. lt_cv_prog_compiler_c_o=yes
  5918. fi
  5919. fi
  5920. chmod u+w .
  5921. $rm conftest*
  5922. # SGI C++ compiler will create directory out/ii_files/ for
  5923. # template instantiation
  5924. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  5925. $rm out/* && rmdir out
  5926. cd ..
  5927. rmdir conftest
  5928. $rm conftest*
  5929. fi
  5930. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  5931. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  5932. hard_links="nottested"
  5933. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  5934. # do not overwrite the value of need_locks provided by the user
  5935. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  5936. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  5937. hard_links=yes
  5938. $rm conftest*
  5939. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5940. touch conftest.a
  5941. ln conftest.a conftest.b 2>&5 || hard_links=no
  5942. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5943. echo "$as_me:$LINENO: result: $hard_links" >&5
  5944. echo "${ECHO_T}$hard_links" >&6
  5945. if test "$hard_links" = no; then
  5946. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  5947. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  5948. need_locks=warn
  5949. fi
  5950. else
  5951. need_locks=no
  5952. fi
  5953. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  5954. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  5955. runpath_var=
  5956. allow_undefined_flag=
  5957. enable_shared_with_static_runtimes=no
  5958. archive_cmds=
  5959. archive_expsym_cmds=
  5960. old_archive_From_new_cmds=
  5961. old_archive_from_expsyms_cmds=
  5962. export_dynamic_flag_spec=
  5963. whole_archive_flag_spec=
  5964. thread_safe_flag_spec=
  5965. hardcode_libdir_flag_spec=
  5966. hardcode_libdir_flag_spec_ld=
  5967. hardcode_libdir_separator=
  5968. hardcode_direct=no
  5969. hardcode_minus_L=no
  5970. hardcode_shlibpath_var=unsupported
  5971. link_all_deplibs=unknown
  5972. hardcode_automatic=no
  5973. module_cmds=
  5974. module_expsym_cmds=
  5975. always_export_symbols=no
  5976. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5977. # include_expsyms should be a list of space-separated symbols to be *always*
  5978. # included in the symbol list
  5979. include_expsyms=
  5980. # exclude_expsyms can be an extended regexp of symbols to exclude
  5981. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  5982. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  5983. # as well as any symbol that contains `d'.
  5984. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  5985. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5986. # platforms (ab)use it in PIC code, but their linkers get confused if
  5987. # the symbol is explicitly referenced. Since portable code cannot
  5988. # rely on this symbol name, it's probably fine to never include it in
  5989. # preloaded symbol tables.
  5990. extract_expsyms_cmds=
  5991. case $host_os in
  5992. cygwin* | mingw* | pw32*)
  5993. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5994. # When not using gcc, we currently assume that we are using
  5995. # Microsoft Visual C++.
  5996. if test "$GCC" != yes; then
  5997. with_gnu_ld=no
  5998. fi
  5999. ;;
  6000. openbsd*)
  6001. with_gnu_ld=no
  6002. ;;
  6003. esac
  6004. ld_shlibs=yes
  6005. if test "$with_gnu_ld" = yes; then
  6006. # If archive_cmds runs LD, not CC, wlarc should be empty
  6007. wlarc='${wl}'
  6008. # See if GNU ld supports shared libraries.
  6009. case $host_os in
  6010. aix3* | aix4* | aix5*)
  6011. # On AIX/PPC, the GNU linker is very broken
  6012. if test "$host_cpu" != ia64; then
  6013. ld_shlibs=no
  6014. cat <<EOF 1>&2
  6015. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6016. *** to be unable to reliably create shared libraries on AIX.
  6017. *** Therefore, libtool is disabling shared libraries support. If you
  6018. *** really care for shared libraries, you may want to modify your PATH
  6019. *** so that a non-GNU linker is found, and then restart.
  6020. EOF
  6021. fi
  6022. ;;
  6023. amigaos*)
  6024. 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)'
  6025. hardcode_libdir_flag_spec='-L$libdir'
  6026. hardcode_minus_L=yes
  6027. # Samuel A. Falvo II <[email protected]> reports
  6028. # that the semantics of dynamic libraries on AmigaOS, at least up
  6029. # to version 4, is to share data among multiple programs linked
  6030. # with the same dynamic library. Since this doesn't match the
  6031. # behavior of shared libraries on other platforms, we can't use
  6032. # them.
  6033. ld_shlibs=no
  6034. ;;
  6035. beos*)
  6036. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6037. allow_undefined_flag=unsupported
  6038. # Joseph Beckenbach <[email protected]> says some releases of gcc
  6039. # support --undefined. This deserves some investigation. FIXME
  6040. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6041. else
  6042. ld_shlibs=no
  6043. fi
  6044. ;;
  6045. cygwin* | mingw* | pw32*)
  6046. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6047. # as there is no search path for DLLs.
  6048. hardcode_libdir_flag_spec='-L$libdir'
  6049. allow_undefined_flag=unsupported
  6050. always_export_symbols=no
  6051. enable_shared_with_static_runtimes=yes
  6052. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  6053. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6054. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  6055. # If the export-symbols file already is a .def file (1st line
  6056. # is EXPORTS), use it as is; otherwise, prepend...
  6057. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6058. cp $export_symbols $output_objdir/$soname.def;
  6059. else
  6060. echo EXPORTS > $output_objdir/$soname.def;
  6061. cat $export_symbols >> $output_objdir/$soname.def;
  6062. fi~
  6063. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  6064. else
  6065. ld_shlibs=no
  6066. fi
  6067. ;;
  6068. netbsd* | knetbsd*-gnu)
  6069. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6070. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6071. wlarc=
  6072. else
  6073. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6074. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6075. fi
  6076. ;;
  6077. solaris* | sysv5*)
  6078. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6079. ld_shlibs=no
  6080. cat <<EOF 1>&2
  6081. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6082. *** create shared libraries on Solaris systems. Therefore, libtool
  6083. *** is disabling shared libraries support. We urge you to upgrade GNU
  6084. *** binutils to release 2.9.1 or newer. Another option is to modify
  6085. *** your PATH or compiler configuration so that the native linker is
  6086. *** used, and then restart.
  6087. EOF
  6088. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6089. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6090. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6091. else
  6092. ld_shlibs=no
  6093. fi
  6094. ;;
  6095. sunos4*)
  6096. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6097. wlarc=
  6098. hardcode_direct=yes
  6099. hardcode_shlibpath_var=no
  6100. ;;
  6101. linux*)
  6102. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  6103. tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6104. archive_cmds="$tmp_archive_cmds"
  6105. supports_anon_versioning=no
  6106. case `$LD -v 2>/dev/null` in
  6107. *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6108. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6109. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6110. *\ 2.11.*) ;; # other 2.11 versions
  6111. *) supports_anon_versioning=yes ;;
  6112. esac
  6113. if test $supports_anon_versioning = yes; then
  6114. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6115. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6116. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6117. $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6118. else
  6119. archive_expsym_cmds="$tmp_archive_cmds"
  6120. fi
  6121. else
  6122. ld_shlibs=no
  6123. fi
  6124. ;;
  6125. *)
  6126. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6127. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6128. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6129. else
  6130. ld_shlibs=no
  6131. fi
  6132. ;;
  6133. esac
  6134. if test "$ld_shlibs" = yes; then
  6135. runpath_var=LD_RUN_PATH
  6136. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6137. export_dynamic_flag_spec='${wl}--export-dynamic'
  6138. # ancient GNU ld didn't support --whole-archive et. al.
  6139. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6140. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6141. else
  6142. whole_archive_flag_spec=
  6143. fi
  6144. fi
  6145. else
  6146. # PORTME fill in a description of your system's linker (not GNU ld)
  6147. case $host_os in
  6148. aix3*)
  6149. allow_undefined_flag=unsupported
  6150. always_export_symbols=yes
  6151. 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'
  6152. # Note: this linker hardcodes the directories in LIBPATH if there
  6153. # are no directories specified by -L.
  6154. hardcode_minus_L=yes
  6155. if test "$GCC" = yes && test -z "$link_static_flag"; then
  6156. # Neither direct hardcoding nor static linking is supported with a
  6157. # broken collect2.
  6158. hardcode_direct=unsupported
  6159. fi
  6160. ;;
  6161. aix4* | aix5*)
  6162. if test "$host_cpu" = ia64; then
  6163. # On IA64, the linker does run time linking by default, so we don't
  6164. # have to do anything special.
  6165. aix_use_runtimelinking=no
  6166. exp_sym_flag='-Bexport'
  6167. no_entry_flag=""
  6168. else
  6169. # If we're using GNU nm, then we don't want the "-C" option.
  6170. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6171. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6172. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  6173. else
  6174. 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'
  6175. fi
  6176. aix_use_runtimelinking=no
  6177. # Test if we are trying to use run time linking or normal
  6178. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6179. # need to do runtime linking.
  6180. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  6181. for ld_flag in $LDFLAGS; do
  6182. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6183. aix_use_runtimelinking=yes
  6184. break
  6185. fi
  6186. done
  6187. esac
  6188. exp_sym_flag='-bexport'
  6189. no_entry_flag='-bnoentry'
  6190. fi
  6191. # When large executables or shared objects are built, AIX ld can
  6192. # have problems creating the table of contents. If linking a library
  6193. # or program results in "error TOC overflow" add -mminimal-toc to
  6194. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6195. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6196. archive_cmds=''
  6197. hardcode_direct=yes
  6198. hardcode_libdir_separator=':'
  6199. link_all_deplibs=yes
  6200. if test "$GCC" = yes; then
  6201. case $host_os in aix4.012|aix4.012.*)
  6202. # We only want to do this on AIX 4.2 and lower, the check
  6203. # below for broken collect2 doesn't work under 4.3+
  6204. collect2name=`${CC} -print-prog-name=collect2`
  6205. if test -f "$collect2name" && \
  6206. strings "$collect2name" | grep resolve_lib_name >/dev/null
  6207. then
  6208. # We have reworked collect2
  6209. hardcode_direct=yes
  6210. else
  6211. # We have old collect2
  6212. hardcode_direct=unsupported
  6213. # It fails to find uninstalled libraries when the uninstalled
  6214. # path is not listed in the libpath. Setting hardcode_minus_L
  6215. # to unsupported forces relinking
  6216. hardcode_minus_L=yes
  6217. hardcode_libdir_flag_spec='-L$libdir'
  6218. hardcode_libdir_separator=
  6219. fi
  6220. esac
  6221. shared_flag='-shared'
  6222. else
  6223. # not using gcc
  6224. if test "$host_cpu" = ia64; then
  6225. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6226. # chokes on -Wl,-G. The following line is correct:
  6227. shared_flag='-G'
  6228. else
  6229. if test "$aix_use_runtimelinking" = yes; then
  6230. shared_flag='${wl}-G'
  6231. else
  6232. shared_flag='${wl}-bM:SRE'
  6233. fi
  6234. fi
  6235. fi
  6236. # It seems that -bexpall does not export symbols beginning with
  6237. # underscore (_), so it is better to generate a list of symbols to export.
  6238. always_export_symbols=yes
  6239. if test "$aix_use_runtimelinking" = yes; then
  6240. # Warning - without using the other runtime loading flags (-brtl),
  6241. # -berok will link without error, but may produce a broken library.
  6242. allow_undefined_flag='-berok'
  6243. # Determine the default libpath from the value encoded in an empty executable.
  6244. cat >conftest.$ac_ext <<_ACEOF
  6245. /* confdefs.h. */
  6246. _ACEOF
  6247. cat confdefs.h >>conftest.$ac_ext
  6248. cat >>conftest.$ac_ext <<_ACEOF
  6249. /* end confdefs.h. */
  6250. int
  6251. main ()
  6252. {
  6253. ;
  6254. return 0;
  6255. }
  6256. _ACEOF
  6257. rm -f conftest.$ac_objext conftest$ac_exeext
  6258. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6259. (eval $ac_link) 2>conftest.er1
  6260. ac_status=$?
  6261. grep -v '^ *+' conftest.er1 >conftest.err
  6262. rm -f conftest.er1
  6263. cat conftest.err >&5
  6264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6265. (exit $ac_status); } &&
  6266. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6267. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6268. (eval $ac_try) 2>&5
  6269. ac_status=$?
  6270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6271. (exit $ac_status); }; } &&
  6272. { ac_try='test -s conftest$ac_exeext'
  6273. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6274. (eval $ac_try) 2>&5
  6275. ac_status=$?
  6276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6277. (exit $ac_status); }; }; then
  6278. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6279. }'`
  6280. # Check for a 64-bit object if we didn't find anything.
  6281. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6282. }'`; fi
  6283. else
  6284. echo "$as_me: failed program was:" >&5
  6285. sed 's/^/| /' conftest.$ac_ext >&5
  6286. fi
  6287. rm -f conftest.err conftest.$ac_objext \
  6288. conftest$ac_exeext conftest.$ac_ext
  6289. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6290. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6291. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  6292. else
  6293. if test "$host_cpu" = ia64; then
  6294. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6295. allow_undefined_flag="-z nodefs"
  6296. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  6297. else
  6298. # Determine the default libpath from the value encoded in an empty executable.
  6299. cat >conftest.$ac_ext <<_ACEOF
  6300. /* confdefs.h. */
  6301. _ACEOF
  6302. cat confdefs.h >>conftest.$ac_ext
  6303. cat >>conftest.$ac_ext <<_ACEOF
  6304. /* end confdefs.h. */
  6305. int
  6306. main ()
  6307. {
  6308. ;
  6309. return 0;
  6310. }
  6311. _ACEOF
  6312. rm -f conftest.$ac_objext conftest$ac_exeext
  6313. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6314. (eval $ac_link) 2>conftest.er1
  6315. ac_status=$?
  6316. grep -v '^ *+' conftest.er1 >conftest.err
  6317. rm -f conftest.er1
  6318. cat conftest.err >&5
  6319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6320. (exit $ac_status); } &&
  6321. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6323. (eval $ac_try) 2>&5
  6324. ac_status=$?
  6325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6326. (exit $ac_status); }; } &&
  6327. { ac_try='test -s conftest$ac_exeext'
  6328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6329. (eval $ac_try) 2>&5
  6330. ac_status=$?
  6331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6332. (exit $ac_status); }; }; then
  6333. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6334. }'`
  6335. # Check for a 64-bit object if we didn't find anything.
  6336. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6337. }'`; fi
  6338. else
  6339. echo "$as_me: failed program was:" >&5
  6340. sed 's/^/| /' conftest.$ac_ext >&5
  6341. fi
  6342. rm -f conftest.err conftest.$ac_objext \
  6343. conftest$ac_exeext conftest.$ac_ext
  6344. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6345. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6346. # Warning - without using the other run time loading flags,
  6347. # -berok will link without error, but may produce a broken library.
  6348. no_undefined_flag=' ${wl}-bernotok'
  6349. allow_undefined_flag=' ${wl}-berok'
  6350. # -bexpall does not export symbols beginning with underscore (_)
  6351. always_export_symbols=yes
  6352. # Exported symbols can be pulled into shared objects from archives
  6353. whole_archive_flag_spec=' '
  6354. archive_cmds_need_lc=yes
  6355. # This is similar to how AIX traditionally builds it's shared libraries.
  6356. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  6357. fi
  6358. fi
  6359. ;;
  6360. amigaos*)
  6361. 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)'
  6362. hardcode_libdir_flag_spec='-L$libdir'
  6363. hardcode_minus_L=yes
  6364. # see comment about different semantics on the GNU ld section
  6365. ld_shlibs=no
  6366. ;;
  6367. bsdi4*)
  6368. export_dynamic_flag_spec=-rdynamic
  6369. ;;
  6370. cygwin* | mingw* | pw32*)
  6371. # When not using gcc, we currently assume that we are using
  6372. # Microsoft Visual C++.
  6373. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6374. # no search path for DLLs.
  6375. hardcode_libdir_flag_spec=' '
  6376. allow_undefined_flag=unsupported
  6377. # Tell ltmain to make .lib files, not .a files.
  6378. libext=lib
  6379. # Tell ltmain to make .dll files, not .so files.
  6380. shrext=".dll"
  6381. # FIXME: Setting linknames here is a bad hack.
  6382. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6383. # The linker will automatically build a .lib file if we build a DLL.
  6384. old_archive_From_new_cmds='true'
  6385. # FIXME: Should let the user specify the lib program.
  6386. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6387. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6388. enable_shared_with_static_runtimes=yes
  6389. ;;
  6390. darwin* | rhapsody*)
  6391. if test "$GXX" = yes ; then
  6392. archive_cmds_need_lc=no
  6393. case "$host_os" in
  6394. rhapsody* | darwin1.[012])
  6395. allow_undefined_flag='-undefined suppress'
  6396. ;;
  6397. *) # Darwin 1.3 on
  6398. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6399. allow_undefined_flag='-flat_namespace -undefined suppress'
  6400. else
  6401. case ${MACOSX_DEPLOYMENT_TARGET} in
  6402. 10.[012])
  6403. allow_undefined_flag='-flat_namespace -undefined suppress'
  6404. ;;
  6405. 10.*)
  6406. allow_undefined_flag='-undefined dynamic_lookup'
  6407. ;;
  6408. esac
  6409. fi
  6410. ;;
  6411. esac
  6412. lt_int_apple_cc_single_mod=no
  6413. output_verbose_link_cmd='echo'
  6414. if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  6415. lt_int_apple_cc_single_mod=yes
  6416. fi
  6417. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  6418. archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6419. else
  6420. archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6421. fi
  6422. module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6423. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  6424. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  6425. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6426. else
  6427. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6428. fi
  6429. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6430. hardcode_direct=no
  6431. hardcode_automatic=yes
  6432. hardcode_shlibpath_var=unsupported
  6433. whole_archive_flag_spec='-all_load $convenience'
  6434. link_all_deplibs=yes
  6435. else
  6436. ld_shlibs=no
  6437. fi
  6438. ;;
  6439. dgux*)
  6440. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6441. hardcode_libdir_flag_spec='-L$libdir'
  6442. hardcode_shlibpath_var=no
  6443. ;;
  6444. freebsd1*)
  6445. ld_shlibs=no
  6446. ;;
  6447. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6448. # support. Future versions do this automatically, but an explicit c++rt0.o
  6449. # does not break anything, and helps significantly (at the cost of a little
  6450. # extra space).
  6451. freebsd2.2*)
  6452. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6453. hardcode_libdir_flag_spec='-R$libdir'
  6454. hardcode_direct=yes
  6455. hardcode_shlibpath_var=no
  6456. ;;
  6457. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6458. freebsd2*)
  6459. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6460. hardcode_direct=yes
  6461. hardcode_minus_L=yes
  6462. hardcode_shlibpath_var=no
  6463. ;;
  6464. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6465. freebsd* | kfreebsd*-gnu)
  6466. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6467. hardcode_libdir_flag_spec='-R$libdir'
  6468. hardcode_direct=yes
  6469. hardcode_shlibpath_var=no
  6470. ;;
  6471. hpux9*)
  6472. if test "$GCC" = yes; then
  6473. archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  6474. else
  6475. 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'
  6476. fi
  6477. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6478. hardcode_libdir_separator=:
  6479. hardcode_direct=yes
  6480. # hardcode_minus_L: Not really in the search PATH,
  6481. # but as the default location of the library.
  6482. hardcode_minus_L=yes
  6483. export_dynamic_flag_spec='${wl}-E'
  6484. ;;
  6485. hpux10* | hpux11*)
  6486. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6487. case "$host_cpu" in
  6488. hppa*64*|ia64*)
  6489. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6490. ;;
  6491. *)
  6492. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6493. ;;
  6494. esac
  6495. else
  6496. case "$host_cpu" in
  6497. hppa*64*|ia64*)
  6498. archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  6499. ;;
  6500. *)
  6501. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6502. ;;
  6503. esac
  6504. fi
  6505. if test "$with_gnu_ld" = no; then
  6506. case "$host_cpu" in
  6507. hppa*64*)
  6508. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6509. hardcode_libdir_flag_spec_ld='+b $libdir'
  6510. hardcode_libdir_separator=:
  6511. hardcode_direct=no
  6512. hardcode_shlibpath_var=no
  6513. ;;
  6514. ia64*)
  6515. hardcode_libdir_flag_spec='-L$libdir'
  6516. hardcode_direct=no
  6517. hardcode_shlibpath_var=no
  6518. # hardcode_minus_L: Not really in the search PATH,
  6519. # but as the default location of the library.
  6520. hardcode_minus_L=yes
  6521. ;;
  6522. *)
  6523. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6524. hardcode_libdir_separator=:
  6525. hardcode_direct=yes
  6526. export_dynamic_flag_spec='${wl}-E'
  6527. # hardcode_minus_L: Not really in the search PATH,
  6528. # but as the default location of the library.
  6529. hardcode_minus_L=yes
  6530. ;;
  6531. esac
  6532. fi
  6533. ;;
  6534. irix5* | irix6* | nonstopux*)
  6535. if test "$GCC" = yes; then
  6536. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6537. else
  6538. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6539. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6540. fi
  6541. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6542. hardcode_libdir_separator=:
  6543. link_all_deplibs=yes
  6544. ;;
  6545. netbsd* | knetbsd*-gnu)
  6546. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6547. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6548. else
  6549. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6550. fi
  6551. hardcode_libdir_flag_spec='-R$libdir'
  6552. hardcode_direct=yes
  6553. hardcode_shlibpath_var=no
  6554. ;;
  6555. newsos6)
  6556. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6557. hardcode_direct=yes
  6558. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6559. hardcode_libdir_separator=:
  6560. hardcode_shlibpath_var=no
  6561. ;;
  6562. openbsd*)
  6563. hardcode_direct=yes
  6564. hardcode_shlibpath_var=no
  6565. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6566. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6567. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6568. export_dynamic_flag_spec='${wl}-E'
  6569. else
  6570. case $host_os in
  6571. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6572. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6573. hardcode_libdir_flag_spec='-R$libdir'
  6574. ;;
  6575. *)
  6576. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6577. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6578. ;;
  6579. esac
  6580. fi
  6581. ;;
  6582. os2*)
  6583. hardcode_libdir_flag_spec='-L$libdir'
  6584. hardcode_minus_L=yes
  6585. allow_undefined_flag=unsupported
  6586. 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'
  6587. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6588. ;;
  6589. osf3*)
  6590. if test "$GCC" = yes; then
  6591. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6592. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6593. else
  6594. allow_undefined_flag=' -expect_unresolved \*'
  6595. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6596. fi
  6597. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6598. hardcode_libdir_separator=:
  6599. ;;
  6600. osf4* | osf5*) # as osf3* with the addition of -msym flag
  6601. if test "$GCC" = yes; then
  6602. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6603. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6604. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6605. else
  6606. allow_undefined_flag=' -expect_unresolved \*'
  6607. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6608. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  6609. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  6610. # Both c and cxx compiler support -rpath directly
  6611. hardcode_libdir_flag_spec='-rpath $libdir'
  6612. fi
  6613. hardcode_libdir_separator=:
  6614. ;;
  6615. sco3.2v5*)
  6616. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6617. hardcode_shlibpath_var=no
  6618. export_dynamic_flag_spec='${wl}-Bexport'
  6619. runpath_var=LD_RUN_PATH
  6620. hardcode_runpath_var=yes
  6621. ;;
  6622. solaris*)
  6623. no_undefined_flag=' -z text'
  6624. if test "$GCC" = yes; then
  6625. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6626. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6627. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  6628. else
  6629. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6630. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6631. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6632. fi
  6633. hardcode_libdir_flag_spec='-R$libdir'
  6634. hardcode_shlibpath_var=no
  6635. case $host_os in
  6636. solaris2.[0-5] | solaris2.[0-5].*) ;;
  6637. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  6638. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  6639. esac
  6640. link_all_deplibs=yes
  6641. ;;
  6642. sunos4*)
  6643. if test "x$host_vendor" = xsequent; then
  6644. # Use $CC to link under sequent, because it throws in some extra .o
  6645. # files that make .init and .fini sections work.
  6646. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6647. else
  6648. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6649. fi
  6650. hardcode_libdir_flag_spec='-L$libdir'
  6651. hardcode_direct=yes
  6652. hardcode_minus_L=yes
  6653. hardcode_shlibpath_var=no
  6654. ;;
  6655. sysv4)
  6656. case $host_vendor in
  6657. sni)
  6658. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6659. hardcode_direct=yes # is this really true???
  6660. ;;
  6661. siemens)
  6662. ## LD is ld it makes a PLAMLIB
  6663. ## CC just makes a GrossModule.
  6664. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6665. reload_cmds='$CC -r -o $output$reload_objs'
  6666. hardcode_direct=no
  6667. ;;
  6668. motorola)
  6669. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6670. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  6671. ;;
  6672. esac
  6673. runpath_var='LD_RUN_PATH'
  6674. hardcode_shlibpath_var=no
  6675. ;;
  6676. sysv4.3*)
  6677. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6678. hardcode_shlibpath_var=no
  6679. export_dynamic_flag_spec='-Bexport'
  6680. ;;
  6681. sysv4*MP*)
  6682. if test -d /usr/nec; then
  6683. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6684. hardcode_shlibpath_var=no
  6685. runpath_var=LD_RUN_PATH
  6686. hardcode_runpath_var=yes
  6687. ld_shlibs=yes
  6688. fi
  6689. ;;
  6690. sysv4.2uw2*)
  6691. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6692. hardcode_direct=yes
  6693. hardcode_minus_L=no
  6694. hardcode_shlibpath_var=no
  6695. hardcode_runpath_var=yes
  6696. runpath_var=LD_RUN_PATH
  6697. ;;
  6698. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  6699. no_undefined_flag='${wl}-z ${wl}text'
  6700. if test "$GCC" = yes; then
  6701. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6702. else
  6703. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6704. fi
  6705. runpath_var='LD_RUN_PATH'
  6706. hardcode_shlibpath_var=no
  6707. ;;
  6708. sysv5*)
  6709. no_undefined_flag=' -z text'
  6710. # $CC -shared without GNU ld will not create a library from C++
  6711. # object files and a static libstdc++, better avoid it by now
  6712. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6713. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6714. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6715. hardcode_libdir_flag_spec=
  6716. hardcode_shlibpath_var=no
  6717. runpath_var='LD_RUN_PATH'
  6718. ;;
  6719. uts4*)
  6720. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6721. hardcode_libdir_flag_spec='-L$libdir'
  6722. hardcode_shlibpath_var=no
  6723. ;;
  6724. *)
  6725. ld_shlibs=no
  6726. ;;
  6727. esac
  6728. fi
  6729. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  6730. echo "${ECHO_T}$ld_shlibs" >&6
  6731. test "$ld_shlibs" = no && can_build_shared=no
  6732. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  6733. if test "$GCC" = yes; then
  6734. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  6735. fi
  6736. #
  6737. # Do we need to explicitly link libc?
  6738. #
  6739. case "x$archive_cmds_need_lc" in
  6740. x|xyes)
  6741. # Assume -lc should be added
  6742. archive_cmds_need_lc=yes
  6743. if test "$enable_shared" = yes && test "$GCC" = yes; then
  6744. case $archive_cmds in
  6745. *'~'*)
  6746. # FIXME: we may have to deal with multi-command sequences.
  6747. ;;
  6748. '$CC '*)
  6749. # Test whether the compiler implicitly links with -lc since on some
  6750. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6751. # to ld, don't add -lc before -lgcc.
  6752. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  6753. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  6754. $rm conftest*
  6755. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6756. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6757. (eval $ac_compile) 2>&5
  6758. ac_status=$?
  6759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6760. (exit $ac_status); } 2>conftest.err; then
  6761. soname=conftest
  6762. lib=conftest
  6763. libobjs=conftest.$ac_objext
  6764. deplibs=
  6765. wl=$lt_prog_compiler_wl
  6766. compiler_flags=-v
  6767. linker_flags=-v
  6768. verstring=
  6769. output_objdir=.
  6770. libname=conftest
  6771. lt_save_allow_undefined_flag=$allow_undefined_flag
  6772. allow_undefined_flag=
  6773. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  6774. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  6775. ac_status=$?
  6776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6777. (exit $ac_status); }
  6778. then
  6779. archive_cmds_need_lc=no
  6780. else
  6781. archive_cmds_need_lc=yes
  6782. fi
  6783. allow_undefined_flag=$lt_save_allow_undefined_flag
  6784. else
  6785. cat conftest.err 1>&5
  6786. fi
  6787. $rm conftest*
  6788. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  6789. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  6790. ;;
  6791. esac
  6792. fi
  6793. ;;
  6794. esac
  6795. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  6796. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  6797. library_names_spec=
  6798. libname_spec='lib$name'
  6799. soname_spec=
  6800. shrext=".so"
  6801. postinstall_cmds=
  6802. postuninstall_cmds=
  6803. finish_cmds=
  6804. finish_eval=
  6805. shlibpath_var=
  6806. shlibpath_overrides_runpath=unknown
  6807. version_type=none
  6808. dynamic_linker="$host_os ld.so"
  6809. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  6810. if test "$GCC" = yes; then
  6811. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6812. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  6813. # if the path contains ";" then we assume it to be the separator
  6814. # otherwise default to the standard path separator (i.e. ":") - it is
  6815. # assumed that no part of a normal pathname contains ";" but that should
  6816. # okay in the real world where ";" in dirpaths is itself problematic.
  6817. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  6818. else
  6819. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6820. fi
  6821. else
  6822. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  6823. fi
  6824. need_lib_prefix=unknown
  6825. hardcode_into_libs=no
  6826. # when you set need_version to no, make sure it does not cause -set_version
  6827. # flags to be left without arguments
  6828. need_version=unknown
  6829. case $host_os in
  6830. aix3*)
  6831. version_type=linux
  6832. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  6833. shlibpath_var=LIBPATH
  6834. # AIX 3 has no versioning support, so we append a major version to the name.
  6835. soname_spec='${libname}${release}${shared_ext}$major'
  6836. ;;
  6837. aix4* | aix5*)
  6838. version_type=linux
  6839. need_lib_prefix=no
  6840. need_version=no
  6841. hardcode_into_libs=yes
  6842. if test "$host_cpu" = ia64; then
  6843. # AIX 5 supports IA64
  6844. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  6845. shlibpath_var=LD_LIBRARY_PATH
  6846. else
  6847. # With GCC up to 2.95.x, collect2 would create an import file
  6848. # for dependence libraries. The import file would start with
  6849. # the line `#! .'. This would cause the generated library to
  6850. # depend on `.', always an invalid library. This was fixed in
  6851. # development snapshots of GCC prior to 3.0.
  6852. case $host_os in
  6853. aix4 | aix4.[01] | aix4.[01].*)
  6854. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  6855. echo ' yes '
  6856. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  6857. :
  6858. else
  6859. can_build_shared=no
  6860. fi
  6861. ;;
  6862. esac
  6863. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  6864. # soname into executable. Probably we can add versioning support to
  6865. # collect2, so additional links can be useful in future.
  6866. if test "$aix_use_runtimelinking" = yes; then
  6867. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  6868. # instead of lib<name>.a to let people know that these are not
  6869. # typical AIX shared libraries.
  6870. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6871. else
  6872. # We preserve .a as extension for shared libraries through AIX4.2
  6873. # and later when we are not doing run time linking.
  6874. library_names_spec='${libname}${release}.a $libname.a'
  6875. soname_spec='${libname}${release}${shared_ext}$major'
  6876. fi
  6877. shlibpath_var=LIBPATH
  6878. fi
  6879. ;;
  6880. amigaos*)
  6881. library_names_spec='$libname.ixlibrary $libname.a'
  6882. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  6883. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
  6884. ;;
  6885. beos*)
  6886. library_names_spec='${libname}${shared_ext}'
  6887. dynamic_linker="$host_os ld.so"
  6888. shlibpath_var=LIBRARY_PATH
  6889. ;;
  6890. bsdi4*)
  6891. version_type=linux
  6892. need_version=no
  6893. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6894. soname_spec='${libname}${release}${shared_ext}$major'
  6895. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  6896. shlibpath_var=LD_LIBRARY_PATH
  6897. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  6898. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  6899. # the default ld.so.conf also contains /usr/contrib/lib and
  6900. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  6901. # libtool to hard-code these into programs
  6902. ;;
  6903. cygwin* | mingw* | pw32*)
  6904. version_type=windows
  6905. shrext=".dll"
  6906. need_version=no
  6907. need_lib_prefix=no
  6908. case $GCC,$host_os in
  6909. yes,cygwin* | yes,mingw* | yes,pw32*)
  6910. library_names_spec='$libname.dll.a'
  6911. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  6912. postinstall_cmds='base_file=`basename \${file}`~
  6913. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  6914. dldir=$destdir/`dirname \$dlpath`~
  6915. test -d \$dldir || mkdir -p \$dldir~
  6916. $install_prog $dir/$dlname \$dldir/$dlname'
  6917. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  6918. dlpath=$dir/\$dldll~
  6919. $rm \$dlpath'
  6920. shlibpath_overrides_runpath=yes
  6921. case $host_os in
  6922. cygwin*)
  6923. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  6924. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6925. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  6926. ;;
  6927. mingw*)
  6928. # MinGW DLLs use traditional 'lib' prefix
  6929. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6930. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6931. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  6932. # It is most probably a Windows format PATH printed by
  6933. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  6934. # path with ; separators, and with drive letters. We can handle the
  6935. # drive letters (cygwin fileutils understands them), so leave them,
  6936. # especially as we might pass files found there to a mingw objdump,
  6937. # which wouldn't understand a cygwinified path. Ahh.
  6938. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  6939. else
  6940. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6941. fi
  6942. ;;
  6943. pw32*)
  6944. # pw32 DLLs use 'pw' prefix rather than 'lib'
  6945. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  6946. ;;
  6947. esac
  6948. ;;
  6949. *)
  6950. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  6951. ;;
  6952. esac
  6953. dynamic_linker='Win32 ld.exe'
  6954. # FIXME: first we should search . and the directory the executable is in
  6955. shlibpath_var=PATH
  6956. ;;
  6957. darwin* | rhapsody*)
  6958. dynamic_linker="$host_os dyld"
  6959. version_type=darwin
  6960. need_lib_prefix=no
  6961. need_version=no
  6962. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  6963. soname_spec='${libname}${release}${major}$shared_ext'
  6964. shlibpath_overrides_runpath=yes
  6965. shlibpath_var=DYLD_LIBRARY_PATH
  6966. shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  6967. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  6968. if test "$GCC" = yes; then
  6969. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  6970. else
  6971. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  6972. fi
  6973. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  6974. ;;
  6975. dgux*)
  6976. version_type=linux
  6977. need_lib_prefix=no
  6978. need_version=no
  6979. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  6980. soname_spec='${libname}${release}${shared_ext}$major'
  6981. shlibpath_var=LD_LIBRARY_PATH
  6982. ;;
  6983. freebsd1*)
  6984. dynamic_linker=no
  6985. ;;
  6986. kfreebsd*-gnu)
  6987. version_type=linux
  6988. need_lib_prefix=no
  6989. need_version=no
  6990. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6991. soname_spec='${libname}${release}${shared_ext}$major'
  6992. shlibpath_var=LD_LIBRARY_PATH
  6993. shlibpath_overrides_runpath=no
  6994. hardcode_into_libs=yes
  6995. dynamic_linker='GNU ld.so'
  6996. ;;
  6997. freebsd*)
  6998. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  6999. version_type=freebsd-$objformat
  7000. case $version_type in
  7001. freebsd-elf*)
  7002. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7003. need_version=no
  7004. need_lib_prefix=no
  7005. ;;
  7006. freebsd-*)
  7007. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7008. need_version=yes
  7009. ;;
  7010. esac
  7011. shlibpath_var=LD_LIBRARY_PATH
  7012. case $host_os in
  7013. freebsd2*)
  7014. shlibpath_overrides_runpath=yes
  7015. ;;
  7016. freebsd3.01* | freebsdelf3.01*)
  7017. shlibpath_overrides_runpath=yes
  7018. hardcode_into_libs=yes
  7019. ;;
  7020. *) # from 3.2 on
  7021. shlibpath_overrides_runpath=no
  7022. hardcode_into_libs=yes
  7023. ;;
  7024. esac
  7025. ;;
  7026. gnu*)
  7027. version_type=linux
  7028. need_lib_prefix=no
  7029. need_version=no
  7030. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7031. soname_spec='${libname}${release}${shared_ext}$major'
  7032. shlibpath_var=LD_LIBRARY_PATH
  7033. hardcode_into_libs=yes
  7034. ;;
  7035. hpux9* | hpux10* | hpux11*)
  7036. # Give a soname corresponding to the major version so that dld.sl refuses to
  7037. # link against other versions.
  7038. version_type=sunos
  7039. need_lib_prefix=no
  7040. need_version=no
  7041. case "$host_cpu" in
  7042. ia64*)
  7043. shrext='.so'
  7044. hardcode_into_libs=yes
  7045. dynamic_linker="$host_os dld.so"
  7046. shlibpath_var=LD_LIBRARY_PATH
  7047. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7048. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7049. soname_spec='${libname}${release}${shared_ext}$major'
  7050. if test "X$HPUX_IA64_MODE" = X32; then
  7051. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7052. else
  7053. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7054. fi
  7055. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7056. ;;
  7057. hppa*64*)
  7058. shrext='.sl'
  7059. hardcode_into_libs=yes
  7060. dynamic_linker="$host_os dld.sl"
  7061. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7062. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7063. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7064. soname_spec='${libname}${release}${shared_ext}$major'
  7065. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7066. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7067. ;;
  7068. *)
  7069. shrext='.sl'
  7070. dynamic_linker="$host_os dld.sl"
  7071. shlibpath_var=SHLIB_PATH
  7072. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7073. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7074. soname_spec='${libname}${release}${shared_ext}$major'
  7075. ;;
  7076. esac
  7077. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7078. postinstall_cmds='chmod 555 $lib'
  7079. ;;
  7080. irix5* | irix6* | nonstopux*)
  7081. case $host_os in
  7082. nonstopux*) version_type=nonstopux ;;
  7083. *)
  7084. if test "$lt_cv_prog_gnu_ld" = yes; then
  7085. version_type=linux
  7086. else
  7087. version_type=irix
  7088. fi ;;
  7089. esac
  7090. need_lib_prefix=no
  7091. need_version=no
  7092. soname_spec='${libname}${release}${shared_ext}$major'
  7093. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7094. case $host_os in
  7095. irix5* | nonstopux*)
  7096. libsuff= shlibsuff=
  7097. ;;
  7098. *)
  7099. case $LD in # libtool.m4 will add one of these switches to LD
  7100. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7101. libsuff= shlibsuff= libmagic=32-bit;;
  7102. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7103. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7104. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7105. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7106. *) libsuff= shlibsuff= libmagic=never-match;;
  7107. esac
  7108. ;;
  7109. esac
  7110. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7111. shlibpath_overrides_runpath=no
  7112. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7113. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7114. hardcode_into_libs=yes
  7115. ;;
  7116. # No shared lib support for Linux oldld, aout, or coff.
  7117. linux*oldld* | linux*aout* | linux*coff*)
  7118. dynamic_linker=no
  7119. ;;
  7120. # This must be Linux ELF.
  7121. linux*)
  7122. version_type=linux
  7123. need_lib_prefix=no
  7124. need_version=no
  7125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7126. soname_spec='${libname}${release}${shared_ext}$major'
  7127. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7128. shlibpath_var=LD_LIBRARY_PATH
  7129. shlibpath_overrides_runpath=no
  7130. # This implies no fast_install, which is unacceptable.
  7131. # Some rework will be needed to allow for fast_install
  7132. # before this can be enabled.
  7133. hardcode_into_libs=yes
  7134. # Append ld.so.conf contents to the search path
  7135. if test -f /etc/ld.so.conf; then
  7136. ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
  7137. sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
  7138. fi
  7139. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7140. # powerpc, because MkLinux only supported shared libraries with the
  7141. # GNU dynamic linker. Since this was broken with cross compilers,
  7142. # most powerpc-linux boxes support dynamic linking these days and
  7143. # people can always --disable-shared, the test was removed, and we
  7144. # assume the GNU/Linux dynamic linker is in use.
  7145. dynamic_linker='GNU/Linux ld.so'
  7146. ;;
  7147. knetbsd*-gnu)
  7148. version_type=linux
  7149. need_lib_prefix=no
  7150. need_version=no
  7151. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7152. soname_spec='${libname}${release}${shared_ext}$major'
  7153. shlibpath_var=LD_LIBRARY_PATH
  7154. shlibpath_overrides_runpath=no
  7155. hardcode_into_libs=yes
  7156. dynamic_linker='GNU ld.so'
  7157. ;;
  7158. netbsd*)
  7159. version_type=sunos
  7160. need_lib_prefix=no
  7161. need_version=no
  7162. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7163. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7164. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7165. dynamic_linker='NetBSD (a.out) ld.so'
  7166. else
  7167. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7168. soname_spec='${libname}${release}${shared_ext}$major'
  7169. dynamic_linker='NetBSD ld.elf_so'
  7170. fi
  7171. shlibpath_var=LD_LIBRARY_PATH
  7172. shlibpath_overrides_runpath=yes
  7173. hardcode_into_libs=yes
  7174. ;;
  7175. newsos6)
  7176. version_type=linux
  7177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7178. shlibpath_var=LD_LIBRARY_PATH
  7179. shlibpath_overrides_runpath=yes
  7180. ;;
  7181. nto-qnx*)
  7182. version_type=linux
  7183. need_lib_prefix=no
  7184. need_version=no
  7185. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7186. soname_spec='${libname}${release}${shared_ext}$major'
  7187. shlibpath_var=LD_LIBRARY_PATH
  7188. shlibpath_overrides_runpath=yes
  7189. ;;
  7190. openbsd*)
  7191. version_type=sunos
  7192. need_lib_prefix=no
  7193. need_version=yes
  7194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7195. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7196. shlibpath_var=LD_LIBRARY_PATH
  7197. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7198. case $host_os in
  7199. openbsd2.[89] | openbsd2.[89].*)
  7200. shlibpath_overrides_runpath=no
  7201. ;;
  7202. *)
  7203. shlibpath_overrides_runpath=yes
  7204. ;;
  7205. esac
  7206. else
  7207. shlibpath_overrides_runpath=yes
  7208. fi
  7209. ;;
  7210. os2*)
  7211. libname_spec='$name'
  7212. shrext=".dll"
  7213. need_lib_prefix=no
  7214. library_names_spec='$libname${shared_ext} $libname.a'
  7215. dynamic_linker='OS/2 ld.exe'
  7216. shlibpath_var=LIBPATH
  7217. ;;
  7218. osf3* | osf4* | osf5*)
  7219. version_type=osf
  7220. need_lib_prefix=no
  7221. need_version=no
  7222. soname_spec='${libname}${release}${shared_ext}$major'
  7223. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7224. shlibpath_var=LD_LIBRARY_PATH
  7225. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7226. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7227. ;;
  7228. sco3.2v5*)
  7229. version_type=osf
  7230. soname_spec='${libname}${release}${shared_ext}$major'
  7231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7232. shlibpath_var=LD_LIBRARY_PATH
  7233. ;;
  7234. solaris*)
  7235. version_type=linux
  7236. need_lib_prefix=no
  7237. need_version=no
  7238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7239. soname_spec='${libname}${release}${shared_ext}$major'
  7240. shlibpath_var=LD_LIBRARY_PATH
  7241. shlibpath_overrides_runpath=yes
  7242. hardcode_into_libs=yes
  7243. # ldd complains unless libraries are executable
  7244. postinstall_cmds='chmod +x $lib'
  7245. ;;
  7246. sunos4*)
  7247. version_type=sunos
  7248. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7249. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7250. shlibpath_var=LD_LIBRARY_PATH
  7251. shlibpath_overrides_runpath=yes
  7252. if test "$with_gnu_ld" = yes; then
  7253. need_lib_prefix=no
  7254. fi
  7255. need_version=yes
  7256. ;;
  7257. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7258. version_type=linux
  7259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7260. soname_spec='${libname}${release}${shared_ext}$major'
  7261. shlibpath_var=LD_LIBRARY_PATH
  7262. case $host_vendor in
  7263. sni)
  7264. shlibpath_overrides_runpath=no
  7265. need_lib_prefix=no
  7266. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7267. runpath_var=LD_RUN_PATH
  7268. ;;
  7269. siemens)
  7270. need_lib_prefix=no
  7271. ;;
  7272. motorola)
  7273. need_lib_prefix=no
  7274. need_version=no
  7275. shlibpath_overrides_runpath=no
  7276. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7277. ;;
  7278. esac
  7279. ;;
  7280. sysv4*MP*)
  7281. if test -d /usr/nec ;then
  7282. version_type=linux
  7283. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7284. soname_spec='$libname${shared_ext}.$major'
  7285. shlibpath_var=LD_LIBRARY_PATH
  7286. fi
  7287. ;;
  7288. uts4*)
  7289. version_type=linux
  7290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7291. soname_spec='${libname}${release}${shared_ext}$major'
  7292. shlibpath_var=LD_LIBRARY_PATH
  7293. ;;
  7294. *)
  7295. dynamic_linker=no
  7296. ;;
  7297. esac
  7298. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  7299. echo "${ECHO_T}$dynamic_linker" >&6
  7300. test "$dynamic_linker" = no && can_build_shared=no
  7301. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  7302. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  7303. hardcode_action=
  7304. if test -n "$hardcode_libdir_flag_spec" || \
  7305. test -n "$runpath_var " || \
  7306. test "X$hardcode_automatic"="Xyes" ; then
  7307. # We can hardcode non-existant directories.
  7308. if test "$hardcode_direct" != no &&
  7309. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7310. # have to relink, otherwise we might link with an installed library
  7311. # when we should be linking with a yet-to-be-installed one
  7312. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7313. test "$hardcode_minus_L" != no; then
  7314. # Linking always hardcodes the temporary library directory.
  7315. hardcode_action=relink
  7316. else
  7317. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7318. hardcode_action=immediate
  7319. fi
  7320. else
  7321. # We cannot hardcode anything, or else we can only hardcode existing
  7322. # directories.
  7323. hardcode_action=unsupported
  7324. fi
  7325. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  7326. echo "${ECHO_T}$hardcode_action" >&6
  7327. if test "$hardcode_action" = relink; then
  7328. # Fast installation is not supported
  7329. enable_fast_install=no
  7330. elif test "$shlibpath_overrides_runpath" = yes ||
  7331. test "$enable_shared" = no; then
  7332. # Fast installation is not necessary
  7333. enable_fast_install=needless
  7334. fi
  7335. striplib=
  7336. old_striplib=
  7337. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  7338. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  7339. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7340. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7341. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7342. echo "$as_me:$LINENO: result: yes" >&5
  7343. echo "${ECHO_T}yes" >&6
  7344. else
  7345. # FIXME - insert some real tests, host_os isn't really good enough
  7346. case $host_os in
  7347. darwin*)
  7348. if test -n "$STRIP" ; then
  7349. striplib="$STRIP -x"
  7350. echo "$as_me:$LINENO: result: yes" >&5
  7351. echo "${ECHO_T}yes" >&6
  7352. else
  7353. echo "$as_me:$LINENO: result: no" >&5
  7354. echo "${ECHO_T}no" >&6
  7355. fi
  7356. ;;
  7357. *)
  7358. echo "$as_me:$LINENO: result: no" >&5
  7359. echo "${ECHO_T}no" >&6
  7360. ;;
  7361. esac
  7362. fi
  7363. if test "x$enable_dlopen" != xyes; then
  7364. enable_dlopen=unknown
  7365. enable_dlopen_self=unknown
  7366. enable_dlopen_self_static=unknown
  7367. else
  7368. lt_cv_dlopen=no
  7369. lt_cv_dlopen_libs=
  7370. case $host_os in
  7371. beos*)
  7372. lt_cv_dlopen="load_add_on"
  7373. lt_cv_dlopen_libs=
  7374. lt_cv_dlopen_self=yes
  7375. ;;
  7376. mingw* | pw32*)
  7377. lt_cv_dlopen="LoadLibrary"
  7378. lt_cv_dlopen_libs=
  7379. ;;
  7380. cygwin*)
  7381. lt_cv_dlopen="dlopen"
  7382. lt_cv_dlopen_libs=
  7383. ;;
  7384. darwin*)
  7385. # if libdl is installed we need to link against it
  7386. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7387. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7388. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7389. echo $ECHO_N "(cached) $ECHO_C" >&6
  7390. else
  7391. ac_check_lib_save_LIBS=$LIBS
  7392. LIBS="-ldl $LIBS"
  7393. cat >conftest.$ac_ext <<_ACEOF
  7394. /* confdefs.h. */
  7395. _ACEOF
  7396. cat confdefs.h >>conftest.$ac_ext
  7397. cat >>conftest.$ac_ext <<_ACEOF
  7398. /* end confdefs.h. */
  7399. /* Override any gcc2 internal prototype to avoid an error. */
  7400. #ifdef __cplusplus
  7401. extern "C"
  7402. #endif
  7403. /* We use char because int might match the return type of a gcc2
  7404. builtin and then its argument prototype would still apply. */
  7405. char dlopen ();
  7406. int
  7407. main ()
  7408. {
  7409. dlopen ();
  7410. ;
  7411. return 0;
  7412. }
  7413. _ACEOF
  7414. rm -f conftest.$ac_objext conftest$ac_exeext
  7415. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7416. (eval $ac_link) 2>conftest.er1
  7417. ac_status=$?
  7418. grep -v '^ *+' conftest.er1 >conftest.err
  7419. rm -f conftest.er1
  7420. cat conftest.err >&5
  7421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7422. (exit $ac_status); } &&
  7423. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7424. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7425. (eval $ac_try) 2>&5
  7426. ac_status=$?
  7427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7428. (exit $ac_status); }; } &&
  7429. { ac_try='test -s conftest$ac_exeext'
  7430. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7431. (eval $ac_try) 2>&5
  7432. ac_status=$?
  7433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7434. (exit $ac_status); }; }; then
  7435. ac_cv_lib_dl_dlopen=yes
  7436. else
  7437. echo "$as_me: failed program was:" >&5
  7438. sed 's/^/| /' conftest.$ac_ext >&5
  7439. ac_cv_lib_dl_dlopen=no
  7440. fi
  7441. rm -f conftest.err conftest.$ac_objext \
  7442. conftest$ac_exeext conftest.$ac_ext
  7443. LIBS=$ac_check_lib_save_LIBS
  7444. fi
  7445. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7446. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7447. if test $ac_cv_lib_dl_dlopen = yes; then
  7448. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7449. else
  7450. lt_cv_dlopen="dyld"
  7451. lt_cv_dlopen_libs=
  7452. lt_cv_dlopen_self=yes
  7453. fi
  7454. ;;
  7455. *)
  7456. echo "$as_me:$LINENO: checking for shl_load" >&5
  7457. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  7458. if test "${ac_cv_func_shl_load+set}" = set; then
  7459. echo $ECHO_N "(cached) $ECHO_C" >&6
  7460. else
  7461. cat >conftest.$ac_ext <<_ACEOF
  7462. /* confdefs.h. */
  7463. _ACEOF
  7464. cat confdefs.h >>conftest.$ac_ext
  7465. cat >>conftest.$ac_ext <<_ACEOF
  7466. /* end confdefs.h. */
  7467. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  7468. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7469. #define shl_load innocuous_shl_load
  7470. /* System header to define __stub macros and hopefully few prototypes,
  7471. which can conflict with char shl_load (); below.
  7472. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7473. <limits.h> exists even on freestanding compilers. */
  7474. #ifdef __STDC__
  7475. # include <limits.h>
  7476. #else
  7477. # include <assert.h>
  7478. #endif
  7479. #undef shl_load
  7480. /* Override any gcc2 internal prototype to avoid an error. */
  7481. #ifdef __cplusplus
  7482. extern "C"
  7483. {
  7484. #endif
  7485. /* We use char because int might match the return type of a gcc2
  7486. builtin and then its argument prototype would still apply. */
  7487. char shl_load ();
  7488. /* The GNU C library defines this for functions which it implements
  7489. to always fail with ENOSYS. Some functions are actually named
  7490. something starting with __ and the normal name is an alias. */
  7491. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  7492. choke me
  7493. #else
  7494. char (*f) () = shl_load;
  7495. #endif
  7496. #ifdef __cplusplus
  7497. }
  7498. #endif
  7499. int
  7500. main ()
  7501. {
  7502. return f != shl_load;
  7503. ;
  7504. return 0;
  7505. }
  7506. _ACEOF
  7507. rm -f conftest.$ac_objext conftest$ac_exeext
  7508. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7509. (eval $ac_link) 2>conftest.er1
  7510. ac_status=$?
  7511. grep -v '^ *+' conftest.er1 >conftest.err
  7512. rm -f conftest.er1
  7513. cat conftest.err >&5
  7514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7515. (exit $ac_status); } &&
  7516. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7517. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7518. (eval $ac_try) 2>&5
  7519. ac_status=$?
  7520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7521. (exit $ac_status); }; } &&
  7522. { ac_try='test -s conftest$ac_exeext'
  7523. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7524. (eval $ac_try) 2>&5
  7525. ac_status=$?
  7526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7527. (exit $ac_status); }; }; then
  7528. ac_cv_func_shl_load=yes
  7529. else
  7530. echo "$as_me: failed program was:" >&5
  7531. sed 's/^/| /' conftest.$ac_ext >&5
  7532. ac_cv_func_shl_load=no
  7533. fi
  7534. rm -f conftest.err conftest.$ac_objext \
  7535. conftest$ac_exeext conftest.$ac_ext
  7536. fi
  7537. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  7538. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  7539. if test $ac_cv_func_shl_load = yes; then
  7540. lt_cv_dlopen="shl_load"
  7541. else
  7542. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  7543. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  7544. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  7545. echo $ECHO_N "(cached) $ECHO_C" >&6
  7546. else
  7547. ac_check_lib_save_LIBS=$LIBS
  7548. LIBS="-ldld $LIBS"
  7549. cat >conftest.$ac_ext <<_ACEOF
  7550. /* confdefs.h. */
  7551. _ACEOF
  7552. cat confdefs.h >>conftest.$ac_ext
  7553. cat >>conftest.$ac_ext <<_ACEOF
  7554. /* end confdefs.h. */
  7555. /* Override any gcc2 internal prototype to avoid an error. */
  7556. #ifdef __cplusplus
  7557. extern "C"
  7558. #endif
  7559. /* We use char because int might match the return type of a gcc2
  7560. builtin and then its argument prototype would still apply. */
  7561. char shl_load ();
  7562. int
  7563. main ()
  7564. {
  7565. shl_load ();
  7566. ;
  7567. return 0;
  7568. }
  7569. _ACEOF
  7570. rm -f conftest.$ac_objext conftest$ac_exeext
  7571. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7572. (eval $ac_link) 2>conftest.er1
  7573. ac_status=$?
  7574. grep -v '^ *+' conftest.er1 >conftest.err
  7575. rm -f conftest.er1
  7576. cat conftest.err >&5
  7577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7578. (exit $ac_status); } &&
  7579. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7580. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7581. (eval $ac_try) 2>&5
  7582. ac_status=$?
  7583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7584. (exit $ac_status); }; } &&
  7585. { ac_try='test -s conftest$ac_exeext'
  7586. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7587. (eval $ac_try) 2>&5
  7588. ac_status=$?
  7589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7590. (exit $ac_status); }; }; then
  7591. ac_cv_lib_dld_shl_load=yes
  7592. else
  7593. echo "$as_me: failed program was:" >&5
  7594. sed 's/^/| /' conftest.$ac_ext >&5
  7595. ac_cv_lib_dld_shl_load=no
  7596. fi
  7597. rm -f conftest.err conftest.$ac_objext \
  7598. conftest$ac_exeext conftest.$ac_ext
  7599. LIBS=$ac_check_lib_save_LIBS
  7600. fi
  7601. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  7602. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  7603. if test $ac_cv_lib_dld_shl_load = yes; then
  7604. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  7605. else
  7606. echo "$as_me:$LINENO: checking for dlopen" >&5
  7607. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  7608. if test "${ac_cv_func_dlopen+set}" = set; then
  7609. echo $ECHO_N "(cached) $ECHO_C" >&6
  7610. else
  7611. cat >conftest.$ac_ext <<_ACEOF
  7612. /* confdefs.h. */
  7613. _ACEOF
  7614. cat confdefs.h >>conftest.$ac_ext
  7615. cat >>conftest.$ac_ext <<_ACEOF
  7616. /* end confdefs.h. */
  7617. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  7618. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7619. #define dlopen innocuous_dlopen
  7620. /* System header to define __stub macros and hopefully few prototypes,
  7621. which can conflict with char dlopen (); below.
  7622. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7623. <limits.h> exists even on freestanding compilers. */
  7624. #ifdef __STDC__
  7625. # include <limits.h>
  7626. #else
  7627. # include <assert.h>
  7628. #endif
  7629. #undef dlopen
  7630. /* Override any gcc2 internal prototype to avoid an error. */
  7631. #ifdef __cplusplus
  7632. extern "C"
  7633. {
  7634. #endif
  7635. /* We use char because int might match the return type of a gcc2
  7636. builtin and then its argument prototype would still apply. */
  7637. char dlopen ();
  7638. /* The GNU C library defines this for functions which it implements
  7639. to always fail with ENOSYS. Some functions are actually named
  7640. something starting with __ and the normal name is an alias. */
  7641. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  7642. choke me
  7643. #else
  7644. char (*f) () = dlopen;
  7645. #endif
  7646. #ifdef __cplusplus
  7647. }
  7648. #endif
  7649. int
  7650. main ()
  7651. {
  7652. return f != dlopen;
  7653. ;
  7654. return 0;
  7655. }
  7656. _ACEOF
  7657. rm -f conftest.$ac_objext conftest$ac_exeext
  7658. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7659. (eval $ac_link) 2>conftest.er1
  7660. ac_status=$?
  7661. grep -v '^ *+' conftest.er1 >conftest.err
  7662. rm -f conftest.er1
  7663. cat conftest.err >&5
  7664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7665. (exit $ac_status); } &&
  7666. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7668. (eval $ac_try) 2>&5
  7669. ac_status=$?
  7670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7671. (exit $ac_status); }; } &&
  7672. { ac_try='test -s conftest$ac_exeext'
  7673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7674. (eval $ac_try) 2>&5
  7675. ac_status=$?
  7676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7677. (exit $ac_status); }; }; then
  7678. ac_cv_func_dlopen=yes
  7679. else
  7680. echo "$as_me: failed program was:" >&5
  7681. sed 's/^/| /' conftest.$ac_ext >&5
  7682. ac_cv_func_dlopen=no
  7683. fi
  7684. rm -f conftest.err conftest.$ac_objext \
  7685. conftest$ac_exeext conftest.$ac_ext
  7686. fi
  7687. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  7688. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  7689. if test $ac_cv_func_dlopen = yes; then
  7690. lt_cv_dlopen="dlopen"
  7691. else
  7692. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7693. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7694. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7695. echo $ECHO_N "(cached) $ECHO_C" >&6
  7696. else
  7697. ac_check_lib_save_LIBS=$LIBS
  7698. LIBS="-ldl $LIBS"
  7699. cat >conftest.$ac_ext <<_ACEOF
  7700. /* confdefs.h. */
  7701. _ACEOF
  7702. cat confdefs.h >>conftest.$ac_ext
  7703. cat >>conftest.$ac_ext <<_ACEOF
  7704. /* end confdefs.h. */
  7705. /* Override any gcc2 internal prototype to avoid an error. */
  7706. #ifdef __cplusplus
  7707. extern "C"
  7708. #endif
  7709. /* We use char because int might match the return type of a gcc2
  7710. builtin and then its argument prototype would still apply. */
  7711. char dlopen ();
  7712. int
  7713. main ()
  7714. {
  7715. dlopen ();
  7716. ;
  7717. return 0;
  7718. }
  7719. _ACEOF
  7720. rm -f conftest.$ac_objext conftest$ac_exeext
  7721. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7722. (eval $ac_link) 2>conftest.er1
  7723. ac_status=$?
  7724. grep -v '^ *+' conftest.er1 >conftest.err
  7725. rm -f conftest.er1
  7726. cat conftest.err >&5
  7727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7728. (exit $ac_status); } &&
  7729. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7730. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7731. (eval $ac_try) 2>&5
  7732. ac_status=$?
  7733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7734. (exit $ac_status); }; } &&
  7735. { ac_try='test -s conftest$ac_exeext'
  7736. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7737. (eval $ac_try) 2>&5
  7738. ac_status=$?
  7739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7740. (exit $ac_status); }; }; then
  7741. ac_cv_lib_dl_dlopen=yes
  7742. else
  7743. echo "$as_me: failed program was:" >&5
  7744. sed 's/^/| /' conftest.$ac_ext >&5
  7745. ac_cv_lib_dl_dlopen=no
  7746. fi
  7747. rm -f conftest.err conftest.$ac_objext \
  7748. conftest$ac_exeext conftest.$ac_ext
  7749. LIBS=$ac_check_lib_save_LIBS
  7750. fi
  7751. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7752. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7753. if test $ac_cv_lib_dl_dlopen = yes; then
  7754. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7755. else
  7756. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  7757. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  7758. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  7759. echo $ECHO_N "(cached) $ECHO_C" >&6
  7760. else
  7761. ac_check_lib_save_LIBS=$LIBS
  7762. LIBS="-lsvld $LIBS"
  7763. cat >conftest.$ac_ext <<_ACEOF
  7764. /* confdefs.h. */
  7765. _ACEOF
  7766. cat confdefs.h >>conftest.$ac_ext
  7767. cat >>conftest.$ac_ext <<_ACEOF
  7768. /* end confdefs.h. */
  7769. /* Override any gcc2 internal prototype to avoid an error. */
  7770. #ifdef __cplusplus
  7771. extern "C"
  7772. #endif
  7773. /* We use char because int might match the return type of a gcc2
  7774. builtin and then its argument prototype would still apply. */
  7775. char dlopen ();
  7776. int
  7777. main ()
  7778. {
  7779. dlopen ();
  7780. ;
  7781. return 0;
  7782. }
  7783. _ACEOF
  7784. rm -f conftest.$ac_objext conftest$ac_exeext
  7785. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7786. (eval $ac_link) 2>conftest.er1
  7787. ac_status=$?
  7788. grep -v '^ *+' conftest.er1 >conftest.err
  7789. rm -f conftest.er1
  7790. cat conftest.err >&5
  7791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7792. (exit $ac_status); } &&
  7793. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7794. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7795. (eval $ac_try) 2>&5
  7796. ac_status=$?
  7797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7798. (exit $ac_status); }; } &&
  7799. { ac_try='test -s conftest$ac_exeext'
  7800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7801. (eval $ac_try) 2>&5
  7802. ac_status=$?
  7803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7804. (exit $ac_status); }; }; then
  7805. ac_cv_lib_svld_dlopen=yes
  7806. else
  7807. echo "$as_me: failed program was:" >&5
  7808. sed 's/^/| /' conftest.$ac_ext >&5
  7809. ac_cv_lib_svld_dlopen=no
  7810. fi
  7811. rm -f conftest.err conftest.$ac_objext \
  7812. conftest$ac_exeext conftest.$ac_ext
  7813. LIBS=$ac_check_lib_save_LIBS
  7814. fi
  7815. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  7816. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  7817. if test $ac_cv_lib_svld_dlopen = yes; then
  7818. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  7819. else
  7820. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  7821. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  7822. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  7823. echo $ECHO_N "(cached) $ECHO_C" >&6
  7824. else
  7825. ac_check_lib_save_LIBS=$LIBS
  7826. LIBS="-ldld $LIBS"
  7827. cat >conftest.$ac_ext <<_ACEOF
  7828. /* confdefs.h. */
  7829. _ACEOF
  7830. cat confdefs.h >>conftest.$ac_ext
  7831. cat >>conftest.$ac_ext <<_ACEOF
  7832. /* end confdefs.h. */
  7833. /* Override any gcc2 internal prototype to avoid an error. */
  7834. #ifdef __cplusplus
  7835. extern "C"
  7836. #endif
  7837. /* We use char because int might match the return type of a gcc2
  7838. builtin and then its argument prototype would still apply. */
  7839. char dld_link ();
  7840. int
  7841. main ()
  7842. {
  7843. dld_link ();
  7844. ;
  7845. return 0;
  7846. }
  7847. _ACEOF
  7848. rm -f conftest.$ac_objext conftest$ac_exeext
  7849. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7850. (eval $ac_link) 2>conftest.er1
  7851. ac_status=$?
  7852. grep -v '^ *+' conftest.er1 >conftest.err
  7853. rm -f conftest.er1
  7854. cat conftest.err >&5
  7855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7856. (exit $ac_status); } &&
  7857. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7858. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7859. (eval $ac_try) 2>&5
  7860. ac_status=$?
  7861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7862. (exit $ac_status); }; } &&
  7863. { ac_try='test -s conftest$ac_exeext'
  7864. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7865. (eval $ac_try) 2>&5
  7866. ac_status=$?
  7867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7868. (exit $ac_status); }; }; then
  7869. ac_cv_lib_dld_dld_link=yes
  7870. else
  7871. echo "$as_me: failed program was:" >&5
  7872. sed 's/^/| /' conftest.$ac_ext >&5
  7873. ac_cv_lib_dld_dld_link=no
  7874. fi
  7875. rm -f conftest.err conftest.$ac_objext \
  7876. conftest$ac_exeext conftest.$ac_ext
  7877. LIBS=$ac_check_lib_save_LIBS
  7878. fi
  7879. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  7880. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  7881. if test $ac_cv_lib_dld_dld_link = yes; then
  7882. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  7883. fi
  7884. fi
  7885. fi
  7886. fi
  7887. fi
  7888. fi
  7889. ;;
  7890. esac
  7891. if test "x$lt_cv_dlopen" != xno; then
  7892. enable_dlopen=yes
  7893. else
  7894. enable_dlopen=no
  7895. fi
  7896. case $lt_cv_dlopen in
  7897. dlopen)
  7898. save_CPPFLAGS="$CPPFLAGS"
  7899. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  7900. save_LDFLAGS="$LDFLAGS"
  7901. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  7902. save_LIBS="$LIBS"
  7903. LIBS="$lt_cv_dlopen_libs $LIBS"
  7904. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  7905. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  7906. if test "${lt_cv_dlopen_self+set}" = set; then
  7907. echo $ECHO_N "(cached) $ECHO_C" >&6
  7908. else
  7909. if test "$cross_compiling" = yes; then :
  7910. lt_cv_dlopen_self=cross
  7911. else
  7912. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  7913. lt_status=$lt_dlunknown
  7914. cat > conftest.$ac_ext <<EOF
  7915. #line 8740 "configure"
  7916. #include "confdefs.h"
  7917. #if HAVE_DLFCN_H
  7918. #include <dlfcn.h>
  7919. #endif
  7920. #include <stdio.h>
  7921. #ifdef RTLD_GLOBAL
  7922. # define LT_DLGLOBAL RTLD_GLOBAL
  7923. #else
  7924. # ifdef DL_GLOBAL
  7925. # define LT_DLGLOBAL DL_GLOBAL
  7926. # else
  7927. # define LT_DLGLOBAL 0
  7928. # endif
  7929. #endif
  7930. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  7931. find out it does not work in some platform. */
  7932. #ifndef LT_DLLAZY_OR_NOW
  7933. # ifdef RTLD_LAZY
  7934. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  7935. # else
  7936. # ifdef DL_LAZY
  7937. # define LT_DLLAZY_OR_NOW DL_LAZY
  7938. # else
  7939. # ifdef RTLD_NOW
  7940. # define LT_DLLAZY_OR_NOW RTLD_NOW
  7941. # else
  7942. # ifdef DL_NOW
  7943. # define LT_DLLAZY_OR_NOW DL_NOW
  7944. # else
  7945. # define LT_DLLAZY_OR_NOW 0
  7946. # endif
  7947. # endif
  7948. # endif
  7949. # endif
  7950. #endif
  7951. #ifdef __cplusplus
  7952. extern "C" void exit (int);
  7953. #endif
  7954. void fnord() { int i=42;}
  7955. int main ()
  7956. {
  7957. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  7958. int status = $lt_dlunknown;
  7959. if (self)
  7960. {
  7961. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  7962. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  7963. /* dlclose (self); */
  7964. }
  7965. exit (status);
  7966. }
  7967. EOF
  7968. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7969. (eval $ac_link) 2>&5
  7970. ac_status=$?
  7971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7972. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  7973. (./conftest; exit; ) 2>/dev/null
  7974. lt_status=$?
  7975. case x$lt_status in
  7976. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  7977. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  7978. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  7979. esac
  7980. else :
  7981. # compilation failed
  7982. lt_cv_dlopen_self=no
  7983. fi
  7984. fi
  7985. rm -fr conftest*
  7986. fi
  7987. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  7988. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  7989. if test "x$lt_cv_dlopen_self" = xyes; then
  7990. LDFLAGS="$LDFLAGS $link_static_flag"
  7991. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  7992. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  7993. if test "${lt_cv_dlopen_self_static+set}" = set; then
  7994. echo $ECHO_N "(cached) $ECHO_C" >&6
  7995. else
  7996. if test "$cross_compiling" = yes; then :
  7997. lt_cv_dlopen_self_static=cross
  7998. else
  7999. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8000. lt_status=$lt_dlunknown
  8001. cat > conftest.$ac_ext <<EOF
  8002. #line 8838 "configure"
  8003. #include "confdefs.h"
  8004. #if HAVE_DLFCN_H
  8005. #include <dlfcn.h>
  8006. #endif
  8007. #include <stdio.h>
  8008. #ifdef RTLD_GLOBAL
  8009. # define LT_DLGLOBAL RTLD_GLOBAL
  8010. #else
  8011. # ifdef DL_GLOBAL
  8012. # define LT_DLGLOBAL DL_GLOBAL
  8013. # else
  8014. # define LT_DLGLOBAL 0
  8015. # endif
  8016. #endif
  8017. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8018. find out it does not work in some platform. */
  8019. #ifndef LT_DLLAZY_OR_NOW
  8020. # ifdef RTLD_LAZY
  8021. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8022. # else
  8023. # ifdef DL_LAZY
  8024. # define LT_DLLAZY_OR_NOW DL_LAZY
  8025. # else
  8026. # ifdef RTLD_NOW
  8027. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8028. # else
  8029. # ifdef DL_NOW
  8030. # define LT_DLLAZY_OR_NOW DL_NOW
  8031. # else
  8032. # define LT_DLLAZY_OR_NOW 0
  8033. # endif
  8034. # endif
  8035. # endif
  8036. # endif
  8037. #endif
  8038. #ifdef __cplusplus
  8039. extern "C" void exit (int);
  8040. #endif
  8041. void fnord() { int i=42;}
  8042. int main ()
  8043. {
  8044. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8045. int status = $lt_dlunknown;
  8046. if (self)
  8047. {
  8048. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8049. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8050. /* dlclose (self); */
  8051. }
  8052. exit (status);
  8053. }
  8054. EOF
  8055. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8056. (eval $ac_link) 2>&5
  8057. ac_status=$?
  8058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8059. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8060. (./conftest; exit; ) 2>/dev/null
  8061. lt_status=$?
  8062. case x$lt_status in
  8063. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8064. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8065. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  8066. esac
  8067. else :
  8068. # compilation failed
  8069. lt_cv_dlopen_self_static=no
  8070. fi
  8071. fi
  8072. rm -fr conftest*
  8073. fi
  8074. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8075. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  8076. fi
  8077. CPPFLAGS="$save_CPPFLAGS"
  8078. LDFLAGS="$save_LDFLAGS"
  8079. LIBS="$save_LIBS"
  8080. ;;
  8081. esac
  8082. case $lt_cv_dlopen_self in
  8083. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8084. *) enable_dlopen_self=unknown ;;
  8085. esac
  8086. case $lt_cv_dlopen_self_static in
  8087. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8088. *) enable_dlopen_self_static=unknown ;;
  8089. esac
  8090. fi
  8091. # Report which librarie types wil actually be built
  8092. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8093. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  8094. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8095. echo "${ECHO_T}$can_build_shared" >&6
  8096. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8097. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  8098. test "$can_build_shared" = "no" && enable_shared=no
  8099. # On AIX, shared libraries and static libraries use the same namespace, and
  8100. # are all built from PIC.
  8101. case "$host_os" in
  8102. aix3*)
  8103. test "$enable_shared" = yes && enable_static=no
  8104. if test -n "$RANLIB"; then
  8105. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8106. postinstall_cmds='$RANLIB $lib'
  8107. fi
  8108. ;;
  8109. aix4*)
  8110. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8111. test "$enable_shared" = yes && enable_static=no
  8112. fi
  8113. ;;
  8114. darwin* | rhapsody*)
  8115. if test "$GCC" = yes; then
  8116. archive_cmds_need_lc=no
  8117. case "$host_os" in
  8118. rhapsody* | darwin1.[012])
  8119. allow_undefined_flag='-undefined suppress'
  8120. ;;
  8121. *) # Darwin 1.3 on
  8122. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  8123. allow_undefined_flag='-flat_namespace -undefined suppress'
  8124. else
  8125. case ${MACOSX_DEPLOYMENT_TARGET} in
  8126. 10.[012])
  8127. allow_undefined_flag='-flat_namespace -undefined suppress'
  8128. ;;
  8129. 10.*)
  8130. allow_undefined_flag='-undefined dynamic_lookup'
  8131. ;;
  8132. esac
  8133. fi
  8134. ;;
  8135. esac
  8136. output_verbose_link_cmd='echo'
  8137. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
  8138. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8139. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  8140. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8141. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8142. hardcode_direct=no
  8143. hardcode_automatic=yes
  8144. hardcode_shlibpath_var=unsupported
  8145. whole_archive_flag_spec='-all_load $convenience'
  8146. link_all_deplibs=yes
  8147. else
  8148. ld_shlibs=no
  8149. fi
  8150. ;;
  8151. esac
  8152. echo "$as_me:$LINENO: result: $enable_shared" >&5
  8153. echo "${ECHO_T}$enable_shared" >&6
  8154. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8155. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  8156. # Make sure either enable_shared or enable_static is yes.
  8157. test "$enable_shared" = yes || enable_static=yes
  8158. echo "$as_me:$LINENO: result: $enable_static" >&5
  8159. echo "${ECHO_T}$enable_static" >&6
  8160. # The else clause should only fire when bootstrapping the
  8161. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8162. # with your package, and you will get complaints that there are
  8163. # no rules to generate ltmain.sh.
  8164. if test -f "$ltmain"; then
  8165. # See if we are running on zsh, and set the options which allow our commands through
  8166. # without removal of \ escapes.
  8167. if test -n "${ZSH_VERSION+set}" ; then
  8168. setopt NO_GLOB_SUBST
  8169. fi
  8170. # Now quote all the things that may contain metacharacters while being
  8171. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8172. # variables and quote the copies for generation of the libtool script.
  8173. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  8174. SED SHELL STRIP \
  8175. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8176. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8177. deplibs_check_method reload_flag reload_cmds need_locks \
  8178. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8179. lt_cv_sys_global_symbol_to_c_name_address \
  8180. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8181. old_postinstall_cmds old_postuninstall_cmds \
  8182. compiler \
  8183. CC \
  8184. LD \
  8185. lt_prog_compiler_wl \
  8186. lt_prog_compiler_pic \
  8187. lt_prog_compiler_static \
  8188. lt_prog_compiler_no_builtin_flag \
  8189. export_dynamic_flag_spec \
  8190. thread_safe_flag_spec \
  8191. whole_archive_flag_spec \
  8192. enable_shared_with_static_runtimes \
  8193. old_archive_cmds \
  8194. old_archive_from_new_cmds \
  8195. predep_objects \
  8196. postdep_objects \
  8197. predeps \
  8198. postdeps \
  8199. compiler_lib_search_path \
  8200. archive_cmds \
  8201. archive_expsym_cmds \
  8202. postinstall_cmds \
  8203. postuninstall_cmds \
  8204. old_archive_from_expsyms_cmds \
  8205. allow_undefined_flag \
  8206. no_undefined_flag \
  8207. export_symbols_cmds \
  8208. hardcode_libdir_flag_spec \
  8209. hardcode_libdir_flag_spec_ld \
  8210. hardcode_libdir_separator \
  8211. hardcode_automatic \
  8212. module_cmds \
  8213. module_expsym_cmds \
  8214. lt_cv_prog_compiler_c_o \
  8215. exclude_expsyms \
  8216. include_expsyms; do
  8217. case $var in
  8218. old_archive_cmds | \
  8219. old_archive_from_new_cmds | \
  8220. archive_cmds | \
  8221. archive_expsym_cmds | \
  8222. module_cmds | \
  8223. module_expsym_cmds | \
  8224. old_archive_from_expsyms_cmds | \
  8225. export_symbols_cmds | \
  8226. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  8227. postinstall_cmds | postuninstall_cmds | \
  8228. old_postinstall_cmds | old_postuninstall_cmds | \
  8229. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  8230. # Double-quote double-evaled strings.
  8231. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  8232. ;;
  8233. *)
  8234. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  8235. ;;
  8236. esac
  8237. done
  8238. case $lt_echo in
  8239. *'\$0 --fallback-echo"')
  8240. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  8241. ;;
  8242. esac
  8243. cfgfile="${ofile}T"
  8244. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  8245. $rm -f "$cfgfile"
  8246. { echo "$as_me:$LINENO: creating $ofile" >&5
  8247. echo "$as_me: creating $ofile" >&6;}
  8248. cat <<__EOF__ >> "$cfgfile"
  8249. #! $SHELL
  8250. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  8251. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  8252. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  8253. #
  8254. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  8255. # Free Software Foundation, Inc.
  8256. #
  8257. # This file is part of GNU Libtool:
  8258. # Originally by Gordon Matzigkeit <[email protected]>, 1996
  8259. #
  8260. # This program is free software; you can redistribute it and/or modify
  8261. # it under the terms of the GNU General Public License as published by
  8262. # the Free Software Foundation; either version 2 of the License, or
  8263. # (at your option) any later version.
  8264. #
  8265. # This program is distributed in the hope that it will be useful, but
  8266. # WITHOUT ANY WARRANTY; without even the implied warranty of
  8267. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8268. # General Public License for more details.
  8269. #
  8270. # You should have received a copy of the GNU General Public License
  8271. # along with this program; if not, write to the Free Software
  8272. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  8273. #
  8274. # As a special exception to the GNU General Public License, if you
  8275. # distribute this file as part of a program that contains a
  8276. # configuration script generated by Autoconf, you may include it under
  8277. # the same distribution terms that you use for the rest of that program.
  8278. # A sed program that does not truncate output.
  8279. SED=$lt_SED
  8280. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8281. Xsed="$SED -e s/^X//"
  8282. # The HP-UX ksh and POSIX shell print the target directory to stdout
  8283. # if CDPATH is set.
  8284. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  8285. # The names of the tagged configurations supported by this script.
  8286. available_tags=
  8287. # ### BEGIN LIBTOOL CONFIG
  8288. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8289. # Shell to use when invoking shell scripts.
  8290. SHELL=$lt_SHELL
  8291. # Whether or not to build shared libraries.
  8292. build_libtool_libs=$enable_shared
  8293. # Whether or not to build static libraries.
  8294. build_old_libs=$enable_static
  8295. # Whether or not to add -lc for building shared libraries.
  8296. build_libtool_need_lc=$archive_cmds_need_lc
  8297. # Whether or not to disallow shared libs when runtime libs are static
  8298. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  8299. # Whether or not to optimize for fast installation.
  8300. fast_install=$enable_fast_install
  8301. # The host system.
  8302. host_alias=$host_alias
  8303. host=$host
  8304. # An echo program that does not interpret backslashes.
  8305. echo=$lt_echo
  8306. # The archiver.
  8307. AR=$lt_AR
  8308. AR_FLAGS=$lt_AR_FLAGS
  8309. # A C compiler.
  8310. LTCC=$lt_LTCC
  8311. # A language-specific compiler.
  8312. CC=$lt_compiler
  8313. # Is the compiler the GNU C compiler?
  8314. with_gcc=$GCC
  8315. # An ERE matcher.
  8316. EGREP=$lt_EGREP
  8317. # The linker used to build libraries.
  8318. LD=$lt_LD
  8319. # Whether we need hard or soft links.
  8320. LN_S=$lt_LN_S
  8321. # A BSD-compatible nm program.
  8322. NM=$lt_NM
  8323. # A symbol stripping program
  8324. STRIP=$lt_STRIP
  8325. # Used to examine libraries when file_magic_cmd begins "file"
  8326. MAGIC_CMD=$MAGIC_CMD
  8327. # Used on cygwin: DLL creation program.
  8328. DLLTOOL="$DLLTOOL"
  8329. # Used on cygwin: object dumper.
  8330. OBJDUMP="$OBJDUMP"
  8331. # Used on cygwin: assembler.
  8332. AS="$AS"
  8333. # The name of the directory that contains temporary libtool files.
  8334. objdir=$objdir
  8335. # How to create reloadable object files.
  8336. reload_flag=$lt_reload_flag
  8337. reload_cmds=$lt_reload_cmds
  8338. # How to pass a linker flag through the compiler.
  8339. wl=$lt_lt_prog_compiler_wl
  8340. # Object file suffix (normally "o").
  8341. objext="$ac_objext"
  8342. # Old archive suffix (normally "a").
  8343. libext="$libext"
  8344. # Shared library suffix (normally ".so").
  8345. shrext='$shrext'
  8346. # Executable file suffix (normally "").
  8347. exeext="$exeext"
  8348. # Additional compiler flags for building library objects.
  8349. pic_flag=$lt_lt_prog_compiler_pic
  8350. pic_mode=$pic_mode
  8351. # What is the maximum length of a command?
  8352. max_cmd_len=$lt_cv_sys_max_cmd_len
  8353. # Does compiler simultaneously support -c and -o options?
  8354. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  8355. # Must we lock files when doing compilation ?
  8356. need_locks=$lt_need_locks
  8357. # Do we need the lib prefix for modules?
  8358. need_lib_prefix=$need_lib_prefix
  8359. # Do we need a version for libraries?
  8360. need_version=$need_version
  8361. # Whether dlopen is supported.
  8362. dlopen_support=$enable_dlopen
  8363. # Whether dlopen of programs is supported.
  8364. dlopen_self=$enable_dlopen_self
  8365. # Whether dlopen of statically linked programs is supported.
  8366. dlopen_self_static=$enable_dlopen_self_static
  8367. # Compiler flag to prevent dynamic linking.
  8368. link_static_flag=$lt_lt_prog_compiler_static
  8369. # Compiler flag to turn off builtin functions.
  8370. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8371. # Compiler flag to allow reflexive dlopens.
  8372. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8373. # Compiler flag to generate shared objects directly from archives.
  8374. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8375. # Compiler flag to generate thread-safe objects.
  8376. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8377. # Library versioning type.
  8378. version_type=$version_type
  8379. # Format of library name prefix.
  8380. libname_spec=$lt_libname_spec
  8381. # List of archive names. First name is the real one, the rest are links.
  8382. # The last name is the one that the linker finds with -lNAME.
  8383. library_names_spec=$lt_library_names_spec
  8384. # The coded name of the library, if different from the real name.
  8385. soname_spec=$lt_soname_spec
  8386. # Commands used to build and install an old-style archive.
  8387. RANLIB=$lt_RANLIB
  8388. old_archive_cmds=$lt_old_archive_cmds
  8389. old_postinstall_cmds=$lt_old_postinstall_cmds
  8390. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8391. # Create an old-style archive from a shared archive.
  8392. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8393. # Create a temporary old-style archive to link instead of a shared archive.
  8394. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8395. # Commands used to build and install a shared archive.
  8396. archive_cmds=$lt_archive_cmds
  8397. archive_expsym_cmds=$lt_archive_expsym_cmds
  8398. postinstall_cmds=$lt_postinstall_cmds
  8399. postuninstall_cmds=$lt_postuninstall_cmds
  8400. # Commands used to build a loadable module (assumed same as above if empty)
  8401. module_cmds=$lt_module_cmds
  8402. module_expsym_cmds=$lt_module_expsym_cmds
  8403. # Commands to strip libraries.
  8404. old_striplib=$lt_old_striplib
  8405. striplib=$lt_striplib
  8406. # Dependencies to place before the objects being linked to create a
  8407. # shared library.
  8408. predep_objects=$lt_predep_objects
  8409. # Dependencies to place after the objects being linked to create a
  8410. # shared library.
  8411. postdep_objects=$lt_postdep_objects
  8412. # Dependencies to place before the objects being linked to create a
  8413. # shared library.
  8414. predeps=$lt_predeps
  8415. # Dependencies to place after the objects being linked to create a
  8416. # shared library.
  8417. postdeps=$lt_postdeps
  8418. # The library search path used internally by the compiler when linking
  8419. # a shared library.
  8420. compiler_lib_search_path=$lt_compiler_lib_search_path
  8421. # Method to check whether dependent libraries are shared objects.
  8422. deplibs_check_method=$lt_deplibs_check_method
  8423. # Command to use when deplibs_check_method == file_magic.
  8424. file_magic_cmd=$lt_file_magic_cmd
  8425. # Flag that allows shared libraries with undefined symbols to be built.
  8426. allow_undefined_flag=$lt_allow_undefined_flag
  8427. # Flag that forces no undefined symbols.
  8428. no_undefined_flag=$lt_no_undefined_flag
  8429. # Commands used to finish a libtool library installation in a directory.
  8430. finish_cmds=$lt_finish_cmds
  8431. # Same as above, but a single script fragment to be evaled but not shown.
  8432. finish_eval=$lt_finish_eval
  8433. # Take the output of nm and produce a listing of raw symbols and C names.
  8434. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8435. # Transform the output of nm in a proper C declaration
  8436. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8437. # Transform the output of nm in a C name address pair
  8438. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8439. # This is the shared library runtime path variable.
  8440. runpath_var=$runpath_var
  8441. # This is the shared library path variable.
  8442. shlibpath_var=$shlibpath_var
  8443. # Is shlibpath searched before the hard-coded library search path?
  8444. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8445. # How to hardcode a shared library path into an executable.
  8446. hardcode_action=$hardcode_action
  8447. # Whether we should hardcode library paths into libraries.
  8448. hardcode_into_libs=$hardcode_into_libs
  8449. # Flag to hardcode \$libdir into a binary during linking.
  8450. # This must work even if \$libdir does not exist.
  8451. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8452. # If ld is used when linking, flag to hardcode \$libdir into
  8453. # a binary during linking. This must work even if \$libdir does
  8454. # not exist.
  8455. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8456. # Whether we need a single -rpath flag with a separated argument.
  8457. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8458. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8459. # resulting binary.
  8460. hardcode_direct=$hardcode_direct
  8461. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8462. # resulting binary.
  8463. hardcode_minus_L=$hardcode_minus_L
  8464. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8465. # the resulting binary.
  8466. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8467. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8468. # and all subsequent libraries and executables linked against it.
  8469. hardcode_automatic=$hardcode_automatic
  8470. # Variables whose values should be saved in libtool wrapper scripts and
  8471. # restored at relink time.
  8472. variables_saved_for_relink="$variables_saved_for_relink"
  8473. # Whether libtool must link a program against all its dependency libraries.
  8474. link_all_deplibs=$link_all_deplibs
  8475. # Compile-time system search path for libraries
  8476. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8477. # Run-time system search path for libraries
  8478. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8479. # Fix the shell variable \$srcfile for the compiler.
  8480. fix_srcfile_path="$fix_srcfile_path"
  8481. # Set to yes if exported symbols are required.
  8482. always_export_symbols=$always_export_symbols
  8483. # The commands to list exported symbols.
  8484. export_symbols_cmds=$lt_export_symbols_cmds
  8485. # The commands to extract the exported symbol list from a shared archive.
  8486. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8487. # Symbols that should not be listed in the preloaded symbols.
  8488. exclude_expsyms=$lt_exclude_expsyms
  8489. # Symbols that must always be exported.
  8490. include_expsyms=$lt_include_expsyms
  8491. # ### END LIBTOOL CONFIG
  8492. __EOF__
  8493. case $host_os in
  8494. aix3*)
  8495. cat <<\EOF >> "$cfgfile"
  8496. # AIX sometimes has problems with the GCC collect2 program. For some
  8497. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8498. # vanish in a puff of smoke.
  8499. if test "X${COLLECT_NAMES+set}" != Xset; then
  8500. COLLECT_NAMES=
  8501. export COLLECT_NAMES
  8502. fi
  8503. EOF
  8504. ;;
  8505. esac
  8506. # We use sed instead of cat because bash on DJGPP gets confused if
  8507. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8508. # text mode, it properly converts lines to CR/LF. This bash problem
  8509. # is reportedly fixed, but why not run on old versions too?
  8510. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8511. mv -f "$cfgfile" "$ofile" || \
  8512. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8513. chmod +x "$ofile"
  8514. else
  8515. # If there is no Makefile yet, we rely on a make rule to execute
  8516. # `config.status --recheck' to rerun these tests and create the
  8517. # libtool script then.
  8518. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8519. if test -f "$ltmain_in"; then
  8520. test -f Makefile && make "$ltmain"
  8521. fi
  8522. fi
  8523. ac_ext=c
  8524. ac_cpp='$CPP $CPPFLAGS'
  8525. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8526. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8527. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8528. CC="$lt_save_CC"
  8529. # Check whether --with-tags or --without-tags was given.
  8530. if test "${with_tags+set}" = set; then
  8531. withval="$with_tags"
  8532. tagnames="$withval"
  8533. fi;
  8534. if test -f "$ltmain" && test -n "$tagnames"; then
  8535. if test ! -f "${ofile}"; then
  8536. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  8537. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  8538. fi
  8539. if test -z "$LTCC"; then
  8540. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  8541. if test -z "$LTCC"; then
  8542. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  8543. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  8544. else
  8545. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  8546. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  8547. fi
  8548. fi
  8549. # Extract list of available tagged configurations in $ofile.
  8550. # Note that this assumes the entire list is on one line.
  8551. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  8552. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8553. for tagname in $tagnames; do
  8554. IFS="$lt_save_ifs"
  8555. # Check whether tagname contains only valid characters
  8556. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  8557. "") ;;
  8558. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  8559. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  8560. { (exit 1); exit 1; }; }
  8561. ;;
  8562. esac
  8563. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  8564. then
  8565. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  8566. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  8567. { (exit 1); exit 1; }; }
  8568. fi
  8569. # Update the list of available tags.
  8570. if test -n "$tagname"; then
  8571. echo appending configuration tag \"$tagname\" to $ofile
  8572. case $tagname in
  8573. CXX)
  8574. if test -n "$CXX" && test "X$CXX" != "Xno"; then
  8575. ac_ext=cc
  8576. ac_cpp='$CXXCPP $CPPFLAGS'
  8577. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8578. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8579. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8580. archive_cmds_need_lc_CXX=no
  8581. allow_undefined_flag_CXX=
  8582. always_export_symbols_CXX=no
  8583. archive_expsym_cmds_CXX=
  8584. export_dynamic_flag_spec_CXX=
  8585. hardcode_direct_CXX=no
  8586. hardcode_libdir_flag_spec_CXX=
  8587. hardcode_libdir_flag_spec_ld_CXX=
  8588. hardcode_libdir_separator_CXX=
  8589. hardcode_minus_L_CXX=no
  8590. hardcode_automatic_CXX=no
  8591. module_cmds_CXX=
  8592. module_expsym_cmds_CXX=
  8593. link_all_deplibs_CXX=unknown
  8594. old_archive_cmds_CXX=$old_archive_cmds
  8595. no_undefined_flag_CXX=
  8596. whole_archive_flag_spec_CXX=
  8597. enable_shared_with_static_runtimes_CXX=no
  8598. # Dependencies to place before and after the object being linked:
  8599. predep_objects_CXX=
  8600. postdep_objects_CXX=
  8601. predeps_CXX=
  8602. postdeps_CXX=
  8603. compiler_lib_search_path_CXX=
  8604. # Source file extension for C++ test sources.
  8605. ac_ext=cc
  8606. # Object file extension for compiled C++ test sources.
  8607. objext=o
  8608. objext_CXX=$objext
  8609. # Code to be used in simple compile tests
  8610. lt_simple_compile_test_code="int some_variable = 0;\n"
  8611. # Code to be used in simple link tests
  8612. lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  8613. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8614. # If no C compiler was specified, use CC.
  8615. LTCC=${LTCC-"$CC"}
  8616. # Allow CC to be a program name with arguments.
  8617. compiler=$CC
  8618. # Allow CC to be a program name with arguments.
  8619. lt_save_CC=$CC
  8620. lt_save_LD=$LD
  8621. lt_save_GCC=$GCC
  8622. GCC=$GXX
  8623. lt_save_with_gnu_ld=$with_gnu_ld
  8624. lt_save_path_LD=$lt_cv_path_LD
  8625. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  8626. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  8627. else
  8628. unset lt_cv_prog_gnu_ld
  8629. fi
  8630. if test -n "${lt_cv_path_LDCXX+set}"; then
  8631. lt_cv_path_LD=$lt_cv_path_LDCXX
  8632. else
  8633. unset lt_cv_path_LD
  8634. fi
  8635. test -z "${LDCXX+set}" || LD=$LDCXX
  8636. CC=${CXX-"c++"}
  8637. compiler=$CC
  8638. compiler_CXX=$CC
  8639. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  8640. # We don't want -fno-exception wen compiling C++ code, so set the
  8641. # no_builtin_flag separately
  8642. if test "$GXX" = yes; then
  8643. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  8644. else
  8645. lt_prog_compiler_no_builtin_flag_CXX=
  8646. fi
  8647. if test "$GXX" = yes; then
  8648. # Set up default GNU C++ configuration
  8649. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  8650. if test "${with_gnu_ld+set}" = set; then
  8651. withval="$with_gnu_ld"
  8652. test "$withval" = no || with_gnu_ld=yes
  8653. else
  8654. with_gnu_ld=no
  8655. fi;
  8656. ac_prog=ld
  8657. if test "$GCC" = yes; then
  8658. # Check if gcc -print-prog-name=ld gives a path.
  8659. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  8660. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  8661. case $host in
  8662. *-*-mingw*)
  8663. # gcc leaves a trailing carriage return which upsets mingw
  8664. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8665. *)
  8666. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8667. esac
  8668. case $ac_prog in
  8669. # Accept absolute paths.
  8670. [\\/]* | ?:[\\/]*)
  8671. re_direlt='/[^/][^/]*/\.\./'
  8672. # Canonicalize the pathname of ld
  8673. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  8674. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8675. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  8676. done
  8677. test -z "$LD" && LD="$ac_prog"
  8678. ;;
  8679. "")
  8680. # If it fails, then pretend we aren't using GCC.
  8681. ac_prog=ld
  8682. ;;
  8683. *)
  8684. # If it is relative, then search for the first ld in PATH.
  8685. with_gnu_ld=unknown
  8686. ;;
  8687. esac
  8688. elif test "$with_gnu_ld" = yes; then
  8689. echo "$as_me:$LINENO: checking for GNU ld" >&5
  8690. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  8691. else
  8692. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8693. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  8694. fi
  8695. if test "${lt_cv_path_LD+set}" = set; then
  8696. echo $ECHO_N "(cached) $ECHO_C" >&6
  8697. else
  8698. if test -z "$LD"; then
  8699. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8700. for ac_dir in $PATH; do
  8701. IFS="$lt_save_ifs"
  8702. test -z "$ac_dir" && ac_dir=.
  8703. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8704. lt_cv_path_LD="$ac_dir/$ac_prog"
  8705. # Check to see if the program is GNU ld. I'd rather use --version,
  8706. # but apparently some GNU ld's only accept -v.
  8707. # Break only if it was the GNU/non-GNU ld that we prefer.
  8708. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  8709. *GNU* | *'with BFD'*)
  8710. test "$with_gnu_ld" != no && break
  8711. ;;
  8712. *)
  8713. test "$with_gnu_ld" != yes && break
  8714. ;;
  8715. esac
  8716. fi
  8717. done
  8718. IFS="$lt_save_ifs"
  8719. else
  8720. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  8721. fi
  8722. fi
  8723. LD="$lt_cv_path_LD"
  8724. if test -n "$LD"; then
  8725. echo "$as_me:$LINENO: result: $LD" >&5
  8726. echo "${ECHO_T}$LD" >&6
  8727. else
  8728. echo "$as_me:$LINENO: result: no" >&5
  8729. echo "${ECHO_T}no" >&6
  8730. fi
  8731. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8732. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8733. { (exit 1); exit 1; }; }
  8734. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8735. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  8736. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  8737. echo $ECHO_N "(cached) $ECHO_C" >&6
  8738. else
  8739. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8740. case `$LD -v 2>&1 </dev/null` in
  8741. *GNU* | *'with BFD'*)
  8742. lt_cv_prog_gnu_ld=yes
  8743. ;;
  8744. *)
  8745. lt_cv_prog_gnu_ld=no
  8746. ;;
  8747. esac
  8748. fi
  8749. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  8750. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  8751. with_gnu_ld=$lt_cv_prog_gnu_ld
  8752. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  8753. # archiving commands below assume that GNU ld is being used.
  8754. if test "$with_gnu_ld" = yes; then
  8755. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8756. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8757. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  8758. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8759. # If archive_cmds runs LD, not CC, wlarc should be empty
  8760. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  8761. # investigate it a little bit more. (MM)
  8762. wlarc='${wl}'
  8763. # ancient GNU ld didn't support --whole-archive et. al.
  8764. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  8765. grep 'no-whole-archive' > /dev/null; then
  8766. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8767. else
  8768. whole_archive_flag_spec_CXX=
  8769. fi
  8770. else
  8771. with_gnu_ld=no
  8772. wlarc=
  8773. # A generic and very simple default shared library creation
  8774. # command for GNU C++ for the case where it uses the native
  8775. # linker, instead of GNU ld. If possible, this setting should
  8776. # overridden to take advantage of the native linker features on
  8777. # the platform it is being used on.
  8778. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  8779. fi
  8780. # Commands to make compiler produce verbose output that lists
  8781. # what "hidden" libraries, object files and flags are used when
  8782. # linking a shared library.
  8783. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  8784. else
  8785. GXX=no
  8786. with_gnu_ld=no
  8787. wlarc=
  8788. fi
  8789. # PORTME: fill in a description of your system's C++ link characteristics
  8790. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8791. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  8792. ld_shlibs_CXX=yes
  8793. case $host_os in
  8794. aix3*)
  8795. # FIXME: insert proper C++ library support
  8796. ld_shlibs_CXX=no
  8797. ;;
  8798. aix4* | aix5*)
  8799. if test "$host_cpu" = ia64; then
  8800. # On IA64, the linker does run time linking by default, so we don't
  8801. # have to do anything special.
  8802. aix_use_runtimelinking=no
  8803. exp_sym_flag='-Bexport'
  8804. no_entry_flag=""
  8805. else
  8806. aix_use_runtimelinking=no
  8807. # Test if we are trying to use run time linking or normal
  8808. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8809. # need to do runtime linking.
  8810. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  8811. for ld_flag in $LDFLAGS; do
  8812. case $ld_flag in
  8813. *-brtl*)
  8814. aix_use_runtimelinking=yes
  8815. break
  8816. ;;
  8817. esac
  8818. done
  8819. esac
  8820. exp_sym_flag='-bexport'
  8821. no_entry_flag='-bnoentry'
  8822. fi
  8823. # When large executables or shared objects are built, AIX ld can
  8824. # have problems creating the table of contents. If linking a library
  8825. # or program results in "error TOC overflow" add -mminimal-toc to
  8826. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8827. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8828. archive_cmds_CXX=''
  8829. hardcode_direct_CXX=yes
  8830. hardcode_libdir_separator_CXX=':'
  8831. link_all_deplibs_CXX=yes
  8832. if test "$GXX" = yes; then
  8833. case $host_os in aix4.012|aix4.012.*)
  8834. # We only want to do this on AIX 4.2 and lower, the check
  8835. # below for broken collect2 doesn't work under 4.3+
  8836. collect2name=`${CC} -print-prog-name=collect2`
  8837. if test -f "$collect2name" && \
  8838. strings "$collect2name" | grep resolve_lib_name >/dev/null
  8839. then
  8840. # We have reworked collect2
  8841. hardcode_direct_CXX=yes
  8842. else
  8843. # We have old collect2
  8844. hardcode_direct_CXX=unsupported
  8845. # It fails to find uninstalled libraries when the uninstalled
  8846. # path is not listed in the libpath. Setting hardcode_minus_L
  8847. # to unsupported forces relinking
  8848. hardcode_minus_L_CXX=yes
  8849. hardcode_libdir_flag_spec_CXX='-L$libdir'
  8850. hardcode_libdir_separator_CXX=
  8851. fi
  8852. esac
  8853. shared_flag='-shared'
  8854. else
  8855. # not using gcc
  8856. if test "$host_cpu" = ia64; then
  8857. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8858. # chokes on -Wl,-G. The following line is correct:
  8859. shared_flag='-G'
  8860. else
  8861. if test "$aix_use_runtimelinking" = yes; then
  8862. shared_flag='${wl}-G'
  8863. else
  8864. shared_flag='${wl}-bM:SRE'
  8865. fi
  8866. fi
  8867. fi
  8868. # It seems that -bexpall does not export symbols beginning with
  8869. # underscore (_), so it is better to generate a list of symbols to export.
  8870. always_export_symbols_CXX=yes
  8871. if test "$aix_use_runtimelinking" = yes; then
  8872. # Warning - without using the other runtime loading flags (-brtl),
  8873. # -berok will link without error, but may produce a broken library.
  8874. allow_undefined_flag_CXX='-berok'
  8875. # Determine the default libpath from the value encoded in an empty executable.
  8876. cat >conftest.$ac_ext <<_ACEOF
  8877. /* confdefs.h. */
  8878. _ACEOF
  8879. cat confdefs.h >>conftest.$ac_ext
  8880. cat >>conftest.$ac_ext <<_ACEOF
  8881. /* end confdefs.h. */
  8882. int
  8883. main ()
  8884. {
  8885. ;
  8886. return 0;
  8887. }
  8888. _ACEOF
  8889. rm -f conftest.$ac_objext conftest$ac_exeext
  8890. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8891. (eval $ac_link) 2>conftest.er1
  8892. ac_status=$?
  8893. grep -v '^ *+' conftest.er1 >conftest.err
  8894. rm -f conftest.er1
  8895. cat conftest.err >&5
  8896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8897. (exit $ac_status); } &&
  8898. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8899. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8900. (eval $ac_try) 2>&5
  8901. ac_status=$?
  8902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8903. (exit $ac_status); }; } &&
  8904. { ac_try='test -s conftest$ac_exeext'
  8905. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8906. (eval $ac_try) 2>&5
  8907. ac_status=$?
  8908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8909. (exit $ac_status); }; }; then
  8910. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8911. }'`
  8912. # Check for a 64-bit object if we didn't find anything.
  8913. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8914. }'`; fi
  8915. else
  8916. echo "$as_me: failed program was:" >&5
  8917. sed 's/^/| /' conftest.$ac_ext >&5
  8918. fi
  8919. rm -f conftest.err conftest.$ac_objext \
  8920. conftest$ac_exeext conftest.$ac_ext
  8921. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8922. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  8923. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8924. else
  8925. if test "$host_cpu" = ia64; then
  8926. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  8927. allow_undefined_flag_CXX="-z nodefs"
  8928. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  8929. else
  8930. # Determine the default libpath from the value encoded in an empty executable.
  8931. cat >conftest.$ac_ext <<_ACEOF
  8932. /* confdefs.h. */
  8933. _ACEOF
  8934. cat confdefs.h >>conftest.$ac_ext
  8935. cat >>conftest.$ac_ext <<_ACEOF
  8936. /* end confdefs.h. */
  8937. int
  8938. main ()
  8939. {
  8940. ;
  8941. return 0;
  8942. }
  8943. _ACEOF
  8944. rm -f conftest.$ac_objext conftest$ac_exeext
  8945. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8946. (eval $ac_link) 2>conftest.er1
  8947. ac_status=$?
  8948. grep -v '^ *+' conftest.er1 >conftest.err
  8949. rm -f conftest.er1
  8950. cat conftest.err >&5
  8951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8952. (exit $ac_status); } &&
  8953. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8955. (eval $ac_try) 2>&5
  8956. ac_status=$?
  8957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8958. (exit $ac_status); }; } &&
  8959. { ac_try='test -s conftest$ac_exeext'
  8960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8961. (eval $ac_try) 2>&5
  8962. ac_status=$?
  8963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8964. (exit $ac_status); }; }; then
  8965. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8966. }'`
  8967. # Check for a 64-bit object if we didn't find anything.
  8968. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8969. }'`; fi
  8970. else
  8971. echo "$as_me: failed program was:" >&5
  8972. sed 's/^/| /' conftest.$ac_ext >&5
  8973. fi
  8974. rm -f conftest.err conftest.$ac_objext \
  8975. conftest$ac_exeext conftest.$ac_ext
  8976. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8977. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  8978. # Warning - without using the other run time loading flags,
  8979. # -berok will link without error, but may produce a broken library.
  8980. no_undefined_flag_CXX=' ${wl}-bernotok'
  8981. allow_undefined_flag_CXX=' ${wl}-berok'
  8982. # -bexpall does not export symbols beginning with underscore (_)
  8983. always_export_symbols_CXX=yes
  8984. # Exported symbols can be pulled into shared objects from archives
  8985. whole_archive_flag_spec_CXX=' '
  8986. archive_cmds_need_lc_CXX=yes
  8987. # This is similar to how AIX traditionally builds it's shared libraries.
  8988. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8989. fi
  8990. fi
  8991. ;;
  8992. chorus*)
  8993. case $cc_basename in
  8994. *)
  8995. # FIXME: insert proper C++ library support
  8996. ld_shlibs_CXX=no
  8997. ;;
  8998. esac
  8999. ;;
  9000. cygwin* | mingw* | pw32*)
  9001. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9002. # as there is no search path for DLLs.
  9003. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9004. allow_undefined_flag_CXX=unsupported
  9005. always_export_symbols_CXX=no
  9006. enable_shared_with_static_runtimes_CXX=yes
  9007. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9008. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  9009. # If the export-symbols file already is a .def file (1st line
  9010. # is EXPORTS), use it as is; otherwise, prepend...
  9011. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9012. cp $export_symbols $output_objdir/$soname.def;
  9013. else
  9014. echo EXPORTS > $output_objdir/$soname.def;
  9015. cat $export_symbols >> $output_objdir/$soname.def;
  9016. fi~
  9017. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  9018. else
  9019. ld_shlibs_CXX=no
  9020. fi
  9021. ;;
  9022. darwin* | rhapsody*)
  9023. if test "$GXX" = yes; then
  9024. archive_cmds_need_lc_CXX=no
  9025. case "$host_os" in
  9026. rhapsody* | darwin1.[012])
  9027. allow_undefined_flag_CXX='-undefined suppress'
  9028. ;;
  9029. *) # Darwin 1.3 on
  9030. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9031. allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
  9032. else
  9033. case ${MACOSX_DEPLOYMENT_TARGET} in
  9034. 10.[012])
  9035. allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
  9036. ;;
  9037. 10.*)
  9038. allow_undefined_flag_CXX='-undefined dynamic_lookup'
  9039. ;;
  9040. esac
  9041. fi
  9042. ;;
  9043. esac
  9044. lt_int_apple_cc_single_mod=no
  9045. output_verbose_link_cmd='echo'
  9046. if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  9047. lt_int_apple_cc_single_mod=yes
  9048. fi
  9049. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9050. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9051. else
  9052. archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9053. fi
  9054. module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9055. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  9056. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9057. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9058. else
  9059. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9060. fi
  9061. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9062. hardcode_direct_CXX=no
  9063. hardcode_automatic_CXX=yes
  9064. hardcode_shlibpath_var_CXX=unsupported
  9065. whole_archive_flag_spec_CXX='-all_load $convenience'
  9066. link_all_deplibs_CXX=yes
  9067. else
  9068. ld_shlibs_CXX=no
  9069. fi
  9070. ;;
  9071. dgux*)
  9072. case $cc_basename in
  9073. ec++)
  9074. # FIXME: insert proper C++ library support
  9075. ld_shlibs_CXX=no
  9076. ;;
  9077. ghcx)
  9078. # Green Hills C++ Compiler
  9079. # FIXME: insert proper C++ library support
  9080. ld_shlibs_CXX=no
  9081. ;;
  9082. *)
  9083. # FIXME: insert proper C++ library support
  9084. ld_shlibs_CXX=no
  9085. ;;
  9086. esac
  9087. ;;
  9088. freebsd12*)
  9089. # C++ shared libraries reported to be fairly broken before switch to ELF
  9090. ld_shlibs_CXX=no
  9091. ;;
  9092. freebsd-elf*)
  9093. archive_cmds_need_lc_CXX=no
  9094. ;;
  9095. freebsd* | kfreebsd*-gnu)
  9096. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9097. # conventions
  9098. ld_shlibs_CXX=yes
  9099. ;;
  9100. gnu*)
  9101. ;;
  9102. hpux9*)
  9103. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9104. hardcode_libdir_separator_CXX=:
  9105. export_dynamic_flag_spec_CXX='${wl}-E'
  9106. hardcode_direct_CXX=yes
  9107. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9108. # but as the default
  9109. # location of the library.
  9110. case $cc_basename in
  9111. CC)
  9112. # FIXME: insert proper C++ library support
  9113. ld_shlibs_CXX=no
  9114. ;;
  9115. aCC)
  9116. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9117. # Commands to make compiler produce verbose output that lists
  9118. # what "hidden" libraries, object files and flags are used when
  9119. # linking a shared library.
  9120. #
  9121. # There doesn't appear to be a way to prevent this compiler from
  9122. # explicitly linking system object files so we need to strip them
  9123. # from the output so that they don't get included in the library
  9124. # dependencies.
  9125. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9126. ;;
  9127. *)
  9128. if test "$GXX" = yes; then
  9129. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9130. else
  9131. # FIXME: insert proper C++ library support
  9132. ld_shlibs_CXX=no
  9133. fi
  9134. ;;
  9135. esac
  9136. ;;
  9137. hpux10*|hpux11*)
  9138. if test $with_gnu_ld = no; then
  9139. case "$host_cpu" in
  9140. hppa*64*)
  9141. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9142. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  9143. hardcode_libdir_separator_CXX=:
  9144. ;;
  9145. ia64*)
  9146. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9147. ;;
  9148. *)
  9149. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9150. hardcode_libdir_separator_CXX=:
  9151. export_dynamic_flag_spec_CXX='${wl}-E'
  9152. ;;
  9153. esac
  9154. fi
  9155. case "$host_cpu" in
  9156. hppa*64*)
  9157. hardcode_direct_CXX=no
  9158. hardcode_shlibpath_var_CXX=no
  9159. ;;
  9160. ia64*)
  9161. hardcode_direct_CXX=no
  9162. hardcode_shlibpath_var_CXX=no
  9163. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9164. # but as the default
  9165. # location of the library.
  9166. ;;
  9167. *)
  9168. hardcode_direct_CXX=yes
  9169. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9170. # but as the default
  9171. # location of the library.
  9172. ;;
  9173. esac
  9174. case $cc_basename in
  9175. CC)
  9176. # FIXME: insert proper C++ library support
  9177. ld_shlibs_CXX=no
  9178. ;;
  9179. aCC)
  9180. case "$host_cpu" in
  9181. hppa*64*|ia64*)
  9182. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  9183. ;;
  9184. *)
  9185. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9186. ;;
  9187. esac
  9188. # Commands to make compiler produce verbose output that lists
  9189. # what "hidden" libraries, object files and flags are used when
  9190. # linking a shared library.
  9191. #
  9192. # There doesn't appear to be a way to prevent this compiler from
  9193. # explicitly linking system object files so we need to strip them
  9194. # from the output so that they don't get included in the library
  9195. # dependencies.
  9196. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9197. ;;
  9198. *)
  9199. if test "$GXX" = yes; then
  9200. if test $with_gnu_ld = no; then
  9201. case "$host_cpu" in
  9202. ia64*|hppa*64*)
  9203. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  9204. ;;
  9205. *)
  9206. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9207. ;;
  9208. esac
  9209. fi
  9210. else
  9211. # FIXME: insert proper C++ library support
  9212. ld_shlibs_CXX=no
  9213. fi
  9214. ;;
  9215. esac
  9216. ;;
  9217. irix5* | irix6*)
  9218. case $cc_basename in
  9219. CC)
  9220. # SGI C++
  9221. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  9222. # Archives containing C++ object files must be created using
  9223. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9224. # necessary to make sure instantiated templates are included
  9225. # in the archive.
  9226. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9227. ;;
  9228. *)
  9229. if test "$GXX" = yes; then
  9230. if test "$with_gnu_ld" = no; then
  9231. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  9232. else
  9233. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  9234. fi
  9235. fi
  9236. link_all_deplibs_CXX=yes
  9237. ;;
  9238. esac
  9239. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9240. hardcode_libdir_separator_CXX=:
  9241. ;;
  9242. linux*)
  9243. case $cc_basename in
  9244. KCC)
  9245. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9246. # KCC will only create a shared library if the output file
  9247. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9248. # to its proper name (with version) after linking.
  9249. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  9250. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  9251. # Commands to make compiler produce verbose output that lists
  9252. # what "hidden" libraries, object files and flags are used when
  9253. # linking a shared library.
  9254. #
  9255. # There doesn't appear to be a way to prevent this compiler from
  9256. # explicitly linking system object files so we need to strip them
  9257. # from the output so that they don't get included in the library
  9258. # dependencies.
  9259. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9260. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  9261. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9262. # Archives containing C++ object files must be created using
  9263. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9264. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9265. ;;
  9266. icpc)
  9267. # Intel C++
  9268. with_gnu_ld=yes
  9269. archive_cmds_need_lc_CXX=no
  9270. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9271. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9272. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9273. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9274. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9275. ;;
  9276. cxx)
  9277. # Compaq C++
  9278. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9279. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  9280. runpath_var=LD_RUN_PATH
  9281. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9282. hardcode_libdir_separator_CXX=:
  9283. # Commands to make compiler produce verbose output that lists
  9284. # what "hidden" libraries, object files and flags are used when
  9285. # linking a shared library.
  9286. #
  9287. # There doesn't appear to be a way to prevent this compiler from
  9288. # explicitly linking system object files so we need to strip them
  9289. # from the output so that they don't get included in the library
  9290. # dependencies.
  9291. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9292. ;;
  9293. esac
  9294. ;;
  9295. lynxos*)
  9296. # FIXME: insert proper C++ library support
  9297. ld_shlibs_CXX=no
  9298. ;;
  9299. m88k*)
  9300. # FIXME: insert proper C++ library support
  9301. ld_shlibs_CXX=no
  9302. ;;
  9303. mvs*)
  9304. case $cc_basename in
  9305. cxx)
  9306. # FIXME: insert proper C++ library support
  9307. ld_shlibs_CXX=no
  9308. ;;
  9309. *)
  9310. # FIXME: insert proper C++ library support
  9311. ld_shlibs_CXX=no
  9312. ;;
  9313. esac
  9314. ;;
  9315. netbsd* | knetbsd*-gnu)
  9316. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9317. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9318. wlarc=
  9319. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9320. hardcode_direct_CXX=yes
  9321. hardcode_shlibpath_var_CXX=no
  9322. fi
  9323. # Workaround some broken pre-1.5 toolchains
  9324. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9325. ;;
  9326. osf3*)
  9327. case $cc_basename in
  9328. KCC)
  9329. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9330. # KCC will only create a shared library if the output file
  9331. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9332. # to its proper name (with version) after linking.
  9333. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  9334. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9335. hardcode_libdir_separator_CXX=:
  9336. # Archives containing C++ object files must be created using
  9337. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9338. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9339. ;;
  9340. RCC)
  9341. # Rational C++ 2.4.1
  9342. # FIXME: insert proper C++ library support
  9343. ld_shlibs_CXX=no
  9344. ;;
  9345. cxx)
  9346. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9347. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  9348. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9349. hardcode_libdir_separator_CXX=:
  9350. # Commands to make compiler produce verbose output that lists
  9351. # what "hidden" libraries, object files and flags are used when
  9352. # linking a shared library.
  9353. #
  9354. # There doesn't appear to be a way to prevent this compiler from
  9355. # explicitly linking system object files so we need to strip them
  9356. # from the output so that they don't get included in the library
  9357. # dependencies.
  9358. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9359. ;;
  9360. *)
  9361. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9362. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9363. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  9364. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9365. hardcode_libdir_separator_CXX=:
  9366. # Commands to make compiler produce verbose output that lists
  9367. # what "hidden" libraries, object files and flags are used when
  9368. # linking a shared library.
  9369. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9370. else
  9371. # FIXME: insert proper C++ library support
  9372. ld_shlibs_CXX=no
  9373. fi
  9374. ;;
  9375. esac
  9376. ;;
  9377. osf4* | osf5*)
  9378. case $cc_basename in
  9379. KCC)
  9380. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9381. # KCC will only create a shared library if the output file
  9382. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9383. # to its proper name (with version) after linking.
  9384. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  9385. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9386. hardcode_libdir_separator_CXX=:
  9387. # Archives containing C++ object files must be created using
  9388. # the KAI C++ compiler.
  9389. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  9390. ;;
  9391. RCC)
  9392. # Rational C++ 2.4.1
  9393. # FIXME: insert proper C++ library support
  9394. ld_shlibs_CXX=no
  9395. ;;
  9396. cxx)
  9397. allow_undefined_flag_CXX=' -expect_unresolved \*'
  9398. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  9399. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  9400. echo "-hidden">> $lib.exp~
  9401. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
  9402. $rm $lib.exp'
  9403. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9404. hardcode_libdir_separator_CXX=:
  9405. # Commands to make compiler produce verbose output that lists
  9406. # what "hidden" libraries, object files and flags are used when
  9407. # linking a shared library.
  9408. #
  9409. # There doesn't appear to be a way to prevent this compiler from
  9410. # explicitly linking system object files so we need to strip them
  9411. # from the output so that they don't get included in the library
  9412. # dependencies.
  9413. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9414. ;;
  9415. *)
  9416. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9417. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9418. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  9419. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9420. hardcode_libdir_separator_CXX=:
  9421. # Commands to make compiler produce verbose output that lists
  9422. # what "hidden" libraries, object files and flags are used when
  9423. # linking a shared library.
  9424. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9425. else
  9426. # FIXME: insert proper C++ library support
  9427. ld_shlibs_CXX=no
  9428. fi
  9429. ;;
  9430. esac
  9431. ;;
  9432. psos*)
  9433. # FIXME: insert proper C++ library support
  9434. ld_shlibs_CXX=no
  9435. ;;
  9436. sco*)
  9437. archive_cmds_need_lc_CXX=no
  9438. case $cc_basename in
  9439. CC)
  9440. # FIXME: insert proper C++ library support
  9441. ld_shlibs_CXX=no
  9442. ;;
  9443. *)
  9444. # FIXME: insert proper C++ library support
  9445. ld_shlibs_CXX=no
  9446. ;;
  9447. esac
  9448. ;;
  9449. sunos4*)
  9450. case $cc_basename in
  9451. CC)
  9452. # Sun C++ 4.x
  9453. # FIXME: insert proper C++ library support
  9454. ld_shlibs_CXX=no
  9455. ;;
  9456. lcc)
  9457. # Lucid
  9458. # FIXME: insert proper C++ library support
  9459. ld_shlibs_CXX=no
  9460. ;;
  9461. *)
  9462. # FIXME: insert proper C++ library support
  9463. ld_shlibs_CXX=no
  9464. ;;
  9465. esac
  9466. ;;
  9467. solaris*)
  9468. case $cc_basename in
  9469. CC)
  9470. # Sun C++ 4.2, 5.x and Centerline C++
  9471. no_undefined_flag_CXX=' -zdefs'
  9472. archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9473. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9474. $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9475. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9476. hardcode_shlibpath_var_CXX=no
  9477. case $host_os in
  9478. solaris2.0-5 | solaris2.0-5.*) ;;
  9479. *)
  9480. # The C++ compiler is used as linker so we must use $wl
  9481. # flag to pass the commands to the underlying system
  9482. # linker.
  9483. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9484. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9485. ;;
  9486. esac
  9487. link_all_deplibs_CXX=yes
  9488. # Commands to make compiler produce verbose output that lists
  9489. # what "hidden" libraries, object files and flags are used when
  9490. # linking a shared library.
  9491. #
  9492. # There doesn't appear to be a way to prevent this compiler from
  9493. # explicitly linking system object files so we need to strip them
  9494. # from the output so that they don't get included in the library
  9495. # dependencies.
  9496. output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9497. # Archives containing C++ object files must be created using
  9498. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  9499. # necessary to make sure instantiated templates are included
  9500. # in the archive.
  9501. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  9502. ;;
  9503. gcx)
  9504. # Green Hills C++ Compiler
  9505. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9506. # The C++ compiler must be used to create the archive.
  9507. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  9508. ;;
  9509. *)
  9510. # GNU C++ compiler with Solaris linker
  9511. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9512. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  9513. if $CC --version | grep -v '^2\.7' > /dev/null; then
  9514. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9515. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9516. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9517. # Commands to make compiler produce verbose output that lists
  9518. # what "hidden" libraries, object files and flags are used when
  9519. # linking a shared library.
  9520. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9521. else
  9522. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  9523. # platform.
  9524. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9525. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9526. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9527. # Commands to make compiler produce verbose output that lists
  9528. # what "hidden" libraries, object files and flags are used when
  9529. # linking a shared library.
  9530. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9531. fi
  9532. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  9533. fi
  9534. ;;
  9535. esac
  9536. ;;
  9537. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  9538. archive_cmds_need_lc_CXX=no
  9539. ;;
  9540. tandem*)
  9541. case $cc_basename in
  9542. NCC)
  9543. # NonStop-UX NCC 3.20
  9544. # FIXME: insert proper C++ library support
  9545. ld_shlibs_CXX=no
  9546. ;;
  9547. *)
  9548. # FIXME: insert proper C++ library support
  9549. ld_shlibs_CXX=no
  9550. ;;
  9551. esac
  9552. ;;
  9553. vxworks*)
  9554. # FIXME: insert proper C++ library support
  9555. ld_shlibs_CXX=no
  9556. ;;
  9557. *)
  9558. # FIXME: insert proper C++ library support
  9559. ld_shlibs_CXX=no
  9560. ;;
  9561. esac
  9562. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  9563. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  9564. test "$ld_shlibs_CXX" = no && can_build_shared=no
  9565. GCC_CXX="$GXX"
  9566. LD_CXX="$LD"
  9567. cat > conftest.$ac_ext <<EOF
  9568. class Foo
  9569. {
  9570. public:
  9571. Foo (void) { a = 0; }
  9572. private:
  9573. int a;
  9574. };
  9575. EOF
  9576. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9577. (eval $ac_compile) 2>&5
  9578. ac_status=$?
  9579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9580. (exit $ac_status); }; then
  9581. # Parse the compiler output and extract the necessary
  9582. # objects, libraries and library flags.
  9583. # Sentinel used to keep track of whether or not we are before
  9584. # the conftest object file.
  9585. pre_test_object_deps_done=no
  9586. # The `*' in the case matches for architectures that use `case' in
  9587. # $output_verbose_cmd can trigger glob expansion during the loop
  9588. # eval without this substitution.
  9589. output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  9590. for p in `eval $output_verbose_link_cmd`; do
  9591. case $p in
  9592. -L* | -R* | -l*)
  9593. # Some compilers place space between "-{L,R}" and the path.
  9594. # Remove the space.
  9595. if test $p = "-L" \
  9596. || test $p = "-R"; then
  9597. prev=$p
  9598. continue
  9599. else
  9600. prev=
  9601. fi
  9602. if test "$pre_test_object_deps_done" = no; then
  9603. case $p in
  9604. -L* | -R*)
  9605. # Internal compiler library paths should come after those
  9606. # provided the user. The postdeps already come after the
  9607. # user supplied libs so there is no need to process them.
  9608. if test -z "$compiler_lib_search_path_CXX"; then
  9609. compiler_lib_search_path_CXX="${prev}${p}"
  9610. else
  9611. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  9612. fi
  9613. ;;
  9614. # The "-l" case would never come before the object being
  9615. # linked, so don't bother handling this case.
  9616. esac
  9617. else
  9618. if test -z "$postdeps_CXX"; then
  9619. postdeps_CXX="${prev}${p}"
  9620. else
  9621. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  9622. fi
  9623. fi
  9624. ;;
  9625. *.$objext)
  9626. # This assumes that the test object file only shows up
  9627. # once in the compiler output.
  9628. if test "$p" = "conftest.$objext"; then
  9629. pre_test_object_deps_done=yes
  9630. continue
  9631. fi
  9632. if test "$pre_test_object_deps_done" = no; then
  9633. if test -z "$predep_objects_CXX"; then
  9634. predep_objects_CXX="$p"
  9635. else
  9636. predep_objects_CXX="$predep_objects_CXX $p"
  9637. fi
  9638. else
  9639. if test -z "$postdep_objects_CXX"; then
  9640. postdep_objects_CXX="$p"
  9641. else
  9642. postdep_objects_CXX="$postdep_objects_CXX $p"
  9643. fi
  9644. fi
  9645. ;;
  9646. *) ;; # Ignore the rest.
  9647. esac
  9648. done
  9649. # Clean up.
  9650. rm -f a.out a.exe
  9651. else
  9652. echo "libtool.m4: error: problem compiling CXX test program"
  9653. fi
  9654. $rm -f confest.$objext
  9655. case " $postdeps_CXX " in
  9656. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  9657. esac
  9658. lt_prog_compiler_wl_CXX=
  9659. lt_prog_compiler_pic_CXX=
  9660. lt_prog_compiler_static_CXX=
  9661. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  9662. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  9663. # C++ specific cases for pic, static, wl, etc.
  9664. if test "$GXX" = yes; then
  9665. lt_prog_compiler_wl_CXX='-Wl,'
  9666. lt_prog_compiler_static_CXX='-static'
  9667. case $host_os in
  9668. aix*)
  9669. # All AIX code is PIC.
  9670. if test "$host_cpu" = ia64; then
  9671. # AIX 5 now supports IA64 processor
  9672. lt_prog_compiler_static_CXX='-Bstatic'
  9673. fi
  9674. ;;
  9675. amigaos*)
  9676. # FIXME: we need at least 68020 code to build shared libraries, but
  9677. # adding the `-m68020' flag to GCC prevents building anything better,
  9678. # like `-m68040'.
  9679. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  9680. ;;
  9681. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9682. # PIC is the default for these OSes.
  9683. ;;
  9684. mingw* | os2* | pw32*)
  9685. # This hack is so that the source file can tell whether it is being
  9686. # built for inclusion in a dll (and should export symbols for example).
  9687. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  9688. ;;
  9689. darwin* | rhapsody*)
  9690. # PIC is the default on this platform
  9691. # Common symbols not allowed in MH_DYLIB files
  9692. lt_prog_compiler_pic_CXX='-fno-common'
  9693. ;;
  9694. *djgpp*)
  9695. # DJGPP does not support shared libraries at all
  9696. lt_prog_compiler_pic_CXX=
  9697. ;;
  9698. sysv4*MP*)
  9699. if test -d /usr/nec; then
  9700. lt_prog_compiler_pic_CXX=-Kconform_pic
  9701. fi
  9702. ;;
  9703. hpux*)
  9704. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9705. # not for PA HP-UX.
  9706. case "$host_cpu" in
  9707. hppa*64*|ia64*)
  9708. ;;
  9709. *)
  9710. lt_prog_compiler_pic_CXX='-fPIC'
  9711. ;;
  9712. esac
  9713. ;;
  9714. *)
  9715. lt_prog_compiler_pic_CXX='-fPIC'
  9716. ;;
  9717. esac
  9718. else
  9719. case $host_os in
  9720. aix4* | aix5*)
  9721. # All AIX code is PIC.
  9722. if test "$host_cpu" = ia64; then
  9723. # AIX 5 now supports IA64 processor
  9724. lt_prog_compiler_static_CXX='-Bstatic'
  9725. else
  9726. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  9727. fi
  9728. ;;
  9729. chorus*)
  9730. case $cc_basename in
  9731. cxch68)
  9732. # Green Hills C++ Compiler
  9733. # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  9734. ;;
  9735. esac
  9736. ;;
  9737. dgux*)
  9738. case $cc_basename in
  9739. ec++)
  9740. lt_prog_compiler_pic_CXX='-KPIC'
  9741. ;;
  9742. ghcx)
  9743. # Green Hills C++ Compiler
  9744. lt_prog_compiler_pic_CXX='-pic'
  9745. ;;
  9746. *)
  9747. ;;
  9748. esac
  9749. ;;
  9750. freebsd* | kfreebsd*-gnu)
  9751. # FreeBSD uses GNU C++
  9752. ;;
  9753. hpux9* | hpux10* | hpux11*)
  9754. case $cc_basename in
  9755. CC)
  9756. lt_prog_compiler_wl_CXX='-Wl,'
  9757. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  9758. if test "$host_cpu" != ia64; then
  9759. lt_prog_compiler_pic_CXX='+Z'
  9760. fi
  9761. ;;
  9762. aCC)
  9763. lt_prog_compiler_wl_CXX='-Wl,'
  9764. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  9765. case "$host_cpu" in
  9766. hppa*64*|ia64*)
  9767. # +Z the default
  9768. ;;
  9769. *)
  9770. lt_prog_compiler_pic_CXX='+Z'
  9771. ;;
  9772. esac
  9773. ;;
  9774. *)
  9775. ;;
  9776. esac
  9777. ;;
  9778. irix5* | irix6* | nonstopux*)
  9779. case $cc_basename in
  9780. CC)
  9781. lt_prog_compiler_wl_CXX='-Wl,'
  9782. lt_prog_compiler_static_CXX='-non_shared'
  9783. # CC pic flag -KPIC is the default.
  9784. ;;
  9785. *)
  9786. ;;
  9787. esac
  9788. ;;
  9789. linux*)
  9790. case $cc_basename in
  9791. KCC)
  9792. # KAI C++ Compiler
  9793. lt_prog_compiler_wl_CXX='--backend -Wl,'
  9794. lt_prog_compiler_pic_CXX='-fPIC'
  9795. ;;
  9796. icpc)
  9797. # Intel C++
  9798. lt_prog_compiler_wl_CXX='-Wl,'
  9799. lt_prog_compiler_pic_CXX='-KPIC'
  9800. lt_prog_compiler_static_CXX='-static'
  9801. ;;
  9802. cxx)
  9803. # Compaq C++
  9804. # Make sure the PIC flag is empty. It appears that all Alpha
  9805. # Linux and Compaq Tru64 Unix objects are PIC.
  9806. lt_prog_compiler_pic_CXX=
  9807. lt_prog_compiler_static_CXX='-non_shared'
  9808. ;;
  9809. *)
  9810. ;;
  9811. esac
  9812. ;;
  9813. lynxos*)
  9814. ;;
  9815. m88k*)
  9816. ;;
  9817. mvs*)
  9818. case $cc_basename in
  9819. cxx)
  9820. lt_prog_compiler_pic_CXX='-W c,exportall'
  9821. ;;
  9822. *)
  9823. ;;
  9824. esac
  9825. ;;
  9826. netbsd* | knetbsd*-gnu)
  9827. ;;
  9828. osf3* | osf4* | osf5*)
  9829. case $cc_basename in
  9830. KCC)
  9831. lt_prog_compiler_wl_CXX='--backend -Wl,'
  9832. ;;
  9833. RCC)
  9834. # Rational C++ 2.4.1
  9835. lt_prog_compiler_pic_CXX='-pic'
  9836. ;;
  9837. cxx)
  9838. # Digital/Compaq C++
  9839. lt_prog_compiler_wl_CXX='-Wl,'
  9840. # Make sure the PIC flag is empty. It appears that all Alpha
  9841. # Linux and Compaq Tru64 Unix objects are PIC.
  9842. lt_prog_compiler_pic_CXX=
  9843. lt_prog_compiler_static_CXX='-non_shared'
  9844. ;;
  9845. *)
  9846. ;;
  9847. esac
  9848. ;;
  9849. psos*)
  9850. ;;
  9851. sco*)
  9852. case $cc_basename in
  9853. CC)
  9854. lt_prog_compiler_pic_CXX='-fPIC'
  9855. ;;
  9856. *)
  9857. ;;
  9858. esac
  9859. ;;
  9860. solaris*)
  9861. case $cc_basename in
  9862. CC)
  9863. # Sun C++ 4.2, 5.x and Centerline C++
  9864. lt_prog_compiler_pic_CXX='-KPIC'
  9865. lt_prog_compiler_static_CXX='-Bstatic'
  9866. lt_prog_compiler_wl_CXX='-Qoption ld '
  9867. ;;
  9868. gcx)
  9869. # Green Hills C++ Compiler
  9870. lt_prog_compiler_pic_CXX='-PIC'
  9871. ;;
  9872. *)
  9873. ;;
  9874. esac
  9875. ;;
  9876. sunos4*)
  9877. case $cc_basename in
  9878. CC)
  9879. # Sun C++ 4.x
  9880. lt_prog_compiler_pic_CXX='-pic'
  9881. lt_prog_compiler_static_CXX='-Bstatic'
  9882. ;;
  9883. lcc)
  9884. # Lucid
  9885. lt_prog_compiler_pic_CXX='-pic'
  9886. ;;
  9887. *)
  9888. ;;
  9889. esac
  9890. ;;
  9891. tandem*)
  9892. case $cc_basename in
  9893. NCC)
  9894. # NonStop-UX NCC 3.20
  9895. lt_prog_compiler_pic_CXX='-KPIC'
  9896. ;;
  9897. *)
  9898. ;;
  9899. esac
  9900. ;;
  9901. unixware*)
  9902. ;;
  9903. vxworks*)
  9904. ;;
  9905. *)
  9906. lt_prog_compiler_can_build_shared_CXX=no
  9907. ;;
  9908. esac
  9909. fi
  9910. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  9911. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  9912. #
  9913. # Check to make sure the PIC flag actually works.
  9914. #
  9915. if test -n "$lt_prog_compiler_pic_CXX"; then
  9916. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  9917. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  9918. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  9919. echo $ECHO_N "(cached) $ECHO_C" >&6
  9920. else
  9921. lt_prog_compiler_pic_works_CXX=no
  9922. ac_outfile=conftest.$ac_objext
  9923. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9924. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  9925. # Insert the option either (1) after the last *FLAGS variable, or
  9926. # (2) before a word containing "conftest.", or (3) at the end.
  9927. # Note that $ac_compile itself does not contain backslashes and begins
  9928. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9929. # The option is referenced via a variable to avoid confusing sed.
  9930. lt_compile=`echo "$ac_compile" | $SED \
  9931. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  9932. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9933. -e 's:$: $lt_compiler_flag:'`
  9934. (eval echo "\"\$as_me:11015: $lt_compile\"" >&5)
  9935. (eval "$lt_compile" 2>conftest.err)
  9936. ac_status=$?
  9937. cat conftest.err >&5
  9938. echo "$as_me:11019: \$? = $ac_status" >&5
  9939. if (exit $ac_status) && test -s "$ac_outfile"; then
  9940. # The compiler can only warn and ignore the option if not recognized
  9941. # So say no if there are warnings
  9942. if test ! -s conftest.err; then
  9943. lt_prog_compiler_pic_works_CXX=yes
  9944. fi
  9945. fi
  9946. $rm conftest*
  9947. fi
  9948. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  9949. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  9950. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  9951. case $lt_prog_compiler_pic_CXX in
  9952. "" | " "*) ;;
  9953. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  9954. esac
  9955. else
  9956. lt_prog_compiler_pic_CXX=
  9957. lt_prog_compiler_can_build_shared_CXX=no
  9958. fi
  9959. fi
  9960. case "$host_os" in
  9961. # For platforms which do not support PIC, -DPIC is meaningless:
  9962. *djgpp*)
  9963. lt_prog_compiler_pic_CXX=
  9964. ;;
  9965. *)
  9966. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  9967. ;;
  9968. esac
  9969. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  9970. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  9971. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  9972. echo $ECHO_N "(cached) $ECHO_C" >&6
  9973. else
  9974. lt_cv_prog_compiler_c_o_CXX=no
  9975. $rm -r conftest 2>/dev/null
  9976. mkdir conftest
  9977. cd conftest
  9978. mkdir out
  9979. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9980. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9981. # Insert the option either (1) after the last *FLAGS variable, or
  9982. # (2) before a word containing "conftest.", or (3) at the end.
  9983. # Note that $ac_compile itself does not contain backslashes and begins
  9984. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9985. lt_compile=`echo "$ac_compile" | $SED \
  9986. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  9987. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9988. -e 's:$: $lt_compiler_flag:'`
  9989. (eval echo "\"\$as_me:11075: $lt_compile\"" >&5)
  9990. (eval "$lt_compile" 2>out/conftest.err)
  9991. ac_status=$?
  9992. cat out/conftest.err >&5
  9993. echo "$as_me:11079: \$? = $ac_status" >&5
  9994. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9995. then
  9996. # The compiler can only warn and ignore the option if not recognized
  9997. # So say no if there are warnings
  9998. if test ! -s out/conftest.err; then
  9999. lt_cv_prog_compiler_c_o_CXX=yes
  10000. fi
  10001. fi
  10002. chmod u+w .
  10003. $rm conftest*
  10004. # SGI C++ compiler will create directory out/ii_files/ for
  10005. # template instantiation
  10006. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  10007. $rm out/* && rmdir out
  10008. cd ..
  10009. rmdir conftest
  10010. $rm conftest*
  10011. fi
  10012. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  10013. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  10014. hard_links="nottested"
  10015. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  10016. # do not overwrite the value of need_locks provided by the user
  10017. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  10018. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  10019. hard_links=yes
  10020. $rm conftest*
  10021. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10022. touch conftest.a
  10023. ln conftest.a conftest.b 2>&5 || hard_links=no
  10024. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10025. echo "$as_me:$LINENO: result: $hard_links" >&5
  10026. echo "${ECHO_T}$hard_links" >&6
  10027. if test "$hard_links" = no; then
  10028. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10029. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10030. need_locks=warn
  10031. fi
  10032. else
  10033. need_locks=no
  10034. fi
  10035. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10036. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  10037. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10038. case $host_os in
  10039. aix4* | aix5*)
  10040. # If we're using GNU nm, then we don't want the "-C" option.
  10041. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10042. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10043. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  10044. else
  10045. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  10046. fi
  10047. ;;
  10048. pw32*)
  10049. export_symbols_cmds_CXX="$ltdll_cmds"
  10050. ;;
  10051. cygwin* | mingw*)
  10052. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  10053. ;;
  10054. *)
  10055. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10056. ;;
  10057. esac
  10058. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10059. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10060. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10061. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10062. if test "$GCC" = yes; then
  10063. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10064. fi
  10065. #
  10066. # Do we need to explicitly link libc?
  10067. #
  10068. case "x$archive_cmds_need_lc_CXX" in
  10069. x|xyes)
  10070. # Assume -lc should be added
  10071. archive_cmds_need_lc_CXX=yes
  10072. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10073. case $archive_cmds_CXX in
  10074. *'~'*)
  10075. # FIXME: we may have to deal with multi-command sequences.
  10076. ;;
  10077. '$CC '*)
  10078. # Test whether the compiler implicitly links with -lc since on some
  10079. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10080. # to ld, don't add -lc before -lgcc.
  10081. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10082. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  10083. $rm conftest*
  10084. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10085. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10086. (eval $ac_compile) 2>&5
  10087. ac_status=$?
  10088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10089. (exit $ac_status); } 2>conftest.err; then
  10090. soname=conftest
  10091. lib=conftest
  10092. libobjs=conftest.$ac_objext
  10093. deplibs=
  10094. wl=$lt_prog_compiler_wl_CXX
  10095. compiler_flags=-v
  10096. linker_flags=-v
  10097. verstring=
  10098. output_objdir=.
  10099. libname=conftest
  10100. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  10101. allow_undefined_flag_CXX=
  10102. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10103. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10104. ac_status=$?
  10105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10106. (exit $ac_status); }
  10107. then
  10108. archive_cmds_need_lc_CXX=no
  10109. else
  10110. archive_cmds_need_lc_CXX=yes
  10111. fi
  10112. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  10113. else
  10114. cat conftest.err 1>&5
  10115. fi
  10116. $rm conftest*
  10117. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  10118. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  10119. ;;
  10120. esac
  10121. fi
  10122. ;;
  10123. esac
  10124. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  10125. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  10126. library_names_spec=
  10127. libname_spec='lib$name'
  10128. soname_spec=
  10129. shrext=".so"
  10130. postinstall_cmds=
  10131. postuninstall_cmds=
  10132. finish_cmds=
  10133. finish_eval=
  10134. shlibpath_var=
  10135. shlibpath_overrides_runpath=unknown
  10136. version_type=none
  10137. dynamic_linker="$host_os ld.so"
  10138. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10139. if test "$GCC" = yes; then
  10140. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10141. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  10142. # if the path contains ";" then we assume it to be the separator
  10143. # otherwise default to the standard path separator (i.e. ":") - it is
  10144. # assumed that no part of a normal pathname contains ";" but that should
  10145. # okay in the real world where ";" in dirpaths is itself problematic.
  10146. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10147. else
  10148. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10149. fi
  10150. else
  10151. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10152. fi
  10153. need_lib_prefix=unknown
  10154. hardcode_into_libs=no
  10155. # when you set need_version to no, make sure it does not cause -set_version
  10156. # flags to be left without arguments
  10157. need_version=unknown
  10158. case $host_os in
  10159. aix3*)
  10160. version_type=linux
  10161. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10162. shlibpath_var=LIBPATH
  10163. # AIX 3 has no versioning support, so we append a major version to the name.
  10164. soname_spec='${libname}${release}${shared_ext}$major'
  10165. ;;
  10166. aix4* | aix5*)
  10167. version_type=linux
  10168. need_lib_prefix=no
  10169. need_version=no
  10170. hardcode_into_libs=yes
  10171. if test "$host_cpu" = ia64; then
  10172. # AIX 5 supports IA64
  10173. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10174. shlibpath_var=LD_LIBRARY_PATH
  10175. else
  10176. # With GCC up to 2.95.x, collect2 would create an import file
  10177. # for dependence libraries. The import file would start with
  10178. # the line `#! .'. This would cause the generated library to
  10179. # depend on `.', always an invalid library. This was fixed in
  10180. # development snapshots of GCC prior to 3.0.
  10181. case $host_os in
  10182. aix4 | aix4.[01] | aix4.[01].*)
  10183. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10184. echo ' yes '
  10185. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10186. :
  10187. else
  10188. can_build_shared=no
  10189. fi
  10190. ;;
  10191. esac
  10192. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10193. # soname into executable. Probably we can add versioning support to
  10194. # collect2, so additional links can be useful in future.
  10195. if test "$aix_use_runtimelinking" = yes; then
  10196. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10197. # instead of lib<name>.a to let people know that these are not
  10198. # typical AIX shared libraries.
  10199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10200. else
  10201. # We preserve .a as extension for shared libraries through AIX4.2
  10202. # and later when we are not doing run time linking.
  10203. library_names_spec='${libname}${release}.a $libname.a'
  10204. soname_spec='${libname}${release}${shared_ext}$major'
  10205. fi
  10206. shlibpath_var=LIBPATH
  10207. fi
  10208. ;;
  10209. amigaos*)
  10210. library_names_spec='$libname.ixlibrary $libname.a'
  10211. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10212. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
  10213. ;;
  10214. beos*)
  10215. library_names_spec='${libname}${shared_ext}'
  10216. dynamic_linker="$host_os ld.so"
  10217. shlibpath_var=LIBRARY_PATH
  10218. ;;
  10219. bsdi4*)
  10220. version_type=linux
  10221. need_version=no
  10222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10223. soname_spec='${libname}${release}${shared_ext}$major'
  10224. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10225. shlibpath_var=LD_LIBRARY_PATH
  10226. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10227. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10228. # the default ld.so.conf also contains /usr/contrib/lib and
  10229. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10230. # libtool to hard-code these into programs
  10231. ;;
  10232. cygwin* | mingw* | pw32*)
  10233. version_type=windows
  10234. shrext=".dll"
  10235. need_version=no
  10236. need_lib_prefix=no
  10237. case $GCC,$host_os in
  10238. yes,cygwin* | yes,mingw* | yes,pw32*)
  10239. library_names_spec='$libname.dll.a'
  10240. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10241. postinstall_cmds='base_file=`basename \${file}`~
  10242. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10243. dldir=$destdir/`dirname \$dlpath`~
  10244. test -d \$dldir || mkdir -p \$dldir~
  10245. $install_prog $dir/$dlname \$dldir/$dlname'
  10246. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10247. dlpath=$dir/\$dldll~
  10248. $rm \$dlpath'
  10249. shlibpath_overrides_runpath=yes
  10250. case $host_os in
  10251. cygwin*)
  10252. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10253. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10254. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10255. ;;
  10256. mingw*)
  10257. # MinGW DLLs use traditional 'lib' prefix
  10258. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10259. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10260. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  10261. # It is most probably a Windows format PATH printed by
  10262. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  10263. # path with ; separators, and with drive letters. We can handle the
  10264. # drive letters (cygwin fileutils understands them), so leave them,
  10265. # especially as we might pass files found there to a mingw objdump,
  10266. # which wouldn't understand a cygwinified path. Ahh.
  10267. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10268. else
  10269. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10270. fi
  10271. ;;
  10272. pw32*)
  10273. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10274. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  10275. ;;
  10276. esac
  10277. ;;
  10278. *)
  10279. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10280. ;;
  10281. esac
  10282. dynamic_linker='Win32 ld.exe'
  10283. # FIXME: first we should search . and the directory the executable is in
  10284. shlibpath_var=PATH
  10285. ;;
  10286. darwin* | rhapsody*)
  10287. dynamic_linker="$host_os dyld"
  10288. version_type=darwin
  10289. need_lib_prefix=no
  10290. need_version=no
  10291. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10292. soname_spec='${libname}${release}${major}$shared_ext'
  10293. shlibpath_overrides_runpath=yes
  10294. shlibpath_var=DYLD_LIBRARY_PATH
  10295. shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  10296. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  10297. if test "$GCC" = yes; then
  10298. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  10299. else
  10300. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  10301. fi
  10302. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10303. ;;
  10304. dgux*)
  10305. version_type=linux
  10306. need_lib_prefix=no
  10307. need_version=no
  10308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10309. soname_spec='${libname}${release}${shared_ext}$major'
  10310. shlibpath_var=LD_LIBRARY_PATH
  10311. ;;
  10312. freebsd1*)
  10313. dynamic_linker=no
  10314. ;;
  10315. kfreebsd*-gnu)
  10316. version_type=linux
  10317. need_lib_prefix=no
  10318. need_version=no
  10319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10320. soname_spec='${libname}${release}${shared_ext}$major'
  10321. shlibpath_var=LD_LIBRARY_PATH
  10322. shlibpath_overrides_runpath=no
  10323. hardcode_into_libs=yes
  10324. dynamic_linker='GNU ld.so'
  10325. ;;
  10326. freebsd*)
  10327. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  10328. version_type=freebsd-$objformat
  10329. case $version_type in
  10330. freebsd-elf*)
  10331. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10332. need_version=no
  10333. need_lib_prefix=no
  10334. ;;
  10335. freebsd-*)
  10336. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10337. need_version=yes
  10338. ;;
  10339. esac
  10340. shlibpath_var=LD_LIBRARY_PATH
  10341. case $host_os in
  10342. freebsd2*)
  10343. shlibpath_overrides_runpath=yes
  10344. ;;
  10345. freebsd3.01* | freebsdelf3.01*)
  10346. shlibpath_overrides_runpath=yes
  10347. hardcode_into_libs=yes
  10348. ;;
  10349. *) # from 3.2 on
  10350. shlibpath_overrides_runpath=no
  10351. hardcode_into_libs=yes
  10352. ;;
  10353. esac
  10354. ;;
  10355. gnu*)
  10356. version_type=linux
  10357. need_lib_prefix=no
  10358. need_version=no
  10359. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10360. soname_spec='${libname}${release}${shared_ext}$major'
  10361. shlibpath_var=LD_LIBRARY_PATH
  10362. hardcode_into_libs=yes
  10363. ;;
  10364. hpux9* | hpux10* | hpux11*)
  10365. # Give a soname corresponding to the major version so that dld.sl refuses to
  10366. # link against other versions.
  10367. version_type=sunos
  10368. need_lib_prefix=no
  10369. need_version=no
  10370. case "$host_cpu" in
  10371. ia64*)
  10372. shrext='.so'
  10373. hardcode_into_libs=yes
  10374. dynamic_linker="$host_os dld.so"
  10375. shlibpath_var=LD_LIBRARY_PATH
  10376. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10377. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10378. soname_spec='${libname}${release}${shared_ext}$major'
  10379. if test "X$HPUX_IA64_MODE" = X32; then
  10380. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10381. else
  10382. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10383. fi
  10384. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10385. ;;
  10386. hppa*64*)
  10387. shrext='.sl'
  10388. hardcode_into_libs=yes
  10389. dynamic_linker="$host_os dld.sl"
  10390. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10391. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10392. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10393. soname_spec='${libname}${release}${shared_ext}$major'
  10394. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10395. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10396. ;;
  10397. *)
  10398. shrext='.sl'
  10399. dynamic_linker="$host_os dld.sl"
  10400. shlibpath_var=SHLIB_PATH
  10401. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10402. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10403. soname_spec='${libname}${release}${shared_ext}$major'
  10404. ;;
  10405. esac
  10406. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  10407. postinstall_cmds='chmod 555 $lib'
  10408. ;;
  10409. irix5* | irix6* | nonstopux*)
  10410. case $host_os in
  10411. nonstopux*) version_type=nonstopux ;;
  10412. *)
  10413. if test "$lt_cv_prog_gnu_ld" = yes; then
  10414. version_type=linux
  10415. else
  10416. version_type=irix
  10417. fi ;;
  10418. esac
  10419. need_lib_prefix=no
  10420. need_version=no
  10421. soname_spec='${libname}${release}${shared_ext}$major'
  10422. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10423. case $host_os in
  10424. irix5* | nonstopux*)
  10425. libsuff= shlibsuff=
  10426. ;;
  10427. *)
  10428. case $LD in # libtool.m4 will add one of these switches to LD
  10429. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10430. libsuff= shlibsuff= libmagic=32-bit;;
  10431. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10432. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10433. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10434. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10435. *) libsuff= shlibsuff= libmagic=never-match;;
  10436. esac
  10437. ;;
  10438. esac
  10439. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10440. shlibpath_overrides_runpath=no
  10441. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10442. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10443. hardcode_into_libs=yes
  10444. ;;
  10445. # No shared lib support for Linux oldld, aout, or coff.
  10446. linux*oldld* | linux*aout* | linux*coff*)
  10447. dynamic_linker=no
  10448. ;;
  10449. # This must be Linux ELF.
  10450. linux*)
  10451. version_type=linux
  10452. need_lib_prefix=no
  10453. need_version=no
  10454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10455. soname_spec='${libname}${release}${shared_ext}$major'
  10456. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10457. shlibpath_var=LD_LIBRARY_PATH
  10458. shlibpath_overrides_runpath=no
  10459. # This implies no fast_install, which is unacceptable.
  10460. # Some rework will be needed to allow for fast_install
  10461. # before this can be enabled.
  10462. hardcode_into_libs=yes
  10463. # Append ld.so.conf contents to the search path
  10464. if test -f /etc/ld.so.conf; then
  10465. ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
  10466. sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
  10467. fi
  10468. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10469. # powerpc, because MkLinux only supported shared libraries with the
  10470. # GNU dynamic linker. Since this was broken with cross compilers,
  10471. # most powerpc-linux boxes support dynamic linking these days and
  10472. # people can always --disable-shared, the test was removed, and we
  10473. # assume the GNU/Linux dynamic linker is in use.
  10474. dynamic_linker='GNU/Linux ld.so'
  10475. ;;
  10476. knetbsd*-gnu)
  10477. version_type=linux
  10478. need_lib_prefix=no
  10479. need_version=no
  10480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10481. soname_spec='${libname}${release}${shared_ext}$major'
  10482. shlibpath_var=LD_LIBRARY_PATH
  10483. shlibpath_overrides_runpath=no
  10484. hardcode_into_libs=yes
  10485. dynamic_linker='GNU ld.so'
  10486. ;;
  10487. netbsd*)
  10488. version_type=sunos
  10489. need_lib_prefix=no
  10490. need_version=no
  10491. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10492. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10493. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10494. dynamic_linker='NetBSD (a.out) ld.so'
  10495. else
  10496. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10497. soname_spec='${libname}${release}${shared_ext}$major'
  10498. dynamic_linker='NetBSD ld.elf_so'
  10499. fi
  10500. shlibpath_var=LD_LIBRARY_PATH
  10501. shlibpath_overrides_runpath=yes
  10502. hardcode_into_libs=yes
  10503. ;;
  10504. newsos6)
  10505. version_type=linux
  10506. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10507. shlibpath_var=LD_LIBRARY_PATH
  10508. shlibpath_overrides_runpath=yes
  10509. ;;
  10510. nto-qnx*)
  10511. version_type=linux
  10512. need_lib_prefix=no
  10513. need_version=no
  10514. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10515. soname_spec='${libname}${release}${shared_ext}$major'
  10516. shlibpath_var=LD_LIBRARY_PATH
  10517. shlibpath_overrides_runpath=yes
  10518. ;;
  10519. openbsd*)
  10520. version_type=sunos
  10521. need_lib_prefix=no
  10522. need_version=yes
  10523. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10524. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10525. shlibpath_var=LD_LIBRARY_PATH
  10526. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10527. case $host_os in
  10528. openbsd2.[89] | openbsd2.[89].*)
  10529. shlibpath_overrides_runpath=no
  10530. ;;
  10531. *)
  10532. shlibpath_overrides_runpath=yes
  10533. ;;
  10534. esac
  10535. else
  10536. shlibpath_overrides_runpath=yes
  10537. fi
  10538. ;;
  10539. os2*)
  10540. libname_spec='$name'
  10541. shrext=".dll"
  10542. need_lib_prefix=no
  10543. library_names_spec='$libname${shared_ext} $libname.a'
  10544. dynamic_linker='OS/2 ld.exe'
  10545. shlibpath_var=LIBPATH
  10546. ;;
  10547. osf3* | osf4* | osf5*)
  10548. version_type=osf
  10549. need_lib_prefix=no
  10550. need_version=no
  10551. soname_spec='${libname}${release}${shared_ext}$major'
  10552. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10553. shlibpath_var=LD_LIBRARY_PATH
  10554. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10555. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10556. ;;
  10557. sco3.2v5*)
  10558. version_type=osf
  10559. soname_spec='${libname}${release}${shared_ext}$major'
  10560. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10561. shlibpath_var=LD_LIBRARY_PATH
  10562. ;;
  10563. solaris*)
  10564. version_type=linux
  10565. need_lib_prefix=no
  10566. need_version=no
  10567. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10568. soname_spec='${libname}${release}${shared_ext}$major'
  10569. shlibpath_var=LD_LIBRARY_PATH
  10570. shlibpath_overrides_runpath=yes
  10571. hardcode_into_libs=yes
  10572. # ldd complains unless libraries are executable
  10573. postinstall_cmds='chmod +x $lib'
  10574. ;;
  10575. sunos4*)
  10576. version_type=sunos
  10577. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10578. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10579. shlibpath_var=LD_LIBRARY_PATH
  10580. shlibpath_overrides_runpath=yes
  10581. if test "$with_gnu_ld" = yes; then
  10582. need_lib_prefix=no
  10583. fi
  10584. need_version=yes
  10585. ;;
  10586. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10587. version_type=linux
  10588. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10589. soname_spec='${libname}${release}${shared_ext}$major'
  10590. shlibpath_var=LD_LIBRARY_PATH
  10591. case $host_vendor in
  10592. sni)
  10593. shlibpath_overrides_runpath=no
  10594. need_lib_prefix=no
  10595. export_dynamic_flag_spec='${wl}-Blargedynsym'
  10596. runpath_var=LD_RUN_PATH
  10597. ;;
  10598. siemens)
  10599. need_lib_prefix=no
  10600. ;;
  10601. motorola)
  10602. need_lib_prefix=no
  10603. need_version=no
  10604. shlibpath_overrides_runpath=no
  10605. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10606. ;;
  10607. esac
  10608. ;;
  10609. sysv4*MP*)
  10610. if test -d /usr/nec ;then
  10611. version_type=linux
  10612. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10613. soname_spec='$libname${shared_ext}.$major'
  10614. shlibpath_var=LD_LIBRARY_PATH
  10615. fi
  10616. ;;
  10617. uts4*)
  10618. version_type=linux
  10619. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10620. soname_spec='${libname}${release}${shared_ext}$major'
  10621. shlibpath_var=LD_LIBRARY_PATH
  10622. ;;
  10623. *)
  10624. dynamic_linker=no
  10625. ;;
  10626. esac
  10627. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  10628. echo "${ECHO_T}$dynamic_linker" >&6
  10629. test "$dynamic_linker" = no && can_build_shared=no
  10630. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  10631. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  10632. hardcode_action_CXX=
  10633. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  10634. test -n "$runpath_var CXX" || \
  10635. test "X$hardcode_automatic_CXX"="Xyes" ; then
  10636. # We can hardcode non-existant directories.
  10637. if test "$hardcode_direct_CXX" != no &&
  10638. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10639. # have to relink, otherwise we might link with an installed library
  10640. # when we should be linking with a yet-to-be-installed one
  10641. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  10642. test "$hardcode_minus_L_CXX" != no; then
  10643. # Linking always hardcodes the temporary library directory.
  10644. hardcode_action_CXX=relink
  10645. else
  10646. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10647. hardcode_action_CXX=immediate
  10648. fi
  10649. else
  10650. # We cannot hardcode anything, or else we can only hardcode existing
  10651. # directories.
  10652. hardcode_action_CXX=unsupported
  10653. fi
  10654. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  10655. echo "${ECHO_T}$hardcode_action_CXX" >&6
  10656. if test "$hardcode_action_CXX" = relink; then
  10657. # Fast installation is not supported
  10658. enable_fast_install=no
  10659. elif test "$shlibpath_overrides_runpath" = yes ||
  10660. test "$enable_shared" = no; then
  10661. # Fast installation is not necessary
  10662. enable_fast_install=needless
  10663. fi
  10664. striplib=
  10665. old_striplib=
  10666. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  10667. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  10668. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  10669. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10670. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10671. echo "$as_me:$LINENO: result: yes" >&5
  10672. echo "${ECHO_T}yes" >&6
  10673. else
  10674. # FIXME - insert some real tests, host_os isn't really good enough
  10675. case $host_os in
  10676. darwin*)
  10677. if test -n "$STRIP" ; then
  10678. striplib="$STRIP -x"
  10679. echo "$as_me:$LINENO: result: yes" >&5
  10680. echo "${ECHO_T}yes" >&6
  10681. else
  10682. echo "$as_me:$LINENO: result: no" >&5
  10683. echo "${ECHO_T}no" >&6
  10684. fi
  10685. ;;
  10686. *)
  10687. echo "$as_me:$LINENO: result: no" >&5
  10688. echo "${ECHO_T}no" >&6
  10689. ;;
  10690. esac
  10691. fi
  10692. if test "x$enable_dlopen" != xyes; then
  10693. enable_dlopen=unknown
  10694. enable_dlopen_self=unknown
  10695. enable_dlopen_self_static=unknown
  10696. else
  10697. lt_cv_dlopen=no
  10698. lt_cv_dlopen_libs=
  10699. case $host_os in
  10700. beos*)
  10701. lt_cv_dlopen="load_add_on"
  10702. lt_cv_dlopen_libs=
  10703. lt_cv_dlopen_self=yes
  10704. ;;
  10705. mingw* | pw32*)
  10706. lt_cv_dlopen="LoadLibrary"
  10707. lt_cv_dlopen_libs=
  10708. ;;
  10709. cygwin*)
  10710. lt_cv_dlopen="dlopen"
  10711. lt_cv_dlopen_libs=
  10712. ;;
  10713. darwin*)
  10714. # if libdl is installed we need to link against it
  10715. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10716. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  10717. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10718. echo $ECHO_N "(cached) $ECHO_C" >&6
  10719. else
  10720. ac_check_lib_save_LIBS=$LIBS
  10721. LIBS="-ldl $LIBS"
  10722. cat >conftest.$ac_ext <<_ACEOF
  10723. /* confdefs.h. */
  10724. _ACEOF
  10725. cat confdefs.h >>conftest.$ac_ext
  10726. cat >>conftest.$ac_ext <<_ACEOF
  10727. /* end confdefs.h. */
  10728. /* Override any gcc2 internal prototype to avoid an error. */
  10729. #ifdef __cplusplus
  10730. extern "C"
  10731. #endif
  10732. /* We use char because int might match the return type of a gcc2
  10733. builtin and then its argument prototype would still apply. */
  10734. char dlopen ();
  10735. int
  10736. main ()
  10737. {
  10738. dlopen ();
  10739. ;
  10740. return 0;
  10741. }
  10742. _ACEOF
  10743. rm -f conftest.$ac_objext conftest$ac_exeext
  10744. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10745. (eval $ac_link) 2>conftest.er1
  10746. ac_status=$?
  10747. grep -v '^ *+' conftest.er1 >conftest.err
  10748. rm -f conftest.er1
  10749. cat conftest.err >&5
  10750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10751. (exit $ac_status); } &&
  10752. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10753. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10754. (eval $ac_try) 2>&5
  10755. ac_status=$?
  10756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10757. (exit $ac_status); }; } &&
  10758. { ac_try='test -s conftest$ac_exeext'
  10759. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10760. (eval $ac_try) 2>&5
  10761. ac_status=$?
  10762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10763. (exit $ac_status); }; }; then
  10764. ac_cv_lib_dl_dlopen=yes
  10765. else
  10766. echo "$as_me: failed program was:" >&5
  10767. sed 's/^/| /' conftest.$ac_ext >&5
  10768. ac_cv_lib_dl_dlopen=no
  10769. fi
  10770. rm -f conftest.err conftest.$ac_objext \
  10771. conftest$ac_exeext conftest.$ac_ext
  10772. LIBS=$ac_check_lib_save_LIBS
  10773. fi
  10774. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10775. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  10776. if test $ac_cv_lib_dl_dlopen = yes; then
  10777. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10778. else
  10779. lt_cv_dlopen="dyld"
  10780. lt_cv_dlopen_libs=
  10781. lt_cv_dlopen_self=yes
  10782. fi
  10783. ;;
  10784. *)
  10785. echo "$as_me:$LINENO: checking for shl_load" >&5
  10786. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  10787. if test "${ac_cv_func_shl_load+set}" = set; then
  10788. echo $ECHO_N "(cached) $ECHO_C" >&6
  10789. else
  10790. cat >conftest.$ac_ext <<_ACEOF
  10791. /* confdefs.h. */
  10792. _ACEOF
  10793. cat confdefs.h >>conftest.$ac_ext
  10794. cat >>conftest.$ac_ext <<_ACEOF
  10795. /* end confdefs.h. */
  10796. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  10797. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10798. #define shl_load innocuous_shl_load
  10799. /* System header to define __stub macros and hopefully few prototypes,
  10800. which can conflict with char shl_load (); below.
  10801. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10802. <limits.h> exists even on freestanding compilers. */
  10803. #ifdef __STDC__
  10804. # include <limits.h>
  10805. #else
  10806. # include <assert.h>
  10807. #endif
  10808. #undef shl_load
  10809. /* Override any gcc2 internal prototype to avoid an error. */
  10810. #ifdef __cplusplus
  10811. extern "C"
  10812. {
  10813. #endif
  10814. /* We use char because int might match the return type of a gcc2
  10815. builtin and then its argument prototype would still apply. */
  10816. char shl_load ();
  10817. /* The GNU C library defines this for functions which it implements
  10818. to always fail with ENOSYS. Some functions are actually named
  10819. something starting with __ and the normal name is an alias. */
  10820. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  10821. choke me
  10822. #else
  10823. char (*f) () = shl_load;
  10824. #endif
  10825. #ifdef __cplusplus
  10826. }
  10827. #endif
  10828. int
  10829. main ()
  10830. {
  10831. return f != shl_load;
  10832. ;
  10833. return 0;
  10834. }
  10835. _ACEOF
  10836. rm -f conftest.$ac_objext conftest$ac_exeext
  10837. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10838. (eval $ac_link) 2>conftest.er1
  10839. ac_status=$?
  10840. grep -v '^ *+' conftest.er1 >conftest.err
  10841. rm -f conftest.er1
  10842. cat conftest.err >&5
  10843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10844. (exit $ac_status); } &&
  10845. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10846. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10847. (eval $ac_try) 2>&5
  10848. ac_status=$?
  10849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10850. (exit $ac_status); }; } &&
  10851. { ac_try='test -s conftest$ac_exeext'
  10852. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10853. (eval $ac_try) 2>&5
  10854. ac_status=$?
  10855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10856. (exit $ac_status); }; }; then
  10857. ac_cv_func_shl_load=yes
  10858. else
  10859. echo "$as_me: failed program was:" >&5
  10860. sed 's/^/| /' conftest.$ac_ext >&5
  10861. ac_cv_func_shl_load=no
  10862. fi
  10863. rm -f conftest.err conftest.$ac_objext \
  10864. conftest$ac_exeext conftest.$ac_ext
  10865. fi
  10866. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  10867. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  10868. if test $ac_cv_func_shl_load = yes; then
  10869. lt_cv_dlopen="shl_load"
  10870. else
  10871. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  10872. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  10873. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  10874. echo $ECHO_N "(cached) $ECHO_C" >&6
  10875. else
  10876. ac_check_lib_save_LIBS=$LIBS
  10877. LIBS="-ldld $LIBS"
  10878. cat >conftest.$ac_ext <<_ACEOF
  10879. /* confdefs.h. */
  10880. _ACEOF
  10881. cat confdefs.h >>conftest.$ac_ext
  10882. cat >>conftest.$ac_ext <<_ACEOF
  10883. /* end confdefs.h. */
  10884. /* Override any gcc2 internal prototype to avoid an error. */
  10885. #ifdef __cplusplus
  10886. extern "C"
  10887. #endif
  10888. /* We use char because int might match the return type of a gcc2
  10889. builtin and then its argument prototype would still apply. */
  10890. char shl_load ();
  10891. int
  10892. main ()
  10893. {
  10894. shl_load ();
  10895. ;
  10896. return 0;
  10897. }
  10898. _ACEOF
  10899. rm -f conftest.$ac_objext conftest$ac_exeext
  10900. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10901. (eval $ac_link) 2>conftest.er1
  10902. ac_status=$?
  10903. grep -v '^ *+' conftest.er1 >conftest.err
  10904. rm -f conftest.er1
  10905. cat conftest.err >&5
  10906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10907. (exit $ac_status); } &&
  10908. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10910. (eval $ac_try) 2>&5
  10911. ac_status=$?
  10912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10913. (exit $ac_status); }; } &&
  10914. { ac_try='test -s conftest$ac_exeext'
  10915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10916. (eval $ac_try) 2>&5
  10917. ac_status=$?
  10918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10919. (exit $ac_status); }; }; then
  10920. ac_cv_lib_dld_shl_load=yes
  10921. else
  10922. echo "$as_me: failed program was:" >&5
  10923. sed 's/^/| /' conftest.$ac_ext >&5
  10924. ac_cv_lib_dld_shl_load=no
  10925. fi
  10926. rm -f conftest.err conftest.$ac_objext \
  10927. conftest$ac_exeext conftest.$ac_ext
  10928. LIBS=$ac_check_lib_save_LIBS
  10929. fi
  10930. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  10931. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  10932. if test $ac_cv_lib_dld_shl_load = yes; then
  10933. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  10934. else
  10935. echo "$as_me:$LINENO: checking for dlopen" >&5
  10936. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  10937. if test "${ac_cv_func_dlopen+set}" = set; then
  10938. echo $ECHO_N "(cached) $ECHO_C" >&6
  10939. else
  10940. cat >conftest.$ac_ext <<_ACEOF
  10941. /* confdefs.h. */
  10942. _ACEOF
  10943. cat confdefs.h >>conftest.$ac_ext
  10944. cat >>conftest.$ac_ext <<_ACEOF
  10945. /* end confdefs.h. */
  10946. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  10947. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10948. #define dlopen innocuous_dlopen
  10949. /* System header to define __stub macros and hopefully few prototypes,
  10950. which can conflict with char dlopen (); below.
  10951. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10952. <limits.h> exists even on freestanding compilers. */
  10953. #ifdef __STDC__
  10954. # include <limits.h>
  10955. #else
  10956. # include <assert.h>
  10957. #endif
  10958. #undef dlopen
  10959. /* Override any gcc2 internal prototype to avoid an error. */
  10960. #ifdef __cplusplus
  10961. extern "C"
  10962. {
  10963. #endif
  10964. /* We use char because int might match the return type of a gcc2
  10965. builtin and then its argument prototype would still apply. */
  10966. char dlopen ();
  10967. /* The GNU C library defines this for functions which it implements
  10968. to always fail with ENOSYS. Some functions are actually named
  10969. something starting with __ and the normal name is an alias. */
  10970. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  10971. choke me
  10972. #else
  10973. char (*f) () = dlopen;
  10974. #endif
  10975. #ifdef __cplusplus
  10976. }
  10977. #endif
  10978. int
  10979. main ()
  10980. {
  10981. return f != dlopen;
  10982. ;
  10983. return 0;
  10984. }
  10985. _ACEOF
  10986. rm -f conftest.$ac_objext conftest$ac_exeext
  10987. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10988. (eval $ac_link) 2>conftest.er1
  10989. ac_status=$?
  10990. grep -v '^ *+' conftest.er1 >conftest.err
  10991. rm -f conftest.er1
  10992. cat conftest.err >&5
  10993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10994. (exit $ac_status); } &&
  10995. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10996. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10997. (eval $ac_try) 2>&5
  10998. ac_status=$?
  10999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11000. (exit $ac_status); }; } &&
  11001. { ac_try='test -s conftest$ac_exeext'
  11002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11003. (eval $ac_try) 2>&5
  11004. ac_status=$?
  11005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11006. (exit $ac_status); }; }; then
  11007. ac_cv_func_dlopen=yes
  11008. else
  11009. echo "$as_me: failed program was:" >&5
  11010. sed 's/^/| /' conftest.$ac_ext >&5
  11011. ac_cv_func_dlopen=no
  11012. fi
  11013. rm -f conftest.err conftest.$ac_objext \
  11014. conftest$ac_exeext conftest.$ac_ext
  11015. fi
  11016. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  11017. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  11018. if test $ac_cv_func_dlopen = yes; then
  11019. lt_cv_dlopen="dlopen"
  11020. else
  11021. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  11022. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  11023. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  11024. echo $ECHO_N "(cached) $ECHO_C" >&6
  11025. else
  11026. ac_check_lib_save_LIBS=$LIBS
  11027. LIBS="-ldl $LIBS"
  11028. cat >conftest.$ac_ext <<_ACEOF
  11029. /* confdefs.h. */
  11030. _ACEOF
  11031. cat confdefs.h >>conftest.$ac_ext
  11032. cat >>conftest.$ac_ext <<_ACEOF
  11033. /* end confdefs.h. */
  11034. /* Override any gcc2 internal prototype to avoid an error. */
  11035. #ifdef __cplusplus
  11036. extern "C"
  11037. #endif
  11038. /* We use char because int might match the return type of a gcc2
  11039. builtin and then its argument prototype would still apply. */
  11040. char dlopen ();
  11041. int
  11042. main ()
  11043. {
  11044. dlopen ();
  11045. ;
  11046. return 0;
  11047. }
  11048. _ACEOF
  11049. rm -f conftest.$ac_objext conftest$ac_exeext
  11050. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11051. (eval $ac_link) 2>conftest.er1
  11052. ac_status=$?
  11053. grep -v '^ *+' conftest.er1 >conftest.err
  11054. rm -f conftest.er1
  11055. cat conftest.err >&5
  11056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11057. (exit $ac_status); } &&
  11058. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  11059. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11060. (eval $ac_try) 2>&5
  11061. ac_status=$?
  11062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11063. (exit $ac_status); }; } &&
  11064. { ac_try='test -s conftest$ac_exeext'
  11065. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11066. (eval $ac_try) 2>&5
  11067. ac_status=$?
  11068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11069. (exit $ac_status); }; }; then
  11070. ac_cv_lib_dl_dlopen=yes
  11071. else
  11072. echo "$as_me: failed program was:" >&5
  11073. sed 's/^/| /' conftest.$ac_ext >&5
  11074. ac_cv_lib_dl_dlopen=no
  11075. fi
  11076. rm -f conftest.err conftest.$ac_objext \
  11077. conftest$ac_exeext conftest.$ac_ext
  11078. LIBS=$ac_check_lib_save_LIBS
  11079. fi
  11080. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  11081. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  11082. if test $ac_cv_lib_dl_dlopen = yes; then
  11083. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11084. else
  11085. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  11086. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  11087. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  11088. echo $ECHO_N "(cached) $ECHO_C" >&6
  11089. else
  11090. ac_check_lib_save_LIBS=$LIBS
  11091. LIBS="-lsvld $LIBS"
  11092. cat >conftest.$ac_ext <<_ACEOF
  11093. /* confdefs.h. */
  11094. _ACEOF
  11095. cat confdefs.h >>conftest.$ac_ext
  11096. cat >>conftest.$ac_ext <<_ACEOF
  11097. /* end confdefs.h. */
  11098. /* Override any gcc2 internal prototype to avoid an error. */
  11099. #ifdef __cplusplus
  11100. extern "C"
  11101. #endif
  11102. /* We use char because int might match the return type of a gcc2
  11103. builtin and then its argument prototype would still apply. */
  11104. char dlopen ();
  11105. int
  11106. main ()
  11107. {
  11108. dlopen ();
  11109. ;
  11110. return 0;
  11111. }
  11112. _ACEOF
  11113. rm -f conftest.$ac_objext conftest$ac_exeext
  11114. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11115. (eval $ac_link) 2>conftest.er1
  11116. ac_status=$?
  11117. grep -v '^ *+' conftest.er1 >conftest.err
  11118. rm -f conftest.er1
  11119. cat conftest.err >&5
  11120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11121. (exit $ac_status); } &&
  11122. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  11123. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11124. (eval $ac_try) 2>&5
  11125. ac_status=$?
  11126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11127. (exit $ac_status); }; } &&
  11128. { ac_try='test -s conftest$ac_exeext'
  11129. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11130. (eval $ac_try) 2>&5
  11131. ac_status=$?
  11132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11133. (exit $ac_status); }; }; then
  11134. ac_cv_lib_svld_dlopen=yes
  11135. else
  11136. echo "$as_me: failed program was:" >&5
  11137. sed 's/^/| /' conftest.$ac_ext >&5
  11138. ac_cv_lib_svld_dlopen=no
  11139. fi
  11140. rm -f conftest.err conftest.$ac_objext \
  11141. conftest$ac_exeext conftest.$ac_ext
  11142. LIBS=$ac_check_lib_save_LIBS
  11143. fi
  11144. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  11145. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  11146. if test $ac_cv_lib_svld_dlopen = yes; then
  11147. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  11148. else
  11149. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  11150. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  11151. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  11152. echo $ECHO_N "(cached) $ECHO_C" >&6
  11153. else
  11154. ac_check_lib_save_LIBS=$LIBS
  11155. LIBS="-ldld $LIBS"
  11156. cat >conftest.$ac_ext <<_ACEOF
  11157. /* confdefs.h. */
  11158. _ACEOF
  11159. cat confdefs.h >>conftest.$ac_ext
  11160. cat >>conftest.$ac_ext <<_ACEOF
  11161. /* end confdefs.h. */
  11162. /* Override any gcc2 internal prototype to avoid an error. */
  11163. #ifdef __cplusplus
  11164. extern "C"
  11165. #endif
  11166. /* We use char because int might match the return type of a gcc2
  11167. builtin and then its argument prototype would still apply. */
  11168. char dld_link ();
  11169. int
  11170. main ()
  11171. {
  11172. dld_link ();
  11173. ;
  11174. return 0;
  11175. }
  11176. _ACEOF
  11177. rm -f conftest.$ac_objext conftest$ac_exeext
  11178. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11179. (eval $ac_link) 2>conftest.er1
  11180. ac_status=$?
  11181. grep -v '^ *+' conftest.er1 >conftest.err
  11182. rm -f conftest.er1
  11183. cat conftest.err >&5
  11184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11185. (exit $ac_status); } &&
  11186. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  11187. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11188. (eval $ac_try) 2>&5
  11189. ac_status=$?
  11190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11191. (exit $ac_status); }; } &&
  11192. { ac_try='test -s conftest$ac_exeext'
  11193. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11194. (eval $ac_try) 2>&5
  11195. ac_status=$?
  11196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11197. (exit $ac_status); }; }; then
  11198. ac_cv_lib_dld_dld_link=yes
  11199. else
  11200. echo "$as_me: failed program was:" >&5
  11201. sed 's/^/| /' conftest.$ac_ext >&5
  11202. ac_cv_lib_dld_dld_link=no
  11203. fi
  11204. rm -f conftest.err conftest.$ac_objext \
  11205. conftest$ac_exeext conftest.$ac_ext
  11206. LIBS=$ac_check_lib_save_LIBS
  11207. fi
  11208. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  11209. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  11210. if test $ac_cv_lib_dld_dld_link = yes; then
  11211. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  11212. fi
  11213. fi
  11214. fi
  11215. fi
  11216. fi
  11217. fi
  11218. ;;
  11219. esac
  11220. if test "x$lt_cv_dlopen" != xno; then
  11221. enable_dlopen=yes
  11222. else
  11223. enable_dlopen=no
  11224. fi
  11225. case $lt_cv_dlopen in
  11226. dlopen)
  11227. save_CPPFLAGS="$CPPFLAGS"
  11228. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11229. save_LDFLAGS="$LDFLAGS"
  11230. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11231. save_LIBS="$LIBS"
  11232. LIBS="$lt_cv_dlopen_libs $LIBS"
  11233. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  11234. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  11235. if test "${lt_cv_dlopen_self+set}" = set; then
  11236. echo $ECHO_N "(cached) $ECHO_C" >&6
  11237. else
  11238. if test "$cross_compiling" = yes; then :
  11239. lt_cv_dlopen_self=cross
  11240. else
  11241. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11242. lt_status=$lt_dlunknown
  11243. cat > conftest.$ac_ext <<EOF
  11244. #line 12429 "configure"
  11245. #include "confdefs.h"
  11246. #if HAVE_DLFCN_H
  11247. #include <dlfcn.h>
  11248. #endif
  11249. #include <stdio.h>
  11250. #ifdef RTLD_GLOBAL
  11251. # define LT_DLGLOBAL RTLD_GLOBAL
  11252. #else
  11253. # ifdef DL_GLOBAL
  11254. # define LT_DLGLOBAL DL_GLOBAL
  11255. # else
  11256. # define LT_DLGLOBAL 0
  11257. # endif
  11258. #endif
  11259. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11260. find out it does not work in some platform. */
  11261. #ifndef LT_DLLAZY_OR_NOW
  11262. # ifdef RTLD_LAZY
  11263. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11264. # else
  11265. # ifdef DL_LAZY
  11266. # define LT_DLLAZY_OR_NOW DL_LAZY
  11267. # else
  11268. # ifdef RTLD_NOW
  11269. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11270. # else
  11271. # ifdef DL_NOW
  11272. # define LT_DLLAZY_OR_NOW DL_NOW
  11273. # else
  11274. # define LT_DLLAZY_OR_NOW 0
  11275. # endif
  11276. # endif
  11277. # endif
  11278. # endif
  11279. #endif
  11280. #ifdef __cplusplus
  11281. extern "C" void exit (int);
  11282. #endif
  11283. void fnord() { int i=42;}
  11284. int main ()
  11285. {
  11286. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11287. int status = $lt_dlunknown;
  11288. if (self)
  11289. {
  11290. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11291. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11292. /* dlclose (self); */
  11293. }
  11294. exit (status);
  11295. }
  11296. EOF
  11297. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11298. (eval $ac_link) 2>&5
  11299. ac_status=$?
  11300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11301. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11302. (./conftest; exit; ) 2>/dev/null
  11303. lt_status=$?
  11304. case x$lt_status in
  11305. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11306. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11307. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  11308. esac
  11309. else :
  11310. # compilation failed
  11311. lt_cv_dlopen_self=no
  11312. fi
  11313. fi
  11314. rm -fr conftest*
  11315. fi
  11316. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  11317. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  11318. if test "x$lt_cv_dlopen_self" = xyes; then
  11319. LDFLAGS="$LDFLAGS $link_static_flag"
  11320. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  11321. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  11322. if test "${lt_cv_dlopen_self_static+set}" = set; then
  11323. echo $ECHO_N "(cached) $ECHO_C" >&6
  11324. else
  11325. if test "$cross_compiling" = yes; then :
  11326. lt_cv_dlopen_self_static=cross
  11327. else
  11328. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11329. lt_status=$lt_dlunknown
  11330. cat > conftest.$ac_ext <<EOF
  11331. #line 12527 "configure"
  11332. #include "confdefs.h"
  11333. #if HAVE_DLFCN_H
  11334. #include <dlfcn.h>
  11335. #endif
  11336. #include <stdio.h>
  11337. #ifdef RTLD_GLOBAL
  11338. # define LT_DLGLOBAL RTLD_GLOBAL
  11339. #else
  11340. # ifdef DL_GLOBAL
  11341. # define LT_DLGLOBAL DL_GLOBAL
  11342. # else
  11343. # define LT_DLGLOBAL 0
  11344. # endif
  11345. #endif
  11346. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11347. find out it does not work in some platform. */
  11348. #ifndef LT_DLLAZY_OR_NOW
  11349. # ifdef RTLD_LAZY
  11350. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11351. # else
  11352. # ifdef DL_LAZY
  11353. # define LT_DLLAZY_OR_NOW DL_LAZY
  11354. # else
  11355. # ifdef RTLD_NOW
  11356. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11357. # else
  11358. # ifdef DL_NOW
  11359. # define LT_DLLAZY_OR_NOW DL_NOW
  11360. # else
  11361. # define LT_DLLAZY_OR_NOW 0
  11362. # endif
  11363. # endif
  11364. # endif
  11365. # endif
  11366. #endif
  11367. #ifdef __cplusplus
  11368. extern "C" void exit (int);
  11369. #endif
  11370. void fnord() { int i=42;}
  11371. int main ()
  11372. {
  11373. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11374. int status = $lt_dlunknown;
  11375. if (self)
  11376. {
  11377. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11378. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11379. /* dlclose (self); */
  11380. }
  11381. exit (status);
  11382. }
  11383. EOF
  11384. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11385. (eval $ac_link) 2>&5
  11386. ac_status=$?
  11387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11388. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11389. (./conftest; exit; ) 2>/dev/null
  11390. lt_status=$?
  11391. case x$lt_status in
  11392. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11393. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11394. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  11395. esac
  11396. else :
  11397. # compilation failed
  11398. lt_cv_dlopen_self_static=no
  11399. fi
  11400. fi
  11401. rm -fr conftest*
  11402. fi
  11403. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  11404. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  11405. fi
  11406. CPPFLAGS="$save_CPPFLAGS"
  11407. LDFLAGS="$save_LDFLAGS"
  11408. LIBS="$save_LIBS"
  11409. ;;
  11410. esac
  11411. case $lt_cv_dlopen_self in
  11412. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11413. *) enable_dlopen_self=unknown ;;
  11414. esac
  11415. case $lt_cv_dlopen_self_static in
  11416. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11417. *) enable_dlopen_self_static=unknown ;;
  11418. esac
  11419. fi
  11420. # The else clause should only fire when bootstrapping the
  11421. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11422. # with your package, and you will get complaints that there are
  11423. # no rules to generate ltmain.sh.
  11424. if test -f "$ltmain"; then
  11425. # See if we are running on zsh, and set the options which allow our commands through
  11426. # without removal of \ escapes.
  11427. if test -n "${ZSH_VERSION+set}" ; then
  11428. setopt NO_GLOB_SUBST
  11429. fi
  11430. # Now quote all the things that may contain metacharacters while being
  11431. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11432. # variables and quote the copies for generation of the libtool script.
  11433. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  11434. SED SHELL STRIP \
  11435. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11436. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11437. deplibs_check_method reload_flag reload_cmds need_locks \
  11438. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11439. lt_cv_sys_global_symbol_to_c_name_address \
  11440. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11441. old_postinstall_cmds old_postuninstall_cmds \
  11442. compiler_CXX \
  11443. CC_CXX \
  11444. LD_CXX \
  11445. lt_prog_compiler_wl_CXX \
  11446. lt_prog_compiler_pic_CXX \
  11447. lt_prog_compiler_static_CXX \
  11448. lt_prog_compiler_no_builtin_flag_CXX \
  11449. export_dynamic_flag_spec_CXX \
  11450. thread_safe_flag_spec_CXX \
  11451. whole_archive_flag_spec_CXX \
  11452. enable_shared_with_static_runtimes_CXX \
  11453. old_archive_cmds_CXX \
  11454. old_archive_from_new_cmds_CXX \
  11455. predep_objects_CXX \
  11456. postdep_objects_CXX \
  11457. predeps_CXX \
  11458. postdeps_CXX \
  11459. compiler_lib_search_path_CXX \
  11460. archive_cmds_CXX \
  11461. archive_expsym_cmds_CXX \
  11462. postinstall_cmds_CXX \
  11463. postuninstall_cmds_CXX \
  11464. old_archive_from_expsyms_cmds_CXX \
  11465. allow_undefined_flag_CXX \
  11466. no_undefined_flag_CXX \
  11467. export_symbols_cmds_CXX \
  11468. hardcode_libdir_flag_spec_CXX \
  11469. hardcode_libdir_flag_spec_ld_CXX \
  11470. hardcode_libdir_separator_CXX \
  11471. hardcode_automatic_CXX \
  11472. module_cmds_CXX \
  11473. module_expsym_cmds_CXX \
  11474. lt_cv_prog_compiler_c_o_CXX \
  11475. exclude_expsyms_CXX \
  11476. include_expsyms_CXX; do
  11477. case $var in
  11478. old_archive_cmds_CXX | \
  11479. old_archive_from_new_cmds_CXX | \
  11480. archive_cmds_CXX | \
  11481. archive_expsym_cmds_CXX | \
  11482. module_cmds_CXX | \
  11483. module_expsym_cmds_CXX | \
  11484. old_archive_from_expsyms_cmds_CXX | \
  11485. export_symbols_cmds_CXX | \
  11486. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11487. postinstall_cmds | postuninstall_cmds | \
  11488. old_postinstall_cmds | old_postuninstall_cmds | \
  11489. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11490. # Double-quote double-evaled strings.
  11491. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11492. ;;
  11493. *)
  11494. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11495. ;;
  11496. esac
  11497. done
  11498. case $lt_echo in
  11499. *'\$0 --fallback-echo"')
  11500. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11501. ;;
  11502. esac
  11503. cfgfile="$ofile"
  11504. cat <<__EOF__ >> "$cfgfile"
  11505. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11506. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11507. # Shell to use when invoking shell scripts.
  11508. SHELL=$lt_SHELL
  11509. # Whether or not to build shared libraries.
  11510. build_libtool_libs=$enable_shared
  11511. # Whether or not to build static libraries.
  11512. build_old_libs=$enable_static
  11513. # Whether or not to add -lc for building shared libraries.
  11514. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11515. # Whether or not to disallow shared libs when runtime libs are static
  11516. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11517. # Whether or not to optimize for fast installation.
  11518. fast_install=$enable_fast_install
  11519. # The host system.
  11520. host_alias=$host_alias
  11521. host=$host
  11522. # An echo program that does not interpret backslashes.
  11523. echo=$lt_echo
  11524. # The archiver.
  11525. AR=$lt_AR
  11526. AR_FLAGS=$lt_AR_FLAGS
  11527. # A C compiler.
  11528. LTCC=$lt_LTCC
  11529. # A language-specific compiler.
  11530. CC=$lt_compiler_CXX
  11531. # Is the compiler the GNU C compiler?
  11532. with_gcc=$GCC_CXX
  11533. # An ERE matcher.
  11534. EGREP=$lt_EGREP
  11535. # The linker used to build libraries.
  11536. LD=$lt_LD_CXX
  11537. # Whether we need hard or soft links.
  11538. LN_S=$lt_LN_S
  11539. # A BSD-compatible nm program.
  11540. NM=$lt_NM
  11541. # A symbol stripping program
  11542. STRIP=$lt_STRIP
  11543. # Used to examine libraries when file_magic_cmd begins "file"
  11544. MAGIC_CMD=$MAGIC_CMD
  11545. # Used on cygwin: DLL creation program.
  11546. DLLTOOL="$DLLTOOL"
  11547. # Used on cygwin: object dumper.
  11548. OBJDUMP="$OBJDUMP"
  11549. # Used on cygwin: assembler.
  11550. AS="$AS"
  11551. # The name of the directory that contains temporary libtool files.
  11552. objdir=$objdir
  11553. # How to create reloadable object files.
  11554. reload_flag=$lt_reload_flag
  11555. reload_cmds=$lt_reload_cmds
  11556. # How to pass a linker flag through the compiler.
  11557. wl=$lt_lt_prog_compiler_wl_CXX
  11558. # Object file suffix (normally "o").
  11559. objext="$ac_objext"
  11560. # Old archive suffix (normally "a").
  11561. libext="$libext"
  11562. # Shared library suffix (normally ".so").
  11563. shrext='$shrext'
  11564. # Executable file suffix (normally "").
  11565. exeext="$exeext"
  11566. # Additional compiler flags for building library objects.
  11567. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11568. pic_mode=$pic_mode
  11569. # What is the maximum length of a command?
  11570. max_cmd_len=$lt_cv_sys_max_cmd_len
  11571. # Does compiler simultaneously support -c and -o options?
  11572. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11573. # Must we lock files when doing compilation ?
  11574. need_locks=$lt_need_locks
  11575. # Do we need the lib prefix for modules?
  11576. need_lib_prefix=$need_lib_prefix
  11577. # Do we need a version for libraries?
  11578. need_version=$need_version
  11579. # Whether dlopen is supported.
  11580. dlopen_support=$enable_dlopen
  11581. # Whether dlopen of programs is supported.
  11582. dlopen_self=$enable_dlopen_self
  11583. # Whether dlopen of statically linked programs is supported.
  11584. dlopen_self_static=$enable_dlopen_self_static
  11585. # Compiler flag to prevent dynamic linking.
  11586. link_static_flag=$lt_lt_prog_compiler_static_CXX
  11587. # Compiler flag to turn off builtin functions.
  11588. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  11589. # Compiler flag to allow reflexive dlopens.
  11590. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  11591. # Compiler flag to generate shared objects directly from archives.
  11592. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  11593. # Compiler flag to generate thread-safe objects.
  11594. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  11595. # Library versioning type.
  11596. version_type=$version_type
  11597. # Format of library name prefix.
  11598. libname_spec=$lt_libname_spec
  11599. # List of archive names. First name is the real one, the rest are links.
  11600. # The last name is the one that the linker finds with -lNAME.
  11601. library_names_spec=$lt_library_names_spec
  11602. # The coded name of the library, if different from the real name.
  11603. soname_spec=$lt_soname_spec
  11604. # Commands used to build and install an old-style archive.
  11605. RANLIB=$lt_RANLIB
  11606. old_archive_cmds=$lt_old_archive_cmds_CXX
  11607. old_postinstall_cmds=$lt_old_postinstall_cmds
  11608. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11609. # Create an old-style archive from a shared archive.
  11610. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  11611. # Create a temporary old-style archive to link instead of a shared archive.
  11612. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  11613. # Commands used to build and install a shared archive.
  11614. archive_cmds=$lt_archive_cmds_CXX
  11615. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  11616. postinstall_cmds=$lt_postinstall_cmds
  11617. postuninstall_cmds=$lt_postuninstall_cmds
  11618. # Commands used to build a loadable module (assumed same as above if empty)
  11619. module_cmds=$lt_module_cmds_CXX
  11620. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  11621. # Commands to strip libraries.
  11622. old_striplib=$lt_old_striplib
  11623. striplib=$lt_striplib
  11624. # Dependencies to place before the objects being linked to create a
  11625. # shared library.
  11626. predep_objects=$lt_predep_objects_CXX
  11627. # Dependencies to place after the objects being linked to create a
  11628. # shared library.
  11629. postdep_objects=$lt_postdep_objects_CXX
  11630. # Dependencies to place before the objects being linked to create a
  11631. # shared library.
  11632. predeps=$lt_predeps_CXX
  11633. # Dependencies to place after the objects being linked to create a
  11634. # shared library.
  11635. postdeps=$lt_postdeps_CXX
  11636. # The library search path used internally by the compiler when linking
  11637. # a shared library.
  11638. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  11639. # Method to check whether dependent libraries are shared objects.
  11640. deplibs_check_method=$lt_deplibs_check_method
  11641. # Command to use when deplibs_check_method == file_magic.
  11642. file_magic_cmd=$lt_file_magic_cmd
  11643. # Flag that allows shared libraries with undefined symbols to be built.
  11644. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  11645. # Flag that forces no undefined symbols.
  11646. no_undefined_flag=$lt_no_undefined_flag_CXX
  11647. # Commands used to finish a libtool library installation in a directory.
  11648. finish_cmds=$lt_finish_cmds
  11649. # Same as above, but a single script fragment to be evaled but not shown.
  11650. finish_eval=$lt_finish_eval
  11651. # Take the output of nm and produce a listing of raw symbols and C names.
  11652. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11653. # Transform the output of nm in a proper C declaration
  11654. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11655. # Transform the output of nm in a C name address pair
  11656. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11657. # This is the shared library runtime path variable.
  11658. runpath_var=$runpath_var
  11659. # This is the shared library path variable.
  11660. shlibpath_var=$shlibpath_var
  11661. # Is shlibpath searched before the hard-coded library search path?
  11662. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11663. # How to hardcode a shared library path into an executable.
  11664. hardcode_action=$hardcode_action_CXX
  11665. # Whether we should hardcode library paths into libraries.
  11666. hardcode_into_libs=$hardcode_into_libs
  11667. # Flag to hardcode \$libdir into a binary during linking.
  11668. # This must work even if \$libdir does not exist.
  11669. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  11670. # If ld is used when linking, flag to hardcode \$libdir into
  11671. # a binary during linking. This must work even if \$libdir does
  11672. # not exist.
  11673. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  11674. # Whether we need a single -rpath flag with a separated argument.
  11675. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  11676. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11677. # resulting binary.
  11678. hardcode_direct=$hardcode_direct_CXX
  11679. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11680. # resulting binary.
  11681. hardcode_minus_L=$hardcode_minus_L_CXX
  11682. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11683. # the resulting binary.
  11684. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  11685. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11686. # and all subsequent libraries and executables linked against it.
  11687. hardcode_automatic=$hardcode_automatic_CXX
  11688. # Variables whose values should be saved in libtool wrapper scripts and
  11689. # restored at relink time.
  11690. variables_saved_for_relink="$variables_saved_for_relink"
  11691. # Whether libtool must link a program against all its dependency libraries.
  11692. link_all_deplibs=$link_all_deplibs_CXX
  11693. # Compile-time system search path for libraries
  11694. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11695. # Run-time system search path for libraries
  11696. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11697. # Fix the shell variable \$srcfile for the compiler.
  11698. fix_srcfile_path="$fix_srcfile_path_CXX"
  11699. # Set to yes if exported symbols are required.
  11700. always_export_symbols=$always_export_symbols_CXX
  11701. # The commands to list exported symbols.
  11702. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  11703. # The commands to extract the exported symbol list from a shared archive.
  11704. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11705. # Symbols that should not be listed in the preloaded symbols.
  11706. exclude_expsyms=$lt_exclude_expsyms_CXX
  11707. # Symbols that must always be exported.
  11708. include_expsyms=$lt_include_expsyms_CXX
  11709. # ### END LIBTOOL TAG CONFIG: $tagname
  11710. __EOF__
  11711. else
  11712. # If there is no Makefile yet, we rely on a make rule to execute
  11713. # `config.status --recheck' to rerun these tests and create the
  11714. # libtool script then.
  11715. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11716. if test -f "$ltmain_in"; then
  11717. test -f Makefile && make "$ltmain"
  11718. fi
  11719. fi
  11720. ac_ext=c
  11721. ac_cpp='$CPP $CPPFLAGS'
  11722. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11723. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11724. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11725. CC=$lt_save_CC
  11726. LDCXX=$LD
  11727. LD=$lt_save_LD
  11728. GCC=$lt_save_GCC
  11729. with_gnu_ldcxx=$with_gnu_ld
  11730. with_gnu_ld=$lt_save_with_gnu_ld
  11731. lt_cv_path_LDCXX=$lt_cv_path_LD
  11732. lt_cv_path_LD=$lt_save_path_LD
  11733. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11734. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11735. else
  11736. tagname=""
  11737. fi
  11738. ;;
  11739. F77)
  11740. if test -n "$F77" && test "X$F77" != "Xno"; then
  11741. ac_ext=f
  11742. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  11743. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11744. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  11745. archive_cmds_need_lc_F77=no
  11746. allow_undefined_flag_F77=
  11747. always_export_symbols_F77=no
  11748. archive_expsym_cmds_F77=
  11749. export_dynamic_flag_spec_F77=
  11750. hardcode_direct_F77=no
  11751. hardcode_libdir_flag_spec_F77=
  11752. hardcode_libdir_flag_spec_ld_F77=
  11753. hardcode_libdir_separator_F77=
  11754. hardcode_minus_L_F77=no
  11755. hardcode_automatic_F77=no
  11756. module_cmds_F77=
  11757. module_expsym_cmds_F77=
  11758. link_all_deplibs_F77=unknown
  11759. old_archive_cmds_F77=$old_archive_cmds
  11760. no_undefined_flag_F77=
  11761. whole_archive_flag_spec_F77=
  11762. enable_shared_with_static_runtimes_F77=no
  11763. # Source file extension for f77 test sources.
  11764. ac_ext=f
  11765. # Object file extension for compiled f77 test sources.
  11766. objext=o
  11767. objext_F77=$objext
  11768. # Code to be used in simple compile tests
  11769. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11770. # Code to be used in simple link tests
  11771. lt_simple_link_test_code=" program t\n end\n"
  11772. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11773. # If no C compiler was specified, use CC.
  11774. LTCC=${LTCC-"$CC"}
  11775. # Allow CC to be a program name with arguments.
  11776. compiler=$CC
  11777. # Allow CC to be a program name with arguments.
  11778. lt_save_CC="$CC"
  11779. CC=${F77-"f77"}
  11780. compiler=$CC
  11781. compiler_F77=$CC
  11782. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  11783. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11784. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  11785. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11786. echo "${ECHO_T}$can_build_shared" >&6
  11787. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11788. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  11789. test "$can_build_shared" = "no" && enable_shared=no
  11790. # On AIX, shared libraries and static libraries use the same namespace, and
  11791. # are all built from PIC.
  11792. case "$host_os" in
  11793. aix3*)
  11794. test "$enable_shared" = yes && enable_static=no
  11795. if test -n "$RANLIB"; then
  11796. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11797. postinstall_cmds='$RANLIB $lib'
  11798. fi
  11799. ;;
  11800. aix4*)
  11801. test "$enable_shared" = yes && enable_static=no
  11802. ;;
  11803. esac
  11804. echo "$as_me:$LINENO: result: $enable_shared" >&5
  11805. echo "${ECHO_T}$enable_shared" >&6
  11806. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11807. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  11808. # Make sure either enable_shared or enable_static is yes.
  11809. test "$enable_shared" = yes || enable_static=yes
  11810. echo "$as_me:$LINENO: result: $enable_static" >&5
  11811. echo "${ECHO_T}$enable_static" >&6
  11812. test "$ld_shlibs_F77" = no && can_build_shared=no
  11813. GCC_F77="$G77"
  11814. LD_F77="$LD"
  11815. lt_prog_compiler_wl_F77=
  11816. lt_prog_compiler_pic_F77=
  11817. lt_prog_compiler_static_F77=
  11818. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11819. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11820. if test "$GCC" = yes; then
  11821. lt_prog_compiler_wl_F77='-Wl,'
  11822. lt_prog_compiler_static_F77='-static'
  11823. case $host_os in
  11824. aix*)
  11825. # All AIX code is PIC.
  11826. if test "$host_cpu" = ia64; then
  11827. # AIX 5 now supports IA64 processor
  11828. lt_prog_compiler_static_F77='-Bstatic'
  11829. fi
  11830. ;;
  11831. amigaos*)
  11832. # FIXME: we need at least 68020 code to build shared libraries, but
  11833. # adding the `-m68020' flag to GCC prevents building anything better,
  11834. # like `-m68040'.
  11835. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  11836. ;;
  11837. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11838. # PIC is the default for these OSes.
  11839. ;;
  11840. mingw* | pw32* | os2*)
  11841. # This hack is so that the source file can tell whether it is being
  11842. # built for inclusion in a dll (and should export symbols for example).
  11843. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11844. ;;
  11845. darwin* | rhapsody*)
  11846. # PIC is the default on this platform
  11847. # Common symbols not allowed in MH_DYLIB files
  11848. lt_prog_compiler_pic_F77='-fno-common'
  11849. ;;
  11850. msdosdjgpp*)
  11851. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11852. # on systems that don't support them.
  11853. lt_prog_compiler_can_build_shared_F77=no
  11854. enable_shared=no
  11855. ;;
  11856. sysv4*MP*)
  11857. if test -d /usr/nec; then
  11858. lt_prog_compiler_pic_F77=-Kconform_pic
  11859. fi
  11860. ;;
  11861. hpux*)
  11862. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11863. # not for PA HP-UX.
  11864. case "$host_cpu" in
  11865. hppa*64*|ia64*)
  11866. # +Z the default
  11867. ;;
  11868. *)
  11869. lt_prog_compiler_pic_F77='-fPIC'
  11870. ;;
  11871. esac
  11872. ;;
  11873. *)
  11874. lt_prog_compiler_pic_F77='-fPIC'
  11875. ;;
  11876. esac
  11877. else
  11878. # PORTME Check for flag to pass linker flags through the system compiler.
  11879. case $host_os in
  11880. aix*)
  11881. lt_prog_compiler_wl_F77='-Wl,'
  11882. if test "$host_cpu" = ia64; then
  11883. # AIX 5 now supports IA64 processor
  11884. lt_prog_compiler_static_F77='-Bstatic'
  11885. else
  11886. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  11887. fi
  11888. ;;
  11889. mingw* | pw32* | os2*)
  11890. # This hack is so that the source file can tell whether it is being
  11891. # built for inclusion in a dll (and should export symbols for example).
  11892. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11893. ;;
  11894. hpux9* | hpux10* | hpux11*)
  11895. lt_prog_compiler_wl_F77='-Wl,'
  11896. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11897. # not for PA HP-UX.
  11898. case "$host_cpu" in
  11899. hppa*64*|ia64*)
  11900. # +Z the default
  11901. ;;
  11902. *)
  11903. lt_prog_compiler_pic_F77='+Z'
  11904. ;;
  11905. esac
  11906. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11907. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  11908. ;;
  11909. irix5* | irix6* | nonstopux*)
  11910. lt_prog_compiler_wl_F77='-Wl,'
  11911. # PIC (with -KPIC) is the default.
  11912. lt_prog_compiler_static_F77='-non_shared'
  11913. ;;
  11914. newsos6)
  11915. lt_prog_compiler_pic_F77='-KPIC'
  11916. lt_prog_compiler_static_F77='-Bstatic'
  11917. ;;
  11918. linux*)
  11919. case $CC in
  11920. icc* | ecc*)
  11921. lt_prog_compiler_wl_F77='-Wl,'
  11922. lt_prog_compiler_pic_F77='-KPIC'
  11923. lt_prog_compiler_static_F77='-static'
  11924. ;;
  11925. ccc*)
  11926. lt_prog_compiler_wl_F77='-Wl,'
  11927. # All Alpha code is PIC.
  11928. lt_prog_compiler_static_F77='-non_shared'
  11929. ;;
  11930. esac
  11931. ;;
  11932. osf3* | osf4* | osf5*)
  11933. lt_prog_compiler_wl_F77='-Wl,'
  11934. # All OSF/1 code is PIC.
  11935. lt_prog_compiler_static_F77='-non_shared'
  11936. ;;
  11937. sco3.2v5*)
  11938. lt_prog_compiler_pic_F77='-Kpic'
  11939. lt_prog_compiler_static_F77='-dn'
  11940. ;;
  11941. solaris*)
  11942. lt_prog_compiler_wl_F77='-Wl,'
  11943. lt_prog_compiler_pic_F77='-KPIC'
  11944. lt_prog_compiler_static_F77='-Bstatic'
  11945. ;;
  11946. sunos4*)
  11947. lt_prog_compiler_wl_F77='-Qoption ld '
  11948. lt_prog_compiler_pic_F77='-PIC'
  11949. lt_prog_compiler_static_F77='-Bstatic'
  11950. ;;
  11951. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11952. lt_prog_compiler_wl_F77='-Wl,'
  11953. lt_prog_compiler_pic_F77='-KPIC'
  11954. lt_prog_compiler_static_F77='-Bstatic'
  11955. ;;
  11956. sysv4*MP*)
  11957. if test -d /usr/nec ;then
  11958. lt_prog_compiler_pic_F77='-Kconform_pic'
  11959. lt_prog_compiler_static_F77='-Bstatic'
  11960. fi
  11961. ;;
  11962. uts4*)
  11963. lt_prog_compiler_pic_F77='-pic'
  11964. lt_prog_compiler_static_F77='-Bstatic'
  11965. ;;
  11966. *)
  11967. lt_prog_compiler_can_build_shared_F77=no
  11968. ;;
  11969. esac
  11970. fi
  11971. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  11972. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  11973. #
  11974. # Check to make sure the PIC flag actually works.
  11975. #
  11976. if test -n "$lt_prog_compiler_pic_F77"; then
  11977. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  11978. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  11979. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  11980. echo $ECHO_N "(cached) $ECHO_C" >&6
  11981. else
  11982. lt_prog_compiler_pic_works_F77=no
  11983. ac_outfile=conftest.$ac_objext
  11984. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11985. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  11986. # Insert the option either (1) after the last *FLAGS variable, or
  11987. # (2) before a word containing "conftest.", or (3) at the end.
  11988. # Note that $ac_compile itself does not contain backslashes and begins
  11989. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11990. # The option is referenced via a variable to avoid confusing sed.
  11991. lt_compile=`echo "$ac_compile" | $SED \
  11992. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  11993. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11994. -e 's:$: $lt_compiler_flag:'`
  11995. (eval echo "\"\$as_me:13354: $lt_compile\"" >&5)
  11996. (eval "$lt_compile" 2>conftest.err)
  11997. ac_status=$?
  11998. cat conftest.err >&5
  11999. echo "$as_me:13358: \$? = $ac_status" >&5
  12000. if (exit $ac_status) && test -s "$ac_outfile"; then
  12001. # The compiler can only warn and ignore the option if not recognized
  12002. # So say no if there are warnings
  12003. if test ! -s conftest.err; then
  12004. lt_prog_compiler_pic_works_F77=yes
  12005. fi
  12006. fi
  12007. $rm conftest*
  12008. fi
  12009. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12010. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  12011. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12012. case $lt_prog_compiler_pic_F77 in
  12013. "" | " "*) ;;
  12014. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12015. esac
  12016. else
  12017. lt_prog_compiler_pic_F77=
  12018. lt_prog_compiler_can_build_shared_F77=no
  12019. fi
  12020. fi
  12021. case "$host_os" in
  12022. # For platforms which do not support PIC, -DPIC is meaningless:
  12023. *djgpp*)
  12024. lt_prog_compiler_pic_F77=
  12025. ;;
  12026. *)
  12027. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12028. ;;
  12029. esac
  12030. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12031. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  12032. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12033. echo $ECHO_N "(cached) $ECHO_C" >&6
  12034. else
  12035. lt_cv_prog_compiler_c_o_F77=no
  12036. $rm -r conftest 2>/dev/null
  12037. mkdir conftest
  12038. cd conftest
  12039. mkdir out
  12040. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12041. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12042. # Insert the option either (1) after the last *FLAGS variable, or
  12043. # (2) before a word containing "conftest.", or (3) at the end.
  12044. # Note that $ac_compile itself does not contain backslashes and begins
  12045. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12046. lt_compile=`echo "$ac_compile" | $SED \
  12047. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  12048. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12049. -e 's:$: $lt_compiler_flag:'`
  12050. (eval echo "\"\$as_me:13414: $lt_compile\"" >&5)
  12051. (eval "$lt_compile" 2>out/conftest.err)
  12052. ac_status=$?
  12053. cat out/conftest.err >&5
  12054. echo "$as_me:13418: \$? = $ac_status" >&5
  12055. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12056. then
  12057. # The compiler can only warn and ignore the option if not recognized
  12058. # So say no if there are warnings
  12059. if test ! -s out/conftest.err; then
  12060. lt_cv_prog_compiler_c_o_F77=yes
  12061. fi
  12062. fi
  12063. chmod u+w .
  12064. $rm conftest*
  12065. # SGI C++ compiler will create directory out/ii_files/ for
  12066. # template instantiation
  12067. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12068. $rm out/* && rmdir out
  12069. cd ..
  12070. rmdir conftest
  12071. $rm conftest*
  12072. fi
  12073. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12074. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  12075. hard_links="nottested"
  12076. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12077. # do not overwrite the value of need_locks provided by the user
  12078. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12079. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  12080. hard_links=yes
  12081. $rm conftest*
  12082. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12083. touch conftest.a
  12084. ln conftest.a conftest.b 2>&5 || hard_links=no
  12085. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12086. echo "$as_me:$LINENO: result: $hard_links" >&5
  12087. echo "${ECHO_T}$hard_links" >&6
  12088. if test "$hard_links" = no; then
  12089. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12090. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12091. need_locks=warn
  12092. fi
  12093. else
  12094. need_locks=no
  12095. fi
  12096. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12097. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  12098. runpath_var=
  12099. allow_undefined_flag_F77=
  12100. enable_shared_with_static_runtimes_F77=no
  12101. archive_cmds_F77=
  12102. archive_expsym_cmds_F77=
  12103. old_archive_From_new_cmds_F77=
  12104. old_archive_from_expsyms_cmds_F77=
  12105. export_dynamic_flag_spec_F77=
  12106. whole_archive_flag_spec_F77=
  12107. thread_safe_flag_spec_F77=
  12108. hardcode_libdir_flag_spec_F77=
  12109. hardcode_libdir_flag_spec_ld_F77=
  12110. hardcode_libdir_separator_F77=
  12111. hardcode_direct_F77=no
  12112. hardcode_minus_L_F77=no
  12113. hardcode_shlibpath_var_F77=unsupported
  12114. link_all_deplibs_F77=unknown
  12115. hardcode_automatic_F77=no
  12116. module_cmds_F77=
  12117. module_expsym_cmds_F77=
  12118. always_export_symbols_F77=no
  12119. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12120. # include_expsyms should be a list of space-separated symbols to be *always*
  12121. # included in the symbol list
  12122. include_expsyms_F77=
  12123. # exclude_expsyms can be an extended regexp of symbols to exclude
  12124. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12125. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12126. # as well as any symbol that contains `d'.
  12127. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12128. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12129. # platforms (ab)use it in PIC code, but their linkers get confused if
  12130. # the symbol is explicitly referenced. Since portable code cannot
  12131. # rely on this symbol name, it's probably fine to never include it in
  12132. # preloaded symbol tables.
  12133. extract_expsyms_cmds=
  12134. case $host_os in
  12135. cygwin* | mingw* | pw32*)
  12136. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12137. # When not using gcc, we currently assume that we are using
  12138. # Microsoft Visual C++.
  12139. if test "$GCC" != yes; then
  12140. with_gnu_ld=no
  12141. fi
  12142. ;;
  12143. openbsd*)
  12144. with_gnu_ld=no
  12145. ;;
  12146. esac
  12147. ld_shlibs_F77=yes
  12148. if test "$with_gnu_ld" = yes; then
  12149. # If archive_cmds runs LD, not CC, wlarc should be empty
  12150. wlarc='${wl}'
  12151. # See if GNU ld supports shared libraries.
  12152. case $host_os in
  12153. aix3* | aix4* | aix5*)
  12154. # On AIX/PPC, the GNU linker is very broken
  12155. if test "$host_cpu" != ia64; then
  12156. ld_shlibs_F77=no
  12157. cat <<EOF 1>&2
  12158. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12159. *** to be unable to reliably create shared libraries on AIX.
  12160. *** Therefore, libtool is disabling shared libraries support. If you
  12161. *** really care for shared libraries, you may want to modify your PATH
  12162. *** so that a non-GNU linker is found, and then restart.
  12163. EOF
  12164. fi
  12165. ;;
  12166. amigaos*)
  12167. archive_cmds_F77='$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)'
  12168. hardcode_libdir_flag_spec_F77='-L$libdir'
  12169. hardcode_minus_L_F77=yes
  12170. # Samuel A. Falvo II <[email protected]> reports
  12171. # that the semantics of dynamic libraries on AmigaOS, at least up
  12172. # to version 4, is to share data among multiple programs linked
  12173. # with the same dynamic library. Since this doesn't match the
  12174. # behavior of shared libraries on other platforms, we can't use
  12175. # them.
  12176. ld_shlibs_F77=no
  12177. ;;
  12178. beos*)
  12179. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12180. allow_undefined_flag_F77=unsupported
  12181. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12182. # support --undefined. This deserves some investigation. FIXME
  12183. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12184. else
  12185. ld_shlibs_F77=no
  12186. fi
  12187. ;;
  12188. cygwin* | mingw* | pw32*)
  12189. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  12190. # as there is no search path for DLLs.
  12191. hardcode_libdir_flag_spec_F77='-L$libdir'
  12192. allow_undefined_flag_F77=unsupported
  12193. always_export_symbols_F77=no
  12194. enable_shared_with_static_runtimes_F77=yes
  12195. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12196. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12197. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  12198. # If the export-symbols file already is a .def file (1st line
  12199. # is EXPORTS), use it as is; otherwise, prepend...
  12200. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12201. cp $export_symbols $output_objdir/$soname.def;
  12202. else
  12203. echo EXPORTS > $output_objdir/$soname.def;
  12204. cat $export_symbols >> $output_objdir/$soname.def;
  12205. fi~
  12206. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  12207. else
  12208. ld_shlibs=no
  12209. fi
  12210. ;;
  12211. netbsd* | knetbsd*-gnu)
  12212. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12213. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12214. wlarc=
  12215. else
  12216. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12217. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12218. fi
  12219. ;;
  12220. solaris* | sysv5*)
  12221. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12222. ld_shlibs_F77=no
  12223. cat <<EOF 1>&2
  12224. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12225. *** create shared libraries on Solaris systems. Therefore, libtool
  12226. *** is disabling shared libraries support. We urge you to upgrade GNU
  12227. *** binutils to release 2.9.1 or newer. Another option is to modify
  12228. *** your PATH or compiler configuration so that the native linker is
  12229. *** used, and then restart.
  12230. EOF
  12231. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12232. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12233. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12234. else
  12235. ld_shlibs_F77=no
  12236. fi
  12237. ;;
  12238. sunos4*)
  12239. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12240. wlarc=
  12241. hardcode_direct_F77=yes
  12242. hardcode_shlibpath_var_F77=no
  12243. ;;
  12244. linux*)
  12245. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  12246. tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12247. archive_cmds_F77="$tmp_archive_cmds"
  12248. supports_anon_versioning=no
  12249. case `$LD -v 2>/dev/null` in
  12250. *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12251. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12252. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12253. *\ 2.11.*) ;; # other 2.11 versions
  12254. *) supports_anon_versioning=yes ;;
  12255. esac
  12256. if test $supports_anon_versioning = yes; then
  12257. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12258. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12259. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12260. $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12261. else
  12262. archive_expsym_cmds_F77="$tmp_archive_cmds"
  12263. fi
  12264. else
  12265. ld_shlibs_F77=no
  12266. fi
  12267. ;;
  12268. *)
  12269. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12270. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12271. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12272. else
  12273. ld_shlibs_F77=no
  12274. fi
  12275. ;;
  12276. esac
  12277. if test "$ld_shlibs_F77" = yes; then
  12278. runpath_var=LD_RUN_PATH
  12279. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12280. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12281. # ancient GNU ld didn't support --whole-archive et. al.
  12282. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12283. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12284. else
  12285. whole_archive_flag_spec_F77=
  12286. fi
  12287. fi
  12288. else
  12289. # PORTME fill in a description of your system's linker (not GNU ld)
  12290. case $host_os in
  12291. aix3*)
  12292. allow_undefined_flag_F77=unsupported
  12293. always_export_symbols_F77=yes
  12294. archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  12295. # Note: this linker hardcodes the directories in LIBPATH if there
  12296. # are no directories specified by -L.
  12297. hardcode_minus_L_F77=yes
  12298. if test "$GCC" = yes && test -z "$link_static_flag"; then
  12299. # Neither direct hardcoding nor static linking is supported with a
  12300. # broken collect2.
  12301. hardcode_direct_F77=unsupported
  12302. fi
  12303. ;;
  12304. aix4* | aix5*)
  12305. if test "$host_cpu" = ia64; then
  12306. # On IA64, the linker does run time linking by default, so we don't
  12307. # have to do anything special.
  12308. aix_use_runtimelinking=no
  12309. exp_sym_flag='-Bexport'
  12310. no_entry_flag=""
  12311. else
  12312. # If we're using GNU nm, then we don't want the "-C" option.
  12313. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12314. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12315. export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  12316. else
  12317. export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  12318. fi
  12319. aix_use_runtimelinking=no
  12320. # Test if we are trying to use run time linking or normal
  12321. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12322. # need to do runtime linking.
  12323. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12324. for ld_flag in $LDFLAGS; do
  12325. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12326. aix_use_runtimelinking=yes
  12327. break
  12328. fi
  12329. done
  12330. esac
  12331. exp_sym_flag='-bexport'
  12332. no_entry_flag='-bnoentry'
  12333. fi
  12334. # When large executables or shared objects are built, AIX ld can
  12335. # have problems creating the table of contents. If linking a library
  12336. # or program results in "error TOC overflow" add -mminimal-toc to
  12337. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12338. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12339. archive_cmds_F77=''
  12340. hardcode_direct_F77=yes
  12341. hardcode_libdir_separator_F77=':'
  12342. link_all_deplibs_F77=yes
  12343. if test "$GCC" = yes; then
  12344. case $host_os in aix4.012|aix4.012.*)
  12345. # We only want to do this on AIX 4.2 and lower, the check
  12346. # below for broken collect2 doesn't work under 4.3+
  12347. collect2name=`${CC} -print-prog-name=collect2`
  12348. if test -f "$collect2name" && \
  12349. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12350. then
  12351. # We have reworked collect2
  12352. hardcode_direct_F77=yes
  12353. else
  12354. # We have old collect2
  12355. hardcode_direct_F77=unsupported
  12356. # It fails to find uninstalled libraries when the uninstalled
  12357. # path is not listed in the libpath. Setting hardcode_minus_L
  12358. # to unsupported forces relinking
  12359. hardcode_minus_L_F77=yes
  12360. hardcode_libdir_flag_spec_F77='-L$libdir'
  12361. hardcode_libdir_separator_F77=
  12362. fi
  12363. esac
  12364. shared_flag='-shared'
  12365. else
  12366. # not using gcc
  12367. if test "$host_cpu" = ia64; then
  12368. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12369. # chokes on -Wl,-G. The following line is correct:
  12370. shared_flag='-G'
  12371. else
  12372. if test "$aix_use_runtimelinking" = yes; then
  12373. shared_flag='${wl}-G'
  12374. else
  12375. shared_flag='${wl}-bM:SRE'
  12376. fi
  12377. fi
  12378. fi
  12379. # It seems that -bexpall does not export symbols beginning with
  12380. # underscore (_), so it is better to generate a list of symbols to export.
  12381. always_export_symbols_F77=yes
  12382. if test "$aix_use_runtimelinking" = yes; then
  12383. # Warning - without using the other runtime loading flags (-brtl),
  12384. # -berok will link without error, but may produce a broken library.
  12385. allow_undefined_flag_F77='-berok'
  12386. # Determine the default libpath from the value encoded in an empty executable.
  12387. cat >conftest.$ac_ext <<_ACEOF
  12388. program main
  12389. end
  12390. _ACEOF
  12391. rm -f conftest.$ac_objext conftest$ac_exeext
  12392. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12393. (eval $ac_link) 2>conftest.er1
  12394. ac_status=$?
  12395. grep -v '^ *+' conftest.er1 >conftest.err
  12396. rm -f conftest.er1
  12397. cat conftest.err >&5
  12398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12399. (exit $ac_status); } &&
  12400. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  12401. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12402. (eval $ac_try) 2>&5
  12403. ac_status=$?
  12404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12405. (exit $ac_status); }; } &&
  12406. { ac_try='test -s conftest$ac_exeext'
  12407. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12408. (eval $ac_try) 2>&5
  12409. ac_status=$?
  12410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12411. (exit $ac_status); }; }; then
  12412. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12413. }'`
  12414. # Check for a 64-bit object if we didn't find anything.
  12415. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12416. }'`; fi
  12417. else
  12418. echo "$as_me: failed program was:" >&5
  12419. sed 's/^/| /' conftest.$ac_ext >&5
  12420. fi
  12421. rm -f conftest.err conftest.$ac_objext \
  12422. conftest$ac_exeext conftest.$ac_ext
  12423. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12424. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12425. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  12426. else
  12427. if test "$host_cpu" = ia64; then
  12428. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  12429. allow_undefined_flag_F77="-z nodefs"
  12430. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  12431. else
  12432. # Determine the default libpath from the value encoded in an empty executable.
  12433. cat >conftest.$ac_ext <<_ACEOF
  12434. program main
  12435. end
  12436. _ACEOF
  12437. rm -f conftest.$ac_objext conftest$ac_exeext
  12438. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12439. (eval $ac_link) 2>conftest.er1
  12440. ac_status=$?
  12441. grep -v '^ *+' conftest.er1 >conftest.err
  12442. rm -f conftest.er1
  12443. cat conftest.err >&5
  12444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12445. (exit $ac_status); } &&
  12446. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  12447. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12448. (eval $ac_try) 2>&5
  12449. ac_status=$?
  12450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12451. (exit $ac_status); }; } &&
  12452. { ac_try='test -s conftest$ac_exeext'
  12453. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12454. (eval $ac_try) 2>&5
  12455. ac_status=$?
  12456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12457. (exit $ac_status); }; }; then
  12458. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12459. }'`
  12460. # Check for a 64-bit object if we didn't find anything.
  12461. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12462. }'`; fi
  12463. else
  12464. echo "$as_me: failed program was:" >&5
  12465. sed 's/^/| /' conftest.$ac_ext >&5
  12466. fi
  12467. rm -f conftest.err conftest.$ac_objext \
  12468. conftest$ac_exeext conftest.$ac_ext
  12469. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12470. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12471. # Warning - without using the other run time loading flags,
  12472. # -berok will link without error, but may produce a broken library.
  12473. no_undefined_flag_F77=' ${wl}-bernotok'
  12474. allow_undefined_flag_F77=' ${wl}-berok'
  12475. # -bexpall does not export symbols beginning with underscore (_)
  12476. always_export_symbols_F77=yes
  12477. # Exported symbols can be pulled into shared objects from archives
  12478. whole_archive_flag_spec_F77=' '
  12479. archive_cmds_need_lc_F77=yes
  12480. # This is similar to how AIX traditionally builds it's shared libraries.
  12481. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  12482. fi
  12483. fi
  12484. ;;
  12485. amigaos*)
  12486. archive_cmds_F77='$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)'
  12487. hardcode_libdir_flag_spec_F77='-L$libdir'
  12488. hardcode_minus_L_F77=yes
  12489. # see comment about different semantics on the GNU ld section
  12490. ld_shlibs_F77=no
  12491. ;;
  12492. bsdi4*)
  12493. export_dynamic_flag_spec_F77=-rdynamic
  12494. ;;
  12495. cygwin* | mingw* | pw32*)
  12496. # When not using gcc, we currently assume that we are using
  12497. # Microsoft Visual C++.
  12498. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12499. # no search path for DLLs.
  12500. hardcode_libdir_flag_spec_F77=' '
  12501. allow_undefined_flag_F77=unsupported
  12502. # Tell ltmain to make .lib files, not .a files.
  12503. libext=lib
  12504. # Tell ltmain to make .dll files, not .so files.
  12505. shrext=".dll"
  12506. # FIXME: Setting linknames here is a bad hack.
  12507. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12508. # The linker will automatically build a .lib file if we build a DLL.
  12509. old_archive_From_new_cmds_F77='true'
  12510. # FIXME: Should let the user specify the lib program.
  12511. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12512. fix_srcfile_path='`cygpath -w "$srcfile"`'
  12513. enable_shared_with_static_runtimes_F77=yes
  12514. ;;
  12515. darwin* | rhapsody*)
  12516. if test "$GXX" = yes ; then
  12517. archive_cmds_need_lc_F77=no
  12518. case "$host_os" in
  12519. rhapsody* | darwin1.[012])
  12520. allow_undefined_flag_F77='-undefined suppress'
  12521. ;;
  12522. *) # Darwin 1.3 on
  12523. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12524. allow_undefined_flag_F77='-flat_namespace -undefined suppress'
  12525. else
  12526. case ${MACOSX_DEPLOYMENT_TARGET} in
  12527. 10.[012])
  12528. allow_undefined_flag_F77='-flat_namespace -undefined suppress'
  12529. ;;
  12530. 10.*)
  12531. allow_undefined_flag_F77='-undefined dynamic_lookup'
  12532. ;;
  12533. esac
  12534. fi
  12535. ;;
  12536. esac
  12537. lt_int_apple_cc_single_mod=no
  12538. output_verbose_link_cmd='echo'
  12539. if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  12540. lt_int_apple_cc_single_mod=yes
  12541. fi
  12542. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  12543. archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12544. else
  12545. archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12546. fi
  12547. module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12548. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  12549. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  12550. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12551. else
  12552. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12553. fi
  12554. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12555. hardcode_direct_F77=no
  12556. hardcode_automatic_F77=yes
  12557. hardcode_shlibpath_var_F77=unsupported
  12558. whole_archive_flag_spec_F77='-all_load $convenience'
  12559. link_all_deplibs_F77=yes
  12560. else
  12561. ld_shlibs_F77=no
  12562. fi
  12563. ;;
  12564. dgux*)
  12565. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12566. hardcode_libdir_flag_spec_F77='-L$libdir'
  12567. hardcode_shlibpath_var_F77=no
  12568. ;;
  12569. freebsd1*)
  12570. ld_shlibs_F77=no
  12571. ;;
  12572. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12573. # support. Future versions do this automatically, but an explicit c++rt0.o
  12574. # does not break anything, and helps significantly (at the cost of a little
  12575. # extra space).
  12576. freebsd2.2*)
  12577. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12578. hardcode_libdir_flag_spec_F77='-R$libdir'
  12579. hardcode_direct_F77=yes
  12580. hardcode_shlibpath_var_F77=no
  12581. ;;
  12582. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12583. freebsd2*)
  12584. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12585. hardcode_direct_F77=yes
  12586. hardcode_minus_L_F77=yes
  12587. hardcode_shlibpath_var_F77=no
  12588. ;;
  12589. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12590. freebsd* | kfreebsd*-gnu)
  12591. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12592. hardcode_libdir_flag_spec_F77='-R$libdir'
  12593. hardcode_direct_F77=yes
  12594. hardcode_shlibpath_var_F77=no
  12595. ;;
  12596. hpux9*)
  12597. if test "$GCC" = yes; then
  12598. archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12599. else
  12600. archive_cmds_F77='$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'
  12601. fi
  12602. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12603. hardcode_libdir_separator_F77=:
  12604. hardcode_direct_F77=yes
  12605. # hardcode_minus_L: Not really in the search PATH,
  12606. # but as the default location of the library.
  12607. hardcode_minus_L_F77=yes
  12608. export_dynamic_flag_spec_F77='${wl}-E'
  12609. ;;
  12610. hpux10* | hpux11*)
  12611. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12612. case "$host_cpu" in
  12613. hppa*64*|ia64*)
  12614. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12615. ;;
  12616. *)
  12617. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12618. ;;
  12619. esac
  12620. else
  12621. case "$host_cpu" in
  12622. hppa*64*|ia64*)
  12623. archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  12624. ;;
  12625. *)
  12626. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12627. ;;
  12628. esac
  12629. fi
  12630. if test "$with_gnu_ld" = no; then
  12631. case "$host_cpu" in
  12632. hppa*64*)
  12633. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12634. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  12635. hardcode_libdir_separator_F77=:
  12636. hardcode_direct_F77=no
  12637. hardcode_shlibpath_var_F77=no
  12638. ;;
  12639. ia64*)
  12640. hardcode_libdir_flag_spec_F77='-L$libdir'
  12641. hardcode_direct_F77=no
  12642. hardcode_shlibpath_var_F77=no
  12643. # hardcode_minus_L: Not really in the search PATH,
  12644. # but as the default location of the library.
  12645. hardcode_minus_L_F77=yes
  12646. ;;
  12647. *)
  12648. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12649. hardcode_libdir_separator_F77=:
  12650. hardcode_direct_F77=yes
  12651. export_dynamic_flag_spec_F77='${wl}-E'
  12652. # hardcode_minus_L: Not really in the search PATH,
  12653. # but as the default location of the library.
  12654. hardcode_minus_L_F77=yes
  12655. ;;
  12656. esac
  12657. fi
  12658. ;;
  12659. irix5* | irix6* | nonstopux*)
  12660. if test "$GCC" = yes; then
  12661. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12662. else
  12663. archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12664. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  12665. fi
  12666. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12667. hardcode_libdir_separator_F77=:
  12668. link_all_deplibs_F77=yes
  12669. ;;
  12670. netbsd* | knetbsd*-gnu)
  12671. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12672. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12673. else
  12674. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12675. fi
  12676. hardcode_libdir_flag_spec_F77='-R$libdir'
  12677. hardcode_direct_F77=yes
  12678. hardcode_shlibpath_var_F77=no
  12679. ;;
  12680. newsos6)
  12681. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12682. hardcode_direct_F77=yes
  12683. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12684. hardcode_libdir_separator_F77=:
  12685. hardcode_shlibpath_var_F77=no
  12686. ;;
  12687. openbsd*)
  12688. hardcode_direct_F77=yes
  12689. hardcode_shlibpath_var_F77=no
  12690. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12691. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12692. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12693. export_dynamic_flag_spec_F77='${wl}-E'
  12694. else
  12695. case $host_os in
  12696. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12697. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12698. hardcode_libdir_flag_spec_F77='-R$libdir'
  12699. ;;
  12700. *)
  12701. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12702. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12703. ;;
  12704. esac
  12705. fi
  12706. ;;
  12707. os2*)
  12708. hardcode_libdir_flag_spec_F77='-L$libdir'
  12709. hardcode_minus_L_F77=yes
  12710. allow_undefined_flag_F77=unsupported
  12711. archive_cmds_F77='$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'
  12712. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12713. ;;
  12714. osf3*)
  12715. if test "$GCC" = yes; then
  12716. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12717. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12718. else
  12719. allow_undefined_flag_F77=' -expect_unresolved \*'
  12720. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12721. fi
  12722. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12723. hardcode_libdir_separator_F77=:
  12724. ;;
  12725. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12726. if test "$GCC" = yes; then
  12727. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12728. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12729. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12730. else
  12731. allow_undefined_flag_F77=' -expect_unresolved \*'
  12732. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12733. archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  12734. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  12735. # Both c and cxx compiler support -rpath directly
  12736. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  12737. fi
  12738. hardcode_libdir_separator_F77=:
  12739. ;;
  12740. sco3.2v5*)
  12741. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12742. hardcode_shlibpath_var_F77=no
  12743. export_dynamic_flag_spec_F77='${wl}-Bexport'
  12744. runpath_var=LD_RUN_PATH
  12745. hardcode_runpath_var=yes
  12746. ;;
  12747. solaris*)
  12748. no_undefined_flag_F77=' -z text'
  12749. if test "$GCC" = yes; then
  12750. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12751. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12752. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12753. else
  12754. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12755. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12756. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12757. fi
  12758. hardcode_libdir_flag_spec_F77='-R$libdir'
  12759. hardcode_shlibpath_var_F77=no
  12760. case $host_os in
  12761. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12762. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  12763. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  12764. esac
  12765. link_all_deplibs_F77=yes
  12766. ;;
  12767. sunos4*)
  12768. if test "x$host_vendor" = xsequent; then
  12769. # Use $CC to link under sequent, because it throws in some extra .o
  12770. # files that make .init and .fini sections work.
  12771. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12772. else
  12773. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12774. fi
  12775. hardcode_libdir_flag_spec_F77='-L$libdir'
  12776. hardcode_direct_F77=yes
  12777. hardcode_minus_L_F77=yes
  12778. hardcode_shlibpath_var_F77=no
  12779. ;;
  12780. sysv4)
  12781. case $host_vendor in
  12782. sni)
  12783. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12784. hardcode_direct_F77=yes # is this really true???
  12785. ;;
  12786. siemens)
  12787. ## LD is ld it makes a PLAMLIB
  12788. ## CC just makes a GrossModule.
  12789. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12790. reload_cmds_F77='$CC -r -o $output$reload_objs'
  12791. hardcode_direct_F77=no
  12792. ;;
  12793. motorola)
  12794. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12795. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  12796. ;;
  12797. esac
  12798. runpath_var='LD_RUN_PATH'
  12799. hardcode_shlibpath_var_F77=no
  12800. ;;
  12801. sysv4.3*)
  12802. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12803. hardcode_shlibpath_var_F77=no
  12804. export_dynamic_flag_spec_F77='-Bexport'
  12805. ;;
  12806. sysv4*MP*)
  12807. if test -d /usr/nec; then
  12808. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12809. hardcode_shlibpath_var_F77=no
  12810. runpath_var=LD_RUN_PATH
  12811. hardcode_runpath_var=yes
  12812. ld_shlibs_F77=yes
  12813. fi
  12814. ;;
  12815. sysv4.2uw2*)
  12816. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12817. hardcode_direct_F77=yes
  12818. hardcode_minus_L_F77=no
  12819. hardcode_shlibpath_var_F77=no
  12820. hardcode_runpath_var=yes
  12821. runpath_var=LD_RUN_PATH
  12822. ;;
  12823. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  12824. no_undefined_flag_F77='${wl}-z ${wl}text'
  12825. if test "$GCC" = yes; then
  12826. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12827. else
  12828. archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12829. fi
  12830. runpath_var='LD_RUN_PATH'
  12831. hardcode_shlibpath_var_F77=no
  12832. ;;
  12833. sysv5*)
  12834. no_undefined_flag_F77=' -z text'
  12835. # $CC -shared without GNU ld will not create a library from C++
  12836. # object files and a static libstdc++, better avoid it by now
  12837. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12838. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12839. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12840. hardcode_libdir_flag_spec_F77=
  12841. hardcode_shlibpath_var_F77=no
  12842. runpath_var='LD_RUN_PATH'
  12843. ;;
  12844. uts4*)
  12845. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12846. hardcode_libdir_flag_spec_F77='-L$libdir'
  12847. hardcode_shlibpath_var_F77=no
  12848. ;;
  12849. *)
  12850. ld_shlibs_F77=no
  12851. ;;
  12852. esac
  12853. fi
  12854. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  12855. echo "${ECHO_T}$ld_shlibs_F77" >&6
  12856. test "$ld_shlibs_F77" = no && can_build_shared=no
  12857. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12858. if test "$GCC" = yes; then
  12859. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12860. fi
  12861. #
  12862. # Do we need to explicitly link libc?
  12863. #
  12864. case "x$archive_cmds_need_lc_F77" in
  12865. x|xyes)
  12866. # Assume -lc should be added
  12867. archive_cmds_need_lc_F77=yes
  12868. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12869. case $archive_cmds_F77 in
  12870. *'~'*)
  12871. # FIXME: we may have to deal with multi-command sequences.
  12872. ;;
  12873. '$CC '*)
  12874. # Test whether the compiler implicitly links with -lc since on some
  12875. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12876. # to ld, don't add -lc before -lgcc.
  12877. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12878. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  12879. $rm conftest*
  12880. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12881. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12882. (eval $ac_compile) 2>&5
  12883. ac_status=$?
  12884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12885. (exit $ac_status); } 2>conftest.err; then
  12886. soname=conftest
  12887. lib=conftest
  12888. libobjs=conftest.$ac_objext
  12889. deplibs=
  12890. wl=$lt_prog_compiler_wl_F77
  12891. compiler_flags=-v
  12892. linker_flags=-v
  12893. verstring=
  12894. output_objdir=.
  12895. libname=conftest
  12896. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  12897. allow_undefined_flag_F77=
  12898. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12899. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12900. ac_status=$?
  12901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12902. (exit $ac_status); }
  12903. then
  12904. archive_cmds_need_lc_F77=no
  12905. else
  12906. archive_cmds_need_lc_F77=yes
  12907. fi
  12908. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  12909. else
  12910. cat conftest.err 1>&5
  12911. fi
  12912. $rm conftest*
  12913. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  12914. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  12915. ;;
  12916. esac
  12917. fi
  12918. ;;
  12919. esac
  12920. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12921. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  12922. library_names_spec=
  12923. libname_spec='lib$name'
  12924. soname_spec=
  12925. shrext=".so"
  12926. postinstall_cmds=
  12927. postuninstall_cmds=
  12928. finish_cmds=
  12929. finish_eval=
  12930. shlibpath_var=
  12931. shlibpath_overrides_runpath=unknown
  12932. version_type=none
  12933. dynamic_linker="$host_os ld.so"
  12934. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12935. if test "$GCC" = yes; then
  12936. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12937. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  12938. # if the path contains ";" then we assume it to be the separator
  12939. # otherwise default to the standard path separator (i.e. ":") - it is
  12940. # assumed that no part of a normal pathname contains ";" but that should
  12941. # okay in the real world where ";" in dirpaths is itself problematic.
  12942. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12943. else
  12944. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12945. fi
  12946. else
  12947. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  12948. fi
  12949. need_lib_prefix=unknown
  12950. hardcode_into_libs=no
  12951. # when you set need_version to no, make sure it does not cause -set_version
  12952. # flags to be left without arguments
  12953. need_version=unknown
  12954. case $host_os in
  12955. aix3*)
  12956. version_type=linux
  12957. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12958. shlibpath_var=LIBPATH
  12959. # AIX 3 has no versioning support, so we append a major version to the name.
  12960. soname_spec='${libname}${release}${shared_ext}$major'
  12961. ;;
  12962. aix4* | aix5*)
  12963. version_type=linux
  12964. need_lib_prefix=no
  12965. need_version=no
  12966. hardcode_into_libs=yes
  12967. if test "$host_cpu" = ia64; then
  12968. # AIX 5 supports IA64
  12969. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12970. shlibpath_var=LD_LIBRARY_PATH
  12971. else
  12972. # With GCC up to 2.95.x, collect2 would create an import file
  12973. # for dependence libraries. The import file would start with
  12974. # the line `#! .'. This would cause the generated library to
  12975. # depend on `.', always an invalid library. This was fixed in
  12976. # development snapshots of GCC prior to 3.0.
  12977. case $host_os in
  12978. aix4 | aix4.[01] | aix4.[01].*)
  12979. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12980. echo ' yes '
  12981. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  12982. :
  12983. else
  12984. can_build_shared=no
  12985. fi
  12986. ;;
  12987. esac
  12988. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12989. # soname into executable. Probably we can add versioning support to
  12990. # collect2, so additional links can be useful in future.
  12991. if test "$aix_use_runtimelinking" = yes; then
  12992. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12993. # instead of lib<name>.a to let people know that these are not
  12994. # typical AIX shared libraries.
  12995. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12996. else
  12997. # We preserve .a as extension for shared libraries through AIX4.2
  12998. # and later when we are not doing run time linking.
  12999. library_names_spec='${libname}${release}.a $libname.a'
  13000. soname_spec='${libname}${release}${shared_ext}$major'
  13001. fi
  13002. shlibpath_var=LIBPATH
  13003. fi
  13004. ;;
  13005. amigaos*)
  13006. library_names_spec='$libname.ixlibrary $libname.a'
  13007. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13008. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
  13009. ;;
  13010. beos*)
  13011. library_names_spec='${libname}${shared_ext}'
  13012. dynamic_linker="$host_os ld.so"
  13013. shlibpath_var=LIBRARY_PATH
  13014. ;;
  13015. bsdi4*)
  13016. version_type=linux
  13017. need_version=no
  13018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13019. soname_spec='${libname}${release}${shared_ext}$major'
  13020. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13021. shlibpath_var=LD_LIBRARY_PATH
  13022. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13023. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13024. # the default ld.so.conf also contains /usr/contrib/lib and
  13025. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13026. # libtool to hard-code these into programs
  13027. ;;
  13028. cygwin* | mingw* | pw32*)
  13029. version_type=windows
  13030. shrext=".dll"
  13031. need_version=no
  13032. need_lib_prefix=no
  13033. case $GCC,$host_os in
  13034. yes,cygwin* | yes,mingw* | yes,pw32*)
  13035. library_names_spec='$libname.dll.a'
  13036. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13037. postinstall_cmds='base_file=`basename \${file}`~
  13038. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13039. dldir=$destdir/`dirname \$dlpath`~
  13040. test -d \$dldir || mkdir -p \$dldir~
  13041. $install_prog $dir/$dlname \$dldir/$dlname'
  13042. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13043. dlpath=$dir/\$dldll~
  13044. $rm \$dlpath'
  13045. shlibpath_overrides_runpath=yes
  13046. case $host_os in
  13047. cygwin*)
  13048. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13049. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13050. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13051. ;;
  13052. mingw*)
  13053. # MinGW DLLs use traditional 'lib' prefix
  13054. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13055. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13056. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13057. # It is most probably a Windows format PATH printed by
  13058. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13059. # path with ; separators, and with drive letters. We can handle the
  13060. # drive letters (cygwin fileutils understands them), so leave them,
  13061. # especially as we might pass files found there to a mingw objdump,
  13062. # which wouldn't understand a cygwinified path. Ahh.
  13063. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13064. else
  13065. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13066. fi
  13067. ;;
  13068. pw32*)
  13069. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13070. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  13071. ;;
  13072. esac
  13073. ;;
  13074. *)
  13075. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13076. ;;
  13077. esac
  13078. dynamic_linker='Win32 ld.exe'
  13079. # FIXME: first we should search . and the directory the executable is in
  13080. shlibpath_var=PATH
  13081. ;;
  13082. darwin* | rhapsody*)
  13083. dynamic_linker="$host_os dyld"
  13084. version_type=darwin
  13085. need_lib_prefix=no
  13086. need_version=no
  13087. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13088. soname_spec='${libname}${release}${major}$shared_ext'
  13089. shlibpath_overrides_runpath=yes
  13090. shlibpath_var=DYLD_LIBRARY_PATH
  13091. shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  13092. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13093. if test "$GCC" = yes; then
  13094. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  13095. else
  13096. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13097. fi
  13098. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13099. ;;
  13100. dgux*)
  13101. version_type=linux
  13102. need_lib_prefix=no
  13103. need_version=no
  13104. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13105. soname_spec='${libname}${release}${shared_ext}$major'
  13106. shlibpath_var=LD_LIBRARY_PATH
  13107. ;;
  13108. freebsd1*)
  13109. dynamic_linker=no
  13110. ;;
  13111. kfreebsd*-gnu)
  13112. version_type=linux
  13113. need_lib_prefix=no
  13114. need_version=no
  13115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13116. soname_spec='${libname}${release}${shared_ext}$major'
  13117. shlibpath_var=LD_LIBRARY_PATH
  13118. shlibpath_overrides_runpath=no
  13119. hardcode_into_libs=yes
  13120. dynamic_linker='GNU ld.so'
  13121. ;;
  13122. freebsd*)
  13123. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  13124. version_type=freebsd-$objformat
  13125. case $version_type in
  13126. freebsd-elf*)
  13127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13128. need_version=no
  13129. need_lib_prefix=no
  13130. ;;
  13131. freebsd-*)
  13132. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13133. need_version=yes
  13134. ;;
  13135. esac
  13136. shlibpath_var=LD_LIBRARY_PATH
  13137. case $host_os in
  13138. freebsd2*)
  13139. shlibpath_overrides_runpath=yes
  13140. ;;
  13141. freebsd3.01* | freebsdelf3.01*)
  13142. shlibpath_overrides_runpath=yes
  13143. hardcode_into_libs=yes
  13144. ;;
  13145. *) # from 3.2 on
  13146. shlibpath_overrides_runpath=no
  13147. hardcode_into_libs=yes
  13148. ;;
  13149. esac
  13150. ;;
  13151. gnu*)
  13152. version_type=linux
  13153. need_lib_prefix=no
  13154. need_version=no
  13155. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13156. soname_spec='${libname}${release}${shared_ext}$major'
  13157. shlibpath_var=LD_LIBRARY_PATH
  13158. hardcode_into_libs=yes
  13159. ;;
  13160. hpux9* | hpux10* | hpux11*)
  13161. # Give a soname corresponding to the major version so that dld.sl refuses to
  13162. # link against other versions.
  13163. version_type=sunos
  13164. need_lib_prefix=no
  13165. need_version=no
  13166. case "$host_cpu" in
  13167. ia64*)
  13168. shrext='.so'
  13169. hardcode_into_libs=yes
  13170. dynamic_linker="$host_os dld.so"
  13171. shlibpath_var=LD_LIBRARY_PATH
  13172. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13173. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13174. soname_spec='${libname}${release}${shared_ext}$major'
  13175. if test "X$HPUX_IA64_MODE" = X32; then
  13176. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13177. else
  13178. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13179. fi
  13180. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13181. ;;
  13182. hppa*64*)
  13183. shrext='.sl'
  13184. hardcode_into_libs=yes
  13185. dynamic_linker="$host_os dld.sl"
  13186. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13187. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13189. soname_spec='${libname}${release}${shared_ext}$major'
  13190. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13191. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13192. ;;
  13193. *)
  13194. shrext='.sl'
  13195. dynamic_linker="$host_os dld.sl"
  13196. shlibpath_var=SHLIB_PATH
  13197. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13198. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13199. soname_spec='${libname}${release}${shared_ext}$major'
  13200. ;;
  13201. esac
  13202. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13203. postinstall_cmds='chmod 555 $lib'
  13204. ;;
  13205. irix5* | irix6* | nonstopux*)
  13206. case $host_os in
  13207. nonstopux*) version_type=nonstopux ;;
  13208. *)
  13209. if test "$lt_cv_prog_gnu_ld" = yes; then
  13210. version_type=linux
  13211. else
  13212. version_type=irix
  13213. fi ;;
  13214. esac
  13215. need_lib_prefix=no
  13216. need_version=no
  13217. soname_spec='${libname}${release}${shared_ext}$major'
  13218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13219. case $host_os in
  13220. irix5* | nonstopux*)
  13221. libsuff= shlibsuff=
  13222. ;;
  13223. *)
  13224. case $LD in # libtool.m4 will add one of these switches to LD
  13225. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13226. libsuff= shlibsuff= libmagic=32-bit;;
  13227. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13228. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13229. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13230. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13231. *) libsuff= shlibsuff= libmagic=never-match;;
  13232. esac
  13233. ;;
  13234. esac
  13235. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13236. shlibpath_overrides_runpath=no
  13237. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13238. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13239. hardcode_into_libs=yes
  13240. ;;
  13241. # No shared lib support for Linux oldld, aout, or coff.
  13242. linux*oldld* | linux*aout* | linux*coff*)
  13243. dynamic_linker=no
  13244. ;;
  13245. # This must be Linux ELF.
  13246. linux*)
  13247. version_type=linux
  13248. need_lib_prefix=no
  13249. need_version=no
  13250. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13251. soname_spec='${libname}${release}${shared_ext}$major'
  13252. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13253. shlibpath_var=LD_LIBRARY_PATH
  13254. shlibpath_overrides_runpath=no
  13255. # This implies no fast_install, which is unacceptable.
  13256. # Some rework will be needed to allow for fast_install
  13257. # before this can be enabled.
  13258. hardcode_into_libs=yes
  13259. # Append ld.so.conf contents to the search path
  13260. if test -f /etc/ld.so.conf; then
  13261. ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
  13262. sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
  13263. fi
  13264. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13265. # powerpc, because MkLinux only supported shared libraries with the
  13266. # GNU dynamic linker. Since this was broken with cross compilers,
  13267. # most powerpc-linux boxes support dynamic linking these days and
  13268. # people can always --disable-shared, the test was removed, and we
  13269. # assume the GNU/Linux dynamic linker is in use.
  13270. dynamic_linker='GNU/Linux ld.so'
  13271. ;;
  13272. knetbsd*-gnu)
  13273. version_type=linux
  13274. need_lib_prefix=no
  13275. need_version=no
  13276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13277. soname_spec='${libname}${release}${shared_ext}$major'
  13278. shlibpath_var=LD_LIBRARY_PATH
  13279. shlibpath_overrides_runpath=no
  13280. hardcode_into_libs=yes
  13281. dynamic_linker='GNU ld.so'
  13282. ;;
  13283. netbsd*)
  13284. version_type=sunos
  13285. need_lib_prefix=no
  13286. need_version=no
  13287. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13288. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13289. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13290. dynamic_linker='NetBSD (a.out) ld.so'
  13291. else
  13292. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13293. soname_spec='${libname}${release}${shared_ext}$major'
  13294. dynamic_linker='NetBSD ld.elf_so'
  13295. fi
  13296. shlibpath_var=LD_LIBRARY_PATH
  13297. shlibpath_overrides_runpath=yes
  13298. hardcode_into_libs=yes
  13299. ;;
  13300. newsos6)
  13301. version_type=linux
  13302. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13303. shlibpath_var=LD_LIBRARY_PATH
  13304. shlibpath_overrides_runpath=yes
  13305. ;;
  13306. nto-qnx*)
  13307. version_type=linux
  13308. need_lib_prefix=no
  13309. need_version=no
  13310. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13311. soname_spec='${libname}${release}${shared_ext}$major'
  13312. shlibpath_var=LD_LIBRARY_PATH
  13313. shlibpath_overrides_runpath=yes
  13314. ;;
  13315. openbsd*)
  13316. version_type=sunos
  13317. need_lib_prefix=no
  13318. need_version=yes
  13319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13320. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13321. shlibpath_var=LD_LIBRARY_PATH
  13322. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13323. case $host_os in
  13324. openbsd2.[89] | openbsd2.[89].*)
  13325. shlibpath_overrides_runpath=no
  13326. ;;
  13327. *)
  13328. shlibpath_overrides_runpath=yes
  13329. ;;
  13330. esac
  13331. else
  13332. shlibpath_overrides_runpath=yes
  13333. fi
  13334. ;;
  13335. os2*)
  13336. libname_spec='$name'
  13337. shrext=".dll"
  13338. need_lib_prefix=no
  13339. library_names_spec='$libname${shared_ext} $libname.a'
  13340. dynamic_linker='OS/2 ld.exe'
  13341. shlibpath_var=LIBPATH
  13342. ;;
  13343. osf3* | osf4* | osf5*)
  13344. version_type=osf
  13345. need_lib_prefix=no
  13346. need_version=no
  13347. soname_spec='${libname}${release}${shared_ext}$major'
  13348. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13349. shlibpath_var=LD_LIBRARY_PATH
  13350. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13351. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13352. ;;
  13353. sco3.2v5*)
  13354. version_type=osf
  13355. soname_spec='${libname}${release}${shared_ext}$major'
  13356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13357. shlibpath_var=LD_LIBRARY_PATH
  13358. ;;
  13359. solaris*)
  13360. version_type=linux
  13361. need_lib_prefix=no
  13362. need_version=no
  13363. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13364. soname_spec='${libname}${release}${shared_ext}$major'
  13365. shlibpath_var=LD_LIBRARY_PATH
  13366. shlibpath_overrides_runpath=yes
  13367. hardcode_into_libs=yes
  13368. # ldd complains unless libraries are executable
  13369. postinstall_cmds='chmod +x $lib'
  13370. ;;
  13371. sunos4*)
  13372. version_type=sunos
  13373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13374. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13375. shlibpath_var=LD_LIBRARY_PATH
  13376. shlibpath_overrides_runpath=yes
  13377. if test "$with_gnu_ld" = yes; then
  13378. need_lib_prefix=no
  13379. fi
  13380. need_version=yes
  13381. ;;
  13382. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13383. version_type=linux
  13384. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13385. soname_spec='${libname}${release}${shared_ext}$major'
  13386. shlibpath_var=LD_LIBRARY_PATH
  13387. case $host_vendor in
  13388. sni)
  13389. shlibpath_overrides_runpath=no
  13390. need_lib_prefix=no
  13391. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13392. runpath_var=LD_RUN_PATH
  13393. ;;
  13394. siemens)
  13395. need_lib_prefix=no
  13396. ;;
  13397. motorola)
  13398. need_lib_prefix=no
  13399. need_version=no
  13400. shlibpath_overrides_runpath=no
  13401. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13402. ;;
  13403. esac
  13404. ;;
  13405. sysv4*MP*)
  13406. if test -d /usr/nec ;then
  13407. version_type=linux
  13408. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13409. soname_spec='$libname${shared_ext}.$major'
  13410. shlibpath_var=LD_LIBRARY_PATH
  13411. fi
  13412. ;;
  13413. uts4*)
  13414. version_type=linux
  13415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13416. soname_spec='${libname}${release}${shared_ext}$major'
  13417. shlibpath_var=LD_LIBRARY_PATH
  13418. ;;
  13419. *)
  13420. dynamic_linker=no
  13421. ;;
  13422. esac
  13423. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13424. echo "${ECHO_T}$dynamic_linker" >&6
  13425. test "$dynamic_linker" = no && can_build_shared=no
  13426. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13427. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  13428. hardcode_action_F77=
  13429. if test -n "$hardcode_libdir_flag_spec_F77" || \
  13430. test -n "$runpath_var F77" || \
  13431. test "X$hardcode_automatic_F77"="Xyes" ; then
  13432. # We can hardcode non-existant directories.
  13433. if test "$hardcode_direct_F77" != no &&
  13434. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13435. # have to relink, otherwise we might link with an installed library
  13436. # when we should be linking with a yet-to-be-installed one
  13437. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  13438. test "$hardcode_minus_L_F77" != no; then
  13439. # Linking always hardcodes the temporary library directory.
  13440. hardcode_action_F77=relink
  13441. else
  13442. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13443. hardcode_action_F77=immediate
  13444. fi
  13445. else
  13446. # We cannot hardcode anything, or else we can only hardcode existing
  13447. # directories.
  13448. hardcode_action_F77=unsupported
  13449. fi
  13450. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  13451. echo "${ECHO_T}$hardcode_action_F77" >&6
  13452. if test "$hardcode_action_F77" = relink; then
  13453. # Fast installation is not supported
  13454. enable_fast_install=no
  13455. elif test "$shlibpath_overrides_runpath" = yes ||
  13456. test "$enable_shared" = no; then
  13457. # Fast installation is not necessary
  13458. enable_fast_install=needless
  13459. fi
  13460. striplib=
  13461. old_striplib=
  13462. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  13463. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  13464. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  13465. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  13466. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  13467. echo "$as_me:$LINENO: result: yes" >&5
  13468. echo "${ECHO_T}yes" >&6
  13469. else
  13470. # FIXME - insert some real tests, host_os isn't really good enough
  13471. case $host_os in
  13472. darwin*)
  13473. if test -n "$STRIP" ; then
  13474. striplib="$STRIP -x"
  13475. echo "$as_me:$LINENO: result: yes" >&5
  13476. echo "${ECHO_T}yes" >&6
  13477. else
  13478. echo "$as_me:$LINENO: result: no" >&5
  13479. echo "${ECHO_T}no" >&6
  13480. fi
  13481. ;;
  13482. *)
  13483. echo "$as_me:$LINENO: result: no" >&5
  13484. echo "${ECHO_T}no" >&6
  13485. ;;
  13486. esac
  13487. fi
  13488. # The else clause should only fire when bootstrapping the
  13489. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13490. # with your package, and you will get complaints that there are
  13491. # no rules to generate ltmain.sh.
  13492. if test -f "$ltmain"; then
  13493. # See if we are running on zsh, and set the options which allow our commands through
  13494. # without removal of \ escapes.
  13495. if test -n "${ZSH_VERSION+set}" ; then
  13496. setopt NO_GLOB_SUBST
  13497. fi
  13498. # Now quote all the things that may contain metacharacters while being
  13499. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13500. # variables and quote the copies for generation of the libtool script.
  13501. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  13502. SED SHELL STRIP \
  13503. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13504. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13505. deplibs_check_method reload_flag reload_cmds need_locks \
  13506. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13507. lt_cv_sys_global_symbol_to_c_name_address \
  13508. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13509. old_postinstall_cmds old_postuninstall_cmds \
  13510. compiler_F77 \
  13511. CC_F77 \
  13512. LD_F77 \
  13513. lt_prog_compiler_wl_F77 \
  13514. lt_prog_compiler_pic_F77 \
  13515. lt_prog_compiler_static_F77 \
  13516. lt_prog_compiler_no_builtin_flag_F77 \
  13517. export_dynamic_flag_spec_F77 \
  13518. thread_safe_flag_spec_F77 \
  13519. whole_archive_flag_spec_F77 \
  13520. enable_shared_with_static_runtimes_F77 \
  13521. old_archive_cmds_F77 \
  13522. old_archive_from_new_cmds_F77 \
  13523. predep_objects_F77 \
  13524. postdep_objects_F77 \
  13525. predeps_F77 \
  13526. postdeps_F77 \
  13527. compiler_lib_search_path_F77 \
  13528. archive_cmds_F77 \
  13529. archive_expsym_cmds_F77 \
  13530. postinstall_cmds_F77 \
  13531. postuninstall_cmds_F77 \
  13532. old_archive_from_expsyms_cmds_F77 \
  13533. allow_undefined_flag_F77 \
  13534. no_undefined_flag_F77 \
  13535. export_symbols_cmds_F77 \
  13536. hardcode_libdir_flag_spec_F77 \
  13537. hardcode_libdir_flag_spec_ld_F77 \
  13538. hardcode_libdir_separator_F77 \
  13539. hardcode_automatic_F77 \
  13540. module_cmds_F77 \
  13541. module_expsym_cmds_F77 \
  13542. lt_cv_prog_compiler_c_o_F77 \
  13543. exclude_expsyms_F77 \
  13544. include_expsyms_F77; do
  13545. case $var in
  13546. old_archive_cmds_F77 | \
  13547. old_archive_from_new_cmds_F77 | \
  13548. archive_cmds_F77 | \
  13549. archive_expsym_cmds_F77 | \
  13550. module_cmds_F77 | \
  13551. module_expsym_cmds_F77 | \
  13552. old_archive_from_expsyms_cmds_F77 | \
  13553. export_symbols_cmds_F77 | \
  13554. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13555. postinstall_cmds | postuninstall_cmds | \
  13556. old_postinstall_cmds | old_postuninstall_cmds | \
  13557. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13558. # Double-quote double-evaled strings.
  13559. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13560. ;;
  13561. *)
  13562. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13563. ;;
  13564. esac
  13565. done
  13566. case $lt_echo in
  13567. *'\$0 --fallback-echo"')
  13568. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13569. ;;
  13570. esac
  13571. cfgfile="$ofile"
  13572. cat <<__EOF__ >> "$cfgfile"
  13573. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13574. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13575. # Shell to use when invoking shell scripts.
  13576. SHELL=$lt_SHELL
  13577. # Whether or not to build shared libraries.
  13578. build_libtool_libs=$enable_shared
  13579. # Whether or not to build static libraries.
  13580. build_old_libs=$enable_static
  13581. # Whether or not to add -lc for building shared libraries.
  13582. build_libtool_need_lc=$archive_cmds_need_lc_F77
  13583. # Whether or not to disallow shared libs when runtime libs are static
  13584. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  13585. # Whether or not to optimize for fast installation.
  13586. fast_install=$enable_fast_install
  13587. # The host system.
  13588. host_alias=$host_alias
  13589. host=$host
  13590. # An echo program that does not interpret backslashes.
  13591. echo=$lt_echo
  13592. # The archiver.
  13593. AR=$lt_AR
  13594. AR_FLAGS=$lt_AR_FLAGS
  13595. # A C compiler.
  13596. LTCC=$lt_LTCC
  13597. # A language-specific compiler.
  13598. CC=$lt_compiler_F77
  13599. # Is the compiler the GNU C compiler?
  13600. with_gcc=$GCC_F77
  13601. # An ERE matcher.
  13602. EGREP=$lt_EGREP
  13603. # The linker used to build libraries.
  13604. LD=$lt_LD_F77
  13605. # Whether we need hard or soft links.
  13606. LN_S=$lt_LN_S
  13607. # A BSD-compatible nm program.
  13608. NM=$lt_NM
  13609. # A symbol stripping program
  13610. STRIP=$lt_STRIP
  13611. # Used to examine libraries when file_magic_cmd begins "file"
  13612. MAGIC_CMD=$MAGIC_CMD
  13613. # Used on cygwin: DLL creation program.
  13614. DLLTOOL="$DLLTOOL"
  13615. # Used on cygwin: object dumper.
  13616. OBJDUMP="$OBJDUMP"
  13617. # Used on cygwin: assembler.
  13618. AS="$AS"
  13619. # The name of the directory that contains temporary libtool files.
  13620. objdir=$objdir
  13621. # How to create reloadable object files.
  13622. reload_flag=$lt_reload_flag
  13623. reload_cmds=$lt_reload_cmds
  13624. # How to pass a linker flag through the compiler.
  13625. wl=$lt_lt_prog_compiler_wl_F77
  13626. # Object file suffix (normally "o").
  13627. objext="$ac_objext"
  13628. # Old archive suffix (normally "a").
  13629. libext="$libext"
  13630. # Shared library suffix (normally ".so").
  13631. shrext='$shrext'
  13632. # Executable file suffix (normally "").
  13633. exeext="$exeext"
  13634. # Additional compiler flags for building library objects.
  13635. pic_flag=$lt_lt_prog_compiler_pic_F77
  13636. pic_mode=$pic_mode
  13637. # What is the maximum length of a command?
  13638. max_cmd_len=$lt_cv_sys_max_cmd_len
  13639. # Does compiler simultaneously support -c and -o options?
  13640. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  13641. # Must we lock files when doing compilation ?
  13642. need_locks=$lt_need_locks
  13643. # Do we need the lib prefix for modules?
  13644. need_lib_prefix=$need_lib_prefix
  13645. # Do we need a version for libraries?
  13646. need_version=$need_version
  13647. # Whether dlopen is supported.
  13648. dlopen_support=$enable_dlopen
  13649. # Whether dlopen of programs is supported.
  13650. dlopen_self=$enable_dlopen_self
  13651. # Whether dlopen of statically linked programs is supported.
  13652. dlopen_self_static=$enable_dlopen_self_static
  13653. # Compiler flag to prevent dynamic linking.
  13654. link_static_flag=$lt_lt_prog_compiler_static_F77
  13655. # Compiler flag to turn off builtin functions.
  13656. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  13657. # Compiler flag to allow reflexive dlopens.
  13658. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  13659. # Compiler flag to generate shared objects directly from archives.
  13660. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  13661. # Compiler flag to generate thread-safe objects.
  13662. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  13663. # Library versioning type.
  13664. version_type=$version_type
  13665. # Format of library name prefix.
  13666. libname_spec=$lt_libname_spec
  13667. # List of archive names. First name is the real one, the rest are links.
  13668. # The last name is the one that the linker finds with -lNAME.
  13669. library_names_spec=$lt_library_names_spec
  13670. # The coded name of the library, if different from the real name.
  13671. soname_spec=$lt_soname_spec
  13672. # Commands used to build and install an old-style archive.
  13673. RANLIB=$lt_RANLIB
  13674. old_archive_cmds=$lt_old_archive_cmds_F77
  13675. old_postinstall_cmds=$lt_old_postinstall_cmds
  13676. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13677. # Create an old-style archive from a shared archive.
  13678. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  13679. # Create a temporary old-style archive to link instead of a shared archive.
  13680. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  13681. # Commands used to build and install a shared archive.
  13682. archive_cmds=$lt_archive_cmds_F77
  13683. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  13684. postinstall_cmds=$lt_postinstall_cmds
  13685. postuninstall_cmds=$lt_postuninstall_cmds
  13686. # Commands used to build a loadable module (assumed same as above if empty)
  13687. module_cmds=$lt_module_cmds_F77
  13688. module_expsym_cmds=$lt_module_expsym_cmds_F77
  13689. # Commands to strip libraries.
  13690. old_striplib=$lt_old_striplib
  13691. striplib=$lt_striplib
  13692. # Dependencies to place before the objects being linked to create a
  13693. # shared library.
  13694. predep_objects=$lt_predep_objects_F77
  13695. # Dependencies to place after the objects being linked to create a
  13696. # shared library.
  13697. postdep_objects=$lt_postdep_objects_F77
  13698. # Dependencies to place before the objects being linked to create a
  13699. # shared library.
  13700. predeps=$lt_predeps_F77
  13701. # Dependencies to place after the objects being linked to create a
  13702. # shared library.
  13703. postdeps=$lt_postdeps_F77
  13704. # The library search path used internally by the compiler when linking
  13705. # a shared library.
  13706. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  13707. # Method to check whether dependent libraries are shared objects.
  13708. deplibs_check_method=$lt_deplibs_check_method
  13709. # Command to use when deplibs_check_method == file_magic.
  13710. file_magic_cmd=$lt_file_magic_cmd
  13711. # Flag that allows shared libraries with undefined symbols to be built.
  13712. allow_undefined_flag=$lt_allow_undefined_flag_F77
  13713. # Flag that forces no undefined symbols.
  13714. no_undefined_flag=$lt_no_undefined_flag_F77
  13715. # Commands used to finish a libtool library installation in a directory.
  13716. finish_cmds=$lt_finish_cmds
  13717. # Same as above, but a single script fragment to be evaled but not shown.
  13718. finish_eval=$lt_finish_eval
  13719. # Take the output of nm and produce a listing of raw symbols and C names.
  13720. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13721. # Transform the output of nm in a proper C declaration
  13722. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13723. # Transform the output of nm in a C name address pair
  13724. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13725. # This is the shared library runtime path variable.
  13726. runpath_var=$runpath_var
  13727. # This is the shared library path variable.
  13728. shlibpath_var=$shlibpath_var
  13729. # Is shlibpath searched before the hard-coded library search path?
  13730. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13731. # How to hardcode a shared library path into an executable.
  13732. hardcode_action=$hardcode_action_F77
  13733. # Whether we should hardcode library paths into libraries.
  13734. hardcode_into_libs=$hardcode_into_libs
  13735. # Flag to hardcode \$libdir into a binary during linking.
  13736. # This must work even if \$libdir does not exist.
  13737. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  13738. # If ld is used when linking, flag to hardcode \$libdir into
  13739. # a binary during linking. This must work even if \$libdir does
  13740. # not exist.
  13741. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  13742. # Whether we need a single -rpath flag with a separated argument.
  13743. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  13744. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  13745. # resulting binary.
  13746. hardcode_direct=$hardcode_direct_F77
  13747. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  13748. # resulting binary.
  13749. hardcode_minus_L=$hardcode_minus_L_F77
  13750. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  13751. # the resulting binary.
  13752. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  13753. # Set to yes if building a shared library automatically hardcodes DIR into the library
  13754. # and all subsequent libraries and executables linked against it.
  13755. hardcode_automatic=$hardcode_automatic_F77
  13756. # Variables whose values should be saved in libtool wrapper scripts and
  13757. # restored at relink time.
  13758. variables_saved_for_relink="$variables_saved_for_relink"
  13759. # Whether libtool must link a program against all its dependency libraries.
  13760. link_all_deplibs=$link_all_deplibs_F77
  13761. # Compile-time system search path for libraries
  13762. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13763. # Run-time system search path for libraries
  13764. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13765. # Fix the shell variable \$srcfile for the compiler.
  13766. fix_srcfile_path="$fix_srcfile_path_F77"
  13767. # Set to yes if exported symbols are required.
  13768. always_export_symbols=$always_export_symbols_F77
  13769. # The commands to list exported symbols.
  13770. export_symbols_cmds=$lt_export_symbols_cmds_F77
  13771. # The commands to extract the exported symbol list from a shared archive.
  13772. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13773. # Symbols that should not be listed in the preloaded symbols.
  13774. exclude_expsyms=$lt_exclude_expsyms_F77
  13775. # Symbols that must always be exported.
  13776. include_expsyms=$lt_include_expsyms_F77
  13777. # ### END LIBTOOL TAG CONFIG: $tagname
  13778. __EOF__
  13779. else
  13780. # If there is no Makefile yet, we rely on a make rule to execute
  13781. # `config.status --recheck' to rerun these tests and create the
  13782. # libtool script then.
  13783. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  13784. if test -f "$ltmain_in"; then
  13785. test -f Makefile && make "$ltmain"
  13786. fi
  13787. fi
  13788. ac_ext=c
  13789. ac_cpp='$CPP $CPPFLAGS'
  13790. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13791. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13792. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13793. CC="$lt_save_CC"
  13794. else
  13795. tagname=""
  13796. fi
  13797. ;;
  13798. GCJ)
  13799. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  13800. # Source file extension for Java test sources.
  13801. ac_ext=java
  13802. # Object file extension for compiled Java test sources.
  13803. objext=o
  13804. objext_GCJ=$objext
  13805. # Code to be used in simple compile tests
  13806. lt_simple_compile_test_code="class foo {}\n"
  13807. # Code to be used in simple link tests
  13808. lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
  13809. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13810. # If no C compiler was specified, use CC.
  13811. LTCC=${LTCC-"$CC"}
  13812. # Allow CC to be a program name with arguments.
  13813. compiler=$CC
  13814. # Allow CC to be a program name with arguments.
  13815. lt_save_CC="$CC"
  13816. CC=${GCJ-"gcj"}
  13817. compiler=$CC
  13818. compiler_GCJ=$CC
  13819. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  13820. archive_cmds_need_lc_GCJ=no
  13821. lt_prog_compiler_no_builtin_flag_GCJ=
  13822. if test "$GCC" = yes; then
  13823. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  13824. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  13825. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  13826. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  13827. echo $ECHO_N "(cached) $ECHO_C" >&6
  13828. else
  13829. lt_cv_prog_compiler_rtti_exceptions=no
  13830. ac_outfile=conftest.$ac_objext
  13831. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13832. lt_compiler_flag="-fno-rtti -fno-exceptions"
  13833. # Insert the option either (1) after the last *FLAGS variable, or
  13834. # (2) before a word containing "conftest.", or (3) at the end.
  13835. # Note that $ac_compile itself does not contain backslashes and begins
  13836. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13837. # The option is referenced via a variable to avoid confusing sed.
  13838. lt_compile=`echo "$ac_compile" | $SED \
  13839. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13840. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13841. -e 's:$: $lt_compiler_flag:'`
  13842. (eval echo "\"\$as_me:15446: $lt_compile\"" >&5)
  13843. (eval "$lt_compile" 2>conftest.err)
  13844. ac_status=$?
  13845. cat conftest.err >&5
  13846. echo "$as_me:15450: \$? = $ac_status" >&5
  13847. if (exit $ac_status) && test -s "$ac_outfile"; then
  13848. # The compiler can only warn and ignore the option if not recognized
  13849. # So say no if there are warnings
  13850. if test ! -s conftest.err; then
  13851. lt_cv_prog_compiler_rtti_exceptions=yes
  13852. fi
  13853. fi
  13854. $rm conftest*
  13855. fi
  13856. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  13857. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  13858. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  13859. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  13860. else
  13861. :
  13862. fi
  13863. fi
  13864. lt_prog_compiler_wl_GCJ=
  13865. lt_prog_compiler_pic_GCJ=
  13866. lt_prog_compiler_static_GCJ=
  13867. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  13868. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  13869. if test "$GCC" = yes; then
  13870. lt_prog_compiler_wl_GCJ='-Wl,'
  13871. lt_prog_compiler_static_GCJ='-static'
  13872. case $host_os in
  13873. aix*)
  13874. # All AIX code is PIC.
  13875. if test "$host_cpu" = ia64; then
  13876. # AIX 5 now supports IA64 processor
  13877. lt_prog_compiler_static_GCJ='-Bstatic'
  13878. fi
  13879. ;;
  13880. amigaos*)
  13881. # FIXME: we need at least 68020 code to build shared libraries, but
  13882. # adding the `-m68020' flag to GCC prevents building anything better,
  13883. # like `-m68040'.
  13884. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  13885. ;;
  13886. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13887. # PIC is the default for these OSes.
  13888. ;;
  13889. mingw* | pw32* | os2*)
  13890. # This hack is so that the source file can tell whether it is being
  13891. # built for inclusion in a dll (and should export symbols for example).
  13892. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  13893. ;;
  13894. darwin* | rhapsody*)
  13895. # PIC is the default on this platform
  13896. # Common symbols not allowed in MH_DYLIB files
  13897. lt_prog_compiler_pic_GCJ='-fno-common'
  13898. ;;
  13899. msdosdjgpp*)
  13900. # Just because we use GCC doesn't mean we suddenly get shared libraries
  13901. # on systems that don't support them.
  13902. lt_prog_compiler_can_build_shared_GCJ=no
  13903. enable_shared=no
  13904. ;;
  13905. sysv4*MP*)
  13906. if test -d /usr/nec; then
  13907. lt_prog_compiler_pic_GCJ=-Kconform_pic
  13908. fi
  13909. ;;
  13910. hpux*)
  13911. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13912. # not for PA HP-UX.
  13913. case "$host_cpu" in
  13914. hppa*64*|ia64*)
  13915. # +Z the default
  13916. ;;
  13917. *)
  13918. lt_prog_compiler_pic_GCJ='-fPIC'
  13919. ;;
  13920. esac
  13921. ;;
  13922. *)
  13923. lt_prog_compiler_pic_GCJ='-fPIC'
  13924. ;;
  13925. esac
  13926. else
  13927. # PORTME Check for flag to pass linker flags through the system compiler.
  13928. case $host_os in
  13929. aix*)
  13930. lt_prog_compiler_wl_GCJ='-Wl,'
  13931. if test "$host_cpu" = ia64; then
  13932. # AIX 5 now supports IA64 processor
  13933. lt_prog_compiler_static_GCJ='-Bstatic'
  13934. else
  13935. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  13936. fi
  13937. ;;
  13938. mingw* | pw32* | os2*)
  13939. # This hack is so that the source file can tell whether it is being
  13940. # built for inclusion in a dll (and should export symbols for example).
  13941. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  13942. ;;
  13943. hpux9* | hpux10* | hpux11*)
  13944. lt_prog_compiler_wl_GCJ='-Wl,'
  13945. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13946. # not for PA HP-UX.
  13947. case "$host_cpu" in
  13948. hppa*64*|ia64*)
  13949. # +Z the default
  13950. ;;
  13951. *)
  13952. lt_prog_compiler_pic_GCJ='+Z'
  13953. ;;
  13954. esac
  13955. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13956. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  13957. ;;
  13958. irix5* | irix6* | nonstopux*)
  13959. lt_prog_compiler_wl_GCJ='-Wl,'
  13960. # PIC (with -KPIC) is the default.
  13961. lt_prog_compiler_static_GCJ='-non_shared'
  13962. ;;
  13963. newsos6)
  13964. lt_prog_compiler_pic_GCJ='-KPIC'
  13965. lt_prog_compiler_static_GCJ='-Bstatic'
  13966. ;;
  13967. linux*)
  13968. case $CC in
  13969. icc* | ecc*)
  13970. lt_prog_compiler_wl_GCJ='-Wl,'
  13971. lt_prog_compiler_pic_GCJ='-KPIC'
  13972. lt_prog_compiler_static_GCJ='-static'
  13973. ;;
  13974. ccc*)
  13975. lt_prog_compiler_wl_GCJ='-Wl,'
  13976. # All Alpha code is PIC.
  13977. lt_prog_compiler_static_GCJ='-non_shared'
  13978. ;;
  13979. esac
  13980. ;;
  13981. osf3* | osf4* | osf5*)
  13982. lt_prog_compiler_wl_GCJ='-Wl,'
  13983. # All OSF/1 code is PIC.
  13984. lt_prog_compiler_static_GCJ='-non_shared'
  13985. ;;
  13986. sco3.2v5*)
  13987. lt_prog_compiler_pic_GCJ='-Kpic'
  13988. lt_prog_compiler_static_GCJ='-dn'
  13989. ;;
  13990. solaris*)
  13991. lt_prog_compiler_wl_GCJ='-Wl,'
  13992. lt_prog_compiler_pic_GCJ='-KPIC'
  13993. lt_prog_compiler_static_GCJ='-Bstatic'
  13994. ;;
  13995. sunos4*)
  13996. lt_prog_compiler_wl_GCJ='-Qoption ld '
  13997. lt_prog_compiler_pic_GCJ='-PIC'
  13998. lt_prog_compiler_static_GCJ='-Bstatic'
  13999. ;;
  14000. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  14001. lt_prog_compiler_wl_GCJ='-Wl,'
  14002. lt_prog_compiler_pic_GCJ='-KPIC'
  14003. lt_prog_compiler_static_GCJ='-Bstatic'
  14004. ;;
  14005. sysv4*MP*)
  14006. if test -d /usr/nec ;then
  14007. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14008. lt_prog_compiler_static_GCJ='-Bstatic'
  14009. fi
  14010. ;;
  14011. uts4*)
  14012. lt_prog_compiler_pic_GCJ='-pic'
  14013. lt_prog_compiler_static_GCJ='-Bstatic'
  14014. ;;
  14015. *)
  14016. lt_prog_compiler_can_build_shared_GCJ=no
  14017. ;;
  14018. esac
  14019. fi
  14020. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  14021. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  14022. #
  14023. # Check to make sure the PIC flag actually works.
  14024. #
  14025. if test -n "$lt_prog_compiler_pic_GCJ"; then
  14026. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  14027. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  14028. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  14029. echo $ECHO_N "(cached) $ECHO_C" >&6
  14030. else
  14031. lt_prog_compiler_pic_works_GCJ=no
  14032. ac_outfile=conftest.$ac_objext
  14033. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14034. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  14035. # Insert the option either (1) after the last *FLAGS variable, or
  14036. # (2) before a word containing "conftest.", or (3) at the end.
  14037. # Note that $ac_compile itself does not contain backslashes and begins
  14038. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14039. # The option is referenced via a variable to avoid confusing sed.
  14040. lt_compile=`echo "$ac_compile" | $SED \
  14041. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  14042. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14043. -e 's:$: $lt_compiler_flag:'`
  14044. (eval echo "\"\$as_me:15679: $lt_compile\"" >&5)
  14045. (eval "$lt_compile" 2>conftest.err)
  14046. ac_status=$?
  14047. cat conftest.err >&5
  14048. echo "$as_me:15683: \$? = $ac_status" >&5
  14049. if (exit $ac_status) && test -s "$ac_outfile"; then
  14050. # The compiler can only warn and ignore the option if not recognized
  14051. # So say no if there are warnings
  14052. if test ! -s conftest.err; then
  14053. lt_prog_compiler_pic_works_GCJ=yes
  14054. fi
  14055. fi
  14056. $rm conftest*
  14057. fi
  14058. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  14059. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  14060. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  14061. case $lt_prog_compiler_pic_GCJ in
  14062. "" | " "*) ;;
  14063. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  14064. esac
  14065. else
  14066. lt_prog_compiler_pic_GCJ=
  14067. lt_prog_compiler_can_build_shared_GCJ=no
  14068. fi
  14069. fi
  14070. case "$host_os" in
  14071. # For platforms which do not support PIC, -DPIC is meaningless:
  14072. *djgpp*)
  14073. lt_prog_compiler_pic_GCJ=
  14074. ;;
  14075. *)
  14076. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  14077. ;;
  14078. esac
  14079. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14080. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  14081. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  14082. echo $ECHO_N "(cached) $ECHO_C" >&6
  14083. else
  14084. lt_cv_prog_compiler_c_o_GCJ=no
  14085. $rm -r conftest 2>/dev/null
  14086. mkdir conftest
  14087. cd conftest
  14088. mkdir out
  14089. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14090. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14091. # Insert the option either (1) after the last *FLAGS variable, or
  14092. # (2) before a word containing "conftest.", or (3) at the end.
  14093. # Note that $ac_compile itself does not contain backslashes and begins
  14094. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14095. lt_compile=`echo "$ac_compile" | $SED \
  14096. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  14097. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14098. -e 's:$: $lt_compiler_flag:'`
  14099. (eval echo "\"\$as_me:15739: $lt_compile\"" >&5)
  14100. (eval "$lt_compile" 2>out/conftest.err)
  14101. ac_status=$?
  14102. cat out/conftest.err >&5
  14103. echo "$as_me:15743: \$? = $ac_status" >&5
  14104. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14105. then
  14106. # The compiler can only warn and ignore the option if not recognized
  14107. # So say no if there are warnings
  14108. if test ! -s out/conftest.err; then
  14109. lt_cv_prog_compiler_c_o_GCJ=yes
  14110. fi
  14111. fi
  14112. chmod u+w .
  14113. $rm conftest*
  14114. # SGI C++ compiler will create directory out/ii_files/ for
  14115. # template instantiation
  14116. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14117. $rm out/* && rmdir out
  14118. cd ..
  14119. rmdir conftest
  14120. $rm conftest*
  14121. fi
  14122. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  14123. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  14124. hard_links="nottested"
  14125. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  14126. # do not overwrite the value of need_locks provided by the user
  14127. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14128. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  14129. hard_links=yes
  14130. $rm conftest*
  14131. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14132. touch conftest.a
  14133. ln conftest.a conftest.b 2>&5 || hard_links=no
  14134. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14135. echo "$as_me:$LINENO: result: $hard_links" >&5
  14136. echo "${ECHO_T}$hard_links" >&6
  14137. if test "$hard_links" = no; then
  14138. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14139. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14140. need_locks=warn
  14141. fi
  14142. else
  14143. need_locks=no
  14144. fi
  14145. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14146. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  14147. runpath_var=
  14148. allow_undefined_flag_GCJ=
  14149. enable_shared_with_static_runtimes_GCJ=no
  14150. archive_cmds_GCJ=
  14151. archive_expsym_cmds_GCJ=
  14152. old_archive_From_new_cmds_GCJ=
  14153. old_archive_from_expsyms_cmds_GCJ=
  14154. export_dynamic_flag_spec_GCJ=
  14155. whole_archive_flag_spec_GCJ=
  14156. thread_safe_flag_spec_GCJ=
  14157. hardcode_libdir_flag_spec_GCJ=
  14158. hardcode_libdir_flag_spec_ld_GCJ=
  14159. hardcode_libdir_separator_GCJ=
  14160. hardcode_direct_GCJ=no
  14161. hardcode_minus_L_GCJ=no
  14162. hardcode_shlibpath_var_GCJ=unsupported
  14163. link_all_deplibs_GCJ=unknown
  14164. hardcode_automatic_GCJ=no
  14165. module_cmds_GCJ=
  14166. module_expsym_cmds_GCJ=
  14167. always_export_symbols_GCJ=no
  14168. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14169. # include_expsyms should be a list of space-separated symbols to be *always*
  14170. # included in the symbol list
  14171. include_expsyms_GCJ=
  14172. # exclude_expsyms can be an extended regexp of symbols to exclude
  14173. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14174. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14175. # as well as any symbol that contains `d'.
  14176. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  14177. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14178. # platforms (ab)use it in PIC code, but their linkers get confused if
  14179. # the symbol is explicitly referenced. Since portable code cannot
  14180. # rely on this symbol name, it's probably fine to never include it in
  14181. # preloaded symbol tables.
  14182. extract_expsyms_cmds=
  14183. case $host_os in
  14184. cygwin* | mingw* | pw32*)
  14185. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14186. # When not using gcc, we currently assume that we are using
  14187. # Microsoft Visual C++.
  14188. if test "$GCC" != yes; then
  14189. with_gnu_ld=no
  14190. fi
  14191. ;;
  14192. openbsd*)
  14193. with_gnu_ld=no
  14194. ;;
  14195. esac
  14196. ld_shlibs_GCJ=yes
  14197. if test "$with_gnu_ld" = yes; then
  14198. # If archive_cmds runs LD, not CC, wlarc should be empty
  14199. wlarc='${wl}'
  14200. # See if GNU ld supports shared libraries.
  14201. case $host_os in
  14202. aix3* | aix4* | aix5*)
  14203. # On AIX/PPC, the GNU linker is very broken
  14204. if test "$host_cpu" != ia64; then
  14205. ld_shlibs_GCJ=no
  14206. cat <<EOF 1>&2
  14207. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14208. *** to be unable to reliably create shared libraries on AIX.
  14209. *** Therefore, libtool is disabling shared libraries support. If you
  14210. *** really care for shared libraries, you may want to modify your PATH
  14211. *** so that a non-GNU linker is found, and then restart.
  14212. EOF
  14213. fi
  14214. ;;
  14215. amigaos*)
  14216. archive_cmds_GCJ='$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)'
  14217. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14218. hardcode_minus_L_GCJ=yes
  14219. # Samuel A. Falvo II <[email protected]> reports
  14220. # that the semantics of dynamic libraries on AmigaOS, at least up
  14221. # to version 4, is to share data among multiple programs linked
  14222. # with the same dynamic library. Since this doesn't match the
  14223. # behavior of shared libraries on other platforms, we can't use
  14224. # them.
  14225. ld_shlibs_GCJ=no
  14226. ;;
  14227. beos*)
  14228. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14229. allow_undefined_flag_GCJ=unsupported
  14230. # Joseph Beckenbach <[email protected]> says some releases of gcc
  14231. # support --undefined. This deserves some investigation. FIXME
  14232. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14233. else
  14234. ld_shlibs_GCJ=no
  14235. fi
  14236. ;;
  14237. cygwin* | mingw* | pw32*)
  14238. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  14239. # as there is no search path for DLLs.
  14240. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14241. allow_undefined_flag_GCJ=unsupported
  14242. always_export_symbols_GCJ=no
  14243. enable_shared_with_static_runtimes_GCJ=yes
  14244. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14245. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14246. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  14247. # If the export-symbols file already is a .def file (1st line
  14248. # is EXPORTS), use it as is; otherwise, prepend...
  14249. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14250. cp $export_symbols $output_objdir/$soname.def;
  14251. else
  14252. echo EXPORTS > $output_objdir/$soname.def;
  14253. cat $export_symbols >> $output_objdir/$soname.def;
  14254. fi~
  14255. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  14256. else
  14257. ld_shlibs=no
  14258. fi
  14259. ;;
  14260. netbsd* | knetbsd*-gnu)
  14261. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14262. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14263. wlarc=
  14264. else
  14265. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14266. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14267. fi
  14268. ;;
  14269. solaris* | sysv5*)
  14270. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14271. ld_shlibs_GCJ=no
  14272. cat <<EOF 1>&2
  14273. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14274. *** create shared libraries on Solaris systems. Therefore, libtool
  14275. *** is disabling shared libraries support. We urge you to upgrade GNU
  14276. *** binutils to release 2.9.1 or newer. Another option is to modify
  14277. *** your PATH or compiler configuration so that the native linker is
  14278. *** used, and then restart.
  14279. EOF
  14280. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14281. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14282. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14283. else
  14284. ld_shlibs_GCJ=no
  14285. fi
  14286. ;;
  14287. sunos4*)
  14288. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14289. wlarc=
  14290. hardcode_direct_GCJ=yes
  14291. hardcode_shlibpath_var_GCJ=no
  14292. ;;
  14293. linux*)
  14294. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  14295. tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14296. archive_cmds_GCJ="$tmp_archive_cmds"
  14297. supports_anon_versioning=no
  14298. case `$LD -v 2>/dev/null` in
  14299. *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14300. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14301. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14302. *\ 2.11.*) ;; # other 2.11 versions
  14303. *) supports_anon_versioning=yes ;;
  14304. esac
  14305. if test $supports_anon_versioning = yes; then
  14306. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  14307. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14308. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14309. $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14310. else
  14311. archive_expsym_cmds_GCJ="$tmp_archive_cmds"
  14312. fi
  14313. else
  14314. ld_shlibs_GCJ=no
  14315. fi
  14316. ;;
  14317. *)
  14318. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14319. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14320. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14321. else
  14322. ld_shlibs_GCJ=no
  14323. fi
  14324. ;;
  14325. esac
  14326. if test "$ld_shlibs_GCJ" = yes; then
  14327. runpath_var=LD_RUN_PATH
  14328. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  14329. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  14330. # ancient GNU ld didn't support --whole-archive et. al.
  14331. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14332. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14333. else
  14334. whole_archive_flag_spec_GCJ=
  14335. fi
  14336. fi
  14337. else
  14338. # PORTME fill in a description of your system's linker (not GNU ld)
  14339. case $host_os in
  14340. aix3*)
  14341. allow_undefined_flag_GCJ=unsupported
  14342. always_export_symbols_GCJ=yes
  14343. archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  14344. # Note: this linker hardcodes the directories in LIBPATH if there
  14345. # are no directories specified by -L.
  14346. hardcode_minus_L_GCJ=yes
  14347. if test "$GCC" = yes && test -z "$link_static_flag"; then
  14348. # Neither direct hardcoding nor static linking is supported with a
  14349. # broken collect2.
  14350. hardcode_direct_GCJ=unsupported
  14351. fi
  14352. ;;
  14353. aix4* | aix5*)
  14354. if test "$host_cpu" = ia64; then
  14355. # On IA64, the linker does run time linking by default, so we don't
  14356. # have to do anything special.
  14357. aix_use_runtimelinking=no
  14358. exp_sym_flag='-Bexport'
  14359. no_entry_flag=""
  14360. else
  14361. # If we're using GNU nm, then we don't want the "-C" option.
  14362. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14363. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14364. export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  14365. else
  14366. export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  14367. fi
  14368. aix_use_runtimelinking=no
  14369. # Test if we are trying to use run time linking or normal
  14370. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14371. # need to do runtime linking.
  14372. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14373. for ld_flag in $LDFLAGS; do
  14374. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14375. aix_use_runtimelinking=yes
  14376. break
  14377. fi
  14378. done
  14379. esac
  14380. exp_sym_flag='-bexport'
  14381. no_entry_flag='-bnoentry'
  14382. fi
  14383. # When large executables or shared objects are built, AIX ld can
  14384. # have problems creating the table of contents. If linking a library
  14385. # or program results in "error TOC overflow" add -mminimal-toc to
  14386. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14387. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14388. archive_cmds_GCJ=''
  14389. hardcode_direct_GCJ=yes
  14390. hardcode_libdir_separator_GCJ=':'
  14391. link_all_deplibs_GCJ=yes
  14392. if test "$GCC" = yes; then
  14393. case $host_os in aix4.012|aix4.012.*)
  14394. # We only want to do this on AIX 4.2 and lower, the check
  14395. # below for broken collect2 doesn't work under 4.3+
  14396. collect2name=`${CC} -print-prog-name=collect2`
  14397. if test -f "$collect2name" && \
  14398. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14399. then
  14400. # We have reworked collect2
  14401. hardcode_direct_GCJ=yes
  14402. else
  14403. # We have old collect2
  14404. hardcode_direct_GCJ=unsupported
  14405. # It fails to find uninstalled libraries when the uninstalled
  14406. # path is not listed in the libpath. Setting hardcode_minus_L
  14407. # to unsupported forces relinking
  14408. hardcode_minus_L_GCJ=yes
  14409. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14410. hardcode_libdir_separator_GCJ=
  14411. fi
  14412. esac
  14413. shared_flag='-shared'
  14414. else
  14415. # not using gcc
  14416. if test "$host_cpu" = ia64; then
  14417. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14418. # chokes on -Wl,-G. The following line is correct:
  14419. shared_flag='-G'
  14420. else
  14421. if test "$aix_use_runtimelinking" = yes; then
  14422. shared_flag='${wl}-G'
  14423. else
  14424. shared_flag='${wl}-bM:SRE'
  14425. fi
  14426. fi
  14427. fi
  14428. # It seems that -bexpall does not export symbols beginning with
  14429. # underscore (_), so it is better to generate a list of symbols to export.
  14430. always_export_symbols_GCJ=yes
  14431. if test "$aix_use_runtimelinking" = yes; then
  14432. # Warning - without using the other runtime loading flags (-brtl),
  14433. # -berok will link without error, but may produce a broken library.
  14434. allow_undefined_flag_GCJ='-berok'
  14435. # Determine the default libpath from the value encoded in an empty executable.
  14436. cat >conftest.$ac_ext <<_ACEOF
  14437. /* confdefs.h. */
  14438. _ACEOF
  14439. cat confdefs.h >>conftest.$ac_ext
  14440. cat >>conftest.$ac_ext <<_ACEOF
  14441. /* end confdefs.h. */
  14442. int
  14443. main ()
  14444. {
  14445. ;
  14446. return 0;
  14447. }
  14448. _ACEOF
  14449. rm -f conftest.$ac_objext conftest$ac_exeext
  14450. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14451. (eval $ac_link) 2>conftest.er1
  14452. ac_status=$?
  14453. grep -v '^ *+' conftest.er1 >conftest.err
  14454. rm -f conftest.er1
  14455. cat conftest.err >&5
  14456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14457. (exit $ac_status); } &&
  14458. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  14459. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14460. (eval $ac_try) 2>&5
  14461. ac_status=$?
  14462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14463. (exit $ac_status); }; } &&
  14464. { ac_try='test -s conftest$ac_exeext'
  14465. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14466. (eval $ac_try) 2>&5
  14467. ac_status=$?
  14468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14469. (exit $ac_status); }; }; then
  14470. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14471. }'`
  14472. # Check for a 64-bit object if we didn't find anything.
  14473. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14474. }'`; fi
  14475. else
  14476. echo "$as_me: failed program was:" >&5
  14477. sed 's/^/| /' conftest.$ac_ext >&5
  14478. fi
  14479. rm -f conftest.err conftest.$ac_objext \
  14480. conftest$ac_exeext conftest.$ac_ext
  14481. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14482. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14483. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  14484. else
  14485. if test "$host_cpu" = ia64; then
  14486. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  14487. allow_undefined_flag_GCJ="-z nodefs"
  14488. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  14489. else
  14490. # Determine the default libpath from the value encoded in an empty executable.
  14491. cat >conftest.$ac_ext <<_ACEOF
  14492. /* confdefs.h. */
  14493. _ACEOF
  14494. cat confdefs.h >>conftest.$ac_ext
  14495. cat >>conftest.$ac_ext <<_ACEOF
  14496. /* end confdefs.h. */
  14497. int
  14498. main ()
  14499. {
  14500. ;
  14501. return 0;
  14502. }
  14503. _ACEOF
  14504. rm -f conftest.$ac_objext conftest$ac_exeext
  14505. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14506. (eval $ac_link) 2>conftest.er1
  14507. ac_status=$?
  14508. grep -v '^ *+' conftest.er1 >conftest.err
  14509. rm -f conftest.er1
  14510. cat conftest.err >&5
  14511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14512. (exit $ac_status); } &&
  14513. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  14514. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14515. (eval $ac_try) 2>&5
  14516. ac_status=$?
  14517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14518. (exit $ac_status); }; } &&
  14519. { ac_try='test -s conftest$ac_exeext'
  14520. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14521. (eval $ac_try) 2>&5
  14522. ac_status=$?
  14523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14524. (exit $ac_status); }; }; then
  14525. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14526. }'`
  14527. # Check for a 64-bit object if we didn't find anything.
  14528. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14529. }'`; fi
  14530. else
  14531. echo "$as_me: failed program was:" >&5
  14532. sed 's/^/| /' conftest.$ac_ext >&5
  14533. fi
  14534. rm -f conftest.err conftest.$ac_objext \
  14535. conftest$ac_exeext conftest.$ac_ext
  14536. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14537. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14538. # Warning - without using the other run time loading flags,
  14539. # -berok will link without error, but may produce a broken library.
  14540. no_undefined_flag_GCJ=' ${wl}-bernotok'
  14541. allow_undefined_flag_GCJ=' ${wl}-berok'
  14542. # -bexpall does not export symbols beginning with underscore (_)
  14543. always_export_symbols_GCJ=yes
  14544. # Exported symbols can be pulled into shared objects from archives
  14545. whole_archive_flag_spec_GCJ=' '
  14546. archive_cmds_need_lc_GCJ=yes
  14547. # This is similar to how AIX traditionally builds it's shared libraries.
  14548. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  14549. fi
  14550. fi
  14551. ;;
  14552. amigaos*)
  14553. archive_cmds_GCJ='$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)'
  14554. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14555. hardcode_minus_L_GCJ=yes
  14556. # see comment about different semantics on the GNU ld section
  14557. ld_shlibs_GCJ=no
  14558. ;;
  14559. bsdi4*)
  14560. export_dynamic_flag_spec_GCJ=-rdynamic
  14561. ;;
  14562. cygwin* | mingw* | pw32*)
  14563. # When not using gcc, we currently assume that we are using
  14564. # Microsoft Visual C++.
  14565. # hardcode_libdir_flag_spec is actually meaningless, as there is
  14566. # no search path for DLLs.
  14567. hardcode_libdir_flag_spec_GCJ=' '
  14568. allow_undefined_flag_GCJ=unsupported
  14569. # Tell ltmain to make .lib files, not .a files.
  14570. libext=lib
  14571. # Tell ltmain to make .dll files, not .so files.
  14572. shrext=".dll"
  14573. # FIXME: Setting linknames here is a bad hack.
  14574. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14575. # The linker will automatically build a .lib file if we build a DLL.
  14576. old_archive_From_new_cmds_GCJ='true'
  14577. # FIXME: Should let the user specify the lib program.
  14578. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  14579. fix_srcfile_path='`cygpath -w "$srcfile"`'
  14580. enable_shared_with_static_runtimes_GCJ=yes
  14581. ;;
  14582. darwin* | rhapsody*)
  14583. if test "$GXX" = yes ; then
  14584. archive_cmds_need_lc_GCJ=no
  14585. case "$host_os" in
  14586. rhapsody* | darwin1.[012])
  14587. allow_undefined_flag_GCJ='-undefined suppress'
  14588. ;;
  14589. *) # Darwin 1.3 on
  14590. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  14591. allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
  14592. else
  14593. case ${MACOSX_DEPLOYMENT_TARGET} in
  14594. 10.[012])
  14595. allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
  14596. ;;
  14597. 10.*)
  14598. allow_undefined_flag_GCJ='-undefined dynamic_lookup'
  14599. ;;
  14600. esac
  14601. fi
  14602. ;;
  14603. esac
  14604. lt_int_apple_cc_single_mod=no
  14605. output_verbose_link_cmd='echo'
  14606. if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  14607. lt_int_apple_cc_single_mod=yes
  14608. fi
  14609. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  14610. archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  14611. else
  14612. archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  14613. fi
  14614. module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14615. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  14616. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  14617. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14618. else
  14619. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14620. fi
  14621. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14622. hardcode_direct_GCJ=no
  14623. hardcode_automatic_GCJ=yes
  14624. hardcode_shlibpath_var_GCJ=unsupported
  14625. whole_archive_flag_spec_GCJ='-all_load $convenience'
  14626. link_all_deplibs_GCJ=yes
  14627. else
  14628. ld_shlibs_GCJ=no
  14629. fi
  14630. ;;
  14631. dgux*)
  14632. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14633. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14634. hardcode_shlibpath_var_GCJ=no
  14635. ;;
  14636. freebsd1*)
  14637. ld_shlibs_GCJ=no
  14638. ;;
  14639. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  14640. # support. Future versions do this automatically, but an explicit c++rt0.o
  14641. # does not break anything, and helps significantly (at the cost of a little
  14642. # extra space).
  14643. freebsd2.2*)
  14644. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  14645. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14646. hardcode_direct_GCJ=yes
  14647. hardcode_shlibpath_var_GCJ=no
  14648. ;;
  14649. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  14650. freebsd2*)
  14651. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14652. hardcode_direct_GCJ=yes
  14653. hardcode_minus_L_GCJ=yes
  14654. hardcode_shlibpath_var_GCJ=no
  14655. ;;
  14656. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  14657. freebsd* | kfreebsd*-gnu)
  14658. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  14659. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14660. hardcode_direct_GCJ=yes
  14661. hardcode_shlibpath_var_GCJ=no
  14662. ;;
  14663. hpux9*)
  14664. if test "$GCC" = yes; then
  14665. archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  14666. else
  14667. archive_cmds_GCJ='$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'
  14668. fi
  14669. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14670. hardcode_libdir_separator_GCJ=:
  14671. hardcode_direct_GCJ=yes
  14672. # hardcode_minus_L: Not really in the search PATH,
  14673. # but as the default location of the library.
  14674. hardcode_minus_L_GCJ=yes
  14675. export_dynamic_flag_spec_GCJ='${wl}-E'
  14676. ;;
  14677. hpux10* | hpux11*)
  14678. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14679. case "$host_cpu" in
  14680. hppa*64*|ia64*)
  14681. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14682. ;;
  14683. *)
  14684. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14685. ;;
  14686. esac
  14687. else
  14688. case "$host_cpu" in
  14689. hppa*64*|ia64*)
  14690. archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  14691. ;;
  14692. *)
  14693. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  14694. ;;
  14695. esac
  14696. fi
  14697. if test "$with_gnu_ld" = no; then
  14698. case "$host_cpu" in
  14699. hppa*64*)
  14700. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14701. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  14702. hardcode_libdir_separator_GCJ=:
  14703. hardcode_direct_GCJ=no
  14704. hardcode_shlibpath_var_GCJ=no
  14705. ;;
  14706. ia64*)
  14707. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14708. hardcode_direct_GCJ=no
  14709. hardcode_shlibpath_var_GCJ=no
  14710. # hardcode_minus_L: Not really in the search PATH,
  14711. # but as the default location of the library.
  14712. hardcode_minus_L_GCJ=yes
  14713. ;;
  14714. *)
  14715. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14716. hardcode_libdir_separator_GCJ=:
  14717. hardcode_direct_GCJ=yes
  14718. export_dynamic_flag_spec_GCJ='${wl}-E'
  14719. # hardcode_minus_L: Not really in the search PATH,
  14720. # but as the default location of the library.
  14721. hardcode_minus_L_GCJ=yes
  14722. ;;
  14723. esac
  14724. fi
  14725. ;;
  14726. irix5* | irix6* | nonstopux*)
  14727. if test "$GCC" = yes; then
  14728. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14729. else
  14730. archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  14731. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  14732. fi
  14733. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14734. hardcode_libdir_separator_GCJ=:
  14735. link_all_deplibs_GCJ=yes
  14736. ;;
  14737. netbsd* | knetbsd*-gnu)
  14738. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14739. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  14740. else
  14741. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  14742. fi
  14743. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14744. hardcode_direct_GCJ=yes
  14745. hardcode_shlibpath_var_GCJ=no
  14746. ;;
  14747. newsos6)
  14748. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14749. hardcode_direct_GCJ=yes
  14750. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14751. hardcode_libdir_separator_GCJ=:
  14752. hardcode_shlibpath_var_GCJ=no
  14753. ;;
  14754. openbsd*)
  14755. hardcode_direct_GCJ=yes
  14756. hardcode_shlibpath_var_GCJ=no
  14757. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14758. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14759. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14760. export_dynamic_flag_spec_GCJ='${wl}-E'
  14761. else
  14762. case $host_os in
  14763. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  14764. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14765. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14766. ;;
  14767. *)
  14768. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14769. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14770. ;;
  14771. esac
  14772. fi
  14773. ;;
  14774. os2*)
  14775. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14776. hardcode_minus_L_GCJ=yes
  14777. allow_undefined_flag_GCJ=unsupported
  14778. archive_cmds_GCJ='$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'
  14779. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  14780. ;;
  14781. osf3*)
  14782. if test "$GCC" = yes; then
  14783. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  14784. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14785. else
  14786. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  14787. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  14788. fi
  14789. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14790. hardcode_libdir_separator_GCJ=:
  14791. ;;
  14792. osf4* | osf5*) # as osf3* with the addition of -msym flag
  14793. if test "$GCC" = yes; then
  14794. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  14795. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14796. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14797. else
  14798. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  14799. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  14800. archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  14801. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  14802. # Both c and cxx compiler support -rpath directly
  14803. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  14804. fi
  14805. hardcode_libdir_separator_GCJ=:
  14806. ;;
  14807. sco3.2v5*)
  14808. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14809. hardcode_shlibpath_var_GCJ=no
  14810. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  14811. runpath_var=LD_RUN_PATH
  14812. hardcode_runpath_var=yes
  14813. ;;
  14814. solaris*)
  14815. no_undefined_flag_GCJ=' -z text'
  14816. if test "$GCC" = yes; then
  14817. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14818. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14819. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  14820. else
  14821. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14822. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14823. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14824. fi
  14825. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14826. hardcode_shlibpath_var_GCJ=no
  14827. case $host_os in
  14828. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14829. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  14830. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  14831. esac
  14832. link_all_deplibs_GCJ=yes
  14833. ;;
  14834. sunos4*)
  14835. if test "x$host_vendor" = xsequent; then
  14836. # Use $CC to link under sequent, because it throws in some extra .o
  14837. # files that make .init and .fini sections work.
  14838. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14839. else
  14840. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  14841. fi
  14842. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14843. hardcode_direct_GCJ=yes
  14844. hardcode_minus_L_GCJ=yes
  14845. hardcode_shlibpath_var_GCJ=no
  14846. ;;
  14847. sysv4)
  14848. case $host_vendor in
  14849. sni)
  14850. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14851. hardcode_direct_GCJ=yes # is this really true???
  14852. ;;
  14853. siemens)
  14854. ## LD is ld it makes a PLAMLIB
  14855. ## CC just makes a GrossModule.
  14856. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14857. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  14858. hardcode_direct_GCJ=no
  14859. ;;
  14860. motorola)
  14861. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14862. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  14863. ;;
  14864. esac
  14865. runpath_var='LD_RUN_PATH'
  14866. hardcode_shlibpath_var_GCJ=no
  14867. ;;
  14868. sysv4.3*)
  14869. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14870. hardcode_shlibpath_var_GCJ=no
  14871. export_dynamic_flag_spec_GCJ='-Bexport'
  14872. ;;
  14873. sysv4*MP*)
  14874. if test -d /usr/nec; then
  14875. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14876. hardcode_shlibpath_var_GCJ=no
  14877. runpath_var=LD_RUN_PATH
  14878. hardcode_runpath_var=yes
  14879. ld_shlibs_GCJ=yes
  14880. fi
  14881. ;;
  14882. sysv4.2uw2*)
  14883. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14884. hardcode_direct_GCJ=yes
  14885. hardcode_minus_L_GCJ=no
  14886. hardcode_shlibpath_var_GCJ=no
  14887. hardcode_runpath_var=yes
  14888. runpath_var=LD_RUN_PATH
  14889. ;;
  14890. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  14891. no_undefined_flag_GCJ='${wl}-z ${wl}text'
  14892. if test "$GCC" = yes; then
  14893. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14894. else
  14895. archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14896. fi
  14897. runpath_var='LD_RUN_PATH'
  14898. hardcode_shlibpath_var_GCJ=no
  14899. ;;
  14900. sysv5*)
  14901. no_undefined_flag_GCJ=' -z text'
  14902. # $CC -shared without GNU ld will not create a library from C++
  14903. # object files and a static libstdc++, better avoid it by now
  14904. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14905. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14906. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14907. hardcode_libdir_flag_spec_GCJ=
  14908. hardcode_shlibpath_var_GCJ=no
  14909. runpath_var='LD_RUN_PATH'
  14910. ;;
  14911. uts4*)
  14912. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14913. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14914. hardcode_shlibpath_var_GCJ=no
  14915. ;;
  14916. *)
  14917. ld_shlibs_GCJ=no
  14918. ;;
  14919. esac
  14920. fi
  14921. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  14922. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  14923. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  14924. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14925. if test "$GCC" = yes; then
  14926. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14927. fi
  14928. #
  14929. # Do we need to explicitly link libc?
  14930. #
  14931. case "x$archive_cmds_need_lc_GCJ" in
  14932. x|xyes)
  14933. # Assume -lc should be added
  14934. archive_cmds_need_lc_GCJ=yes
  14935. if test "$enable_shared" = yes && test "$GCC" = yes; then
  14936. case $archive_cmds_GCJ in
  14937. *'~'*)
  14938. # FIXME: we may have to deal with multi-command sequences.
  14939. ;;
  14940. '$CC '*)
  14941. # Test whether the compiler implicitly links with -lc since on some
  14942. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14943. # to ld, don't add -lc before -lgcc.
  14944. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  14945. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  14946. $rm conftest*
  14947. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14948. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14949. (eval $ac_compile) 2>&5
  14950. ac_status=$?
  14951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14952. (exit $ac_status); } 2>conftest.err; then
  14953. soname=conftest
  14954. lib=conftest
  14955. libobjs=conftest.$ac_objext
  14956. deplibs=
  14957. wl=$lt_prog_compiler_wl_GCJ
  14958. compiler_flags=-v
  14959. linker_flags=-v
  14960. verstring=
  14961. output_objdir=.
  14962. libname=conftest
  14963. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  14964. allow_undefined_flag_GCJ=
  14965. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  14966. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14967. ac_status=$?
  14968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14969. (exit $ac_status); }
  14970. then
  14971. archive_cmds_need_lc_GCJ=no
  14972. else
  14973. archive_cmds_need_lc_GCJ=yes
  14974. fi
  14975. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  14976. else
  14977. cat conftest.err 1>&5
  14978. fi
  14979. $rm conftest*
  14980. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  14981. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  14982. ;;
  14983. esac
  14984. fi
  14985. ;;
  14986. esac
  14987. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14988. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  14989. library_names_spec=
  14990. libname_spec='lib$name'
  14991. soname_spec=
  14992. shrext=".so"
  14993. postinstall_cmds=
  14994. postuninstall_cmds=
  14995. finish_cmds=
  14996. finish_eval=
  14997. shlibpath_var=
  14998. shlibpath_overrides_runpath=unknown
  14999. version_type=none
  15000. dynamic_linker="$host_os ld.so"
  15001. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15002. if test "$GCC" = yes; then
  15003. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15004. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  15005. # if the path contains ";" then we assume it to be the separator
  15006. # otherwise default to the standard path separator (i.e. ":") - it is
  15007. # assumed that no part of a normal pathname contains ";" but that should
  15008. # okay in the real world where ";" in dirpaths is itself problematic.
  15009. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15010. else
  15011. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15012. fi
  15013. else
  15014. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15015. fi
  15016. need_lib_prefix=unknown
  15017. hardcode_into_libs=no
  15018. # when you set need_version to no, make sure it does not cause -set_version
  15019. # flags to be left without arguments
  15020. need_version=unknown
  15021. case $host_os in
  15022. aix3*)
  15023. version_type=linux
  15024. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15025. shlibpath_var=LIBPATH
  15026. # AIX 3 has no versioning support, so we append a major version to the name.
  15027. soname_spec='${libname}${release}${shared_ext}$major'
  15028. ;;
  15029. aix4* | aix5*)
  15030. version_type=linux
  15031. need_lib_prefix=no
  15032. need_version=no
  15033. hardcode_into_libs=yes
  15034. if test "$host_cpu" = ia64; then
  15035. # AIX 5 supports IA64
  15036. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15037. shlibpath_var=LD_LIBRARY_PATH
  15038. else
  15039. # With GCC up to 2.95.x, collect2 would create an import file
  15040. # for dependence libraries. The import file would start with
  15041. # the line `#! .'. This would cause the generated library to
  15042. # depend on `.', always an invalid library. This was fixed in
  15043. # development snapshots of GCC prior to 3.0.
  15044. case $host_os in
  15045. aix4 | aix4.[01] | aix4.[01].*)
  15046. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15047. echo ' yes '
  15048. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15049. :
  15050. else
  15051. can_build_shared=no
  15052. fi
  15053. ;;
  15054. esac
  15055. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15056. # soname into executable. Probably we can add versioning support to
  15057. # collect2, so additional links can be useful in future.
  15058. if test "$aix_use_runtimelinking" = yes; then
  15059. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15060. # instead of lib<name>.a to let people know that these are not
  15061. # typical AIX shared libraries.
  15062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15063. else
  15064. # We preserve .a as extension for shared libraries through AIX4.2
  15065. # and later when we are not doing run time linking.
  15066. library_names_spec='${libname}${release}.a $libname.a'
  15067. soname_spec='${libname}${release}${shared_ext}$major'
  15068. fi
  15069. shlibpath_var=LIBPATH
  15070. fi
  15071. ;;
  15072. amigaos*)
  15073. library_names_spec='$libname.ixlibrary $libname.a'
  15074. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15075. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
  15076. ;;
  15077. beos*)
  15078. library_names_spec='${libname}${shared_ext}'
  15079. dynamic_linker="$host_os ld.so"
  15080. shlibpath_var=LIBRARY_PATH
  15081. ;;
  15082. bsdi4*)
  15083. version_type=linux
  15084. need_version=no
  15085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15086. soname_spec='${libname}${release}${shared_ext}$major'
  15087. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15088. shlibpath_var=LD_LIBRARY_PATH
  15089. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15090. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15091. # the default ld.so.conf also contains /usr/contrib/lib and
  15092. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15093. # libtool to hard-code these into programs
  15094. ;;
  15095. cygwin* | mingw* | pw32*)
  15096. version_type=windows
  15097. shrext=".dll"
  15098. need_version=no
  15099. need_lib_prefix=no
  15100. case $GCC,$host_os in
  15101. yes,cygwin* | yes,mingw* | yes,pw32*)
  15102. library_names_spec='$libname.dll.a'
  15103. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15104. postinstall_cmds='base_file=`basename \${file}`~
  15105. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15106. dldir=$destdir/`dirname \$dlpath`~
  15107. test -d \$dldir || mkdir -p \$dldir~
  15108. $install_prog $dir/$dlname \$dldir/$dlname'
  15109. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15110. dlpath=$dir/\$dldll~
  15111. $rm \$dlpath'
  15112. shlibpath_overrides_runpath=yes
  15113. case $host_os in
  15114. cygwin*)
  15115. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15116. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15117. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15118. ;;
  15119. mingw*)
  15120. # MinGW DLLs use traditional 'lib' prefix
  15121. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15122. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15123. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15124. # It is most probably a Windows format PATH printed by
  15125. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15126. # path with ; separators, and with drive letters. We can handle the
  15127. # drive letters (cygwin fileutils understands them), so leave them,
  15128. # especially as we might pass files found there to a mingw objdump,
  15129. # which wouldn't understand a cygwinified path. Ahh.
  15130. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15131. else
  15132. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15133. fi
  15134. ;;
  15135. pw32*)
  15136. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15137. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  15138. ;;
  15139. esac
  15140. ;;
  15141. *)
  15142. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15143. ;;
  15144. esac
  15145. dynamic_linker='Win32 ld.exe'
  15146. # FIXME: first we should search . and the directory the executable is in
  15147. shlibpath_var=PATH
  15148. ;;
  15149. darwin* | rhapsody*)
  15150. dynamic_linker="$host_os dyld"
  15151. version_type=darwin
  15152. need_lib_prefix=no
  15153. need_version=no
  15154. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15155. soname_spec='${libname}${release}${major}$shared_ext'
  15156. shlibpath_overrides_runpath=yes
  15157. shlibpath_var=DYLD_LIBRARY_PATH
  15158. shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  15159. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  15160. if test "$GCC" = yes; then
  15161. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  15162. else
  15163. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  15164. fi
  15165. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15166. ;;
  15167. dgux*)
  15168. version_type=linux
  15169. need_lib_prefix=no
  15170. need_version=no
  15171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15172. soname_spec='${libname}${release}${shared_ext}$major'
  15173. shlibpath_var=LD_LIBRARY_PATH
  15174. ;;
  15175. freebsd1*)
  15176. dynamic_linker=no
  15177. ;;
  15178. kfreebsd*-gnu)
  15179. version_type=linux
  15180. need_lib_prefix=no
  15181. need_version=no
  15182. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15183. soname_spec='${libname}${release}${shared_ext}$major'
  15184. shlibpath_var=LD_LIBRARY_PATH
  15185. shlibpath_overrides_runpath=no
  15186. hardcode_into_libs=yes
  15187. dynamic_linker='GNU ld.so'
  15188. ;;
  15189. freebsd*)
  15190. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  15191. version_type=freebsd-$objformat
  15192. case $version_type in
  15193. freebsd-elf*)
  15194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15195. need_version=no
  15196. need_lib_prefix=no
  15197. ;;
  15198. freebsd-*)
  15199. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15200. need_version=yes
  15201. ;;
  15202. esac
  15203. shlibpath_var=LD_LIBRARY_PATH
  15204. case $host_os in
  15205. freebsd2*)
  15206. shlibpath_overrides_runpath=yes
  15207. ;;
  15208. freebsd3.01* | freebsdelf3.01*)
  15209. shlibpath_overrides_runpath=yes
  15210. hardcode_into_libs=yes
  15211. ;;
  15212. *) # from 3.2 on
  15213. shlibpath_overrides_runpath=no
  15214. hardcode_into_libs=yes
  15215. ;;
  15216. esac
  15217. ;;
  15218. gnu*)
  15219. version_type=linux
  15220. need_lib_prefix=no
  15221. need_version=no
  15222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15223. soname_spec='${libname}${release}${shared_ext}$major'
  15224. shlibpath_var=LD_LIBRARY_PATH
  15225. hardcode_into_libs=yes
  15226. ;;
  15227. hpux9* | hpux10* | hpux11*)
  15228. # Give a soname corresponding to the major version so that dld.sl refuses to
  15229. # link against other versions.
  15230. version_type=sunos
  15231. need_lib_prefix=no
  15232. need_version=no
  15233. case "$host_cpu" in
  15234. ia64*)
  15235. shrext='.so'
  15236. hardcode_into_libs=yes
  15237. dynamic_linker="$host_os dld.so"
  15238. shlibpath_var=LD_LIBRARY_PATH
  15239. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15240. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15241. soname_spec='${libname}${release}${shared_ext}$major'
  15242. if test "X$HPUX_IA64_MODE" = X32; then
  15243. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15244. else
  15245. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15246. fi
  15247. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15248. ;;
  15249. hppa*64*)
  15250. shrext='.sl'
  15251. hardcode_into_libs=yes
  15252. dynamic_linker="$host_os dld.sl"
  15253. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15254. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15255. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15256. soname_spec='${libname}${release}${shared_ext}$major'
  15257. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15258. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15259. ;;
  15260. *)
  15261. shrext='.sl'
  15262. dynamic_linker="$host_os dld.sl"
  15263. shlibpath_var=SHLIB_PATH
  15264. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15266. soname_spec='${libname}${release}${shared_ext}$major'
  15267. ;;
  15268. esac
  15269. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15270. postinstall_cmds='chmod 555 $lib'
  15271. ;;
  15272. irix5* | irix6* | nonstopux*)
  15273. case $host_os in
  15274. nonstopux*) version_type=nonstopux ;;
  15275. *)
  15276. if test "$lt_cv_prog_gnu_ld" = yes; then
  15277. version_type=linux
  15278. else
  15279. version_type=irix
  15280. fi ;;
  15281. esac
  15282. need_lib_prefix=no
  15283. need_version=no
  15284. soname_spec='${libname}${release}${shared_ext}$major'
  15285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15286. case $host_os in
  15287. irix5* | nonstopux*)
  15288. libsuff= shlibsuff=
  15289. ;;
  15290. *)
  15291. case $LD in # libtool.m4 will add one of these switches to LD
  15292. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15293. libsuff= shlibsuff= libmagic=32-bit;;
  15294. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15295. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15296. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15297. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15298. *) libsuff= shlibsuff= libmagic=never-match;;
  15299. esac
  15300. ;;
  15301. esac
  15302. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15303. shlibpath_overrides_runpath=no
  15304. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15305. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15306. hardcode_into_libs=yes
  15307. ;;
  15308. # No shared lib support for Linux oldld, aout, or coff.
  15309. linux*oldld* | linux*aout* | linux*coff*)
  15310. dynamic_linker=no
  15311. ;;
  15312. # This must be Linux ELF.
  15313. linux*)
  15314. version_type=linux
  15315. need_lib_prefix=no
  15316. need_version=no
  15317. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15318. soname_spec='${libname}${release}${shared_ext}$major'
  15319. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15320. shlibpath_var=LD_LIBRARY_PATH
  15321. shlibpath_overrides_runpath=no
  15322. # This implies no fast_install, which is unacceptable.
  15323. # Some rework will be needed to allow for fast_install
  15324. # before this can be enabled.
  15325. hardcode_into_libs=yes
  15326. # Append ld.so.conf contents to the search path
  15327. if test -f /etc/ld.so.conf; then
  15328. ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
  15329. sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
  15330. fi
  15331. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15332. # powerpc, because MkLinux only supported shared libraries with the
  15333. # GNU dynamic linker. Since this was broken with cross compilers,
  15334. # most powerpc-linux boxes support dynamic linking these days and
  15335. # people can always --disable-shared, the test was removed, and we
  15336. # assume the GNU/Linux dynamic linker is in use.
  15337. dynamic_linker='GNU/Linux ld.so'
  15338. ;;
  15339. knetbsd*-gnu)
  15340. version_type=linux
  15341. need_lib_prefix=no
  15342. need_version=no
  15343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15344. soname_spec='${libname}${release}${shared_ext}$major'
  15345. shlibpath_var=LD_LIBRARY_PATH
  15346. shlibpath_overrides_runpath=no
  15347. hardcode_into_libs=yes
  15348. dynamic_linker='GNU ld.so'
  15349. ;;
  15350. netbsd*)
  15351. version_type=sunos
  15352. need_lib_prefix=no
  15353. need_version=no
  15354. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15356. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15357. dynamic_linker='NetBSD (a.out) ld.so'
  15358. else
  15359. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15360. soname_spec='${libname}${release}${shared_ext}$major'
  15361. dynamic_linker='NetBSD ld.elf_so'
  15362. fi
  15363. shlibpath_var=LD_LIBRARY_PATH
  15364. shlibpath_overrides_runpath=yes
  15365. hardcode_into_libs=yes
  15366. ;;
  15367. newsos6)
  15368. version_type=linux
  15369. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15370. shlibpath_var=LD_LIBRARY_PATH
  15371. shlibpath_overrides_runpath=yes
  15372. ;;
  15373. nto-qnx*)
  15374. version_type=linux
  15375. need_lib_prefix=no
  15376. need_version=no
  15377. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15378. soname_spec='${libname}${release}${shared_ext}$major'
  15379. shlibpath_var=LD_LIBRARY_PATH
  15380. shlibpath_overrides_runpath=yes
  15381. ;;
  15382. openbsd*)
  15383. version_type=sunos
  15384. need_lib_prefix=no
  15385. need_version=yes
  15386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15387. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15388. shlibpath_var=LD_LIBRARY_PATH
  15389. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15390. case $host_os in
  15391. openbsd2.[89] | openbsd2.[89].*)
  15392. shlibpath_overrides_runpath=no
  15393. ;;
  15394. *)
  15395. shlibpath_overrides_runpath=yes
  15396. ;;
  15397. esac
  15398. else
  15399. shlibpath_overrides_runpath=yes
  15400. fi
  15401. ;;
  15402. os2*)
  15403. libname_spec='$name'
  15404. shrext=".dll"
  15405. need_lib_prefix=no
  15406. library_names_spec='$libname${shared_ext} $libname.a'
  15407. dynamic_linker='OS/2 ld.exe'
  15408. shlibpath_var=LIBPATH
  15409. ;;
  15410. osf3* | osf4* | osf5*)
  15411. version_type=osf
  15412. need_lib_prefix=no
  15413. need_version=no
  15414. soname_spec='${libname}${release}${shared_ext}$major'
  15415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15416. shlibpath_var=LD_LIBRARY_PATH
  15417. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15418. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15419. ;;
  15420. sco3.2v5*)
  15421. version_type=osf
  15422. soname_spec='${libname}${release}${shared_ext}$major'
  15423. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15424. shlibpath_var=LD_LIBRARY_PATH
  15425. ;;
  15426. solaris*)
  15427. version_type=linux
  15428. need_lib_prefix=no
  15429. need_version=no
  15430. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15431. soname_spec='${libname}${release}${shared_ext}$major'
  15432. shlibpath_var=LD_LIBRARY_PATH
  15433. shlibpath_overrides_runpath=yes
  15434. hardcode_into_libs=yes
  15435. # ldd complains unless libraries are executable
  15436. postinstall_cmds='chmod +x $lib'
  15437. ;;
  15438. sunos4*)
  15439. version_type=sunos
  15440. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15441. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15442. shlibpath_var=LD_LIBRARY_PATH
  15443. shlibpath_overrides_runpath=yes
  15444. if test "$with_gnu_ld" = yes; then
  15445. need_lib_prefix=no
  15446. fi
  15447. need_version=yes
  15448. ;;
  15449. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  15450. version_type=linux
  15451. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15452. soname_spec='${libname}${release}${shared_ext}$major'
  15453. shlibpath_var=LD_LIBRARY_PATH
  15454. case $host_vendor in
  15455. sni)
  15456. shlibpath_overrides_runpath=no
  15457. need_lib_prefix=no
  15458. export_dynamic_flag_spec='${wl}-Blargedynsym'
  15459. runpath_var=LD_RUN_PATH
  15460. ;;
  15461. siemens)
  15462. need_lib_prefix=no
  15463. ;;
  15464. motorola)
  15465. need_lib_prefix=no
  15466. need_version=no
  15467. shlibpath_overrides_runpath=no
  15468. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15469. ;;
  15470. esac
  15471. ;;
  15472. sysv4*MP*)
  15473. if test -d /usr/nec ;then
  15474. version_type=linux
  15475. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15476. soname_spec='$libname${shared_ext}.$major'
  15477. shlibpath_var=LD_LIBRARY_PATH
  15478. fi
  15479. ;;
  15480. uts4*)
  15481. version_type=linux
  15482. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15483. soname_spec='${libname}${release}${shared_ext}$major'
  15484. shlibpath_var=LD_LIBRARY_PATH
  15485. ;;
  15486. *)
  15487. dynamic_linker=no
  15488. ;;
  15489. esac
  15490. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  15491. echo "${ECHO_T}$dynamic_linker" >&6
  15492. test "$dynamic_linker" = no && can_build_shared=no
  15493. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  15494. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  15495. hardcode_action_GCJ=
  15496. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  15497. test -n "$runpath_var GCJ" || \
  15498. test "X$hardcode_automatic_GCJ"="Xyes" ; then
  15499. # We can hardcode non-existant directories.
  15500. if test "$hardcode_direct_GCJ" != no &&
  15501. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15502. # have to relink, otherwise we might link with an installed library
  15503. # when we should be linking with a yet-to-be-installed one
  15504. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  15505. test "$hardcode_minus_L_GCJ" != no; then
  15506. # Linking always hardcodes the temporary library directory.
  15507. hardcode_action_GCJ=relink
  15508. else
  15509. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15510. hardcode_action_GCJ=immediate
  15511. fi
  15512. else
  15513. # We cannot hardcode anything, or else we can only hardcode existing
  15514. # directories.
  15515. hardcode_action_GCJ=unsupported
  15516. fi
  15517. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  15518. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  15519. if test "$hardcode_action_GCJ" = relink; then
  15520. # Fast installation is not supported
  15521. enable_fast_install=no
  15522. elif test "$shlibpath_overrides_runpath" = yes ||
  15523. test "$enable_shared" = no; then
  15524. # Fast installation is not necessary
  15525. enable_fast_install=needless
  15526. fi
  15527. striplib=
  15528. old_striplib=
  15529. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  15530. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  15531. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  15532. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  15533. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  15534. echo "$as_me:$LINENO: result: yes" >&5
  15535. echo "${ECHO_T}yes" >&6
  15536. else
  15537. # FIXME - insert some real tests, host_os isn't really good enough
  15538. case $host_os in
  15539. darwin*)
  15540. if test -n "$STRIP" ; then
  15541. striplib="$STRIP -x"
  15542. echo "$as_me:$LINENO: result: yes" >&5
  15543. echo "${ECHO_T}yes" >&6
  15544. else
  15545. echo "$as_me:$LINENO: result: no" >&5
  15546. echo "${ECHO_T}no" >&6
  15547. fi
  15548. ;;
  15549. *)
  15550. echo "$as_me:$LINENO: result: no" >&5
  15551. echo "${ECHO_T}no" >&6
  15552. ;;
  15553. esac
  15554. fi
  15555. if test "x$enable_dlopen" != xyes; then
  15556. enable_dlopen=unknown
  15557. enable_dlopen_self=unknown
  15558. enable_dlopen_self_static=unknown
  15559. else
  15560. lt_cv_dlopen=no
  15561. lt_cv_dlopen_libs=
  15562. case $host_os in
  15563. beos*)
  15564. lt_cv_dlopen="load_add_on"
  15565. lt_cv_dlopen_libs=
  15566. lt_cv_dlopen_self=yes
  15567. ;;
  15568. mingw* | pw32*)
  15569. lt_cv_dlopen="LoadLibrary"
  15570. lt_cv_dlopen_libs=
  15571. ;;
  15572. cygwin*)
  15573. lt_cv_dlopen="dlopen"
  15574. lt_cv_dlopen_libs=
  15575. ;;
  15576. darwin*)
  15577. # if libdl is installed we need to link against it
  15578. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  15579. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  15580. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  15581. echo $ECHO_N "(cached) $ECHO_C" >&6
  15582. else
  15583. ac_check_lib_save_LIBS=$LIBS
  15584. LIBS="-ldl $LIBS"
  15585. cat >conftest.$ac_ext <<_ACEOF
  15586. /* confdefs.h. */
  15587. _ACEOF
  15588. cat confdefs.h >>conftest.$ac_ext
  15589. cat >>conftest.$ac_ext <<_ACEOF
  15590. /* end confdefs.h. */
  15591. /* Override any gcc2 internal prototype to avoid an error. */
  15592. #ifdef __cplusplus
  15593. extern "C"
  15594. #endif
  15595. /* We use char because int might match the return type of a gcc2
  15596. builtin and then its argument prototype would still apply. */
  15597. char dlopen ();
  15598. int
  15599. main ()
  15600. {
  15601. dlopen ();
  15602. ;
  15603. return 0;
  15604. }
  15605. _ACEOF
  15606. rm -f conftest.$ac_objext conftest$ac_exeext
  15607. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15608. (eval $ac_link) 2>conftest.er1
  15609. ac_status=$?
  15610. grep -v '^ *+' conftest.er1 >conftest.err
  15611. rm -f conftest.er1
  15612. cat conftest.err >&5
  15613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15614. (exit $ac_status); } &&
  15615. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  15616. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15617. (eval $ac_try) 2>&5
  15618. ac_status=$?
  15619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15620. (exit $ac_status); }; } &&
  15621. { ac_try='test -s conftest$ac_exeext'
  15622. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15623. (eval $ac_try) 2>&5
  15624. ac_status=$?
  15625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15626. (exit $ac_status); }; }; then
  15627. ac_cv_lib_dl_dlopen=yes
  15628. else
  15629. echo "$as_me: failed program was:" >&5
  15630. sed 's/^/| /' conftest.$ac_ext >&5
  15631. ac_cv_lib_dl_dlopen=no
  15632. fi
  15633. rm -f conftest.err conftest.$ac_objext \
  15634. conftest$ac_exeext conftest.$ac_ext
  15635. LIBS=$ac_check_lib_save_LIBS
  15636. fi
  15637. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  15638. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  15639. if test $ac_cv_lib_dl_dlopen = yes; then
  15640. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  15641. else
  15642. lt_cv_dlopen="dyld"
  15643. lt_cv_dlopen_libs=
  15644. lt_cv_dlopen_self=yes
  15645. fi
  15646. ;;
  15647. *)
  15648. echo "$as_me:$LINENO: checking for shl_load" >&5
  15649. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  15650. if test "${ac_cv_func_shl_load+set}" = set; then
  15651. echo $ECHO_N "(cached) $ECHO_C" >&6
  15652. else
  15653. cat >conftest.$ac_ext <<_ACEOF
  15654. /* confdefs.h. */
  15655. _ACEOF
  15656. cat confdefs.h >>conftest.$ac_ext
  15657. cat >>conftest.$ac_ext <<_ACEOF
  15658. /* end confdefs.h. */
  15659. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  15660. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15661. #define shl_load innocuous_shl_load
  15662. /* System header to define __stub macros and hopefully few prototypes,
  15663. which can conflict with char shl_load (); below.
  15664. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15665. <limits.h> exists even on freestanding compilers. */
  15666. #ifdef __STDC__
  15667. # include <limits.h>
  15668. #else
  15669. # include <assert.h>
  15670. #endif
  15671. #undef shl_load
  15672. /* Override any gcc2 internal prototype to avoid an error. */
  15673. #ifdef __cplusplus
  15674. extern "C"
  15675. {
  15676. #endif
  15677. /* We use char because int might match the return type of a gcc2
  15678. builtin and then its argument prototype would still apply. */
  15679. char shl_load ();
  15680. /* The GNU C library defines this for functions which it implements
  15681. to always fail with ENOSYS. Some functions are actually named
  15682. something starting with __ and the normal name is an alias. */
  15683. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  15684. choke me
  15685. #else
  15686. char (*f) () = shl_load;
  15687. #endif
  15688. #ifdef __cplusplus
  15689. }
  15690. #endif
  15691. int
  15692. main ()
  15693. {
  15694. return f != shl_load;
  15695. ;
  15696. return 0;
  15697. }
  15698. _ACEOF
  15699. rm -f conftest.$ac_objext conftest$ac_exeext
  15700. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15701. (eval $ac_link) 2>conftest.er1
  15702. ac_status=$?
  15703. grep -v '^ *+' conftest.er1 >conftest.err
  15704. rm -f conftest.er1
  15705. cat conftest.err >&5
  15706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15707. (exit $ac_status); } &&
  15708. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  15709. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15710. (eval $ac_try) 2>&5
  15711. ac_status=$?
  15712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15713. (exit $ac_status); }; } &&
  15714. { ac_try='test -s conftest$ac_exeext'
  15715. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15716. (eval $ac_try) 2>&5
  15717. ac_status=$?
  15718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15719. (exit $ac_status); }; }; then
  15720. ac_cv_func_shl_load=yes
  15721. else
  15722. echo "$as_me: failed program was:" >&5
  15723. sed 's/^/| /' conftest.$ac_ext >&5
  15724. ac_cv_func_shl_load=no
  15725. fi
  15726. rm -f conftest.err conftest.$ac_objext \
  15727. conftest$ac_exeext conftest.$ac_ext
  15728. fi
  15729. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  15730. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  15731. if test $ac_cv_func_shl_load = yes; then
  15732. lt_cv_dlopen="shl_load"
  15733. else
  15734. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  15735. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  15736. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  15737. echo $ECHO_N "(cached) $ECHO_C" >&6
  15738. else
  15739. ac_check_lib_save_LIBS=$LIBS
  15740. LIBS="-ldld $LIBS"
  15741. cat >conftest.$ac_ext <<_ACEOF
  15742. /* confdefs.h. */
  15743. _ACEOF
  15744. cat confdefs.h >>conftest.$ac_ext
  15745. cat >>conftest.$ac_ext <<_ACEOF
  15746. /* end confdefs.h. */
  15747. /* Override any gcc2 internal prototype to avoid an error. */
  15748. #ifdef __cplusplus
  15749. extern "C"
  15750. #endif
  15751. /* We use char because int might match the return type of a gcc2
  15752. builtin and then its argument prototype would still apply. */
  15753. char shl_load ();
  15754. int
  15755. main ()
  15756. {
  15757. shl_load ();
  15758. ;
  15759. return 0;
  15760. }
  15761. _ACEOF
  15762. rm -f conftest.$ac_objext conftest$ac_exeext
  15763. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15764. (eval $ac_link) 2>conftest.er1
  15765. ac_status=$?
  15766. grep -v '^ *+' conftest.er1 >conftest.err
  15767. rm -f conftest.er1
  15768. cat conftest.err >&5
  15769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15770. (exit $ac_status); } &&
  15771. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  15772. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15773. (eval $ac_try) 2>&5
  15774. ac_status=$?
  15775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15776. (exit $ac_status); }; } &&
  15777. { ac_try='test -s conftest$ac_exeext'
  15778. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15779. (eval $ac_try) 2>&5
  15780. ac_status=$?
  15781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15782. (exit $ac_status); }; }; then
  15783. ac_cv_lib_dld_shl_load=yes
  15784. else
  15785. echo "$as_me: failed program was:" >&5
  15786. sed 's/^/| /' conftest.$ac_ext >&5
  15787. ac_cv_lib_dld_shl_load=no
  15788. fi
  15789. rm -f conftest.err conftest.$ac_objext \
  15790. conftest$ac_exeext conftest.$ac_ext
  15791. LIBS=$ac_check_lib_save_LIBS
  15792. fi
  15793. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  15794. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  15795. if test $ac_cv_lib_dld_shl_load = yes; then
  15796. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  15797. else
  15798. echo "$as_me:$LINENO: checking for dlopen" >&5
  15799. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  15800. if test "${ac_cv_func_dlopen+set}" = set; then
  15801. echo $ECHO_N "(cached) $ECHO_C" >&6
  15802. else
  15803. cat >conftest.$ac_ext <<_ACEOF
  15804. /* confdefs.h. */
  15805. _ACEOF
  15806. cat confdefs.h >>conftest.$ac_ext
  15807. cat >>conftest.$ac_ext <<_ACEOF
  15808. /* end confdefs.h. */
  15809. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  15810. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15811. #define dlopen innocuous_dlopen
  15812. /* System header to define __stub macros and hopefully few prototypes,
  15813. which can conflict with char dlopen (); below.
  15814. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15815. <limits.h> exists even on freestanding compilers. */
  15816. #ifdef __STDC__
  15817. # include <limits.h>
  15818. #else
  15819. # include <assert.h>
  15820. #endif
  15821. #undef dlopen
  15822. /* Override any gcc2 internal prototype to avoid an error. */
  15823. #ifdef __cplusplus
  15824. extern "C"
  15825. {
  15826. #endif
  15827. /* We use char because int might match the return type of a gcc2
  15828. builtin and then its argument prototype would still apply. */
  15829. char dlopen ();
  15830. /* The GNU C library defines this for functions which it implements
  15831. to always fail with ENOSYS. Some functions are actually named
  15832. something starting with __ and the normal name is an alias. */
  15833. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  15834. choke me
  15835. #else
  15836. char (*f) () = dlopen;
  15837. #endif
  15838. #ifdef __cplusplus
  15839. }
  15840. #endif
  15841. int
  15842. main ()
  15843. {
  15844. return f != dlopen;
  15845. ;
  15846. return 0;
  15847. }
  15848. _ACEOF
  15849. rm -f conftest.$ac_objext conftest$ac_exeext
  15850. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15851. (eval $ac_link) 2>conftest.er1
  15852. ac_status=$?
  15853. grep -v '^ *+' conftest.er1 >conftest.err
  15854. rm -f conftest.er1
  15855. cat conftest.err >&5
  15856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15857. (exit $ac_status); } &&
  15858. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  15859. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15860. (eval $ac_try) 2>&5
  15861. ac_status=$?
  15862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15863. (exit $ac_status); }; } &&
  15864. { ac_try='test -s conftest$ac_exeext'
  15865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15866. (eval $ac_try) 2>&5
  15867. ac_status=$?
  15868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15869. (exit $ac_status); }; }; then
  15870. ac_cv_func_dlopen=yes
  15871. else
  15872. echo "$as_me: failed program was:" >&5
  15873. sed 's/^/| /' conftest.$ac_ext >&5
  15874. ac_cv_func_dlopen=no
  15875. fi
  15876. rm -f conftest.err conftest.$ac_objext \
  15877. conftest$ac_exeext conftest.$ac_ext
  15878. fi
  15879. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  15880. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  15881. if test $ac_cv_func_dlopen = yes; then
  15882. lt_cv_dlopen="dlopen"
  15883. else
  15884. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  15885. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  15886. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  15887. echo $ECHO_N "(cached) $ECHO_C" >&6
  15888. else
  15889. ac_check_lib_save_LIBS=$LIBS
  15890. LIBS="-ldl $LIBS"
  15891. cat >conftest.$ac_ext <<_ACEOF
  15892. /* confdefs.h. */
  15893. _ACEOF
  15894. cat confdefs.h >>conftest.$ac_ext
  15895. cat >>conftest.$ac_ext <<_ACEOF
  15896. /* end confdefs.h. */
  15897. /* Override any gcc2 internal prototype to avoid an error. */
  15898. #ifdef __cplusplus
  15899. extern "C"
  15900. #endif
  15901. /* We use char because int might match the return type of a gcc2
  15902. builtin and then its argument prototype would still apply. */
  15903. char dlopen ();
  15904. int
  15905. main ()
  15906. {
  15907. dlopen ();
  15908. ;
  15909. return 0;
  15910. }
  15911. _ACEOF
  15912. rm -f conftest.$ac_objext conftest$ac_exeext
  15913. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15914. (eval $ac_link) 2>conftest.er1
  15915. ac_status=$?
  15916. grep -v '^ *+' conftest.er1 >conftest.err
  15917. rm -f conftest.er1
  15918. cat conftest.err >&5
  15919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15920. (exit $ac_status); } &&
  15921. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  15922. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15923. (eval $ac_try) 2>&5
  15924. ac_status=$?
  15925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15926. (exit $ac_status); }; } &&
  15927. { ac_try='test -s conftest$ac_exeext'
  15928. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15929. (eval $ac_try) 2>&5
  15930. ac_status=$?
  15931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15932. (exit $ac_status); }; }; then
  15933. ac_cv_lib_dl_dlopen=yes
  15934. else
  15935. echo "$as_me: failed program was:" >&5
  15936. sed 's/^/| /' conftest.$ac_ext >&5
  15937. ac_cv_lib_dl_dlopen=no
  15938. fi
  15939. rm -f conftest.err conftest.$ac_objext \
  15940. conftest$ac_exeext conftest.$ac_ext
  15941. LIBS=$ac_check_lib_save_LIBS
  15942. fi
  15943. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  15944. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  15945. if test $ac_cv_lib_dl_dlopen = yes; then
  15946. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  15947. else
  15948. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  15949. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  15950. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  15951. echo $ECHO_N "(cached) $ECHO_C" >&6
  15952. else
  15953. ac_check_lib_save_LIBS=$LIBS
  15954. LIBS="-lsvld $LIBS"
  15955. cat >conftest.$ac_ext <<_ACEOF
  15956. /* confdefs.h. */
  15957. _ACEOF
  15958. cat confdefs.h >>conftest.$ac_ext
  15959. cat >>conftest.$ac_ext <<_ACEOF
  15960. /* end confdefs.h. */
  15961. /* Override any gcc2 internal prototype to avoid an error. */
  15962. #ifdef __cplusplus
  15963. extern "C"
  15964. #endif
  15965. /* We use char because int might match the return type of a gcc2
  15966. builtin and then its argument prototype would still apply. */
  15967. char dlopen ();
  15968. int
  15969. main ()
  15970. {
  15971. dlopen ();
  15972. ;
  15973. return 0;
  15974. }
  15975. _ACEOF
  15976. rm -f conftest.$ac_objext conftest$ac_exeext
  15977. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15978. (eval $ac_link) 2>conftest.er1
  15979. ac_status=$?
  15980. grep -v '^ *+' conftest.er1 >conftest.err
  15981. rm -f conftest.er1
  15982. cat conftest.err >&5
  15983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15984. (exit $ac_status); } &&
  15985. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  15986. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15987. (eval $ac_try) 2>&5
  15988. ac_status=$?
  15989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15990. (exit $ac_status); }; } &&
  15991. { ac_try='test -s conftest$ac_exeext'
  15992. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15993. (eval $ac_try) 2>&5
  15994. ac_status=$?
  15995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15996. (exit $ac_status); }; }; then
  15997. ac_cv_lib_svld_dlopen=yes
  15998. else
  15999. echo "$as_me: failed program was:" >&5
  16000. sed 's/^/| /' conftest.$ac_ext >&5
  16001. ac_cv_lib_svld_dlopen=no
  16002. fi
  16003. rm -f conftest.err conftest.$ac_objext \
  16004. conftest$ac_exeext conftest.$ac_ext
  16005. LIBS=$ac_check_lib_save_LIBS
  16006. fi
  16007. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  16008. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  16009. if test $ac_cv_lib_svld_dlopen = yes; then
  16010. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  16011. else
  16012. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  16013. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  16014. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  16015. echo $ECHO_N "(cached) $ECHO_C" >&6
  16016. else
  16017. ac_check_lib_save_LIBS=$LIBS
  16018. LIBS="-ldld $LIBS"
  16019. cat >conftest.$ac_ext <<_ACEOF
  16020. /* confdefs.h. */
  16021. _ACEOF
  16022. cat confdefs.h >>conftest.$ac_ext
  16023. cat >>conftest.$ac_ext <<_ACEOF
  16024. /* end confdefs.h. */
  16025. /* Override any gcc2 internal prototype to avoid an error. */
  16026. #ifdef __cplusplus
  16027. extern "C"
  16028. #endif
  16029. /* We use char because int might match the return type of a gcc2
  16030. builtin and then its argument prototype would still apply. */
  16031. char dld_link ();
  16032. int
  16033. main ()
  16034. {
  16035. dld_link ();
  16036. ;
  16037. return 0;
  16038. }
  16039. _ACEOF
  16040. rm -f conftest.$ac_objext conftest$ac_exeext
  16041. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16042. (eval $ac_link) 2>conftest.er1
  16043. ac_status=$?
  16044. grep -v '^ *+' conftest.er1 >conftest.err
  16045. rm -f conftest.er1
  16046. cat conftest.err >&5
  16047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16048. (exit $ac_status); } &&
  16049. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  16050. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16051. (eval $ac_try) 2>&5
  16052. ac_status=$?
  16053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16054. (exit $ac_status); }; } &&
  16055. { ac_try='test -s conftest$ac_exeext'
  16056. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16057. (eval $ac_try) 2>&5
  16058. ac_status=$?
  16059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16060. (exit $ac_status); }; }; then
  16061. ac_cv_lib_dld_dld_link=yes
  16062. else
  16063. echo "$as_me: failed program was:" >&5
  16064. sed 's/^/| /' conftest.$ac_ext >&5
  16065. ac_cv_lib_dld_dld_link=no
  16066. fi
  16067. rm -f conftest.err conftest.$ac_objext \
  16068. conftest$ac_exeext conftest.$ac_ext
  16069. LIBS=$ac_check_lib_save_LIBS
  16070. fi
  16071. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  16072. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  16073. if test $ac_cv_lib_dld_dld_link = yes; then
  16074. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  16075. fi
  16076. fi
  16077. fi
  16078. fi
  16079. fi
  16080. fi
  16081. ;;
  16082. esac
  16083. if test "x$lt_cv_dlopen" != xno; then
  16084. enable_dlopen=yes
  16085. else
  16086. enable_dlopen=no
  16087. fi
  16088. case $lt_cv_dlopen in
  16089. dlopen)
  16090. save_CPPFLAGS="$CPPFLAGS"
  16091. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  16092. save_LDFLAGS="$LDFLAGS"
  16093. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  16094. save_LIBS="$LIBS"
  16095. LIBS="$lt_cv_dlopen_libs $LIBS"
  16096. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  16097. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  16098. if test "${lt_cv_dlopen_self+set}" = set; then
  16099. echo $ECHO_N "(cached) $ECHO_C" >&6
  16100. else
  16101. if test "$cross_compiling" = yes; then :
  16102. lt_cv_dlopen_self=cross
  16103. else
  16104. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  16105. lt_status=$lt_dlunknown
  16106. cat > conftest.$ac_ext <<EOF
  16107. #line 17914 "configure"
  16108. #include "confdefs.h"
  16109. #if HAVE_DLFCN_H
  16110. #include <dlfcn.h>
  16111. #endif
  16112. #include <stdio.h>
  16113. #ifdef RTLD_GLOBAL
  16114. # define LT_DLGLOBAL RTLD_GLOBAL
  16115. #else
  16116. # ifdef DL_GLOBAL
  16117. # define LT_DLGLOBAL DL_GLOBAL
  16118. # else
  16119. # define LT_DLGLOBAL 0
  16120. # endif
  16121. #endif
  16122. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  16123. find out it does not work in some platform. */
  16124. #ifndef LT_DLLAZY_OR_NOW
  16125. # ifdef RTLD_LAZY
  16126. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  16127. # else
  16128. # ifdef DL_LAZY
  16129. # define LT_DLLAZY_OR_NOW DL_LAZY
  16130. # else
  16131. # ifdef RTLD_NOW
  16132. # define LT_DLLAZY_OR_NOW RTLD_NOW
  16133. # else
  16134. # ifdef DL_NOW
  16135. # define LT_DLLAZY_OR_NOW DL_NOW
  16136. # else
  16137. # define LT_DLLAZY_OR_NOW 0
  16138. # endif
  16139. # endif
  16140. # endif
  16141. # endif
  16142. #endif
  16143. #ifdef __cplusplus
  16144. extern "C" void exit (int);
  16145. #endif
  16146. void fnord() { int i=42;}
  16147. int main ()
  16148. {
  16149. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  16150. int status = $lt_dlunknown;
  16151. if (self)
  16152. {
  16153. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  16154. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  16155. /* dlclose (self); */
  16156. }
  16157. exit (status);
  16158. }
  16159. EOF
  16160. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16161. (eval $ac_link) 2>&5
  16162. ac_status=$?
  16163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16164. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  16165. (./conftest; exit; ) 2>/dev/null
  16166. lt_status=$?
  16167. case x$lt_status in
  16168. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  16169. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  16170. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  16171. esac
  16172. else :
  16173. # compilation failed
  16174. lt_cv_dlopen_self=no
  16175. fi
  16176. fi
  16177. rm -fr conftest*
  16178. fi
  16179. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  16180. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  16181. if test "x$lt_cv_dlopen_self" = xyes; then
  16182. LDFLAGS="$LDFLAGS $link_static_flag"
  16183. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  16184. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  16185. if test "${lt_cv_dlopen_self_static+set}" = set; then
  16186. echo $ECHO_N "(cached) $ECHO_C" >&6
  16187. else
  16188. if test "$cross_compiling" = yes; then :
  16189. lt_cv_dlopen_self_static=cross
  16190. else
  16191. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  16192. lt_status=$lt_dlunknown
  16193. cat > conftest.$ac_ext <<EOF
  16194. #line 18012 "configure"
  16195. #include "confdefs.h"
  16196. #if HAVE_DLFCN_H
  16197. #include <dlfcn.h>
  16198. #endif
  16199. #include <stdio.h>
  16200. #ifdef RTLD_GLOBAL
  16201. # define LT_DLGLOBAL RTLD_GLOBAL
  16202. #else
  16203. # ifdef DL_GLOBAL
  16204. # define LT_DLGLOBAL DL_GLOBAL
  16205. # else
  16206. # define LT_DLGLOBAL 0
  16207. # endif
  16208. #endif
  16209. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  16210. find out it does not work in some platform. */
  16211. #ifndef LT_DLLAZY_OR_NOW
  16212. # ifdef RTLD_LAZY
  16213. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  16214. # else
  16215. # ifdef DL_LAZY
  16216. # define LT_DLLAZY_OR_NOW DL_LAZY
  16217. # else
  16218. # ifdef RTLD_NOW
  16219. # define LT_DLLAZY_OR_NOW RTLD_NOW
  16220. # else
  16221. # ifdef DL_NOW
  16222. # define LT_DLLAZY_OR_NOW DL_NOW
  16223. # else
  16224. # define LT_DLLAZY_OR_NOW 0
  16225. # endif
  16226. # endif
  16227. # endif
  16228. # endif
  16229. #endif
  16230. #ifdef __cplusplus
  16231. extern "C" void exit (int);
  16232. #endif
  16233. void fnord() { int i=42;}
  16234. int main ()
  16235. {
  16236. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  16237. int status = $lt_dlunknown;
  16238. if (self)
  16239. {
  16240. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  16241. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  16242. /* dlclose (self); */
  16243. }
  16244. exit (status);
  16245. }
  16246. EOF
  16247. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16248. (eval $ac_link) 2>&5
  16249. ac_status=$?
  16250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16251. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  16252. (./conftest; exit; ) 2>/dev/null
  16253. lt_status=$?
  16254. case x$lt_status in
  16255. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  16256. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  16257. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  16258. esac
  16259. else :
  16260. # compilation failed
  16261. lt_cv_dlopen_self_static=no
  16262. fi
  16263. fi
  16264. rm -fr conftest*
  16265. fi
  16266. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  16267. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  16268. fi
  16269. CPPFLAGS="$save_CPPFLAGS"
  16270. LDFLAGS="$save_LDFLAGS"
  16271. LIBS="$save_LIBS"
  16272. ;;
  16273. esac
  16274. case $lt_cv_dlopen_self in
  16275. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  16276. *) enable_dlopen_self=unknown ;;
  16277. esac
  16278. case $lt_cv_dlopen_self_static in
  16279. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  16280. *) enable_dlopen_self_static=unknown ;;
  16281. esac
  16282. fi
  16283. # The else clause should only fire when bootstrapping the
  16284. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16285. # with your package, and you will get complaints that there are
  16286. # no rules to generate ltmain.sh.
  16287. if test -f "$ltmain"; then
  16288. # See if we are running on zsh, and set the options which allow our commands through
  16289. # without removal of \ escapes.
  16290. if test -n "${ZSH_VERSION+set}" ; then
  16291. setopt NO_GLOB_SUBST
  16292. fi
  16293. # Now quote all the things that may contain metacharacters while being
  16294. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16295. # variables and quote the copies for generation of the libtool script.
  16296. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  16297. SED SHELL STRIP \
  16298. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16299. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16300. deplibs_check_method reload_flag reload_cmds need_locks \
  16301. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16302. lt_cv_sys_global_symbol_to_c_name_address \
  16303. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16304. old_postinstall_cmds old_postuninstall_cmds \
  16305. compiler_GCJ \
  16306. CC_GCJ \
  16307. LD_GCJ \
  16308. lt_prog_compiler_wl_GCJ \
  16309. lt_prog_compiler_pic_GCJ \
  16310. lt_prog_compiler_static_GCJ \
  16311. lt_prog_compiler_no_builtin_flag_GCJ \
  16312. export_dynamic_flag_spec_GCJ \
  16313. thread_safe_flag_spec_GCJ \
  16314. whole_archive_flag_spec_GCJ \
  16315. enable_shared_with_static_runtimes_GCJ \
  16316. old_archive_cmds_GCJ \
  16317. old_archive_from_new_cmds_GCJ \
  16318. predep_objects_GCJ \
  16319. postdep_objects_GCJ \
  16320. predeps_GCJ \
  16321. postdeps_GCJ \
  16322. compiler_lib_search_path_GCJ \
  16323. archive_cmds_GCJ \
  16324. archive_expsym_cmds_GCJ \
  16325. postinstall_cmds_GCJ \
  16326. postuninstall_cmds_GCJ \
  16327. old_archive_from_expsyms_cmds_GCJ \
  16328. allow_undefined_flag_GCJ \
  16329. no_undefined_flag_GCJ \
  16330. export_symbols_cmds_GCJ \
  16331. hardcode_libdir_flag_spec_GCJ \
  16332. hardcode_libdir_flag_spec_ld_GCJ \
  16333. hardcode_libdir_separator_GCJ \
  16334. hardcode_automatic_GCJ \
  16335. module_cmds_GCJ \
  16336. module_expsym_cmds_GCJ \
  16337. lt_cv_prog_compiler_c_o_GCJ \
  16338. exclude_expsyms_GCJ \
  16339. include_expsyms_GCJ; do
  16340. case $var in
  16341. old_archive_cmds_GCJ | \
  16342. old_archive_from_new_cmds_GCJ | \
  16343. archive_cmds_GCJ | \
  16344. archive_expsym_cmds_GCJ | \
  16345. module_cmds_GCJ | \
  16346. module_expsym_cmds_GCJ | \
  16347. old_archive_from_expsyms_cmds_GCJ | \
  16348. export_symbols_cmds_GCJ | \
  16349. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16350. postinstall_cmds | postuninstall_cmds | \
  16351. old_postinstall_cmds | old_postuninstall_cmds | \
  16352. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16353. # Double-quote double-evaled strings.
  16354. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16355. ;;
  16356. *)
  16357. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16358. ;;
  16359. esac
  16360. done
  16361. case $lt_echo in
  16362. *'\$0 --fallback-echo"')
  16363. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16364. ;;
  16365. esac
  16366. cfgfile="$ofile"
  16367. cat <<__EOF__ >> "$cfgfile"
  16368. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16369. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16370. # Shell to use when invoking shell scripts.
  16371. SHELL=$lt_SHELL
  16372. # Whether or not to build shared libraries.
  16373. build_libtool_libs=$enable_shared
  16374. # Whether or not to build static libraries.
  16375. build_old_libs=$enable_static
  16376. # Whether or not to add -lc for building shared libraries.
  16377. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16378. # Whether or not to disallow shared libs when runtime libs are static
  16379. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16380. # Whether or not to optimize for fast installation.
  16381. fast_install=$enable_fast_install
  16382. # The host system.
  16383. host_alias=$host_alias
  16384. host=$host
  16385. # An echo program that does not interpret backslashes.
  16386. echo=$lt_echo
  16387. # The archiver.
  16388. AR=$lt_AR
  16389. AR_FLAGS=$lt_AR_FLAGS
  16390. # A C compiler.
  16391. LTCC=$lt_LTCC
  16392. # A language-specific compiler.
  16393. CC=$lt_compiler_GCJ
  16394. # Is the compiler the GNU C compiler?
  16395. with_gcc=$GCC_GCJ
  16396. # An ERE matcher.
  16397. EGREP=$lt_EGREP
  16398. # The linker used to build libraries.
  16399. LD=$lt_LD_GCJ
  16400. # Whether we need hard or soft links.
  16401. LN_S=$lt_LN_S
  16402. # A BSD-compatible nm program.
  16403. NM=$lt_NM
  16404. # A symbol stripping program
  16405. STRIP=$lt_STRIP
  16406. # Used to examine libraries when file_magic_cmd begins "file"
  16407. MAGIC_CMD=$MAGIC_CMD
  16408. # Used on cygwin: DLL creation program.
  16409. DLLTOOL="$DLLTOOL"
  16410. # Used on cygwin: object dumper.
  16411. OBJDUMP="$OBJDUMP"
  16412. # Used on cygwin: assembler.
  16413. AS="$AS"
  16414. # The name of the directory that contains temporary libtool files.
  16415. objdir=$objdir
  16416. # How to create reloadable object files.
  16417. reload_flag=$lt_reload_flag
  16418. reload_cmds=$lt_reload_cmds
  16419. # How to pass a linker flag through the compiler.
  16420. wl=$lt_lt_prog_compiler_wl_GCJ
  16421. # Object file suffix (normally "o").
  16422. objext="$ac_objext"
  16423. # Old archive suffix (normally "a").
  16424. libext="$libext"
  16425. # Shared library suffix (normally ".so").
  16426. shrext='$shrext'
  16427. # Executable file suffix (normally "").
  16428. exeext="$exeext"
  16429. # Additional compiler flags for building library objects.
  16430. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16431. pic_mode=$pic_mode
  16432. # What is the maximum length of a command?
  16433. max_cmd_len=$lt_cv_sys_max_cmd_len
  16434. # Does compiler simultaneously support -c and -o options?
  16435. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16436. # Must we lock files when doing compilation ?
  16437. need_locks=$lt_need_locks
  16438. # Do we need the lib prefix for modules?
  16439. need_lib_prefix=$need_lib_prefix
  16440. # Do we need a version for libraries?
  16441. need_version=$need_version
  16442. # Whether dlopen is supported.
  16443. dlopen_support=$enable_dlopen
  16444. # Whether dlopen of programs is supported.
  16445. dlopen_self=$enable_dlopen_self
  16446. # Whether dlopen of statically linked programs is supported.
  16447. dlopen_self_static=$enable_dlopen_self_static
  16448. # Compiler flag to prevent dynamic linking.
  16449. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16450. # Compiler flag to turn off builtin functions.
  16451. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16452. # Compiler flag to allow reflexive dlopens.
  16453. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16454. # Compiler flag to generate shared objects directly from archives.
  16455. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16456. # Compiler flag to generate thread-safe objects.
  16457. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16458. # Library versioning type.
  16459. version_type=$version_type
  16460. # Format of library name prefix.
  16461. libname_spec=$lt_libname_spec
  16462. # List of archive names. First name is the real one, the rest are links.
  16463. # The last name is the one that the linker finds with -lNAME.
  16464. library_names_spec=$lt_library_names_spec
  16465. # The coded name of the library, if different from the real name.
  16466. soname_spec=$lt_soname_spec
  16467. # Commands used to build and install an old-style archive.
  16468. RANLIB=$lt_RANLIB
  16469. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16470. old_postinstall_cmds=$lt_old_postinstall_cmds
  16471. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16472. # Create an old-style archive from a shared archive.
  16473. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16474. # Create a temporary old-style archive to link instead of a shared archive.
  16475. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16476. # Commands used to build and install a shared archive.
  16477. archive_cmds=$lt_archive_cmds_GCJ
  16478. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16479. postinstall_cmds=$lt_postinstall_cmds
  16480. postuninstall_cmds=$lt_postuninstall_cmds
  16481. # Commands used to build a loadable module (assumed same as above if empty)
  16482. module_cmds=$lt_module_cmds_GCJ
  16483. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16484. # Commands to strip libraries.
  16485. old_striplib=$lt_old_striplib
  16486. striplib=$lt_striplib
  16487. # Dependencies to place before the objects being linked to create a
  16488. # shared library.
  16489. predep_objects=$lt_predep_objects_GCJ
  16490. # Dependencies to place after the objects being linked to create a
  16491. # shared library.
  16492. postdep_objects=$lt_postdep_objects_GCJ
  16493. # Dependencies to place before the objects being linked to create a
  16494. # shared library.
  16495. predeps=$lt_predeps_GCJ
  16496. # Dependencies to place after the objects being linked to create a
  16497. # shared library.
  16498. postdeps=$lt_postdeps_GCJ
  16499. # The library search path used internally by the compiler when linking
  16500. # a shared library.
  16501. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  16502. # Method to check whether dependent libraries are shared objects.
  16503. deplibs_check_method=$lt_deplibs_check_method
  16504. # Command to use when deplibs_check_method == file_magic.
  16505. file_magic_cmd=$lt_file_magic_cmd
  16506. # Flag that allows shared libraries with undefined symbols to be built.
  16507. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16508. # Flag that forces no undefined symbols.
  16509. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16510. # Commands used to finish a libtool library installation in a directory.
  16511. finish_cmds=$lt_finish_cmds
  16512. # Same as above, but a single script fragment to be evaled but not shown.
  16513. finish_eval=$lt_finish_eval
  16514. # Take the output of nm and produce a listing of raw symbols and C names.
  16515. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16516. # Transform the output of nm in a proper C declaration
  16517. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16518. # Transform the output of nm in a C name address pair
  16519. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16520. # This is the shared library runtime path variable.
  16521. runpath_var=$runpath_var
  16522. # This is the shared library path variable.
  16523. shlibpath_var=$shlibpath_var
  16524. # Is shlibpath searched before the hard-coded library search path?
  16525. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16526. # How to hardcode a shared library path into an executable.
  16527. hardcode_action=$hardcode_action_GCJ
  16528. # Whether we should hardcode library paths into libraries.
  16529. hardcode_into_libs=$hardcode_into_libs
  16530. # Flag to hardcode \$libdir into a binary during linking.
  16531. # This must work even if \$libdir does not exist.
  16532. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16533. # If ld is used when linking, flag to hardcode \$libdir into
  16534. # a binary during linking. This must work even if \$libdir does
  16535. # not exist.
  16536. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16537. # Whether we need a single -rpath flag with a separated argument.
  16538. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16539. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16540. # resulting binary.
  16541. hardcode_direct=$hardcode_direct_GCJ
  16542. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16543. # resulting binary.
  16544. hardcode_minus_L=$hardcode_minus_L_GCJ
  16545. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16546. # the resulting binary.
  16547. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16548. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16549. # and all subsequent libraries and executables linked against it.
  16550. hardcode_automatic=$hardcode_automatic_GCJ
  16551. # Variables whose values should be saved in libtool wrapper scripts and
  16552. # restored at relink time.
  16553. variables_saved_for_relink="$variables_saved_for_relink"
  16554. # Whether libtool must link a program against all its dependency libraries.
  16555. link_all_deplibs=$link_all_deplibs_GCJ
  16556. # Compile-time system search path for libraries
  16557. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16558. # Run-time system search path for libraries
  16559. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16560. # Fix the shell variable \$srcfile for the compiler.
  16561. fix_srcfile_path="$fix_srcfile_path_GCJ"
  16562. # Set to yes if exported symbols are required.
  16563. always_export_symbols=$always_export_symbols_GCJ
  16564. # The commands to list exported symbols.
  16565. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16566. # The commands to extract the exported symbol list from a shared archive.
  16567. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16568. # Symbols that should not be listed in the preloaded symbols.
  16569. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16570. # Symbols that must always be exported.
  16571. include_expsyms=$lt_include_expsyms_GCJ
  16572. # ### END LIBTOOL TAG CONFIG: $tagname
  16573. __EOF__
  16574. else
  16575. # If there is no Makefile yet, we rely on a make rule to execute
  16576. # `config.status --recheck' to rerun these tests and create the
  16577. # libtool script then.
  16578. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16579. if test -f "$ltmain_in"; then
  16580. test -f Makefile && make "$ltmain"
  16581. fi
  16582. fi
  16583. ac_ext=c
  16584. ac_cpp='$CPP $CPPFLAGS'
  16585. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16586. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16587. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16588. CC="$lt_save_CC"
  16589. else
  16590. tagname=""
  16591. fi
  16592. ;;
  16593. RC)
  16594. # Source file extension for RC test sources.
  16595. ac_ext=rc
  16596. # Object file extension for compiled RC test sources.
  16597. objext=o
  16598. objext_RC=$objext
  16599. # Code to be used in simple compile tests
  16600. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  16601. # Code to be used in simple link tests
  16602. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16603. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16604. # If no C compiler was specified, use CC.
  16605. LTCC=${LTCC-"$CC"}
  16606. # Allow CC to be a program name with arguments.
  16607. compiler=$CC
  16608. # Allow CC to be a program name with arguments.
  16609. lt_save_CC="$CC"
  16610. CC=${RC-"windres"}
  16611. compiler=$CC
  16612. compiler_RC=$CC
  16613. lt_cv_prog_compiler_c_o_RC=yes
  16614. # The else clause should only fire when bootstrapping the
  16615. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16616. # with your package, and you will get complaints that there are
  16617. # no rules to generate ltmain.sh.
  16618. if test -f "$ltmain"; then
  16619. # See if we are running on zsh, and set the options which allow our commands through
  16620. # without removal of \ escapes.
  16621. if test -n "${ZSH_VERSION+set}" ; then
  16622. setopt NO_GLOB_SUBST
  16623. fi
  16624. # Now quote all the things that may contain metacharacters while being
  16625. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16626. # variables and quote the copies for generation of the libtool script.
  16627. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  16628. SED SHELL STRIP \
  16629. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16630. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16631. deplibs_check_method reload_flag reload_cmds need_locks \
  16632. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16633. lt_cv_sys_global_symbol_to_c_name_address \
  16634. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16635. old_postinstall_cmds old_postuninstall_cmds \
  16636. compiler_RC \
  16637. CC_RC \
  16638. LD_RC \
  16639. lt_prog_compiler_wl_RC \
  16640. lt_prog_compiler_pic_RC \
  16641. lt_prog_compiler_static_RC \
  16642. lt_prog_compiler_no_builtin_flag_RC \
  16643. export_dynamic_flag_spec_RC \
  16644. thread_safe_flag_spec_RC \
  16645. whole_archive_flag_spec_RC \
  16646. enable_shared_with_static_runtimes_RC \
  16647. old_archive_cmds_RC \
  16648. old_archive_from_new_cmds_RC \
  16649. predep_objects_RC \
  16650. postdep_objects_RC \
  16651. predeps_RC \
  16652. postdeps_RC \
  16653. compiler_lib_search_path_RC \
  16654. archive_cmds_RC \
  16655. archive_expsym_cmds_RC \
  16656. postinstall_cmds_RC \
  16657. postuninstall_cmds_RC \
  16658. old_archive_from_expsyms_cmds_RC \
  16659. allow_undefined_flag_RC \
  16660. no_undefined_flag_RC \
  16661. export_symbols_cmds_RC \
  16662. hardcode_libdir_flag_spec_RC \
  16663. hardcode_libdir_flag_spec_ld_RC \
  16664. hardcode_libdir_separator_RC \
  16665. hardcode_automatic_RC \
  16666. module_cmds_RC \
  16667. module_expsym_cmds_RC \
  16668. lt_cv_prog_compiler_c_o_RC \
  16669. exclude_expsyms_RC \
  16670. include_expsyms_RC; do
  16671. case $var in
  16672. old_archive_cmds_RC | \
  16673. old_archive_from_new_cmds_RC | \
  16674. archive_cmds_RC | \
  16675. archive_expsym_cmds_RC | \
  16676. module_cmds_RC | \
  16677. module_expsym_cmds_RC | \
  16678. old_archive_from_expsyms_cmds_RC | \
  16679. export_symbols_cmds_RC | \
  16680. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16681. postinstall_cmds | postuninstall_cmds | \
  16682. old_postinstall_cmds | old_postuninstall_cmds | \
  16683. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16684. # Double-quote double-evaled strings.
  16685. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16686. ;;
  16687. *)
  16688. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16689. ;;
  16690. esac
  16691. done
  16692. case $lt_echo in
  16693. *'\$0 --fallback-echo"')
  16694. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16695. ;;
  16696. esac
  16697. cfgfile="$ofile"
  16698. cat <<__EOF__ >> "$cfgfile"
  16699. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16700. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16701. # Shell to use when invoking shell scripts.
  16702. SHELL=$lt_SHELL
  16703. # Whether or not to build shared libraries.
  16704. build_libtool_libs=$enable_shared
  16705. # Whether or not to build static libraries.
  16706. build_old_libs=$enable_static
  16707. # Whether or not to add -lc for building shared libraries.
  16708. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16709. # Whether or not to disallow shared libs when runtime libs are static
  16710. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16711. # Whether or not to optimize for fast installation.
  16712. fast_install=$enable_fast_install
  16713. # The host system.
  16714. host_alias=$host_alias
  16715. host=$host
  16716. # An echo program that does not interpret backslashes.
  16717. echo=$lt_echo
  16718. # The archiver.
  16719. AR=$lt_AR
  16720. AR_FLAGS=$lt_AR_FLAGS
  16721. # A C compiler.
  16722. LTCC=$lt_LTCC
  16723. # A language-specific compiler.
  16724. CC=$lt_compiler_RC
  16725. # Is the compiler the GNU C compiler?
  16726. with_gcc=$GCC_RC
  16727. # An ERE matcher.
  16728. EGREP=$lt_EGREP
  16729. # The linker used to build libraries.
  16730. LD=$lt_LD_RC
  16731. # Whether we need hard or soft links.
  16732. LN_S=$lt_LN_S
  16733. # A BSD-compatible nm program.
  16734. NM=$lt_NM
  16735. # A symbol stripping program
  16736. STRIP=$lt_STRIP
  16737. # Used to examine libraries when file_magic_cmd begins "file"
  16738. MAGIC_CMD=$MAGIC_CMD
  16739. # Used on cygwin: DLL creation program.
  16740. DLLTOOL="$DLLTOOL"
  16741. # Used on cygwin: object dumper.
  16742. OBJDUMP="$OBJDUMP"
  16743. # Used on cygwin: assembler.
  16744. AS="$AS"
  16745. # The name of the directory that contains temporary libtool files.
  16746. objdir=$objdir
  16747. # How to create reloadable object files.
  16748. reload_flag=$lt_reload_flag
  16749. reload_cmds=$lt_reload_cmds
  16750. # How to pass a linker flag through the compiler.
  16751. wl=$lt_lt_prog_compiler_wl_RC
  16752. # Object file suffix (normally "o").
  16753. objext="$ac_objext"
  16754. # Old archive suffix (normally "a").
  16755. libext="$libext"
  16756. # Shared library suffix (normally ".so").
  16757. shrext='$shrext'
  16758. # Executable file suffix (normally "").
  16759. exeext="$exeext"
  16760. # Additional compiler flags for building library objects.
  16761. pic_flag=$lt_lt_prog_compiler_pic_RC
  16762. pic_mode=$pic_mode
  16763. # What is the maximum length of a command?
  16764. max_cmd_len=$lt_cv_sys_max_cmd_len
  16765. # Does compiler simultaneously support -c and -o options?
  16766. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  16767. # Must we lock files when doing compilation ?
  16768. need_locks=$lt_need_locks
  16769. # Do we need the lib prefix for modules?
  16770. need_lib_prefix=$need_lib_prefix
  16771. # Do we need a version for libraries?
  16772. need_version=$need_version
  16773. # Whether dlopen is supported.
  16774. dlopen_support=$enable_dlopen
  16775. # Whether dlopen of programs is supported.
  16776. dlopen_self=$enable_dlopen_self
  16777. # Whether dlopen of statically linked programs is supported.
  16778. dlopen_self_static=$enable_dlopen_self_static
  16779. # Compiler flag to prevent dynamic linking.
  16780. link_static_flag=$lt_lt_prog_compiler_static_RC
  16781. # Compiler flag to turn off builtin functions.
  16782. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  16783. # Compiler flag to allow reflexive dlopens.
  16784. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  16785. # Compiler flag to generate shared objects directly from archives.
  16786. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  16787. # Compiler flag to generate thread-safe objects.
  16788. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  16789. # Library versioning type.
  16790. version_type=$version_type
  16791. # Format of library name prefix.
  16792. libname_spec=$lt_libname_spec
  16793. # List of archive names. First name is the real one, the rest are links.
  16794. # The last name is the one that the linker finds with -lNAME.
  16795. library_names_spec=$lt_library_names_spec
  16796. # The coded name of the library, if different from the real name.
  16797. soname_spec=$lt_soname_spec
  16798. # Commands used to build and install an old-style archive.
  16799. RANLIB=$lt_RANLIB
  16800. old_archive_cmds=$lt_old_archive_cmds_RC
  16801. old_postinstall_cmds=$lt_old_postinstall_cmds
  16802. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16803. # Create an old-style archive from a shared archive.
  16804. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  16805. # Create a temporary old-style archive to link instead of a shared archive.
  16806. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  16807. # Commands used to build and install a shared archive.
  16808. archive_cmds=$lt_archive_cmds_RC
  16809. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  16810. postinstall_cmds=$lt_postinstall_cmds
  16811. postuninstall_cmds=$lt_postuninstall_cmds
  16812. # Commands used to build a loadable module (assumed same as above if empty)
  16813. module_cmds=$lt_module_cmds_RC
  16814. module_expsym_cmds=$lt_module_expsym_cmds_RC
  16815. # Commands to strip libraries.
  16816. old_striplib=$lt_old_striplib
  16817. striplib=$lt_striplib
  16818. # Dependencies to place before the objects being linked to create a
  16819. # shared library.
  16820. predep_objects=$lt_predep_objects_RC
  16821. # Dependencies to place after the objects being linked to create a
  16822. # shared library.
  16823. postdep_objects=$lt_postdep_objects_RC
  16824. # Dependencies to place before the objects being linked to create a
  16825. # shared library.
  16826. predeps=$lt_predeps_RC
  16827. # Dependencies to place after the objects being linked to create a
  16828. # shared library.
  16829. postdeps=$lt_postdeps_RC
  16830. # The library search path used internally by the compiler when linking
  16831. # a shared library.
  16832. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  16833. # Method to check whether dependent libraries are shared objects.
  16834. deplibs_check_method=$lt_deplibs_check_method
  16835. # Command to use when deplibs_check_method == file_magic.
  16836. file_magic_cmd=$lt_file_magic_cmd
  16837. # Flag that allows shared libraries with undefined symbols to be built.
  16838. allow_undefined_flag=$lt_allow_undefined_flag_RC
  16839. # Flag that forces no undefined symbols.
  16840. no_undefined_flag=$lt_no_undefined_flag_RC
  16841. # Commands used to finish a libtool library installation in a directory.
  16842. finish_cmds=$lt_finish_cmds
  16843. # Same as above, but a single script fragment to be evaled but not shown.
  16844. finish_eval=$lt_finish_eval
  16845. # Take the output of nm and produce a listing of raw symbols and C names.
  16846. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16847. # Transform the output of nm in a proper C declaration
  16848. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16849. # Transform the output of nm in a C name address pair
  16850. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16851. # This is the shared library runtime path variable.
  16852. runpath_var=$runpath_var
  16853. # This is the shared library path variable.
  16854. shlibpath_var=$shlibpath_var
  16855. # Is shlibpath searched before the hard-coded library search path?
  16856. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16857. # How to hardcode a shared library path into an executable.
  16858. hardcode_action=$hardcode_action_RC
  16859. # Whether we should hardcode library paths into libraries.
  16860. hardcode_into_libs=$hardcode_into_libs
  16861. # Flag to hardcode \$libdir into a binary during linking.
  16862. # This must work even if \$libdir does not exist.
  16863. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  16864. # If ld is used when linking, flag to hardcode \$libdir into
  16865. # a binary during linking. This must work even if \$libdir does
  16866. # not exist.
  16867. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  16868. # Whether we need a single -rpath flag with a separated argument.
  16869. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  16870. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16871. # resulting binary.
  16872. hardcode_direct=$hardcode_direct_RC
  16873. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16874. # resulting binary.
  16875. hardcode_minus_L=$hardcode_minus_L_RC
  16876. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16877. # the resulting binary.
  16878. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  16879. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16880. # and all subsequent libraries and executables linked against it.
  16881. hardcode_automatic=$hardcode_automatic_RC
  16882. # Variables whose values should be saved in libtool wrapper scripts and
  16883. # restored at relink time.
  16884. variables_saved_for_relink="$variables_saved_for_relink"
  16885. # Whether libtool must link a program against all its dependency libraries.
  16886. link_all_deplibs=$link_all_deplibs_RC
  16887. # Compile-time system search path for libraries
  16888. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16889. # Run-time system search path for libraries
  16890. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16891. # Fix the shell variable \$srcfile for the compiler.
  16892. fix_srcfile_path="$fix_srcfile_path_RC"
  16893. # Set to yes if exported symbols are required.
  16894. always_export_symbols=$always_export_symbols_RC
  16895. # The commands to list exported symbols.
  16896. export_symbols_cmds=$lt_export_symbols_cmds_RC
  16897. # The commands to extract the exported symbol list from a shared archive.
  16898. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16899. # Symbols that should not be listed in the preloaded symbols.
  16900. exclude_expsyms=$lt_exclude_expsyms_RC
  16901. # Symbols that must always be exported.
  16902. include_expsyms=$lt_include_expsyms_RC
  16903. # ### END LIBTOOL TAG CONFIG: $tagname
  16904. __EOF__
  16905. else
  16906. # If there is no Makefile yet, we rely on a make rule to execute
  16907. # `config.status --recheck' to rerun these tests and create the
  16908. # libtool script then.
  16909. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16910. if test -f "$ltmain_in"; then
  16911. test -f Makefile && make "$ltmain"
  16912. fi
  16913. fi
  16914. ac_ext=c
  16915. ac_cpp='$CPP $CPPFLAGS'
  16916. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16917. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16918. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16919. CC="$lt_save_CC"
  16920. ;;
  16921. *)
  16922. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  16923. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  16924. { (exit 1); exit 1; }; }
  16925. ;;
  16926. esac
  16927. # Append the new tag name to the list of available tags.
  16928. if test -n "$tagname" ; then
  16929. available_tags="$available_tags $tagname"
  16930. fi
  16931. fi
  16932. done
  16933. IFS="$lt_save_ifs"
  16934. # Now substitute the updated list of available tags.
  16935. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  16936. mv "${ofile}T" "$ofile"
  16937. chmod +x "$ofile"
  16938. else
  16939. rm -f "${ofile}T"
  16940. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  16941. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  16942. { (exit 1); exit 1; }; }
  16943. fi
  16944. fi
  16945. # This can be used to rebuild libtool when needed
  16946. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  16947. # Always use our own libtool.
  16948. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  16949. # Prevent multiple expansion
  16950. arch=""
  16951. debug=""
  16952. optimize=""
  16953. profile=""
  16954. set -- $CFLAGS
  16955. CFLAGS=""
  16956. if test "$GCC" = yes
  16957. then
  16958. CFLAGS="-Wall"
  16959. fi
  16960. while test $# -gt 0
  16961. do
  16962. case "$1" in
  16963. -Wall)
  16964. if test "$GCC" = yes
  16965. then
  16966. :
  16967. else
  16968. CFLAGS="$CFLAGS $1"
  16969. fi
  16970. shift
  16971. ;;
  16972. -g)
  16973. debug="-g"
  16974. shift
  16975. ;;
  16976. -mno-cygwin)
  16977. shift
  16978. ;;
  16979. -m*)
  16980. arch="$arch $1"
  16981. shift
  16982. ;;
  16983. -O2)
  16984. optimize="-O"
  16985. shift
  16986. ;;
  16987. -fomit-frame-pointer)
  16988. shift
  16989. ;;
  16990. -O*|-f*)
  16991. optimize="$optimize $1"
  16992. shift
  16993. ;;
  16994. *)
  16995. CFLAGS="$CFLAGS $1"
  16996. shift
  16997. ;;
  16998. esac
  16999. done
  17000. if test "$GCC" = yes
  17001. then
  17002. if test -z "$arch"
  17003. then
  17004. case "$host" in
  17005. i386-*) ;;
  17006. i?86-*) arch="-march=i486" ;;
  17007. arm*-empeg-*) arch="-march=armv4 -mtune=strongarm1100" ;;
  17008. armv4*-*) arch="-march=armv4 -mtune=strongarm" ;;
  17009. powerpc-*) ;;
  17010. mips*-agenda-*) arch="-mcpu=vr4100" ;;
  17011. mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;;
  17012. esac
  17013. fi
  17014. case "$optimize" in
  17015. -O|"-O "*)
  17016. optimize="-O"
  17017. optimize="$optimize -fforce-mem"
  17018. optimize="$optimize -fforce-addr"
  17019. : #x optimize="$optimize -finline-functions"
  17020. : #- optimize="$optimize -fstrength-reduce"
  17021. optimize="$optimize -fthread-jumps"
  17022. optimize="$optimize -fcse-follow-jumps"
  17023. optimize="$optimize -fcse-skip-blocks"
  17024. : #x optimize="$optimize -frerun-cse-after-loop"
  17025. : #x optimize="$optimize -frerun-loop-opt"
  17026. : #x optimize="$optimize -fgcse"
  17027. optimize="$optimize -fexpensive-optimizations"
  17028. optimize="$optimize -fregmove"
  17029. : #* optimize="$optimize -fdelayed-branch"
  17030. : #x optimize="$optimize -fschedule-insns"
  17031. optimize="$optimize -fschedule-insns2"
  17032. : #? optimize="$optimize -ffunction-sections"
  17033. : #? optimize="$optimize -fcaller-saves"
  17034. : #> optimize="$optimize -funroll-loops"
  17035. : #> optimize="$optimize -funroll-all-loops"
  17036. : #x optimize="$optimize -fmove-all-movables"
  17037. : #x optimize="$optimize -freduce-all-givs"
  17038. : #? optimize="$optimize -fstrict-aliasing"
  17039. : #* optimize="$optimize -fstructure-noalias"
  17040. case "$host" in
  17041. arm*-*)
  17042. optimize="$optimize -fstrength-reduce"
  17043. ;;
  17044. mips*-*)
  17045. optimize="$optimize -fstrength-reduce"
  17046. optimize="$optimize -finline-functions"
  17047. ;;
  17048. i?86-*)
  17049. optimize="$optimize -fstrength-reduce"
  17050. ;;
  17051. powerpc-apple-*)
  17052. # this triggers an internal compiler error with gcc2
  17053. : #optimize="$optimize -fstrength-reduce"
  17054. # this is really only beneficial with gcc3
  17055. : #optimize="$optimize -finline-functions"
  17056. ;;
  17057. *)
  17058. # this sometimes provokes bugs in gcc 2.95.2
  17059. : #optimize="$optimize -fstrength-reduce"
  17060. ;;
  17061. esac
  17062. ;;
  17063. esac
  17064. fi
  17065. case "$host" in
  17066. mips*-agenda-*)
  17067. cat >>confdefs.h <<\_ACEOF
  17068. #define HAVE_MADD16_ASM 1
  17069. _ACEOF
  17070. ;;
  17071. mips*-luxsonor-*)
  17072. cat >>confdefs.h <<\_ACEOF
  17073. #define HAVE_MADD_ASM 1
  17074. _ACEOF
  17075. ;;
  17076. esac
  17077. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  17078. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  17079. if test "${ac_cv_header_stdc+set}" = set; then
  17080. echo $ECHO_N "(cached) $ECHO_C" >&6
  17081. else
  17082. cat >conftest.$ac_ext <<_ACEOF
  17083. /* confdefs.h. */
  17084. _ACEOF
  17085. cat confdefs.h >>conftest.$ac_ext
  17086. cat >>conftest.$ac_ext <<_ACEOF
  17087. /* end confdefs.h. */
  17088. #include <stdlib.h>
  17089. #include <stdarg.h>
  17090. #include <string.h>
  17091. #include <float.h>
  17092. int
  17093. main ()
  17094. {
  17095. ;
  17096. return 0;
  17097. }
  17098. _ACEOF
  17099. rm -f conftest.$ac_objext
  17100. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17101. (eval $ac_compile) 2>conftest.er1
  17102. ac_status=$?
  17103. grep -v '^ *+' conftest.er1 >conftest.err
  17104. rm -f conftest.er1
  17105. cat conftest.err >&5
  17106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17107. (exit $ac_status); } &&
  17108. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17109. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17110. (eval $ac_try) 2>&5
  17111. ac_status=$?
  17112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17113. (exit $ac_status); }; } &&
  17114. { ac_try='test -s conftest.$ac_objext'
  17115. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17116. (eval $ac_try) 2>&5
  17117. ac_status=$?
  17118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17119. (exit $ac_status); }; }; then
  17120. ac_cv_header_stdc=yes
  17121. else
  17122. echo "$as_me: failed program was:" >&5
  17123. sed 's/^/| /' conftest.$ac_ext >&5
  17124. ac_cv_header_stdc=no
  17125. fi
  17126. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17127. if test $ac_cv_header_stdc = yes; then
  17128. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17129. cat >conftest.$ac_ext <<_ACEOF
  17130. /* confdefs.h. */
  17131. _ACEOF
  17132. cat confdefs.h >>conftest.$ac_ext
  17133. cat >>conftest.$ac_ext <<_ACEOF
  17134. /* end confdefs.h. */
  17135. #include <string.h>
  17136. _ACEOF
  17137. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17138. $EGREP "memchr" >/dev/null 2>&1; then
  17139. :
  17140. else
  17141. ac_cv_header_stdc=no
  17142. fi
  17143. rm -f conftest*
  17144. fi
  17145. if test $ac_cv_header_stdc = yes; then
  17146. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17147. cat >conftest.$ac_ext <<_ACEOF
  17148. /* confdefs.h. */
  17149. _ACEOF
  17150. cat confdefs.h >>conftest.$ac_ext
  17151. cat >>conftest.$ac_ext <<_ACEOF
  17152. /* end confdefs.h. */
  17153. #include <stdlib.h>
  17154. _ACEOF
  17155. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17156. $EGREP "free" >/dev/null 2>&1; then
  17157. :
  17158. else
  17159. ac_cv_header_stdc=no
  17160. fi
  17161. rm -f conftest*
  17162. fi
  17163. if test $ac_cv_header_stdc = yes; then
  17164. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17165. if test "$cross_compiling" = yes; then
  17166. :
  17167. else
  17168. cat >conftest.$ac_ext <<_ACEOF
  17169. /* confdefs.h. */
  17170. _ACEOF
  17171. cat confdefs.h >>conftest.$ac_ext
  17172. cat >>conftest.$ac_ext <<_ACEOF
  17173. /* end confdefs.h. */
  17174. #include <ctype.h>
  17175. #if ((' ' & 0x0FF) == 0x020)
  17176. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17177. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17178. #else
  17179. # define ISLOWER(c) \
  17180. (('a' <= (c) && (c) <= 'i') \
  17181. || ('j' <= (c) && (c) <= 'r') \
  17182. || ('s' <= (c) && (c) <= 'z'))
  17183. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17184. #endif
  17185. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17186. int
  17187. main ()
  17188. {
  17189. int i;
  17190. for (i = 0; i < 256; i++)
  17191. if (XOR (islower (i), ISLOWER (i))
  17192. || toupper (i) != TOUPPER (i))
  17193. exit(2);
  17194. exit (0);
  17195. }
  17196. _ACEOF
  17197. rm -f conftest$ac_exeext
  17198. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17199. (eval $ac_link) 2>&5
  17200. ac_status=$?
  17201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17202. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17203. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17204. (eval $ac_try) 2>&5
  17205. ac_status=$?
  17206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17207. (exit $ac_status); }; }; then
  17208. :
  17209. else
  17210. echo "$as_me: program exited with status $ac_status" >&5
  17211. echo "$as_me: failed program was:" >&5
  17212. sed 's/^/| /' conftest.$ac_ext >&5
  17213. ( exit $ac_status )
  17214. ac_cv_header_stdc=no
  17215. fi
  17216. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17217. fi
  17218. fi
  17219. fi
  17220. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17221. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  17222. if test $ac_cv_header_stdc = yes; then
  17223. cat >>confdefs.h <<\_ACEOF
  17224. #define STDC_HEADERS 1
  17225. _ACEOF
  17226. fi
  17227. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  17228. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  17229. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  17230. echo $ECHO_N "(cached) $ECHO_C" >&6
  17231. else
  17232. cat >conftest.$ac_ext <<_ACEOF
  17233. /* confdefs.h. */
  17234. _ACEOF
  17235. cat confdefs.h >>conftest.$ac_ext
  17236. cat >>conftest.$ac_ext <<_ACEOF
  17237. /* end confdefs.h. */
  17238. #include <sys/types.h>
  17239. #include <sys/wait.h>
  17240. #ifndef WEXITSTATUS
  17241. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  17242. #endif
  17243. #ifndef WIFEXITED
  17244. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  17245. #endif
  17246. int
  17247. main ()
  17248. {
  17249. int s;
  17250. wait (&s);
  17251. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  17252. ;
  17253. return 0;
  17254. }
  17255. _ACEOF
  17256. rm -f conftest.$ac_objext
  17257. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17258. (eval $ac_compile) 2>conftest.er1
  17259. ac_status=$?
  17260. grep -v '^ *+' conftest.er1 >conftest.err
  17261. rm -f conftest.er1
  17262. cat conftest.err >&5
  17263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17264. (exit $ac_status); } &&
  17265. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17266. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17267. (eval $ac_try) 2>&5
  17268. ac_status=$?
  17269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17270. (exit $ac_status); }; } &&
  17271. { ac_try='test -s conftest.$ac_objext'
  17272. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17273. (eval $ac_try) 2>&5
  17274. ac_status=$?
  17275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17276. (exit $ac_status); }; }; then
  17277. ac_cv_header_sys_wait_h=yes
  17278. else
  17279. echo "$as_me: failed program was:" >&5
  17280. sed 's/^/| /' conftest.$ac_ext >&5
  17281. ac_cv_header_sys_wait_h=no
  17282. fi
  17283. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17284. fi
  17285. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  17286. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  17287. if test $ac_cv_header_sys_wait_h = yes; then
  17288. cat >>confdefs.h <<\_ACEOF
  17289. #define HAVE_SYS_WAIT_H 1
  17290. _ACEOF
  17291. fi
  17292. for ac_header in assert.h limits.h unistd.h sys/types.h fcntl.h errno.h
  17293. do
  17294. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17295. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17296. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17297. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17298. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17299. echo $ECHO_N "(cached) $ECHO_C" >&6
  17300. fi
  17301. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17302. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17303. else
  17304. # Is the header compilable?
  17305. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17306. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17307. cat >conftest.$ac_ext <<_ACEOF
  17308. /* confdefs.h. */
  17309. _ACEOF
  17310. cat confdefs.h >>conftest.$ac_ext
  17311. cat >>conftest.$ac_ext <<_ACEOF
  17312. /* end confdefs.h. */
  17313. $ac_includes_default
  17314. #include <$ac_header>
  17315. _ACEOF
  17316. rm -f conftest.$ac_objext
  17317. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17318. (eval $ac_compile) 2>conftest.er1
  17319. ac_status=$?
  17320. grep -v '^ *+' conftest.er1 >conftest.err
  17321. rm -f conftest.er1
  17322. cat conftest.err >&5
  17323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17324. (exit $ac_status); } &&
  17325. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17326. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17327. (eval $ac_try) 2>&5
  17328. ac_status=$?
  17329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17330. (exit $ac_status); }; } &&
  17331. { ac_try='test -s conftest.$ac_objext'
  17332. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17333. (eval $ac_try) 2>&5
  17334. ac_status=$?
  17335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17336. (exit $ac_status); }; }; then
  17337. ac_header_compiler=yes
  17338. else
  17339. echo "$as_me: failed program was:" >&5
  17340. sed 's/^/| /' conftest.$ac_ext >&5
  17341. ac_header_compiler=no
  17342. fi
  17343. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17344. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17345. echo "${ECHO_T}$ac_header_compiler" >&6
  17346. # Is the header present?
  17347. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17348. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17349. cat >conftest.$ac_ext <<_ACEOF
  17350. /* confdefs.h. */
  17351. _ACEOF
  17352. cat confdefs.h >>conftest.$ac_ext
  17353. cat >>conftest.$ac_ext <<_ACEOF
  17354. /* end confdefs.h. */
  17355. #include <$ac_header>
  17356. _ACEOF
  17357. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17358. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17359. ac_status=$?
  17360. grep -v '^ *+' conftest.er1 >conftest.err
  17361. rm -f conftest.er1
  17362. cat conftest.err >&5
  17363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17364. (exit $ac_status); } >/dev/null; then
  17365. if test -s conftest.err; then
  17366. ac_cpp_err=$ac_c_preproc_warn_flag
  17367. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17368. else
  17369. ac_cpp_err=
  17370. fi
  17371. else
  17372. ac_cpp_err=yes
  17373. fi
  17374. if test -z "$ac_cpp_err"; then
  17375. ac_header_preproc=yes
  17376. else
  17377. echo "$as_me: failed program was:" >&5
  17378. sed 's/^/| /' conftest.$ac_ext >&5
  17379. ac_header_preproc=no
  17380. fi
  17381. rm -f conftest.err conftest.$ac_ext
  17382. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17383. echo "${ECHO_T}$ac_header_preproc" >&6
  17384. # So? What about this header?
  17385. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17386. yes:no: )
  17387. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17388. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17389. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17390. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17391. ac_header_preproc=yes
  17392. ;;
  17393. no:yes:* )
  17394. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17395. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17396. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17397. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17398. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17399. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17400. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17401. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17402. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17403. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17404. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17405. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17406. (
  17407. cat <<\_ASBOX
  17408. ## ----------------------------------- ##
  17409. ## Report this to [email protected] ##
  17410. ## ----------------------------------- ##
  17411. _ASBOX
  17412. ) |
  17413. sed "s/^/$as_me: WARNING: /" >&2
  17414. ;;
  17415. esac
  17416. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17417. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17418. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17419. echo $ECHO_N "(cached) $ECHO_C" >&6
  17420. else
  17421. eval "$as_ac_Header=\$ac_header_preproc"
  17422. fi
  17423. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17424. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17425. fi
  17426. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17427. cat >>confdefs.h <<_ACEOF
  17428. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17429. _ACEOF
  17430. fi
  17431. done
  17432. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  17433. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  17434. if test "${ac_cv_c_const+set}" = set; then
  17435. echo $ECHO_N "(cached) $ECHO_C" >&6
  17436. else
  17437. cat >conftest.$ac_ext <<_ACEOF
  17438. /* confdefs.h. */
  17439. _ACEOF
  17440. cat confdefs.h >>conftest.$ac_ext
  17441. cat >>conftest.$ac_ext <<_ACEOF
  17442. /* end confdefs.h. */
  17443. int
  17444. main ()
  17445. {
  17446. /* FIXME: Include the comments suggested by Paul. */
  17447. #ifndef __cplusplus
  17448. /* Ultrix mips cc rejects this. */
  17449. typedef int charset[2];
  17450. const charset x;
  17451. /* SunOS 4.1.1 cc rejects this. */
  17452. char const *const *ccp;
  17453. char **p;
  17454. /* NEC SVR4.0.2 mips cc rejects this. */
  17455. struct point {int x, y;};
  17456. static struct point const zero = {0,0};
  17457. /* AIX XL C 1.02.0.0 rejects this.
  17458. It does not let you subtract one const X* pointer from another in
  17459. an arm of an if-expression whose if-part is not a constant
  17460. expression */
  17461. const char *g = "string";
  17462. ccp = &g + (g ? g-g : 0);
  17463. /* HPUX 7.0 cc rejects these. */
  17464. ++ccp;
  17465. p = (char**) ccp;
  17466. ccp = (char const *const *) p;
  17467. { /* SCO 3.2v4 cc rejects this. */
  17468. char *t;
  17469. char const *s = 0 ? (char *) 0 : (char const *) 0;
  17470. *t++ = 0;
  17471. }
  17472. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  17473. int x[] = {25, 17};
  17474. const int *foo = &x[0];
  17475. ++foo;
  17476. }
  17477. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  17478. typedef const int *iptr;
  17479. iptr p = 0;
  17480. ++p;
  17481. }
  17482. { /* AIX XL C 1.02.0.0 rejects this saying
  17483. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  17484. struct s { int j; const int *ap[3]; };
  17485. struct s *b; b->j = 5;
  17486. }
  17487. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  17488. const int foo = 10;
  17489. }
  17490. #endif
  17491. ;
  17492. return 0;
  17493. }
  17494. _ACEOF
  17495. rm -f conftest.$ac_objext
  17496. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17497. (eval $ac_compile) 2>conftest.er1
  17498. ac_status=$?
  17499. grep -v '^ *+' conftest.er1 >conftest.err
  17500. rm -f conftest.er1
  17501. cat conftest.err >&5
  17502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17503. (exit $ac_status); } &&
  17504. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17505. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17506. (eval $ac_try) 2>&5
  17507. ac_status=$?
  17508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17509. (exit $ac_status); }; } &&
  17510. { ac_try='test -s conftest.$ac_objext'
  17511. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17512. (eval $ac_try) 2>&5
  17513. ac_status=$?
  17514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17515. (exit $ac_status); }; }; then
  17516. ac_cv_c_const=yes
  17517. else
  17518. echo "$as_me: failed program was:" >&5
  17519. sed 's/^/| /' conftest.$ac_ext >&5
  17520. ac_cv_c_const=no
  17521. fi
  17522. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17523. fi
  17524. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  17525. echo "${ECHO_T}$ac_cv_c_const" >&6
  17526. if test $ac_cv_c_const = no; then
  17527. cat >>confdefs.h <<\_ACEOF
  17528. #define const
  17529. _ACEOF
  17530. fi
  17531. echo "$as_me:$LINENO: checking for inline" >&5
  17532. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  17533. if test "${ac_cv_c_inline+set}" = set; then
  17534. echo $ECHO_N "(cached) $ECHO_C" >&6
  17535. else
  17536. ac_cv_c_inline=no
  17537. for ac_kw in inline __inline__ __inline; do
  17538. cat >conftest.$ac_ext <<_ACEOF
  17539. /* confdefs.h. */
  17540. _ACEOF
  17541. cat confdefs.h >>conftest.$ac_ext
  17542. cat >>conftest.$ac_ext <<_ACEOF
  17543. /* end confdefs.h. */
  17544. #ifndef __cplusplus
  17545. typedef int foo_t;
  17546. static $ac_kw foo_t static_foo () {return 0; }
  17547. $ac_kw foo_t foo () {return 0; }
  17548. #endif
  17549. _ACEOF
  17550. rm -f conftest.$ac_objext
  17551. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17552. (eval $ac_compile) 2>conftest.er1
  17553. ac_status=$?
  17554. grep -v '^ *+' conftest.er1 >conftest.err
  17555. rm -f conftest.er1
  17556. cat conftest.err >&5
  17557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17558. (exit $ac_status); } &&
  17559. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17560. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17561. (eval $ac_try) 2>&5
  17562. ac_status=$?
  17563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17564. (exit $ac_status); }; } &&
  17565. { ac_try='test -s conftest.$ac_objext'
  17566. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17567. (eval $ac_try) 2>&5
  17568. ac_status=$?
  17569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17570. (exit $ac_status); }; }; then
  17571. ac_cv_c_inline=$ac_kw; break
  17572. else
  17573. echo "$as_me: failed program was:" >&5
  17574. sed 's/^/| /' conftest.$ac_ext >&5
  17575. fi
  17576. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17577. done
  17578. fi
  17579. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  17580. echo "${ECHO_T}$ac_cv_c_inline" >&6
  17581. case $ac_cv_c_inline in
  17582. inline | yes) ;;
  17583. *)
  17584. case $ac_cv_c_inline in
  17585. no) ac_val=;;
  17586. *) ac_val=$ac_cv_c_inline;;
  17587. esac
  17588. cat >>confdefs.h <<_ACEOF
  17589. #ifndef __cplusplus
  17590. #define inline $ac_val
  17591. #endif
  17592. _ACEOF
  17593. ;;
  17594. esac
  17595. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  17596. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  17597. if test "${ac_cv_c_bigendian+set}" = set; then
  17598. echo $ECHO_N "(cached) $ECHO_C" >&6
  17599. else
  17600. # See if sys/param.h defines the BYTE_ORDER macro.
  17601. cat >conftest.$ac_ext <<_ACEOF
  17602. /* confdefs.h. */
  17603. _ACEOF
  17604. cat confdefs.h >>conftest.$ac_ext
  17605. cat >>conftest.$ac_ext <<_ACEOF
  17606. /* end confdefs.h. */
  17607. #include <sys/types.h>
  17608. #include <sys/param.h>
  17609. int
  17610. main ()
  17611. {
  17612. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  17613. bogus endian macros
  17614. #endif
  17615. ;
  17616. return 0;
  17617. }
  17618. _ACEOF
  17619. rm -f conftest.$ac_objext
  17620. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17621. (eval $ac_compile) 2>conftest.er1
  17622. ac_status=$?
  17623. grep -v '^ *+' conftest.er1 >conftest.err
  17624. rm -f conftest.er1
  17625. cat conftest.err >&5
  17626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17627. (exit $ac_status); } &&
  17628. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17629. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17630. (eval $ac_try) 2>&5
  17631. ac_status=$?
  17632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17633. (exit $ac_status); }; } &&
  17634. { ac_try='test -s conftest.$ac_objext'
  17635. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17636. (eval $ac_try) 2>&5
  17637. ac_status=$?
  17638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17639. (exit $ac_status); }; }; then
  17640. # It does; now see whether it defined to BIG_ENDIAN or not.
  17641. cat >conftest.$ac_ext <<_ACEOF
  17642. /* confdefs.h. */
  17643. _ACEOF
  17644. cat confdefs.h >>conftest.$ac_ext
  17645. cat >>conftest.$ac_ext <<_ACEOF
  17646. /* end confdefs.h. */
  17647. #include <sys/types.h>
  17648. #include <sys/param.h>
  17649. int
  17650. main ()
  17651. {
  17652. #if BYTE_ORDER != BIG_ENDIAN
  17653. not big endian
  17654. #endif
  17655. ;
  17656. return 0;
  17657. }
  17658. _ACEOF
  17659. rm -f conftest.$ac_objext
  17660. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17661. (eval $ac_compile) 2>conftest.er1
  17662. ac_status=$?
  17663. grep -v '^ *+' conftest.er1 >conftest.err
  17664. rm -f conftest.er1
  17665. cat conftest.err >&5
  17666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17667. (exit $ac_status); } &&
  17668. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17669. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17670. (eval $ac_try) 2>&5
  17671. ac_status=$?
  17672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17673. (exit $ac_status); }; } &&
  17674. { ac_try='test -s conftest.$ac_objext'
  17675. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17676. (eval $ac_try) 2>&5
  17677. ac_status=$?
  17678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17679. (exit $ac_status); }; }; then
  17680. ac_cv_c_bigendian=yes
  17681. else
  17682. echo "$as_me: failed program was:" >&5
  17683. sed 's/^/| /' conftest.$ac_ext >&5
  17684. ac_cv_c_bigendian=no
  17685. fi
  17686. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17687. else
  17688. echo "$as_me: failed program was:" >&5
  17689. sed 's/^/| /' conftest.$ac_ext >&5
  17690. # It does not; compile a test program.
  17691. if test "$cross_compiling" = yes; then
  17692. # try to guess the endianness by grepping values into an object file
  17693. ac_cv_c_bigendian=unknown
  17694. cat >conftest.$ac_ext <<_ACEOF
  17695. /* confdefs.h. */
  17696. _ACEOF
  17697. cat confdefs.h >>conftest.$ac_ext
  17698. cat >>conftest.$ac_ext <<_ACEOF
  17699. /* end confdefs.h. */
  17700. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  17701. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  17702. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  17703. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  17704. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  17705. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  17706. int
  17707. main ()
  17708. {
  17709. _ascii (); _ebcdic ();
  17710. ;
  17711. return 0;
  17712. }
  17713. _ACEOF
  17714. rm -f conftest.$ac_objext
  17715. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17716. (eval $ac_compile) 2>conftest.er1
  17717. ac_status=$?
  17718. grep -v '^ *+' conftest.er1 >conftest.err
  17719. rm -f conftest.er1
  17720. cat conftest.err >&5
  17721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17722. (exit $ac_status); } &&
  17723. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17724. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17725. (eval $ac_try) 2>&5
  17726. ac_status=$?
  17727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17728. (exit $ac_status); }; } &&
  17729. { ac_try='test -s conftest.$ac_objext'
  17730. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17731. (eval $ac_try) 2>&5
  17732. ac_status=$?
  17733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17734. (exit $ac_status); }; }; then
  17735. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  17736. ac_cv_c_bigendian=yes
  17737. fi
  17738. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  17739. if test "$ac_cv_c_bigendian" = unknown; then
  17740. ac_cv_c_bigendian=no
  17741. else
  17742. # finding both strings is unlikely to happen, but who knows?
  17743. ac_cv_c_bigendian=unknown
  17744. fi
  17745. fi
  17746. else
  17747. echo "$as_me: failed program was:" >&5
  17748. sed 's/^/| /' conftest.$ac_ext >&5
  17749. fi
  17750. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17751. else
  17752. cat >conftest.$ac_ext <<_ACEOF
  17753. /* confdefs.h. */
  17754. _ACEOF
  17755. cat confdefs.h >>conftest.$ac_ext
  17756. cat >>conftest.$ac_ext <<_ACEOF
  17757. /* end confdefs.h. */
  17758. int
  17759. main ()
  17760. {
  17761. /* Are we little or big endian? From Harbison&Steele. */
  17762. union
  17763. {
  17764. long l;
  17765. char c[sizeof (long)];
  17766. } u;
  17767. u.l = 1;
  17768. exit (u.c[sizeof (long) - 1] == 1);
  17769. }
  17770. _ACEOF
  17771. rm -f conftest$ac_exeext
  17772. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17773. (eval $ac_link) 2>&5
  17774. ac_status=$?
  17775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17776. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17777. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17778. (eval $ac_try) 2>&5
  17779. ac_status=$?
  17780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17781. (exit $ac_status); }; }; then
  17782. ac_cv_c_bigendian=no
  17783. else
  17784. echo "$as_me: program exited with status $ac_status" >&5
  17785. echo "$as_me: failed program was:" >&5
  17786. sed 's/^/| /' conftest.$ac_ext >&5
  17787. ( exit $ac_status )
  17788. ac_cv_c_bigendian=yes
  17789. fi
  17790. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17791. fi
  17792. fi
  17793. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17794. fi
  17795. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  17796. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  17797. case $ac_cv_c_bigendian in
  17798. yes)
  17799. cat >>confdefs.h <<\_ACEOF
  17800. #define WORDS_BIGENDIAN 1
  17801. _ACEOF
  17802. ;;
  17803. no)
  17804. ;;
  17805. *)
  17806. { { echo "$as_me:$LINENO: error: unknown endianness
  17807. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  17808. echo "$as_me: error: unknown endianness
  17809. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  17810. { (exit 1); exit 1; }; } ;;
  17811. esac
  17812. echo "$as_me:$LINENO: checking for pid_t" >&5
  17813. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  17814. if test "${ac_cv_type_pid_t+set}" = set; then
  17815. echo $ECHO_N "(cached) $ECHO_C" >&6
  17816. else
  17817. cat >conftest.$ac_ext <<_ACEOF
  17818. /* confdefs.h. */
  17819. _ACEOF
  17820. cat confdefs.h >>conftest.$ac_ext
  17821. cat >>conftest.$ac_ext <<_ACEOF
  17822. /* end confdefs.h. */
  17823. $ac_includes_default
  17824. int
  17825. main ()
  17826. {
  17827. if ((pid_t *) 0)
  17828. return 0;
  17829. if (sizeof (pid_t))
  17830. return 0;
  17831. ;
  17832. return 0;
  17833. }
  17834. _ACEOF
  17835. rm -f conftest.$ac_objext
  17836. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17837. (eval $ac_compile) 2>conftest.er1
  17838. ac_status=$?
  17839. grep -v '^ *+' conftest.er1 >conftest.err
  17840. rm -f conftest.er1
  17841. cat conftest.err >&5
  17842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17843. (exit $ac_status); } &&
  17844. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17845. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17846. (eval $ac_try) 2>&5
  17847. ac_status=$?
  17848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17849. (exit $ac_status); }; } &&
  17850. { ac_try='test -s conftest.$ac_objext'
  17851. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17852. (eval $ac_try) 2>&5
  17853. ac_status=$?
  17854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17855. (exit $ac_status); }; }; then
  17856. ac_cv_type_pid_t=yes
  17857. else
  17858. echo "$as_me: failed program was:" >&5
  17859. sed 's/^/| /' conftest.$ac_ext >&5
  17860. ac_cv_type_pid_t=no
  17861. fi
  17862. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17863. fi
  17864. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  17865. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  17866. if test $ac_cv_type_pid_t = yes; then
  17867. :
  17868. else
  17869. cat >>confdefs.h <<_ACEOF
  17870. #define pid_t int
  17871. _ACEOF
  17872. fi
  17873. echo "$as_me:$LINENO: checking for int" >&5
  17874. echo $ECHO_N "checking for int... $ECHO_C" >&6
  17875. if test "${ac_cv_type_int+set}" = set; then
  17876. echo $ECHO_N "(cached) $ECHO_C" >&6
  17877. else
  17878. cat >conftest.$ac_ext <<_ACEOF
  17879. /* confdefs.h. */
  17880. _ACEOF
  17881. cat confdefs.h >>conftest.$ac_ext
  17882. cat >>conftest.$ac_ext <<_ACEOF
  17883. /* end confdefs.h. */
  17884. $ac_includes_default
  17885. int
  17886. main ()
  17887. {
  17888. if ((int *) 0)
  17889. return 0;
  17890. if (sizeof (int))
  17891. return 0;
  17892. ;
  17893. return 0;
  17894. }
  17895. _ACEOF
  17896. rm -f conftest.$ac_objext
  17897. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17898. (eval $ac_compile) 2>conftest.er1
  17899. ac_status=$?
  17900. grep -v '^ *+' conftest.er1 >conftest.err
  17901. rm -f conftest.er1
  17902. cat conftest.err >&5
  17903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17904. (exit $ac_status); } &&
  17905. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17906. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17907. (eval $ac_try) 2>&5
  17908. ac_status=$?
  17909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17910. (exit $ac_status); }; } &&
  17911. { ac_try='test -s conftest.$ac_objext'
  17912. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17913. (eval $ac_try) 2>&5
  17914. ac_status=$?
  17915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17916. (exit $ac_status); }; }; then
  17917. ac_cv_type_int=yes
  17918. else
  17919. echo "$as_me: failed program was:" >&5
  17920. sed 's/^/| /' conftest.$ac_ext >&5
  17921. ac_cv_type_int=no
  17922. fi
  17923. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17924. fi
  17925. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  17926. echo "${ECHO_T}$ac_cv_type_int" >&6
  17927. echo "$as_me:$LINENO: checking size of int" >&5
  17928. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  17929. if test "${ac_cv_sizeof_int+set}" = set; then
  17930. echo $ECHO_N "(cached) $ECHO_C" >&6
  17931. else
  17932. if test "$ac_cv_type_int" = yes; then
  17933. # The cast to unsigned long works around a bug in the HP C Compiler
  17934. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  17935. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  17936. # This bug is HP SR number 8606223364.
  17937. if test "$cross_compiling" = yes; then
  17938. # Depending upon the size, compute the lo and hi bounds.
  17939. cat >conftest.$ac_ext <<_ACEOF
  17940. /* confdefs.h. */
  17941. _ACEOF
  17942. cat confdefs.h >>conftest.$ac_ext
  17943. cat >>conftest.$ac_ext <<_ACEOF
  17944. /* end confdefs.h. */
  17945. $ac_includes_default
  17946. int
  17947. main ()
  17948. {
  17949. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  17950. test_array [0] = 0
  17951. ;
  17952. return 0;
  17953. }
  17954. _ACEOF
  17955. rm -f conftest.$ac_objext
  17956. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17957. (eval $ac_compile) 2>conftest.er1
  17958. ac_status=$?
  17959. grep -v '^ *+' conftest.er1 >conftest.err
  17960. rm -f conftest.er1
  17961. cat conftest.err >&5
  17962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17963. (exit $ac_status); } &&
  17964. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17965. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17966. (eval $ac_try) 2>&5
  17967. ac_status=$?
  17968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17969. (exit $ac_status); }; } &&
  17970. { ac_try='test -s conftest.$ac_objext'
  17971. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17972. (eval $ac_try) 2>&5
  17973. ac_status=$?
  17974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17975. (exit $ac_status); }; }; then
  17976. ac_lo=0 ac_mid=0
  17977. while :; do
  17978. cat >conftest.$ac_ext <<_ACEOF
  17979. /* confdefs.h. */
  17980. _ACEOF
  17981. cat confdefs.h >>conftest.$ac_ext
  17982. cat >>conftest.$ac_ext <<_ACEOF
  17983. /* end confdefs.h. */
  17984. $ac_includes_default
  17985. int
  17986. main ()
  17987. {
  17988. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  17989. test_array [0] = 0
  17990. ;
  17991. return 0;
  17992. }
  17993. _ACEOF
  17994. rm -f conftest.$ac_objext
  17995. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17996. (eval $ac_compile) 2>conftest.er1
  17997. ac_status=$?
  17998. grep -v '^ *+' conftest.er1 >conftest.err
  17999. rm -f conftest.er1
  18000. cat conftest.err >&5
  18001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18002. (exit $ac_status); } &&
  18003. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18005. (eval $ac_try) 2>&5
  18006. ac_status=$?
  18007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18008. (exit $ac_status); }; } &&
  18009. { ac_try='test -s conftest.$ac_objext'
  18010. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18011. (eval $ac_try) 2>&5
  18012. ac_status=$?
  18013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18014. (exit $ac_status); }; }; then
  18015. ac_hi=$ac_mid; break
  18016. else
  18017. echo "$as_me: failed program was:" >&5
  18018. sed 's/^/| /' conftest.$ac_ext >&5
  18019. ac_lo=`expr $ac_mid + 1`
  18020. if test $ac_lo -le $ac_mid; then
  18021. ac_lo= ac_hi=
  18022. break
  18023. fi
  18024. ac_mid=`expr 2 '*' $ac_mid + 1`
  18025. fi
  18026. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18027. done
  18028. else
  18029. echo "$as_me: failed program was:" >&5
  18030. sed 's/^/| /' conftest.$ac_ext >&5
  18031. cat >conftest.$ac_ext <<_ACEOF
  18032. /* confdefs.h. */
  18033. _ACEOF
  18034. cat confdefs.h >>conftest.$ac_ext
  18035. cat >>conftest.$ac_ext <<_ACEOF
  18036. /* end confdefs.h. */
  18037. $ac_includes_default
  18038. int
  18039. main ()
  18040. {
  18041. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  18042. test_array [0] = 0
  18043. ;
  18044. return 0;
  18045. }
  18046. _ACEOF
  18047. rm -f conftest.$ac_objext
  18048. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18049. (eval $ac_compile) 2>conftest.er1
  18050. ac_status=$?
  18051. grep -v '^ *+' conftest.er1 >conftest.err
  18052. rm -f conftest.er1
  18053. cat conftest.err >&5
  18054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18055. (exit $ac_status); } &&
  18056. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18057. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18058. (eval $ac_try) 2>&5
  18059. ac_status=$?
  18060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18061. (exit $ac_status); }; } &&
  18062. { ac_try='test -s conftest.$ac_objext'
  18063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18064. (eval $ac_try) 2>&5
  18065. ac_status=$?
  18066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18067. (exit $ac_status); }; }; then
  18068. ac_hi=-1 ac_mid=-1
  18069. while :; do
  18070. cat >conftest.$ac_ext <<_ACEOF
  18071. /* confdefs.h. */
  18072. _ACEOF
  18073. cat confdefs.h >>conftest.$ac_ext
  18074. cat >>conftest.$ac_ext <<_ACEOF
  18075. /* end confdefs.h. */
  18076. $ac_includes_default
  18077. int
  18078. main ()
  18079. {
  18080. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  18081. test_array [0] = 0
  18082. ;
  18083. return 0;
  18084. }
  18085. _ACEOF
  18086. rm -f conftest.$ac_objext
  18087. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18088. (eval $ac_compile) 2>conftest.er1
  18089. ac_status=$?
  18090. grep -v '^ *+' conftest.er1 >conftest.err
  18091. rm -f conftest.er1
  18092. cat conftest.err >&5
  18093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18094. (exit $ac_status); } &&
  18095. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18096. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18097. (eval $ac_try) 2>&5
  18098. ac_status=$?
  18099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18100. (exit $ac_status); }; } &&
  18101. { ac_try='test -s conftest.$ac_objext'
  18102. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18103. (eval $ac_try) 2>&5
  18104. ac_status=$?
  18105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18106. (exit $ac_status); }; }; then
  18107. ac_lo=$ac_mid; break
  18108. else
  18109. echo "$as_me: failed program was:" >&5
  18110. sed 's/^/| /' conftest.$ac_ext >&5
  18111. ac_hi=`expr '(' $ac_mid ')' - 1`
  18112. if test $ac_mid -le $ac_hi; then
  18113. ac_lo= ac_hi=
  18114. break
  18115. fi
  18116. ac_mid=`expr 2 '*' $ac_mid`
  18117. fi
  18118. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18119. done
  18120. else
  18121. echo "$as_me: failed program was:" >&5
  18122. sed 's/^/| /' conftest.$ac_ext >&5
  18123. ac_lo= ac_hi=
  18124. fi
  18125. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18126. fi
  18127. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18128. # Binary search between lo and hi bounds.
  18129. while test "x$ac_lo" != "x$ac_hi"; do
  18130. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  18131. cat >conftest.$ac_ext <<_ACEOF
  18132. /* confdefs.h. */
  18133. _ACEOF
  18134. cat confdefs.h >>conftest.$ac_ext
  18135. cat >>conftest.$ac_ext <<_ACEOF
  18136. /* end confdefs.h. */
  18137. $ac_includes_default
  18138. int
  18139. main ()
  18140. {
  18141. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  18142. test_array [0] = 0
  18143. ;
  18144. return 0;
  18145. }
  18146. _ACEOF
  18147. rm -f conftest.$ac_objext
  18148. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18149. (eval $ac_compile) 2>conftest.er1
  18150. ac_status=$?
  18151. grep -v '^ *+' conftest.er1 >conftest.err
  18152. rm -f conftest.er1
  18153. cat conftest.err >&5
  18154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18155. (exit $ac_status); } &&
  18156. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18157. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18158. (eval $ac_try) 2>&5
  18159. ac_status=$?
  18160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18161. (exit $ac_status); }; } &&
  18162. { ac_try='test -s conftest.$ac_objext'
  18163. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18164. (eval $ac_try) 2>&5
  18165. ac_status=$?
  18166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18167. (exit $ac_status); }; }; then
  18168. ac_hi=$ac_mid
  18169. else
  18170. echo "$as_me: failed program was:" >&5
  18171. sed 's/^/| /' conftest.$ac_ext >&5
  18172. ac_lo=`expr '(' $ac_mid ')' + 1`
  18173. fi
  18174. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18175. done
  18176. case $ac_lo in
  18177. ?*) ac_cv_sizeof_int=$ac_lo;;
  18178. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  18179. See \`config.log' for more details." >&5
  18180. echo "$as_me: error: cannot compute sizeof (int), 77
  18181. See \`config.log' for more details." >&2;}
  18182. { (exit 1); exit 1; }; } ;;
  18183. esac
  18184. else
  18185. if test "$cross_compiling" = yes; then
  18186. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  18187. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  18188. { (exit 1); exit 1; }; }
  18189. else
  18190. cat >conftest.$ac_ext <<_ACEOF
  18191. /* confdefs.h. */
  18192. _ACEOF
  18193. cat confdefs.h >>conftest.$ac_ext
  18194. cat >>conftest.$ac_ext <<_ACEOF
  18195. /* end confdefs.h. */
  18196. $ac_includes_default
  18197. long longval () { return (long) (sizeof (int)); }
  18198. unsigned long ulongval () { return (long) (sizeof (int)); }
  18199. #include <stdio.h>
  18200. #include <stdlib.h>
  18201. int
  18202. main ()
  18203. {
  18204. FILE *f = fopen ("conftest.val", "w");
  18205. if (! f)
  18206. exit (1);
  18207. if (((long) (sizeof (int))) < 0)
  18208. {
  18209. long i = longval ();
  18210. if (i != ((long) (sizeof (int))))
  18211. exit (1);
  18212. fprintf (f, "%ld\n", i);
  18213. }
  18214. else
  18215. {
  18216. unsigned long i = ulongval ();
  18217. if (i != ((long) (sizeof (int))))
  18218. exit (1);
  18219. fprintf (f, "%lu\n", i);
  18220. }
  18221. exit (ferror (f) || fclose (f) != 0);
  18222. ;
  18223. return 0;
  18224. }
  18225. _ACEOF
  18226. rm -f conftest$ac_exeext
  18227. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18228. (eval $ac_link) 2>&5
  18229. ac_status=$?
  18230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18231. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18233. (eval $ac_try) 2>&5
  18234. ac_status=$?
  18235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18236. (exit $ac_status); }; }; then
  18237. ac_cv_sizeof_int=`cat conftest.val`
  18238. else
  18239. echo "$as_me: program exited with status $ac_status" >&5
  18240. echo "$as_me: failed program was:" >&5
  18241. sed 's/^/| /' conftest.$ac_ext >&5
  18242. ( exit $ac_status )
  18243. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  18244. See \`config.log' for more details." >&5
  18245. echo "$as_me: error: cannot compute sizeof (int), 77
  18246. See \`config.log' for more details." >&2;}
  18247. { (exit 1); exit 1; }; }
  18248. fi
  18249. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18250. fi
  18251. fi
  18252. rm -f conftest.val
  18253. else
  18254. ac_cv_sizeof_int=0
  18255. fi
  18256. fi
  18257. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  18258. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  18259. cat >>confdefs.h <<_ACEOF
  18260. #define SIZEOF_INT $ac_cv_sizeof_int
  18261. _ACEOF
  18262. echo "$as_me:$LINENO: checking for long" >&5
  18263. echo $ECHO_N "checking for long... $ECHO_C" >&6
  18264. if test "${ac_cv_type_long+set}" = set; then
  18265. echo $ECHO_N "(cached) $ECHO_C" >&6
  18266. else
  18267. cat >conftest.$ac_ext <<_ACEOF
  18268. /* confdefs.h. */
  18269. _ACEOF
  18270. cat confdefs.h >>conftest.$ac_ext
  18271. cat >>conftest.$ac_ext <<_ACEOF
  18272. /* end confdefs.h. */
  18273. $ac_includes_default
  18274. int
  18275. main ()
  18276. {
  18277. if ((long *) 0)
  18278. return 0;
  18279. if (sizeof (long))
  18280. return 0;
  18281. ;
  18282. return 0;
  18283. }
  18284. _ACEOF
  18285. rm -f conftest.$ac_objext
  18286. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18287. (eval $ac_compile) 2>conftest.er1
  18288. ac_status=$?
  18289. grep -v '^ *+' conftest.er1 >conftest.err
  18290. rm -f conftest.er1
  18291. cat conftest.err >&5
  18292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18293. (exit $ac_status); } &&
  18294. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18295. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18296. (eval $ac_try) 2>&5
  18297. ac_status=$?
  18298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18299. (exit $ac_status); }; } &&
  18300. { ac_try='test -s conftest.$ac_objext'
  18301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18302. (eval $ac_try) 2>&5
  18303. ac_status=$?
  18304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18305. (exit $ac_status); }; }; then
  18306. ac_cv_type_long=yes
  18307. else
  18308. echo "$as_me: failed program was:" >&5
  18309. sed 's/^/| /' conftest.$ac_ext >&5
  18310. ac_cv_type_long=no
  18311. fi
  18312. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18313. fi
  18314. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  18315. echo "${ECHO_T}$ac_cv_type_long" >&6
  18316. echo "$as_me:$LINENO: checking size of long" >&5
  18317. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  18318. if test "${ac_cv_sizeof_long+set}" = set; then
  18319. echo $ECHO_N "(cached) $ECHO_C" >&6
  18320. else
  18321. if test "$ac_cv_type_long" = yes; then
  18322. # The cast to unsigned long works around a bug in the HP C Compiler
  18323. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18324. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18325. # This bug is HP SR number 8606223364.
  18326. if test "$cross_compiling" = yes; then
  18327. # Depending upon the size, compute the lo and hi bounds.
  18328. cat >conftest.$ac_ext <<_ACEOF
  18329. /* confdefs.h. */
  18330. _ACEOF
  18331. cat confdefs.h >>conftest.$ac_ext
  18332. cat >>conftest.$ac_ext <<_ACEOF
  18333. /* end confdefs.h. */
  18334. $ac_includes_default
  18335. int
  18336. main ()
  18337. {
  18338. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  18339. test_array [0] = 0
  18340. ;
  18341. return 0;
  18342. }
  18343. _ACEOF
  18344. rm -f conftest.$ac_objext
  18345. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18346. (eval $ac_compile) 2>conftest.er1
  18347. ac_status=$?
  18348. grep -v '^ *+' conftest.er1 >conftest.err
  18349. rm -f conftest.er1
  18350. cat conftest.err >&5
  18351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18352. (exit $ac_status); } &&
  18353. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18355. (eval $ac_try) 2>&5
  18356. ac_status=$?
  18357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18358. (exit $ac_status); }; } &&
  18359. { ac_try='test -s conftest.$ac_objext'
  18360. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18361. (eval $ac_try) 2>&5
  18362. ac_status=$?
  18363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18364. (exit $ac_status); }; }; then
  18365. ac_lo=0 ac_mid=0
  18366. while :; do
  18367. cat >conftest.$ac_ext <<_ACEOF
  18368. /* confdefs.h. */
  18369. _ACEOF
  18370. cat confdefs.h >>conftest.$ac_ext
  18371. cat >>conftest.$ac_ext <<_ACEOF
  18372. /* end confdefs.h. */
  18373. $ac_includes_default
  18374. int
  18375. main ()
  18376. {
  18377. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  18378. test_array [0] = 0
  18379. ;
  18380. return 0;
  18381. }
  18382. _ACEOF
  18383. rm -f conftest.$ac_objext
  18384. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18385. (eval $ac_compile) 2>conftest.er1
  18386. ac_status=$?
  18387. grep -v '^ *+' conftest.er1 >conftest.err
  18388. rm -f conftest.er1
  18389. cat conftest.err >&5
  18390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18391. (exit $ac_status); } &&
  18392. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18393. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18394. (eval $ac_try) 2>&5
  18395. ac_status=$?
  18396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18397. (exit $ac_status); }; } &&
  18398. { ac_try='test -s conftest.$ac_objext'
  18399. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18400. (eval $ac_try) 2>&5
  18401. ac_status=$?
  18402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18403. (exit $ac_status); }; }; then
  18404. ac_hi=$ac_mid; break
  18405. else
  18406. echo "$as_me: failed program was:" >&5
  18407. sed 's/^/| /' conftest.$ac_ext >&5
  18408. ac_lo=`expr $ac_mid + 1`
  18409. if test $ac_lo -le $ac_mid; then
  18410. ac_lo= ac_hi=
  18411. break
  18412. fi
  18413. ac_mid=`expr 2 '*' $ac_mid + 1`
  18414. fi
  18415. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18416. done
  18417. else
  18418. echo "$as_me: failed program was:" >&5
  18419. sed 's/^/| /' conftest.$ac_ext >&5
  18420. cat >conftest.$ac_ext <<_ACEOF
  18421. /* confdefs.h. */
  18422. _ACEOF
  18423. cat confdefs.h >>conftest.$ac_ext
  18424. cat >>conftest.$ac_ext <<_ACEOF
  18425. /* end confdefs.h. */
  18426. $ac_includes_default
  18427. int
  18428. main ()
  18429. {
  18430. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  18431. test_array [0] = 0
  18432. ;
  18433. return 0;
  18434. }
  18435. _ACEOF
  18436. rm -f conftest.$ac_objext
  18437. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18438. (eval $ac_compile) 2>conftest.er1
  18439. ac_status=$?
  18440. grep -v '^ *+' conftest.er1 >conftest.err
  18441. rm -f conftest.er1
  18442. cat conftest.err >&5
  18443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18444. (exit $ac_status); } &&
  18445. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18446. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18447. (eval $ac_try) 2>&5
  18448. ac_status=$?
  18449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18450. (exit $ac_status); }; } &&
  18451. { ac_try='test -s conftest.$ac_objext'
  18452. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18453. (eval $ac_try) 2>&5
  18454. ac_status=$?
  18455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18456. (exit $ac_status); }; }; then
  18457. ac_hi=-1 ac_mid=-1
  18458. while :; do
  18459. cat >conftest.$ac_ext <<_ACEOF
  18460. /* confdefs.h. */
  18461. _ACEOF
  18462. cat confdefs.h >>conftest.$ac_ext
  18463. cat >>conftest.$ac_ext <<_ACEOF
  18464. /* end confdefs.h. */
  18465. $ac_includes_default
  18466. int
  18467. main ()
  18468. {
  18469. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  18470. test_array [0] = 0
  18471. ;
  18472. return 0;
  18473. }
  18474. _ACEOF
  18475. rm -f conftest.$ac_objext
  18476. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18477. (eval $ac_compile) 2>conftest.er1
  18478. ac_status=$?
  18479. grep -v '^ *+' conftest.er1 >conftest.err
  18480. rm -f conftest.er1
  18481. cat conftest.err >&5
  18482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18483. (exit $ac_status); } &&
  18484. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18486. (eval $ac_try) 2>&5
  18487. ac_status=$?
  18488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18489. (exit $ac_status); }; } &&
  18490. { ac_try='test -s conftest.$ac_objext'
  18491. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18492. (eval $ac_try) 2>&5
  18493. ac_status=$?
  18494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18495. (exit $ac_status); }; }; then
  18496. ac_lo=$ac_mid; break
  18497. else
  18498. echo "$as_me: failed program was:" >&5
  18499. sed 's/^/| /' conftest.$ac_ext >&5
  18500. ac_hi=`expr '(' $ac_mid ')' - 1`
  18501. if test $ac_mid -le $ac_hi; then
  18502. ac_lo= ac_hi=
  18503. break
  18504. fi
  18505. ac_mid=`expr 2 '*' $ac_mid`
  18506. fi
  18507. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18508. done
  18509. else
  18510. echo "$as_me: failed program was:" >&5
  18511. sed 's/^/| /' conftest.$ac_ext >&5
  18512. ac_lo= ac_hi=
  18513. fi
  18514. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18515. fi
  18516. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18517. # Binary search between lo and hi bounds.
  18518. while test "x$ac_lo" != "x$ac_hi"; do
  18519. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  18520. cat >conftest.$ac_ext <<_ACEOF
  18521. /* confdefs.h. */
  18522. _ACEOF
  18523. cat confdefs.h >>conftest.$ac_ext
  18524. cat >>conftest.$ac_ext <<_ACEOF
  18525. /* end confdefs.h. */
  18526. $ac_includes_default
  18527. int
  18528. main ()
  18529. {
  18530. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  18531. test_array [0] = 0
  18532. ;
  18533. return 0;
  18534. }
  18535. _ACEOF
  18536. rm -f conftest.$ac_objext
  18537. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18538. (eval $ac_compile) 2>conftest.er1
  18539. ac_status=$?
  18540. grep -v '^ *+' conftest.er1 >conftest.err
  18541. rm -f conftest.er1
  18542. cat conftest.err >&5
  18543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18544. (exit $ac_status); } &&
  18545. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18547. (eval $ac_try) 2>&5
  18548. ac_status=$?
  18549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18550. (exit $ac_status); }; } &&
  18551. { ac_try='test -s conftest.$ac_objext'
  18552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18553. (eval $ac_try) 2>&5
  18554. ac_status=$?
  18555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18556. (exit $ac_status); }; }; then
  18557. ac_hi=$ac_mid
  18558. else
  18559. echo "$as_me: failed program was:" >&5
  18560. sed 's/^/| /' conftest.$ac_ext >&5
  18561. ac_lo=`expr '(' $ac_mid ')' + 1`
  18562. fi
  18563. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18564. done
  18565. case $ac_lo in
  18566. ?*) ac_cv_sizeof_long=$ac_lo;;
  18567. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  18568. See \`config.log' for more details." >&5
  18569. echo "$as_me: error: cannot compute sizeof (long), 77
  18570. See \`config.log' for more details." >&2;}
  18571. { (exit 1); exit 1; }; } ;;
  18572. esac
  18573. else
  18574. if test "$cross_compiling" = yes; then
  18575. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  18576. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  18577. { (exit 1); exit 1; }; }
  18578. else
  18579. cat >conftest.$ac_ext <<_ACEOF
  18580. /* confdefs.h. */
  18581. _ACEOF
  18582. cat confdefs.h >>conftest.$ac_ext
  18583. cat >>conftest.$ac_ext <<_ACEOF
  18584. /* end confdefs.h. */
  18585. $ac_includes_default
  18586. long longval () { return (long) (sizeof (long)); }
  18587. unsigned long ulongval () { return (long) (sizeof (long)); }
  18588. #include <stdio.h>
  18589. #include <stdlib.h>
  18590. int
  18591. main ()
  18592. {
  18593. FILE *f = fopen ("conftest.val", "w");
  18594. if (! f)
  18595. exit (1);
  18596. if (((long) (sizeof (long))) < 0)
  18597. {
  18598. long i = longval ();
  18599. if (i != ((long) (sizeof (long))))
  18600. exit (1);
  18601. fprintf (f, "%ld\n", i);
  18602. }
  18603. else
  18604. {
  18605. unsigned long i = ulongval ();
  18606. if (i != ((long) (sizeof (long))))
  18607. exit (1);
  18608. fprintf (f, "%lu\n", i);
  18609. }
  18610. exit (ferror (f) || fclose (f) != 0);
  18611. ;
  18612. return 0;
  18613. }
  18614. _ACEOF
  18615. rm -f conftest$ac_exeext
  18616. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18617. (eval $ac_link) 2>&5
  18618. ac_status=$?
  18619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18620. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18621. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18622. (eval $ac_try) 2>&5
  18623. ac_status=$?
  18624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18625. (exit $ac_status); }; }; then
  18626. ac_cv_sizeof_long=`cat conftest.val`
  18627. else
  18628. echo "$as_me: program exited with status $ac_status" >&5
  18629. echo "$as_me: failed program was:" >&5
  18630. sed 's/^/| /' conftest.$ac_ext >&5
  18631. ( exit $ac_status )
  18632. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  18633. See \`config.log' for more details." >&5
  18634. echo "$as_me: error: cannot compute sizeof (long), 77
  18635. See \`config.log' for more details." >&2;}
  18636. { (exit 1); exit 1; }; }
  18637. fi
  18638. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18639. fi
  18640. fi
  18641. rm -f conftest.val
  18642. else
  18643. ac_cv_sizeof_long=0
  18644. fi
  18645. fi
  18646. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  18647. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  18648. cat >>confdefs.h <<_ACEOF
  18649. #define SIZEOF_LONG $ac_cv_sizeof_long
  18650. _ACEOF
  18651. echo "$as_me:$LINENO: checking for long long" >&5
  18652. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  18653. if test "${ac_cv_type_long_long+set}" = set; then
  18654. echo $ECHO_N "(cached) $ECHO_C" >&6
  18655. else
  18656. cat >conftest.$ac_ext <<_ACEOF
  18657. /* confdefs.h. */
  18658. _ACEOF
  18659. cat confdefs.h >>conftest.$ac_ext
  18660. cat >>conftest.$ac_ext <<_ACEOF
  18661. /* end confdefs.h. */
  18662. $ac_includes_default
  18663. int
  18664. main ()
  18665. {
  18666. if ((long long *) 0)
  18667. return 0;
  18668. if (sizeof (long long))
  18669. return 0;
  18670. ;
  18671. return 0;
  18672. }
  18673. _ACEOF
  18674. rm -f conftest.$ac_objext
  18675. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18676. (eval $ac_compile) 2>conftest.er1
  18677. ac_status=$?
  18678. grep -v '^ *+' conftest.er1 >conftest.err
  18679. rm -f conftest.er1
  18680. cat conftest.err >&5
  18681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18682. (exit $ac_status); } &&
  18683. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18684. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18685. (eval $ac_try) 2>&5
  18686. ac_status=$?
  18687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18688. (exit $ac_status); }; } &&
  18689. { ac_try='test -s conftest.$ac_objext'
  18690. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18691. (eval $ac_try) 2>&5
  18692. ac_status=$?
  18693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18694. (exit $ac_status); }; }; then
  18695. ac_cv_type_long_long=yes
  18696. else
  18697. echo "$as_me: failed program was:" >&5
  18698. sed 's/^/| /' conftest.$ac_ext >&5
  18699. ac_cv_type_long_long=no
  18700. fi
  18701. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18702. fi
  18703. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  18704. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  18705. echo "$as_me:$LINENO: checking size of long long" >&5
  18706. echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  18707. if test "${ac_cv_sizeof_long_long+set}" = set; then
  18708. echo $ECHO_N "(cached) $ECHO_C" >&6
  18709. else
  18710. if test "$ac_cv_type_long_long" = yes; then
  18711. # The cast to unsigned long works around a bug in the HP C Compiler
  18712. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18713. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18714. # This bug is HP SR number 8606223364.
  18715. if test "$cross_compiling" = yes; then
  18716. # Depending upon the size, compute the lo and hi bounds.
  18717. cat >conftest.$ac_ext <<_ACEOF
  18718. /* confdefs.h. */
  18719. _ACEOF
  18720. cat confdefs.h >>conftest.$ac_ext
  18721. cat >>conftest.$ac_ext <<_ACEOF
  18722. /* end confdefs.h. */
  18723. $ac_includes_default
  18724. int
  18725. main ()
  18726. {
  18727. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  18728. test_array [0] = 0
  18729. ;
  18730. return 0;
  18731. }
  18732. _ACEOF
  18733. rm -f conftest.$ac_objext
  18734. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18735. (eval $ac_compile) 2>conftest.er1
  18736. ac_status=$?
  18737. grep -v '^ *+' conftest.er1 >conftest.err
  18738. rm -f conftest.er1
  18739. cat conftest.err >&5
  18740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18741. (exit $ac_status); } &&
  18742. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18743. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18744. (eval $ac_try) 2>&5
  18745. ac_status=$?
  18746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18747. (exit $ac_status); }; } &&
  18748. { ac_try='test -s conftest.$ac_objext'
  18749. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18750. (eval $ac_try) 2>&5
  18751. ac_status=$?
  18752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18753. (exit $ac_status); }; }; then
  18754. ac_lo=0 ac_mid=0
  18755. while :; do
  18756. cat >conftest.$ac_ext <<_ACEOF
  18757. /* confdefs.h. */
  18758. _ACEOF
  18759. cat confdefs.h >>conftest.$ac_ext
  18760. cat >>conftest.$ac_ext <<_ACEOF
  18761. /* end confdefs.h. */
  18762. $ac_includes_default
  18763. int
  18764. main ()
  18765. {
  18766. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  18767. test_array [0] = 0
  18768. ;
  18769. return 0;
  18770. }
  18771. _ACEOF
  18772. rm -f conftest.$ac_objext
  18773. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18774. (eval $ac_compile) 2>conftest.er1
  18775. ac_status=$?
  18776. grep -v '^ *+' conftest.er1 >conftest.err
  18777. rm -f conftest.er1
  18778. cat conftest.err >&5
  18779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18780. (exit $ac_status); } &&
  18781. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18782. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18783. (eval $ac_try) 2>&5
  18784. ac_status=$?
  18785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18786. (exit $ac_status); }; } &&
  18787. { ac_try='test -s conftest.$ac_objext'
  18788. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18789. (eval $ac_try) 2>&5
  18790. ac_status=$?
  18791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18792. (exit $ac_status); }; }; then
  18793. ac_hi=$ac_mid; break
  18794. else
  18795. echo "$as_me: failed program was:" >&5
  18796. sed 's/^/| /' conftest.$ac_ext >&5
  18797. ac_lo=`expr $ac_mid + 1`
  18798. if test $ac_lo -le $ac_mid; then
  18799. ac_lo= ac_hi=
  18800. break
  18801. fi
  18802. ac_mid=`expr 2 '*' $ac_mid + 1`
  18803. fi
  18804. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18805. done
  18806. else
  18807. echo "$as_me: failed program was:" >&5
  18808. sed 's/^/| /' conftest.$ac_ext >&5
  18809. cat >conftest.$ac_ext <<_ACEOF
  18810. /* confdefs.h. */
  18811. _ACEOF
  18812. cat confdefs.h >>conftest.$ac_ext
  18813. cat >>conftest.$ac_ext <<_ACEOF
  18814. /* end confdefs.h. */
  18815. $ac_includes_default
  18816. int
  18817. main ()
  18818. {
  18819. static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  18820. test_array [0] = 0
  18821. ;
  18822. return 0;
  18823. }
  18824. _ACEOF
  18825. rm -f conftest.$ac_objext
  18826. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18827. (eval $ac_compile) 2>conftest.er1
  18828. ac_status=$?
  18829. grep -v '^ *+' conftest.er1 >conftest.err
  18830. rm -f conftest.er1
  18831. cat conftest.err >&5
  18832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18833. (exit $ac_status); } &&
  18834. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18835. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18836. (eval $ac_try) 2>&5
  18837. ac_status=$?
  18838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18839. (exit $ac_status); }; } &&
  18840. { ac_try='test -s conftest.$ac_objext'
  18841. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18842. (eval $ac_try) 2>&5
  18843. ac_status=$?
  18844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18845. (exit $ac_status); }; }; then
  18846. ac_hi=-1 ac_mid=-1
  18847. while :; do
  18848. cat >conftest.$ac_ext <<_ACEOF
  18849. /* confdefs.h. */
  18850. _ACEOF
  18851. cat confdefs.h >>conftest.$ac_ext
  18852. cat >>conftest.$ac_ext <<_ACEOF
  18853. /* end confdefs.h. */
  18854. $ac_includes_default
  18855. int
  18856. main ()
  18857. {
  18858. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  18859. test_array [0] = 0
  18860. ;
  18861. return 0;
  18862. }
  18863. _ACEOF
  18864. rm -f conftest.$ac_objext
  18865. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18866. (eval $ac_compile) 2>conftest.er1
  18867. ac_status=$?
  18868. grep -v '^ *+' conftest.er1 >conftest.err
  18869. rm -f conftest.er1
  18870. cat conftest.err >&5
  18871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18872. (exit $ac_status); } &&
  18873. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18875. (eval $ac_try) 2>&5
  18876. ac_status=$?
  18877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18878. (exit $ac_status); }; } &&
  18879. { ac_try='test -s conftest.$ac_objext'
  18880. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18881. (eval $ac_try) 2>&5
  18882. ac_status=$?
  18883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18884. (exit $ac_status); }; }; then
  18885. ac_lo=$ac_mid; break
  18886. else
  18887. echo "$as_me: failed program was:" >&5
  18888. sed 's/^/| /' conftest.$ac_ext >&5
  18889. ac_hi=`expr '(' $ac_mid ')' - 1`
  18890. if test $ac_mid -le $ac_hi; then
  18891. ac_lo= ac_hi=
  18892. break
  18893. fi
  18894. ac_mid=`expr 2 '*' $ac_mid`
  18895. fi
  18896. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18897. done
  18898. else
  18899. echo "$as_me: failed program was:" >&5
  18900. sed 's/^/| /' conftest.$ac_ext >&5
  18901. ac_lo= ac_hi=
  18902. fi
  18903. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18904. fi
  18905. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18906. # Binary search between lo and hi bounds.
  18907. while test "x$ac_lo" != "x$ac_hi"; do
  18908. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  18909. cat >conftest.$ac_ext <<_ACEOF
  18910. /* confdefs.h. */
  18911. _ACEOF
  18912. cat confdefs.h >>conftest.$ac_ext
  18913. cat >>conftest.$ac_ext <<_ACEOF
  18914. /* end confdefs.h. */
  18915. $ac_includes_default
  18916. int
  18917. main ()
  18918. {
  18919. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  18920. test_array [0] = 0
  18921. ;
  18922. return 0;
  18923. }
  18924. _ACEOF
  18925. rm -f conftest.$ac_objext
  18926. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18927. (eval $ac_compile) 2>conftest.er1
  18928. ac_status=$?
  18929. grep -v '^ *+' conftest.er1 >conftest.err
  18930. rm -f conftest.er1
  18931. cat conftest.err >&5
  18932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18933. (exit $ac_status); } &&
  18934. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18935. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18936. (eval $ac_try) 2>&5
  18937. ac_status=$?
  18938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18939. (exit $ac_status); }; } &&
  18940. { ac_try='test -s conftest.$ac_objext'
  18941. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18942. (eval $ac_try) 2>&5
  18943. ac_status=$?
  18944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18945. (exit $ac_status); }; }; then
  18946. ac_hi=$ac_mid
  18947. else
  18948. echo "$as_me: failed program was:" >&5
  18949. sed 's/^/| /' conftest.$ac_ext >&5
  18950. ac_lo=`expr '(' $ac_mid ')' + 1`
  18951. fi
  18952. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18953. done
  18954. case $ac_lo in
  18955. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  18956. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  18957. See \`config.log' for more details." >&5
  18958. echo "$as_me: error: cannot compute sizeof (long long), 77
  18959. See \`config.log' for more details." >&2;}
  18960. { (exit 1); exit 1; }; } ;;
  18961. esac
  18962. else
  18963. if test "$cross_compiling" = yes; then
  18964. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  18965. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  18966. { (exit 1); exit 1; }; }
  18967. else
  18968. cat >conftest.$ac_ext <<_ACEOF
  18969. /* confdefs.h. */
  18970. _ACEOF
  18971. cat confdefs.h >>conftest.$ac_ext
  18972. cat >>conftest.$ac_ext <<_ACEOF
  18973. /* end confdefs.h. */
  18974. $ac_includes_default
  18975. long longval () { return (long) (sizeof (long long)); }
  18976. unsigned long ulongval () { return (long) (sizeof (long long)); }
  18977. #include <stdio.h>
  18978. #include <stdlib.h>
  18979. int
  18980. main ()
  18981. {
  18982. FILE *f = fopen ("conftest.val", "w");
  18983. if (! f)
  18984. exit (1);
  18985. if (((long) (sizeof (long long))) < 0)
  18986. {
  18987. long i = longval ();
  18988. if (i != ((long) (sizeof (long long))))
  18989. exit (1);
  18990. fprintf (f, "%ld\n", i);
  18991. }
  18992. else
  18993. {
  18994. unsigned long i = ulongval ();
  18995. if (i != ((long) (sizeof (long long))))
  18996. exit (1);
  18997. fprintf (f, "%lu\n", i);
  18998. }
  18999. exit (ferror (f) || fclose (f) != 0);
  19000. ;
  19001. return 0;
  19002. }
  19003. _ACEOF
  19004. rm -f conftest$ac_exeext
  19005. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19006. (eval $ac_link) 2>&5
  19007. ac_status=$?
  19008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19009. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19010. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19011. (eval $ac_try) 2>&5
  19012. ac_status=$?
  19013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19014. (exit $ac_status); }; }; then
  19015. ac_cv_sizeof_long_long=`cat conftest.val`
  19016. else
  19017. echo "$as_me: program exited with status $ac_status" >&5
  19018. echo "$as_me: failed program was:" >&5
  19019. sed 's/^/| /' conftest.$ac_ext >&5
  19020. ( exit $ac_status )
  19021. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  19022. See \`config.log' for more details." >&5
  19023. echo "$as_me: error: cannot compute sizeof (long long), 77
  19024. See \`config.log' for more details." >&2;}
  19025. { (exit 1); exit 1; }; }
  19026. fi
  19027. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19028. fi
  19029. fi
  19030. rm -f conftest.val
  19031. else
  19032. ac_cv_sizeof_long_long=0
  19033. fi
  19034. fi
  19035. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  19036. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  19037. cat >>confdefs.h <<_ACEOF
  19038. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  19039. _ACEOF
  19040. for ac_func in waitpid fcntl pipe fork
  19041. do
  19042. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19043. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19044. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19045. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19046. echo $ECHO_N "(cached) $ECHO_C" >&6
  19047. else
  19048. cat >conftest.$ac_ext <<_ACEOF
  19049. /* confdefs.h. */
  19050. _ACEOF
  19051. cat confdefs.h >>conftest.$ac_ext
  19052. cat >>conftest.$ac_ext <<_ACEOF
  19053. /* end confdefs.h. */
  19054. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19055. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19056. #define $ac_func innocuous_$ac_func
  19057. /* System header to define __stub macros and hopefully few prototypes,
  19058. which can conflict with char $ac_func (); below.
  19059. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19060. <limits.h> exists even on freestanding compilers. */
  19061. #ifdef __STDC__
  19062. # include <limits.h>
  19063. #else
  19064. # include <assert.h>
  19065. #endif
  19066. #undef $ac_func
  19067. /* Override any gcc2 internal prototype to avoid an error. */
  19068. #ifdef __cplusplus
  19069. extern "C"
  19070. {
  19071. #endif
  19072. /* We use char because int might match the return type of a gcc2
  19073. builtin and then its argument prototype would still apply. */
  19074. char $ac_func ();
  19075. /* The GNU C library defines this for functions which it implements
  19076. to always fail with ENOSYS. Some functions are actually named
  19077. something starting with __ and the normal name is an alias. */
  19078. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19079. choke me
  19080. #else
  19081. char (*f) () = $ac_func;
  19082. #endif
  19083. #ifdef __cplusplus
  19084. }
  19085. #endif
  19086. int
  19087. main ()
  19088. {
  19089. return f != $ac_func;
  19090. ;
  19091. return 0;
  19092. }
  19093. _ACEOF
  19094. rm -f conftest.$ac_objext conftest$ac_exeext
  19095. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19096. (eval $ac_link) 2>conftest.er1
  19097. ac_status=$?
  19098. grep -v '^ *+' conftest.er1 >conftest.err
  19099. rm -f conftest.er1
  19100. cat conftest.err >&5
  19101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19102. (exit $ac_status); } &&
  19103. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19104. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19105. (eval $ac_try) 2>&5
  19106. ac_status=$?
  19107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19108. (exit $ac_status); }; } &&
  19109. { ac_try='test -s conftest$ac_exeext'
  19110. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19111. (eval $ac_try) 2>&5
  19112. ac_status=$?
  19113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19114. (exit $ac_status); }; }; then
  19115. eval "$as_ac_var=yes"
  19116. else
  19117. echo "$as_me: failed program was:" >&5
  19118. sed 's/^/| /' conftest.$ac_ext >&5
  19119. eval "$as_ac_var=no"
  19120. fi
  19121. rm -f conftest.err conftest.$ac_objext \
  19122. conftest$ac_exeext conftest.$ac_ext
  19123. fi
  19124. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19125. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19126. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19127. cat >>confdefs.h <<_ACEOF
  19128. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19129. _ACEOF
  19130. fi
  19131. done
  19132. cat >confcache <<\_ACEOF
  19133. # This file is a shell script that caches the results of configure
  19134. # tests run on this system so they can be shared between configure
  19135. # scripts and configure runs, see configure's option --config-cache.
  19136. # It is not useful on other systems. If it contains results you don't
  19137. # want to keep, you may remove or edit it.
  19138. #
  19139. # config.status only pays attention to the cache file if you give it
  19140. # the --recheck option to rerun configure.
  19141. #
  19142. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19143. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19144. # following values.
  19145. _ACEOF
  19146. # The following way of writing the cache mishandles newlines in values,
  19147. # but we know of no workaround that is simple, portable, and efficient.
  19148. # So, don't put newlines in cache variables' values.
  19149. # Ultrix sh set writes to stderr and can't be redirected directly,
  19150. # and sets the high bit in the cache file unless we assign to the vars.
  19151. {
  19152. (set) 2>&1 |
  19153. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  19154. *ac_space=\ *)
  19155. # `set' does not quote correctly, so add quotes (double-quote
  19156. # substitution turns \\\\ into \\, and sed turns \\ into \).
  19157. sed -n \
  19158. "s/'/'\\\\''/g;
  19159. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19160. ;;
  19161. *)
  19162. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19163. sed -n \
  19164. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  19165. ;;
  19166. esac;
  19167. } |
  19168. sed '
  19169. t clear
  19170. : clear
  19171. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19172. t end
  19173. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19174. : end' >>confcache
  19175. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  19176. if test -w $cache_file; then
  19177. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  19178. cat confcache >$cache_file
  19179. else
  19180. echo "not updating unwritable cache $cache_file"
  19181. fi
  19182. fi
  19183. rm -f confcache
  19184. echo "$as_me:$LINENO: checking whether to optimize for speed or for accuracy" >&5
  19185. echo $ECHO_N "checking whether to optimize for speed or for accuracy... $ECHO_C" >&6
  19186. # Check whether --enable-speed or --disable-speed was given.
  19187. if test "${enable_speed+set}" = set; then
  19188. enableval="$enable_speed"
  19189. case "$enableval" in
  19190. yes)
  19191. optimize_for="speed"
  19192. cat >>confdefs.h <<\_ACEOF
  19193. #define OPT_SPEED 1
  19194. _ACEOF
  19195. ;;
  19196. esac
  19197. fi;
  19198. # Check whether --enable-accuracy or --disable-accuracy was given.
  19199. if test "${enable_accuracy+set}" = set; then
  19200. enableval="$enable_accuracy"
  19201. case "$enableval" in
  19202. yes)
  19203. if test "$optimize_for" = "speed"
  19204. then
  19205. optimize_for="both"
  19206. else
  19207. optimize_for="accuracy"
  19208. fi
  19209. cat >>confdefs.h <<\_ACEOF
  19210. #define OPT_ACCURACY 1
  19211. _ACEOF
  19212. ;;
  19213. esac
  19214. fi;
  19215. echo "$as_me:$LINENO: result: ${optimize_for-default}" >&5
  19216. echo "${ECHO_T}${optimize_for-default}" >&6
  19217. if test "$optimize_for" = "both"
  19218. then
  19219. { { echo "$as_me:$LINENO: error: cannot optimize for both speed and accuracy" >&5
  19220. echo "$as_me: error: cannot optimize for both speed and accuracy" >&2;}
  19221. { (exit 1); exit 1; }; }
  19222. fi
  19223. echo "$as_me:$LINENO: checking for architecture-specific fixed-point math routines" >&5
  19224. echo $ECHO_N "checking for architecture-specific fixed-point math routines... $ECHO_C" >&6
  19225. # Check whether --enable-fpm or --disable-fpm was given.
  19226. if test "${enable_fpm+set}" = set; then
  19227. enableval="$enable_fpm"
  19228. case "$enableval" in
  19229. yes) ;;
  19230. no|default|approx) FPM="DEFAULT" ;;
  19231. intel|i?86) FPM="INTEL" ;;
  19232. arm) FPM="ARM" ;;
  19233. mips) FPM="MIPS" ;;
  19234. sparc) FPM="SPARC" ;;
  19235. ppc|powerpc) FPM="PPC" ;;
  19236. 64bit) FPM="64BIT" ;;
  19237. float) FPM="FLOAT" ;;
  19238. *)
  19239. echo "$as_me:$LINENO: result: failed" >&5
  19240. echo "${ECHO_T}failed" >&6
  19241. { { echo "$as_me:$LINENO: error: bad --enable-fpm option" >&5
  19242. echo "$as_me: error: bad --enable-fpm option" >&2;}
  19243. { (exit 1); exit 1; }; }
  19244. ;;
  19245. esac
  19246. fi;
  19247. if test -z "$FPM" && test "$GCC" = yes
  19248. then
  19249. case "$host" in
  19250. i?86-*) FPM="INTEL" ;;
  19251. arm*-*) FPM="ARM" ;;
  19252. mips*-*) FPM="MIPS" ;;
  19253. sparc*-*) FPM="SPARC" ;;
  19254. powerpc*-*) FPM="PPC" ;;
  19255. # FIXME: need to test for 64-bit long long...
  19256. esac
  19257. fi
  19258. echo "$as_me:$LINENO: result: ${FPM=DEFAULT}" >&5
  19259. echo "${ECHO_T}${FPM=DEFAULT}" >&6
  19260. if test "$FPM" = "DEFAULT"
  19261. then
  19262. { echo "$as_me:$LINENO: WARNING: default fixed-point math will yield limited accuracy" >&5
  19263. echo "$as_me: WARNING: default fixed-point math will yield limited accuracy" >&2;}
  19264. fi
  19265. FPM="-DFPM_$FPM"
  19266. # Check whether --enable-sso or --disable-sso was given.
  19267. if test "${enable_sso+set}" = set; then
  19268. enableval="$enable_sso"
  19269. case "$enableval" in
  19270. yes)
  19271. cat >>confdefs.h <<\_ACEOF
  19272. #define OPT_SSO 1
  19273. _ACEOF
  19274. ;;
  19275. esac
  19276. fi;
  19277. # Check whether --enable-aso or --disable-aso was given.
  19278. if test "${enable_aso+set}" = set; then
  19279. enableval="$enable_aso"
  19280. else
  19281. enable_aso=yes
  19282. fi;
  19283. if test "$enable_aso" = yes
  19284. then
  19285. case "$host" in
  19286. i?86-*)
  19287. : #ASO="$ASO -DASO_INTERLEAVE1"
  19288. ASO="$ASO -DASO_ZEROCHECK"
  19289. : #not yet #ASO="$ASO -DASO_SYNTH"
  19290. : #not yet #ASO_OBJS="synth_mmx.lo"
  19291. ;;
  19292. arm*-*)
  19293. ASO="$ASO -DASO_INTERLEAVE1"
  19294. ASO="$ASO -DASO_IMDCT"
  19295. ASO_OBJS="imdct_l_arm.lo"
  19296. ;;
  19297. mips*-*)
  19298. ASO="$ASO -DASO_INTERLEAVE2"
  19299. ASO="$ASO -DASO_ZEROCHECK"
  19300. ;;
  19301. esac
  19302. fi
  19303. echo "$as_me:$LINENO: checking for ISO/IEC interpretation" >&5
  19304. echo $ECHO_N "checking for ISO/IEC interpretation... $ECHO_C" >&6
  19305. # Check whether --enable-strict-iso or --disable-strict-iso was given.
  19306. if test "${enable_strict_iso+set}" = set; then
  19307. enableval="$enable_strict_iso"
  19308. case "$enableval" in
  19309. yes)
  19310. cat >>confdefs.h <<\_ACEOF
  19311. #define OPT_STRICT 1
  19312. _ACEOF
  19313. interpretation="strict"
  19314. ;;
  19315. esac
  19316. fi;
  19317. echo "$as_me:$LINENO: result: ${interpretation-best accepted practices}" >&5
  19318. echo "${ECHO_T}${interpretation-best accepted practices}" >&6
  19319. echo "$as_me:$LINENO: checking whether to enable profiling" >&5
  19320. echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6
  19321. # Check whether --enable-profiling or --disable-profiling was given.
  19322. if test "${enable_profiling+set}" = set; then
  19323. enableval="$enable_profiling"
  19324. case "$enableval" in
  19325. yes) profile="-pg" ;;
  19326. esac
  19327. fi;
  19328. echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
  19329. echo "${ECHO_T}${enable_profiling-no}" >&6
  19330. echo "$as_me:$LINENO: checking whether to enable debugging" >&5
  19331. echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6
  19332. # Check whether --enable-debugging or --disable-debugging was given.
  19333. if test "${enable_debugging+set}" = set; then
  19334. enableval="$enable_debugging"
  19335. case "$enableval" in
  19336. yes)
  19337. cat >>confdefs.h <<\_ACEOF
  19338. #define DEBUG 1
  19339. _ACEOF
  19340. optimize=""
  19341. ;;
  19342. no)
  19343. if test -n "$profile"
  19344. then
  19345. { { echo "$as_me:$LINENO: error: --enable-profiling and --disable-debugging are incompatible" >&5
  19346. echo "$as_me: error: --enable-profiling and --disable-debugging are incompatible" >&2;}
  19347. { (exit 1); exit 1; }; }
  19348. fi
  19349. cat >>confdefs.h <<\_ACEOF
  19350. #define NDEBUG 1
  19351. _ACEOF
  19352. debug=""
  19353. if test "$GCC" = yes
  19354. then
  19355. optimize="$optimize -fomit-frame-pointer"
  19356. fi
  19357. ;;
  19358. esac
  19359. fi;
  19360. echo "$as_me:$LINENO: result: ${enable_debugging-default}" >&5
  19361. echo "${ECHO_T}${enable_debugging-default}" >&6
  19362. echo "$as_me:$LINENO: checking whether to enable experimental code" >&5
  19363. echo $ECHO_N "checking whether to enable experimental code... $ECHO_C" >&6
  19364. # Check whether --enable-experimental or --disable-experimental was given.
  19365. if test "${enable_experimental+set}" = set; then
  19366. enableval="$enable_experimental"
  19367. case "$enableval" in
  19368. yes)
  19369. cat >>confdefs.h <<\_ACEOF
  19370. #define EXPERIMENTAL 1
  19371. _ACEOF
  19372. ;;
  19373. esac
  19374. fi;
  19375. echo "$as_me:$LINENO: result: ${enable_experimental-no}" >&5
  19376. echo "${ECHO_T}${enable_experimental-no}" >&6
  19377. test -n "$arch" && CFLAGS="$CFLAGS $arch"
  19378. test -n "$debug" && CFLAGS="$CFLAGS $debug"
  19379. test -n "$optimize" && CFLAGS="$CFLAGS $optimize"
  19380. test -n "$profile" && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
  19381. ac_config_files="$ac_config_files Makefile msvc++/Makefile libmad.list"
  19382. cat >confcache <<\_ACEOF
  19383. # This file is a shell script that caches the results of configure
  19384. # tests run on this system so they can be shared between configure
  19385. # scripts and configure runs, see configure's option --config-cache.
  19386. # It is not useful on other systems. If it contains results you don't
  19387. # want to keep, you may remove or edit it.
  19388. #
  19389. # config.status only pays attention to the cache file if you give it
  19390. # the --recheck option to rerun configure.
  19391. #
  19392. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19393. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19394. # following values.
  19395. _ACEOF
  19396. # The following way of writing the cache mishandles newlines in values,
  19397. # but we know of no workaround that is simple, portable, and efficient.
  19398. # So, don't put newlines in cache variables' values.
  19399. # Ultrix sh set writes to stderr and can't be redirected directly,
  19400. # and sets the high bit in the cache file unless we assign to the vars.
  19401. {
  19402. (set) 2>&1 |
  19403. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  19404. *ac_space=\ *)
  19405. # `set' does not quote correctly, so add quotes (double-quote
  19406. # substitution turns \\\\ into \\, and sed turns \\ into \).
  19407. sed -n \
  19408. "s/'/'\\\\''/g;
  19409. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19410. ;;
  19411. *)
  19412. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19413. sed -n \
  19414. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  19415. ;;
  19416. esac;
  19417. } |
  19418. sed '
  19419. t clear
  19420. : clear
  19421. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19422. t end
  19423. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19424. : end' >>confcache
  19425. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  19426. if test -w $cache_file; then
  19427. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  19428. cat confcache >$cache_file
  19429. else
  19430. echo "not updating unwritable cache $cache_file"
  19431. fi
  19432. fi
  19433. rm -f confcache
  19434. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19435. # Let make expand exec_prefix.
  19436. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19437. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  19438. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  19439. # trailing colons and then remove the whole line if VPATH becomes empty
  19440. # (actually we leave an empty line to preserve line numbers).
  19441. if test "x$srcdir" = x.; then
  19442. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  19443. s/:*\$(srcdir):*/:/;
  19444. s/:*\${srcdir}:*/:/;
  19445. s/:*@srcdir@:*/:/;
  19446. s/^\([^=]*=[ ]*\):*/\1/;
  19447. s/:*$//;
  19448. s/^[^=]*=[ ]*$//;
  19449. }'
  19450. fi
  19451. DEFS=-DHAVE_CONFIG_H
  19452. ac_libobjs=
  19453. ac_ltlibobjs=
  19454. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19455. # 1. Remove the extension, and $U if already installed.
  19456. ac_i=`echo "$ac_i" |
  19457. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  19458. # 2. Add them.
  19459. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  19460. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  19461. done
  19462. LIBOBJS=$ac_libobjs
  19463. LTLIBOBJS=$ac_ltlibobjs
  19464. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19465. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  19466. Usually this means the macro was only invoked conditionally." >&5
  19467. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  19468. Usually this means the macro was only invoked conditionally." >&2;}
  19469. { (exit 1); exit 1; }; }
  19470. fi
  19471. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19472. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  19473. Usually this means the macro was only invoked conditionally." >&5
  19474. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  19475. Usually this means the macro was only invoked conditionally." >&2;}
  19476. { (exit 1); exit 1; }; }
  19477. fi
  19478. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  19479. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  19480. Usually this means the macro was only invoked conditionally." >&5
  19481. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  19482. Usually this means the macro was only invoked conditionally." >&2;}
  19483. { (exit 1); exit 1; }; }
  19484. fi
  19485. : ${CONFIG_STATUS=./config.status}
  19486. ac_clean_files_save=$ac_clean_files
  19487. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19488. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19489. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19490. cat >$CONFIG_STATUS <<_ACEOF
  19491. #! $SHELL
  19492. # Generated by $as_me.
  19493. # Run this file to recreate the current configuration.
  19494. # Compiler output produced by configure, useful for debugging
  19495. # configure, is in config.log if it exists.
  19496. debug=false
  19497. ac_cs_recheck=false
  19498. ac_cs_silent=false
  19499. SHELL=\${CONFIG_SHELL-$SHELL}
  19500. _ACEOF
  19501. cat >>$CONFIG_STATUS <<\_ACEOF
  19502. ## --------------------- ##
  19503. ## M4sh Initialization. ##
  19504. ## --------------------- ##
  19505. # Be Bourne compatible
  19506. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19507. emulate sh
  19508. NULLCMD=:
  19509. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19510. # is contrary to our usage. Disable this feature.
  19511. alias -g '${1+"$@"}'='"$@"'
  19512. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  19513. set -o posix
  19514. fi
  19515. DUALCASE=1; export DUALCASE # for MKS sh
  19516. # Support unset when possible.
  19517. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19518. as_unset=unset
  19519. else
  19520. as_unset=false
  19521. fi
  19522. # Work around bugs in pre-3.0 UWIN ksh.
  19523. $as_unset ENV MAIL MAILPATH
  19524. PS1='$ '
  19525. PS2='> '
  19526. PS4='+ '
  19527. # NLS nuisances.
  19528. for as_var in \
  19529. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  19530. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19531. LC_TELEPHONE LC_TIME
  19532. do
  19533. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19534. eval $as_var=C; export $as_var
  19535. else
  19536. $as_unset $as_var
  19537. fi
  19538. done
  19539. # Required to use basename.
  19540. if expr a : '\(a\)' >/dev/null 2>&1; then
  19541. as_expr=expr
  19542. else
  19543. as_expr=false
  19544. fi
  19545. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  19546. as_basename=basename
  19547. else
  19548. as_basename=false
  19549. fi
  19550. # Name of the executable.
  19551. as_me=`$as_basename "$0" ||
  19552. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19553. X"$0" : 'X\(//\)$' \| \
  19554. X"$0" : 'X\(/\)$' \| \
  19555. . : '\(.\)' 2>/dev/null ||
  19556. echo X/"$0" |
  19557. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  19558. /^X\/\(\/\/\)$/{ s//\1/; q; }
  19559. /^X\/\(\/\).*/{ s//\1/; q; }
  19560. s/.*/./; q'`
  19561. # PATH needs CR, and LINENO needs CR and PATH.
  19562. # Avoid depending upon Character Ranges.
  19563. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19564. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19565. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19566. as_cr_digits='0123456789'
  19567. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19568. # The user is always right.
  19569. if test "${PATH_SEPARATOR+set}" != set; then
  19570. echo "#! /bin/sh" >conf$$.sh
  19571. echo "exit 0" >>conf$$.sh
  19572. chmod +x conf$$.sh
  19573. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  19574. PATH_SEPARATOR=';'
  19575. else
  19576. PATH_SEPARATOR=:
  19577. fi
  19578. rm -f conf$$.sh
  19579. fi
  19580. as_lineno_1=$LINENO
  19581. as_lineno_2=$LINENO
  19582. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  19583. test "x$as_lineno_1" != "x$as_lineno_2" &&
  19584. test "x$as_lineno_3" = "x$as_lineno_2" || {
  19585. # Find who we are. Look in the path if we contain no path at all
  19586. # relative or not.
  19587. case $0 in
  19588. *[\\/]* ) as_myself=$0 ;;
  19589. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19590. for as_dir in $PATH
  19591. do
  19592. IFS=$as_save_IFS
  19593. test -z "$as_dir" && as_dir=.
  19594. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19595. done
  19596. ;;
  19597. esac
  19598. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19599. # in which case we are not to be found in the path.
  19600. if test "x$as_myself" = x; then
  19601. as_myself=$0
  19602. fi
  19603. if test ! -f "$as_myself"; then
  19604. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  19605. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  19606. { (exit 1); exit 1; }; }
  19607. fi
  19608. case $CONFIG_SHELL in
  19609. '')
  19610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19611. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  19612. do
  19613. IFS=$as_save_IFS
  19614. test -z "$as_dir" && as_dir=.
  19615. for as_base in sh bash ksh sh5; do
  19616. case $as_dir in
  19617. /*)
  19618. if ("$as_dir/$as_base" -c '
  19619. as_lineno_1=$LINENO
  19620. as_lineno_2=$LINENO
  19621. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  19622. test "x$as_lineno_1" != "x$as_lineno_2" &&
  19623. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  19624. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  19625. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  19626. CONFIG_SHELL=$as_dir/$as_base
  19627. export CONFIG_SHELL
  19628. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  19629. fi;;
  19630. esac
  19631. done
  19632. done
  19633. ;;
  19634. esac
  19635. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  19636. # uniformly replaced by the line number. The first 'sed' inserts a
  19637. # line-number line before each line; the second 'sed' does the real
  19638. # work. The second script uses 'N' to pair each line-number line
  19639. # with the numbered line, and appends trailing '-' during
  19640. # substitution so that $LINENO is not a special case at line end.
  19641. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  19642. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  19643. sed '=' <$as_myself |
  19644. sed '
  19645. N
  19646. s,$,-,
  19647. : loop
  19648. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  19649. t loop
  19650. s,-$,,
  19651. s,^['$as_cr_digits']*\n,,
  19652. ' >$as_me.lineno &&
  19653. chmod +x $as_me.lineno ||
  19654. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  19655. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  19656. { (exit 1); exit 1; }; }
  19657. # Don't try to exec as it changes $[0], causing all sort of problems
  19658. # (the dirname of $[0] is not the place where we might find the
  19659. # original and so on. Autoconf is especially sensible to this).
  19660. . ./$as_me.lineno
  19661. # Exit status is that of the last command.
  19662. exit
  19663. }
  19664. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  19665. *c*,-n*) ECHO_N= ECHO_C='
  19666. ' ECHO_T=' ' ;;
  19667. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  19668. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  19669. esac
  19670. if expr a : '\(a\)' >/dev/null 2>&1; then
  19671. as_expr=expr
  19672. else
  19673. as_expr=false
  19674. fi
  19675. rm -f conf$$ conf$$.exe conf$$.file
  19676. echo >conf$$.file
  19677. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19678. # We could just check for DJGPP; but this test a) works b) is more generic
  19679. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  19680. if test -f conf$$.exe; then
  19681. # Don't use ln at all; we don't have any links
  19682. as_ln_s='cp -p'
  19683. else
  19684. as_ln_s='ln -s'
  19685. fi
  19686. elif ln conf$$.file conf$$ 2>/dev/null; then
  19687. as_ln_s=ln
  19688. else
  19689. as_ln_s='cp -p'
  19690. fi
  19691. rm -f conf$$ conf$$.exe conf$$.file
  19692. if mkdir -p . 2>/dev/null; then
  19693. as_mkdir_p=:
  19694. else
  19695. test -d ./-p && rmdir ./-p
  19696. as_mkdir_p=false
  19697. fi
  19698. as_executable_p="test -f"
  19699. # Sed expression to map a string onto a valid CPP name.
  19700. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19701. # Sed expression to map a string onto a valid variable name.
  19702. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19703. # IFS
  19704. # We need space, tab and new line, in precisely that order.
  19705. as_nl='
  19706. '
  19707. IFS=" $as_nl"
  19708. # CDPATH.
  19709. $as_unset CDPATH
  19710. exec 6>&1
  19711. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  19712. # report actual input values of CONFIG_FILES etc. instead of their
  19713. # values after options handling. Logging --version etc. is OK.
  19714. exec 5>>config.log
  19715. {
  19716. echo
  19717. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19718. ## Running $as_me. ##
  19719. _ASBOX
  19720. } >&5
  19721. cat >&5 <<_CSEOF
  19722. This file was extended by MPEG Audio Decoder $as_me 0.15.1b, which was
  19723. generated by GNU Autoconf 2.59. Invocation command line was
  19724. CONFIG_FILES = $CONFIG_FILES
  19725. CONFIG_HEADERS = $CONFIG_HEADERS
  19726. CONFIG_LINKS = $CONFIG_LINKS
  19727. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19728. $ $0 $@
  19729. _CSEOF
  19730. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  19731. echo >&5
  19732. _ACEOF
  19733. # Files that config.status was made for.
  19734. if test -n "$ac_config_files"; then
  19735. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  19736. fi
  19737. if test -n "$ac_config_headers"; then
  19738. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  19739. fi
  19740. if test -n "$ac_config_links"; then
  19741. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  19742. fi
  19743. if test -n "$ac_config_commands"; then
  19744. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  19745. fi
  19746. cat >>$CONFIG_STATUS <<\_ACEOF
  19747. ac_cs_usage="\
  19748. \`$as_me' instantiates files from templates according to the
  19749. current configuration.
  19750. Usage: $0 [OPTIONS] [FILE]...
  19751. -h, --help print this help, then exit
  19752. -V, --version print version number, then exit
  19753. -q, --quiet do not print progress messages
  19754. -d, --debug don't remove temporary files
  19755. --recheck update $as_me by reconfiguring in the same conditions
  19756. --file=FILE[:TEMPLATE]
  19757. instantiate the configuration file FILE
  19758. --header=FILE[:TEMPLATE]
  19759. instantiate the configuration header FILE
  19760. Configuration files:
  19761. $config_files
  19762. Configuration headers:
  19763. $config_headers
  19764. Configuration commands:
  19765. $config_commands
  19766. Report bugs to <[email protected]>."
  19767. _ACEOF
  19768. cat >>$CONFIG_STATUS <<_ACEOF
  19769. ac_cs_version="\\
  19770. MPEG Audio Decoder config.status 0.15.1b
  19771. configured by $0, generated by GNU Autoconf 2.59,
  19772. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  19773. Copyright (C) 2003 Free Software Foundation, Inc.
  19774. This config.status script is free software; the Free Software Foundation
  19775. gives unlimited permission to copy, distribute and modify it."
  19776. srcdir=$srcdir
  19777. INSTALL="$INSTALL"
  19778. _ACEOF
  19779. cat >>$CONFIG_STATUS <<\_ACEOF
  19780. # If no file are specified by the user, then we need to provide default
  19781. # value. By we need to know if files were specified by the user.
  19782. ac_need_defaults=:
  19783. while test $# != 0
  19784. do
  19785. case $1 in
  19786. --*=*)
  19787. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  19788. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  19789. ac_shift=:
  19790. ;;
  19791. -*)
  19792. ac_option=$1
  19793. ac_optarg=$2
  19794. ac_shift=shift
  19795. ;;
  19796. *) # This is not an option, so the user has probably given explicit
  19797. # arguments.
  19798. ac_option=$1
  19799. ac_need_defaults=false;;
  19800. esac
  19801. case $ac_option in
  19802. # Handling of the options.
  19803. _ACEOF
  19804. cat >>$CONFIG_STATUS <<\_ACEOF
  19805. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19806. ac_cs_recheck=: ;;
  19807. --version | --vers* | -V )
  19808. echo "$ac_cs_version"; exit 0 ;;
  19809. --he | --h)
  19810. # Conflict between --help and --header
  19811. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  19812. Try \`$0 --help' for more information." >&5
  19813. echo "$as_me: error: ambiguous option: $1
  19814. Try \`$0 --help' for more information." >&2;}
  19815. { (exit 1); exit 1; }; };;
  19816. --help | --hel | -h )
  19817. echo "$ac_cs_usage"; exit 0 ;;
  19818. --debug | --d* | -d )
  19819. debug=: ;;
  19820. --file | --fil | --fi | --f )
  19821. $ac_shift
  19822. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  19823. ac_need_defaults=false;;
  19824. --header | --heade | --head | --hea )
  19825. $ac_shift
  19826. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  19827. ac_need_defaults=false;;
  19828. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19829. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19830. ac_cs_silent=: ;;
  19831. # This is an error.
  19832. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  19833. Try \`$0 --help' for more information." >&5
  19834. echo "$as_me: error: unrecognized option: $1
  19835. Try \`$0 --help' for more information." >&2;}
  19836. { (exit 1); exit 1; }; } ;;
  19837. *) ac_config_targets="$ac_config_targets $1" ;;
  19838. esac
  19839. shift
  19840. done
  19841. ac_configure_extra_args=
  19842. if $ac_cs_silent; then
  19843. exec 6>/dev/null
  19844. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19845. fi
  19846. _ACEOF
  19847. cat >>$CONFIG_STATUS <<_ACEOF
  19848. if \$ac_cs_recheck; then
  19849. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  19850. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19851. fi
  19852. _ACEOF
  19853. cat >>$CONFIG_STATUS <<_ACEOF
  19854. #
  19855. # INIT-COMMANDS section.
  19856. #
  19857. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19858. _ACEOF
  19859. cat >>$CONFIG_STATUS <<\_ACEOF
  19860. for ac_config_target in $ac_config_targets
  19861. do
  19862. case "$ac_config_target" in
  19863. # Handling of arguments.
  19864. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19865. "msvc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES msvc++/Makefile" ;;
  19866. "libmad.list" ) CONFIG_FILES="$CONFIG_FILES libmad.list" ;;
  19867. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19868. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19869. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  19870. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  19871. { (exit 1); exit 1; }; };;
  19872. esac
  19873. done
  19874. # If the user did not use the arguments to specify the items to instantiate,
  19875. # then the envvar interface is used. Set only those that are not.
  19876. # We use the long form for the default assignment because of an extremely
  19877. # bizarre bug on SunOS 4.1.3.
  19878. if $ac_need_defaults; then
  19879. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19880. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19881. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19882. fi
  19883. # Have a temporary directory for convenience. Make it in the build tree
  19884. # simply because there is no reason to put it here, and in addition,
  19885. # creating and moving files from /tmp can sometimes cause problems.
  19886. # Create a temporary directory, and hook for its removal unless debugging.
  19887. $debug ||
  19888. {
  19889. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  19890. trap '{ (exit 1); exit 1; }' 1 2 13 15
  19891. }
  19892. # Create a (secure) tmp directory for tmp files.
  19893. {
  19894. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  19895. test -n "$tmp" && test -d "$tmp"
  19896. } ||
  19897. {
  19898. tmp=./confstat$$-$RANDOM
  19899. (umask 077 && mkdir $tmp)
  19900. } ||
  19901. {
  19902. echo "$me: cannot create a temporary directory in ." >&2
  19903. { (exit 1); exit 1; }
  19904. }
  19905. _ACEOF
  19906. cat >>$CONFIG_STATUS <<_ACEOF
  19907. #
  19908. # CONFIG_FILES section.
  19909. #
  19910. # No need to generate the scripts if there are no CONFIG_FILES.
  19911. # This happens for instance when ./config.status config.h
  19912. if test -n "\$CONFIG_FILES"; then
  19913. # Protect against being on the right side of a sed subst in config.status.
  19914. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  19915. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  19916. s,@SHELL@,$SHELL,;t t
  19917. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  19918. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  19919. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  19920. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  19921. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  19922. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  19923. s,@exec_prefix@,$exec_prefix,;t t
  19924. s,@prefix@,$prefix,;t t
  19925. s,@program_transform_name@,$program_transform_name,;t t
  19926. s,@bindir@,$bindir,;t t
  19927. s,@sbindir@,$sbindir,;t t
  19928. s,@libexecdir@,$libexecdir,;t t
  19929. s,@datadir@,$datadir,;t t
  19930. s,@sysconfdir@,$sysconfdir,;t t
  19931. s,@sharedstatedir@,$sharedstatedir,;t t
  19932. s,@localstatedir@,$localstatedir,;t t
  19933. s,@libdir@,$libdir,;t t
  19934. s,@includedir@,$includedir,;t t
  19935. s,@oldincludedir@,$oldincludedir,;t t
  19936. s,@infodir@,$infodir,;t t
  19937. s,@mandir@,$mandir,;t t
  19938. s,@build_alias@,$build_alias,;t t
  19939. s,@host_alias@,$host_alias,;t t
  19940. s,@target_alias@,$target_alias,;t t
  19941. s,@DEFS@,$DEFS,;t t
  19942. s,@ECHO_C@,$ECHO_C,;t t
  19943. s,@ECHO_N@,$ECHO_N,;t t
  19944. s,@ECHO_T@,$ECHO_T,;t t
  19945. s,@LIBS@,$LIBS,;t t
  19946. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  19947. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  19948. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  19949. s,@CYGPATH_W@,$CYGPATH_W,;t t
  19950. s,@PACKAGE@,$PACKAGE,;t t
  19951. s,@VERSION@,$VERSION,;t t
  19952. s,@ACLOCAL@,$ACLOCAL,;t t
  19953. s,@AUTOCONF@,$AUTOCONF,;t t
  19954. s,@AUTOMAKE@,$AUTOMAKE,;t t
  19955. s,@AUTOHEADER@,$AUTOHEADER,;t t
  19956. s,@MAKEINFO@,$MAKEINFO,;t t
  19957. s,@AMTAR@,$AMTAR,;t t
  19958. s,@install_sh@,$install_sh,;t t
  19959. s,@STRIP@,$STRIP,;t t
  19960. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  19961. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  19962. s,@mkdir_p@,$mkdir_p,;t t
  19963. s,@AWK@,$AWK,;t t
  19964. s,@SET_MAKE@,$SET_MAKE,;t t
  19965. s,@am__leading_dot@,$am__leading_dot,;t t
  19966. s,@build@,$build,;t t
  19967. s,@build_cpu@,$build_cpu,;t t
  19968. s,@build_vendor@,$build_vendor,;t t
  19969. s,@build_os@,$build_os,;t t
  19970. s,@host@,$host,;t t
  19971. s,@host_cpu@,$host_cpu,;t t
  19972. s,@host_vendor@,$host_vendor,;t t
  19973. s,@host_os@,$host_os,;t t
  19974. s,@CC@,$CC,;t t
  19975. s,@CFLAGS@,$CFLAGS,;t t
  19976. s,@LDFLAGS@,$LDFLAGS,;t t
  19977. s,@CPPFLAGS@,$CPPFLAGS,;t t
  19978. s,@ac_ct_CC@,$ac_ct_CC,;t t
  19979. s,@EXEEXT@,$EXEEXT,;t t
  19980. s,@OBJEXT@,$OBJEXT,;t t
  19981. s,@DEPDIR@,$DEPDIR,;t t
  19982. s,@am__include@,$am__include,;t t
  19983. s,@am__quote@,$am__quote,;t t
  19984. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  19985. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  19986. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  19987. s,@CCDEPMODE@,$CCDEPMODE,;t t
  19988. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  19989. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  19990. s,@CCAS@,$CCAS,;t t
  19991. s,@CCASFLAGS@,$CCASFLAGS,;t t
  19992. s,@EGREP@,$EGREP,;t t
  19993. s,@LN_S@,$LN_S,;t t
  19994. s,@ECHO@,$ECHO,;t t
  19995. s,@AR@,$AR,;t t
  19996. s,@ac_ct_AR@,$ac_ct_AR,;t t
  19997. s,@RANLIB@,$RANLIB,;t t
  19998. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  19999. s,@CPP@,$CPP,;t t
  20000. s,@CXX@,$CXX,;t t
  20001. s,@CXXFLAGS@,$CXXFLAGS,;t t
  20002. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  20003. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  20004. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  20005. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  20006. s,@CXXCPP@,$CXXCPP,;t t
  20007. s,@F77@,$F77,;t t
  20008. s,@FFLAGS@,$FFLAGS,;t t
  20009. s,@ac_ct_F77@,$ac_ct_F77,;t t
  20010. s,@LIBTOOL@,$LIBTOOL,;t t
  20011. s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
  20012. s,@FPM@,$FPM,;t t
  20013. s,@ASO@,$ASO,;t t
  20014. s,@ASO_OBJS@,$ASO_OBJS,;t t
  20015. s,@LIBOBJS@,$LIBOBJS,;t t
  20016. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  20017. CEOF
  20018. _ACEOF
  20019. cat >>$CONFIG_STATUS <<\_ACEOF
  20020. # Split the substitutions into bite-sized pieces for seds with
  20021. # small command number limits, like on Digital OSF/1 and HP-UX.
  20022. ac_max_sed_lines=48
  20023. ac_sed_frag=1 # Number of current file.
  20024. ac_beg=1 # First line for current file.
  20025. ac_end=$ac_max_sed_lines # Line after last line for current file.
  20026. ac_more_lines=:
  20027. ac_sed_cmds=
  20028. while $ac_more_lines; do
  20029. if test $ac_beg -gt 1; then
  20030. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  20031. else
  20032. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  20033. fi
  20034. if test ! -s $tmp/subs.frag; then
  20035. ac_more_lines=false
  20036. else
  20037. # The purpose of the label and of the branching condition is to
  20038. # speed up the sed processing (if there are no `@' at all, there
  20039. # is no need to browse any of the substitutions).
  20040. # These are the two extra sed commands mentioned above.
  20041. (echo ':t
  20042. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  20043. if test -z "$ac_sed_cmds"; then
  20044. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  20045. else
  20046. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  20047. fi
  20048. ac_sed_frag=`expr $ac_sed_frag + 1`
  20049. ac_beg=$ac_end
  20050. ac_end=`expr $ac_end + $ac_max_sed_lines`
  20051. fi
  20052. done
  20053. if test -z "$ac_sed_cmds"; then
  20054. ac_sed_cmds=cat
  20055. fi
  20056. fi # test -n "$CONFIG_FILES"
  20057. _ACEOF
  20058. cat >>$CONFIG_STATUS <<\_ACEOF
  20059. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  20060. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  20061. case $ac_file in
  20062. - | *:- | *:-:* ) # input from stdin
  20063. cat >$tmp/stdin
  20064. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  20065. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  20066. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  20067. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  20068. * ) ac_file_in=$ac_file.in ;;
  20069. esac
  20070. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  20071. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  20072. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20073. X"$ac_file" : 'X\(//\)[^/]' \| \
  20074. X"$ac_file" : 'X\(//\)$' \| \
  20075. X"$ac_file" : 'X\(/\)' \| \
  20076. . : '\(.\)' 2>/dev/null ||
  20077. echo X"$ac_file" |
  20078. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20079. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20080. /^X\(\/\/\)$/{ s//\1/; q; }
  20081. /^X\(\/\).*/{ s//\1/; q; }
  20082. s/.*/./; q'`
  20083. { if $as_mkdir_p; then
  20084. mkdir -p "$ac_dir"
  20085. else
  20086. as_dir="$ac_dir"
  20087. as_dirs=
  20088. while test ! -d "$as_dir"; do
  20089. as_dirs="$as_dir $as_dirs"
  20090. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  20091. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20092. X"$as_dir" : 'X\(//\)[^/]' \| \
  20093. X"$as_dir" : 'X\(//\)$' \| \
  20094. X"$as_dir" : 'X\(/\)' \| \
  20095. . : '\(.\)' 2>/dev/null ||
  20096. echo X"$as_dir" |
  20097. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20098. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20099. /^X\(\/\/\)$/{ s//\1/; q; }
  20100. /^X\(\/\).*/{ s//\1/; q; }
  20101. s/.*/./; q'`
  20102. done
  20103. test ! -n "$as_dirs" || mkdir $as_dirs
  20104. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  20105. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  20106. { (exit 1); exit 1; }; }; }
  20107. ac_builddir=.
  20108. if test "$ac_dir" != .; then
  20109. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20110. # A "../" for each directory in $ac_dir_suffix.
  20111. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  20112. else
  20113. ac_dir_suffix= ac_top_builddir=
  20114. fi
  20115. case $srcdir in
  20116. .) # No --srcdir option. We are building in place.
  20117. ac_srcdir=.
  20118. if test -z "$ac_top_builddir"; then
  20119. ac_top_srcdir=.
  20120. else
  20121. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  20122. fi ;;
  20123. [\\/]* | ?:[\\/]* ) # Absolute path.
  20124. ac_srcdir=$srcdir$ac_dir_suffix;
  20125. ac_top_srcdir=$srcdir ;;
  20126. *) # Relative path.
  20127. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  20128. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  20129. esac
  20130. # Do not use `cd foo && pwd` to compute absolute paths, because
  20131. # the directories may not exist.
  20132. case `pwd` in
  20133. .) ac_abs_builddir="$ac_dir";;
  20134. *)
  20135. case "$ac_dir" in
  20136. .) ac_abs_builddir=`pwd`;;
  20137. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  20138. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  20139. esac;;
  20140. esac
  20141. case $ac_abs_builddir in
  20142. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  20143. *)
  20144. case ${ac_top_builddir}. in
  20145. .) ac_abs_top_builddir=$ac_abs_builddir;;
  20146. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  20147. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  20148. esac;;
  20149. esac
  20150. case $ac_abs_builddir in
  20151. .) ac_abs_srcdir=$ac_srcdir;;
  20152. *)
  20153. case $ac_srcdir in
  20154. .) ac_abs_srcdir=$ac_abs_builddir;;
  20155. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  20156. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  20157. esac;;
  20158. esac
  20159. case $ac_abs_builddir in
  20160. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  20161. *)
  20162. case $ac_top_srcdir in
  20163. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  20164. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  20165. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  20166. esac;;
  20167. esac
  20168. case $INSTALL in
  20169. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20170. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  20171. esac
  20172. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20173. # use $as_me), people would be surprised to read:
  20174. # /* config.h. Generated by config.status. */
  20175. if test x"$ac_file" = x-; then
  20176. configure_input=
  20177. else
  20178. configure_input="$ac_file. "
  20179. fi
  20180. configure_input=$configure_input"Generated from `echo $ac_file_in |
  20181. sed 's,.*/,,'` by configure."
  20182. # First look for the input files in the build tree, otherwise in the
  20183. # src tree.
  20184. ac_file_inputs=`IFS=:
  20185. for f in $ac_file_in; do
  20186. case $f in
  20187. -) echo $tmp/stdin ;;
  20188. [\\/$]*)
  20189. # Absolute (can't be DOS-style, as IFS=:)
  20190. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  20191. echo "$as_me: error: cannot find input file: $f" >&2;}
  20192. { (exit 1); exit 1; }; }
  20193. echo "$f";;
  20194. *) # Relative
  20195. if test -f "$f"; then
  20196. # Build tree
  20197. echo "$f"
  20198. elif test -f "$srcdir/$f"; then
  20199. # Source tree
  20200. echo "$srcdir/$f"
  20201. else
  20202. # /dev/null tree
  20203. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  20204. echo "$as_me: error: cannot find input file: $f" >&2;}
  20205. { (exit 1); exit 1; }; }
  20206. fi;;
  20207. esac
  20208. done` || { (exit 1); exit 1; }
  20209. if test x"$ac_file" != x-; then
  20210. { echo "$as_me:$LINENO: creating $ac_file" >&5
  20211. echo "$as_me: creating $ac_file" >&6;}
  20212. rm -f "$ac_file"
  20213. fi
  20214. _ACEOF
  20215. cat >>$CONFIG_STATUS <<_ACEOF
  20216. sed "$ac_vpsub
  20217. $extrasub
  20218. _ACEOF
  20219. cat >>$CONFIG_STATUS <<\_ACEOF
  20220. :t
  20221. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20222. s,@configure_input@,$configure_input,;t t
  20223. s,@srcdir@,$ac_srcdir,;t t
  20224. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  20225. s,@top_srcdir@,$ac_top_srcdir,;t t
  20226. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  20227. s,@builddir@,$ac_builddir,;t t
  20228. s,@abs_builddir@,$ac_abs_builddir,;t t
  20229. s,@top_builddir@,$ac_top_builddir,;t t
  20230. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  20231. s,@INSTALL@,$ac_INSTALL,;t t
  20232. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  20233. rm -f $tmp/stdin
  20234. if test x"$ac_file" != x-; then
  20235. mv $tmp/out $ac_file
  20236. else
  20237. cat $tmp/out
  20238. rm -f $tmp/out
  20239. fi
  20240. done
  20241. _ACEOF
  20242. cat >>$CONFIG_STATUS <<\_ACEOF
  20243. #
  20244. # CONFIG_HEADER section.
  20245. #
  20246. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  20247. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  20248. #
  20249. # ac_d sets the value in "#define NAME VALUE" lines.
  20250. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  20251. ac_dB='[ ].*$,\1#\2'
  20252. ac_dC=' '
  20253. ac_dD=',;t'
  20254. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  20255. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  20256. ac_uB='$,\1#\2define\3'
  20257. ac_uC=' '
  20258. ac_uD=',;t'
  20259. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  20260. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  20261. case $ac_file in
  20262. - | *:- | *:-:* ) # input from stdin
  20263. cat >$tmp/stdin
  20264. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  20265. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  20266. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  20267. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  20268. * ) ac_file_in=$ac_file.in ;;
  20269. esac
  20270. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  20271. echo "$as_me: creating $ac_file" >&6;}
  20272. # First look for the input files in the build tree, otherwise in the
  20273. # src tree.
  20274. ac_file_inputs=`IFS=:
  20275. for f in $ac_file_in; do
  20276. case $f in
  20277. -) echo $tmp/stdin ;;
  20278. [\\/$]*)
  20279. # Absolute (can't be DOS-style, as IFS=:)
  20280. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  20281. echo "$as_me: error: cannot find input file: $f" >&2;}
  20282. { (exit 1); exit 1; }; }
  20283. # Do quote $f, to prevent DOS paths from being IFS'd.
  20284. echo "$f";;
  20285. *) # Relative
  20286. if test -f "$f"; then
  20287. # Build tree
  20288. echo "$f"
  20289. elif test -f "$srcdir/$f"; then
  20290. # Source tree
  20291. echo "$srcdir/$f"
  20292. else
  20293. # /dev/null tree
  20294. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  20295. echo "$as_me: error: cannot find input file: $f" >&2;}
  20296. { (exit 1); exit 1; }; }
  20297. fi;;
  20298. esac
  20299. done` || { (exit 1); exit 1; }
  20300. # Remove the trailing spaces.
  20301. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  20302. _ACEOF
  20303. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  20304. # `conftest.undefs', that substitutes the proper values into
  20305. # config.h.in to produce config.h. The first handles `#define'
  20306. # templates, and the second `#undef' templates.
  20307. # And first: Protect against being on the right side of a sed subst in
  20308. # config.status. Protect against being in an unquoted here document
  20309. # in config.status.
  20310. rm -f conftest.defines conftest.undefs
  20311. # Using a here document instead of a string reduces the quoting nightmare.
  20312. # Putting comments in sed scripts is not portable.
  20313. #
  20314. # `end' is used to avoid that the second main sed command (meant for
  20315. # 0-ary CPP macros) applies to n-ary macro definitions.
  20316. # See the Autoconf documentation for `clear'.
  20317. cat >confdef2sed.sed <<\_ACEOF
  20318. s/[\\&,]/\\&/g
  20319. s,[\\$`],\\&,g
  20320. t clear
  20321. : clear
  20322. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  20323. t end
  20324. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  20325. : end
  20326. _ACEOF
  20327. # If some macros were called several times there might be several times
  20328. # the same #defines, which is useless. Nevertheless, we may not want to
  20329. # sort them, since we want the *last* AC-DEFINE to be honored.
  20330. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  20331. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  20332. rm -f confdef2sed.sed
  20333. # This sed command replaces #undef with comments. This is necessary, for
  20334. # example, in the case of _POSIX_SOURCE, which is predefined and required
  20335. # on some systems where configure will not decide to define it.
  20336. cat >>conftest.undefs <<\_ACEOF
  20337. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  20338. _ACEOF
  20339. # Break up conftest.defines because some shells have a limit on the size
  20340. # of here documents, and old seds have small limits too (100 cmds).
  20341. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  20342. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  20343. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  20344. echo ' :' >>$CONFIG_STATUS
  20345. rm -f conftest.tail
  20346. while grep . conftest.defines >/dev/null
  20347. do
  20348. # Write a limited-size here document to $tmp/defines.sed.
  20349. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  20350. # Speed up: don't consider the non `#define' lines.
  20351. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  20352. # Work around the forget-to-reset-the-flag bug.
  20353. echo 't clr' >>$CONFIG_STATUS
  20354. echo ': clr' >>$CONFIG_STATUS
  20355. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  20356. echo 'CEOF
  20357. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  20358. rm -f $tmp/in
  20359. mv $tmp/out $tmp/in
  20360. ' >>$CONFIG_STATUS
  20361. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  20362. rm -f conftest.defines
  20363. mv conftest.tail conftest.defines
  20364. done
  20365. rm -f conftest.defines
  20366. echo ' fi # grep' >>$CONFIG_STATUS
  20367. echo >>$CONFIG_STATUS
  20368. # Break up conftest.undefs because some shells have a limit on the size
  20369. # of here documents, and old seds have small limits too (100 cmds).
  20370. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  20371. rm -f conftest.tail
  20372. while grep . conftest.undefs >/dev/null
  20373. do
  20374. # Write a limited-size here document to $tmp/undefs.sed.
  20375. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  20376. # Speed up: don't consider the non `#undef'
  20377. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  20378. # Work around the forget-to-reset-the-flag bug.
  20379. echo 't clr' >>$CONFIG_STATUS
  20380. echo ': clr' >>$CONFIG_STATUS
  20381. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  20382. echo 'CEOF
  20383. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  20384. rm -f $tmp/in
  20385. mv $tmp/out $tmp/in
  20386. ' >>$CONFIG_STATUS
  20387. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  20388. rm -f conftest.undefs
  20389. mv conftest.tail conftest.undefs
  20390. done
  20391. rm -f conftest.undefs
  20392. cat >>$CONFIG_STATUS <<\_ACEOF
  20393. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20394. # use $as_me), people would be surprised to read:
  20395. # /* config.h. Generated by config.status. */
  20396. if test x"$ac_file" = x-; then
  20397. echo "/* Generated by configure. */" >$tmp/config.h
  20398. else
  20399. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  20400. fi
  20401. cat $tmp/in >>$tmp/config.h
  20402. rm -f $tmp/in
  20403. if test x"$ac_file" != x-; then
  20404. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  20405. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  20406. echo "$as_me: $ac_file is unchanged" >&6;}
  20407. else
  20408. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  20409. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20410. X"$ac_file" : 'X\(//\)[^/]' \| \
  20411. X"$ac_file" : 'X\(//\)$' \| \
  20412. X"$ac_file" : 'X\(/\)' \| \
  20413. . : '\(.\)' 2>/dev/null ||
  20414. echo X"$ac_file" |
  20415. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20416. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20417. /^X\(\/\/\)$/{ s//\1/; q; }
  20418. /^X\(\/\).*/{ s//\1/; q; }
  20419. s/.*/./; q'`
  20420. { if $as_mkdir_p; then
  20421. mkdir -p "$ac_dir"
  20422. else
  20423. as_dir="$ac_dir"
  20424. as_dirs=
  20425. while test ! -d "$as_dir"; do
  20426. as_dirs="$as_dir $as_dirs"
  20427. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  20428. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20429. X"$as_dir" : 'X\(//\)[^/]' \| \
  20430. X"$as_dir" : 'X\(//\)$' \| \
  20431. X"$as_dir" : 'X\(/\)' \| \
  20432. . : '\(.\)' 2>/dev/null ||
  20433. echo X"$as_dir" |
  20434. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20435. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20436. /^X\(\/\/\)$/{ s//\1/; q; }
  20437. /^X\(\/\).*/{ s//\1/; q; }
  20438. s/.*/./; q'`
  20439. done
  20440. test ! -n "$as_dirs" || mkdir $as_dirs
  20441. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  20442. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  20443. { (exit 1); exit 1; }; }; }
  20444. rm -f $ac_file
  20445. mv $tmp/config.h $ac_file
  20446. fi
  20447. else
  20448. cat $tmp/config.h
  20449. rm -f $tmp/config.h
  20450. fi
  20451. # Compute $ac_file's index in $config_headers.
  20452. _am_stamp_count=1
  20453. for _am_header in $config_headers :; do
  20454. case $_am_header in
  20455. $ac_file | $ac_file:* )
  20456. break ;;
  20457. * )
  20458. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20459. esac
  20460. done
  20461. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  20462. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20463. X$ac_file : 'X\(//\)[^/]' \| \
  20464. X$ac_file : 'X\(//\)$' \| \
  20465. X$ac_file : 'X\(/\)' \| \
  20466. . : '\(.\)' 2>/dev/null ||
  20467. echo X$ac_file |
  20468. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20469. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20470. /^X\(\/\/\)$/{ s//\1/; q; }
  20471. /^X\(\/\).*/{ s//\1/; q; }
  20472. s/.*/./; q'`/stamp-h$_am_stamp_count
  20473. done
  20474. _ACEOF
  20475. cat >>$CONFIG_STATUS <<\_ACEOF
  20476. #
  20477. # CONFIG_COMMANDS section.
  20478. #
  20479. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  20480. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  20481. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  20482. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  20483. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20484. X"$ac_dest" : 'X\(//\)[^/]' \| \
  20485. X"$ac_dest" : 'X\(//\)$' \| \
  20486. X"$ac_dest" : 'X\(/\)' \| \
  20487. . : '\(.\)' 2>/dev/null ||
  20488. echo X"$ac_dest" |
  20489. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20490. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20491. /^X\(\/\/\)$/{ s//\1/; q; }
  20492. /^X\(\/\).*/{ s//\1/; q; }
  20493. s/.*/./; q'`
  20494. { if $as_mkdir_p; then
  20495. mkdir -p "$ac_dir"
  20496. else
  20497. as_dir="$ac_dir"
  20498. as_dirs=
  20499. while test ! -d "$as_dir"; do
  20500. as_dirs="$as_dir $as_dirs"
  20501. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  20502. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20503. X"$as_dir" : 'X\(//\)[^/]' \| \
  20504. X"$as_dir" : 'X\(//\)$' \| \
  20505. X"$as_dir" : 'X\(/\)' \| \
  20506. . : '\(.\)' 2>/dev/null ||
  20507. echo X"$as_dir" |
  20508. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20509. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20510. /^X\(\/\/\)$/{ s//\1/; q; }
  20511. /^X\(\/\).*/{ s//\1/; q; }
  20512. s/.*/./; q'`
  20513. done
  20514. test ! -n "$as_dirs" || mkdir $as_dirs
  20515. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  20516. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  20517. { (exit 1); exit 1; }; }; }
  20518. ac_builddir=.
  20519. if test "$ac_dir" != .; then
  20520. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20521. # A "../" for each directory in $ac_dir_suffix.
  20522. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  20523. else
  20524. ac_dir_suffix= ac_top_builddir=
  20525. fi
  20526. case $srcdir in
  20527. .) # No --srcdir option. We are building in place.
  20528. ac_srcdir=.
  20529. if test -z "$ac_top_builddir"; then
  20530. ac_top_srcdir=.
  20531. else
  20532. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  20533. fi ;;
  20534. [\\/]* | ?:[\\/]* ) # Absolute path.
  20535. ac_srcdir=$srcdir$ac_dir_suffix;
  20536. ac_top_srcdir=$srcdir ;;
  20537. *) # Relative path.
  20538. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  20539. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  20540. esac
  20541. # Do not use `cd foo && pwd` to compute absolute paths, because
  20542. # the directories may not exist.
  20543. case `pwd` in
  20544. .) ac_abs_builddir="$ac_dir";;
  20545. *)
  20546. case "$ac_dir" in
  20547. .) ac_abs_builddir=`pwd`;;
  20548. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  20549. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  20550. esac;;
  20551. esac
  20552. case $ac_abs_builddir in
  20553. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  20554. *)
  20555. case ${ac_top_builddir}. in
  20556. .) ac_abs_top_builddir=$ac_abs_builddir;;
  20557. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  20558. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  20559. esac;;
  20560. esac
  20561. case $ac_abs_builddir in
  20562. .) ac_abs_srcdir=$ac_srcdir;;
  20563. *)
  20564. case $ac_srcdir in
  20565. .) ac_abs_srcdir=$ac_abs_builddir;;
  20566. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  20567. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  20568. esac;;
  20569. esac
  20570. case $ac_abs_builddir in
  20571. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  20572. *)
  20573. case $ac_top_srcdir in
  20574. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  20575. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  20576. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  20577. esac;;
  20578. esac
  20579. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  20580. echo "$as_me: executing $ac_dest commands" >&6;}
  20581. case $ac_dest in
  20582. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  20583. # Strip MF so we end up with the name of the file.
  20584. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20585. # Check whether this is an Automake generated Makefile or not.
  20586. # We used to match only the files named `Makefile.in', but
  20587. # some people rename them; so instead we look at the file content.
  20588. # Grep'ing the first line is not enough: some people post-process
  20589. # each Makefile.in and add a new line on top of each file to say so.
  20590. # So let's grep whole file.
  20591. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  20592. dirpart=`(dirname "$mf") 2>/dev/null ||
  20593. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20594. X"$mf" : 'X\(//\)[^/]' \| \
  20595. X"$mf" : 'X\(//\)$' \| \
  20596. X"$mf" : 'X\(/\)' \| \
  20597. . : '\(.\)' 2>/dev/null ||
  20598. echo X"$mf" |
  20599. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20600. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20601. /^X\(\/\/\)$/{ s//\1/; q; }
  20602. /^X\(\/\).*/{ s//\1/; q; }
  20603. s/.*/./; q'`
  20604. else
  20605. continue
  20606. fi
  20607. grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  20608. # Extract the definition of DEP_FILES from the Makefile without
  20609. # running `make'.
  20610. DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
  20611. test -z "$DEPDIR" && continue
  20612. # When using ansi2knr, U may be empty or an underscore; expand it
  20613. U=`sed -n -e '/^U = / s///p' < "$mf"`
  20614. test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  20615. # We invoke sed twice because it is the simplest approach to
  20616. # changing $(DEPDIR) to its actual value in the expansion.
  20617. for file in `sed -n -e '
  20618. /^DEP_FILES = .*\\\\$/ {
  20619. s/^DEP_FILES = //
  20620. :loop
  20621. s/\\\\$//
  20622. p
  20623. n
  20624. /\\\\$/ b loop
  20625. p
  20626. }
  20627. /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  20628. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  20629. # Make sure the directory exists.
  20630. test -f "$dirpart/$file" && continue
  20631. fdir=`(dirname "$file") 2>/dev/null ||
  20632. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20633. X"$file" : 'X\(//\)[^/]' \| \
  20634. X"$file" : 'X\(//\)$' \| \
  20635. X"$file" : 'X\(/\)' \| \
  20636. . : '\(.\)' 2>/dev/null ||
  20637. echo X"$file" |
  20638. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20639. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20640. /^X\(\/\/\)$/{ s//\1/; q; }
  20641. /^X\(\/\).*/{ s//\1/; q; }
  20642. s/.*/./; q'`
  20643. { if $as_mkdir_p; then
  20644. mkdir -p $dirpart/$fdir
  20645. else
  20646. as_dir=$dirpart/$fdir
  20647. as_dirs=
  20648. while test ! -d "$as_dir"; do
  20649. as_dirs="$as_dir $as_dirs"
  20650. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  20651. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20652. X"$as_dir" : 'X\(//\)[^/]' \| \
  20653. X"$as_dir" : 'X\(//\)$' \| \
  20654. X"$as_dir" : 'X\(/\)' \| \
  20655. . : '\(.\)' 2>/dev/null ||
  20656. echo X"$as_dir" |
  20657. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20658. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20659. /^X\(\/\/\)$/{ s//\1/; q; }
  20660. /^X\(\/\).*/{ s//\1/; q; }
  20661. s/.*/./; q'`
  20662. done
  20663. test ! -n "$as_dirs" || mkdir $as_dirs
  20664. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  20665. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  20666. { (exit 1); exit 1; }; }; }
  20667. # echo "creating $dirpart/$file"
  20668. echo '# dummy' > "$dirpart/$file"
  20669. done
  20670. done
  20671. ;;
  20672. esac
  20673. done
  20674. _ACEOF
  20675. cat >>$CONFIG_STATUS <<\_ACEOF
  20676. { (exit 0); exit 0; }
  20677. _ACEOF
  20678. chmod +x $CONFIG_STATUS
  20679. ac_clean_files=$ac_clean_files_save
  20680. # configure is writing to config.log, and then calls config.status.
  20681. # config.status does its own redirection, appending to config.log.
  20682. # Unfortunately, on DOS this fails, as config.log is still kept open
  20683. # by configure, so config.status won't be able to write to it; its
  20684. # output is simply discarded. So we exec the FD to /dev/null,
  20685. # effectively closing config.log, so it can be properly (re)opened and
  20686. # appended to by config.status. When coming back to configure, we
  20687. # need to make the FD available again.
  20688. if test "$no_create" != yes; then
  20689. ac_cs_success=:
  20690. ac_config_status_args=
  20691. test "$silent" = yes &&
  20692. ac_config_status_args="$ac_config_status_args --quiet"
  20693. exec 5>/dev/null
  20694. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20695. exec 5>>config.log
  20696. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20697. # would make configure fail if this is the last instruction.
  20698. $ac_cs_success || { (exit 1); exit 1; }
  20699. fi