PageRenderTime 125ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 1ms

/configure

http://cmockery.googlecode.com/
Shell | 15048 lines | 13252 code | 691 blank | 1105 comment | 605 complexity | feb9eff8cf95fcb7023190a33a275ddb MD5 | raw file
Possible License(s): BSD-3-Clause
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for cmockery 0.11.
  4. #
  5. # Report bugs to <opensource@google.com>.
  6. #
  7. # Copyright (C) 2003 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. DUALCASE=1; export DUALCASE # for MKS sh
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30. # Work around bugs in pre-3.0 UWIN ksh.
  31. $as_unset ENV MAIL MAILPATH
  32. PS1='$ '
  33. PS2='> '
  34. PS4='+ '
  35. # NLS nuisances.
  36. for as_var in \
  37. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  38. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  39. LC_TELEPHONE LC_TIME
  40. do
  41. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42. eval $as_var=C; export $as_var
  43. else
  44. $as_unset $as_var
  45. fi
  46. done
  47. # Required to use basename.
  48. if expr a : '\(a\)' >/dev/null 2>&1; then
  49. as_expr=expr
  50. else
  51. as_expr=false
  52. fi
  53. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  54. as_basename=basename
  55. else
  56. as_basename=false
  57. fi
  58. # Name of the executable.
  59. as_me=`$as_basename "$0" ||
  60. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61. X"$0" : 'X\(//\)$' \| \
  62. X"$0" : 'X\(/\)$' \| \
  63. . : '\(.\)' 2>/dev/null ||
  64. echo X/"$0" |
  65. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  66. /^X\/\(\/\/\)$/{ s//\1/; q; }
  67. /^X\/\(\/\).*/{ s//\1/; q; }
  68. s/.*/./; q'`
  69. # PATH needs CR, and LINENO needs CR and PATH.
  70. # Avoid depending upon Character Ranges.
  71. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  72. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  73. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  74. as_cr_digits='0123456789'
  75. as_cr_alnum=$as_cr_Letters$as_cr_digits
  76. # The user is always right.
  77. if test "${PATH_SEPARATOR+set}" != set; then
  78. echo "#! /bin/sh" >conf$$.sh
  79. echo "exit 0" >>conf$$.sh
  80. chmod +x conf$$.sh
  81. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  82. PATH_SEPARATOR=';'
  83. else
  84. PATH_SEPARATOR=:
  85. fi
  86. rm -f conf$$.sh
  87. fi
  88. as_lineno_1=$LINENO
  89. as_lineno_2=$LINENO
  90. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  91. test "x$as_lineno_1" != "x$as_lineno_2" &&
  92. test "x$as_lineno_3" = "x$as_lineno_2" || {
  93. # Find who we are. Look in the path if we contain no path at all
  94. # relative or not.
  95. case $0 in
  96. *[\\/]* ) as_myself=$0 ;;
  97. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98. for as_dir in $PATH
  99. do
  100. IFS=$as_save_IFS
  101. test -z "$as_dir" && as_dir=.
  102. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103. done
  104. ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109. as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  113. { (exit 1); exit 1; }; }
  114. fi
  115. case $CONFIG_SHELL in
  116. '')
  117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  118. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  119. do
  120. IFS=$as_save_IFS
  121. test -z "$as_dir" && as_dir=.
  122. for as_base in sh bash ksh sh5; do
  123. case $as_dir in
  124. /*)
  125. if ("$as_dir/$as_base" -c '
  126. as_lineno_1=$LINENO
  127. as_lineno_2=$LINENO
  128. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  129. test "x$as_lineno_1" != "x$as_lineno_2" &&
  130. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  131. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  132. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  133. CONFIG_SHELL=$as_dir/$as_base
  134. export CONFIG_SHELL
  135. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  136. fi;;
  137. esac
  138. done
  139. done
  140. ;;
  141. esac
  142. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  143. # uniformly replaced by the line number. The first 'sed' inserts a
  144. # line-number line before each line; the second 'sed' does the real
  145. # work. The second script uses 'N' to pair each line-number line
  146. # with the numbered line, and appends trailing '-' during
  147. # substitution so that $LINENO is not a special case at line end.
  148. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  149. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  150. sed '=' <$as_myself |
  151. sed '
  152. N
  153. s,$,-,
  154. : loop
  155. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  156. t loop
  157. s,-$,,
  158. s,^['$as_cr_digits']*\n,,
  159. ' >$as_me.lineno &&
  160. chmod +x $as_me.lineno ||
  161. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  162. { (exit 1); exit 1; }; }
  163. # Don't try to exec as it changes $[0], causing all sort of problems
  164. # (the dirname of $[0] is not the place where we might find the
  165. # original and so on. Autoconf is especially sensible to this).
  166. . ./$as_me.lineno
  167. # Exit status is that of the last command.
  168. exit
  169. }
  170. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  171. *c*,-n*) ECHO_N= ECHO_C='
  172. ' ECHO_T=' ' ;;
  173. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  174. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  175. esac
  176. if expr a : '\(a\)' >/dev/null 2>&1; then
  177. as_expr=expr
  178. else
  179. as_expr=false
  180. fi
  181. rm -f conf$$ conf$$.exe conf$$.file
  182. echo >conf$$.file
  183. if ln -s conf$$.file conf$$ 2>/dev/null; then
  184. # We could just check for DJGPP; but this test a) works b) is more generic
  185. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  186. if test -f conf$$.exe; then
  187. # Don't use ln at all; we don't have any links
  188. as_ln_s='cp -p'
  189. else
  190. as_ln_s='ln -s'
  191. fi
  192. elif ln conf$$.file conf$$ 2>/dev/null; then
  193. as_ln_s=ln
  194. else
  195. as_ln_s='cp -p'
  196. fi
  197. rm -f conf$$ conf$$.exe conf$$.file
  198. if mkdir -p . 2>/dev/null; then
  199. as_mkdir_p=:
  200. else
  201. test -d ./-p && rmdir ./-p
  202. as_mkdir_p=false
  203. fi
  204. as_executable_p="test -f"
  205. # Sed expression to map a string onto a valid CPP name.
  206. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  207. # Sed expression to map a string onto a valid variable name.
  208. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  209. # IFS
  210. # We need space, tab and new line, in precisely that order.
  211. as_nl='
  212. '
  213. IFS=" $as_nl"
  214. # CDPATH.
  215. $as_unset CDPATH
  216. # Check that we are running under the correct shell.
  217. SHELL=${CONFIG_SHELL-/bin/sh}
  218. case X$ECHO in
  219. X*--fallback-echo)
  220. # Remove one level of quotation (which was required for Make).
  221. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  222. ;;
  223. esac
  224. echo=${ECHO-echo}
  225. if test "X$1" = X--no-reexec; then
  226. # Discard the --no-reexec flag, and continue.
  227. shift
  228. elif test "X$1" = X--fallback-echo; then
  229. # Avoid inline document here, it may be left over
  230. :
  231. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  232. # Yippee, $echo works!
  233. :
  234. else
  235. # Restart under the correct shell.
  236. exec $SHELL "$0" --no-reexec ${1+"$@"}
  237. fi
  238. if test "X$1" = X--fallback-echo; then
  239. # used as fallback echo
  240. shift
  241. cat <<EOF
  242. $*
  243. EOF
  244. exit 0
  245. fi
  246. # The HP-UX ksh and POSIX shell print the target directory to stdout
  247. # if CDPATH is set.
  248. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  249. if test -z "$ECHO"; then
  250. if test "X${echo_test_string+set}" != Xset; then
  251. # find a string as large as possible, as long as the shell can cope with it
  252. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  253. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  254. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  255. echo_test_string=`eval $cmd` &&
  256. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  257. then
  258. break
  259. fi
  260. done
  261. fi
  262. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  263. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  264. test "X$echo_testing_string" = "X$echo_test_string"; then
  265. :
  266. else
  267. # The Solaris, AIX, and Digital Unix default echo programs unquote
  268. # backslashes. This makes it impossible to quote backslashes using
  269. # echo "$something" | sed 's/\\/\\\\/g'
  270. #
  271. # So, first we look for a working echo in the user's PATH.
  272. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  273. for dir in $PATH /usr/ucb; do
  274. IFS="$lt_save_ifs"
  275. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  276. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  277. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  278. test "X$echo_testing_string" = "X$echo_test_string"; then
  279. echo="$dir/echo"
  280. break
  281. fi
  282. done
  283. IFS="$lt_save_ifs"
  284. if test "X$echo" = Xecho; then
  285. # We didn't find a better echo, so look for alternatives.
  286. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  287. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  288. test "X$echo_testing_string" = "X$echo_test_string"; then
  289. # This shell has a builtin print -r that does the trick.
  290. echo='print -r'
  291. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  292. test "X$CONFIG_SHELL" != X/bin/ksh; then
  293. # If we have ksh, try running configure again with it.
  294. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  295. export ORIGINAL_CONFIG_SHELL
  296. CONFIG_SHELL=/bin/ksh
  297. export CONFIG_SHELL
  298. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  299. else
  300. # Try using printf.
  301. echo='printf %s\n'
  302. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  303. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  304. test "X$echo_testing_string" = "X$echo_test_string"; then
  305. # Cool, printf works
  306. :
  307. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  308. test "X$echo_testing_string" = 'X\t' &&
  309. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  310. test "X$echo_testing_string" = "X$echo_test_string"; then
  311. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  312. export CONFIG_SHELL
  313. SHELL="$CONFIG_SHELL"
  314. export SHELL
  315. echo="$CONFIG_SHELL $0 --fallback-echo"
  316. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  317. test "X$echo_testing_string" = 'X\t' &&
  318. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  319. test "X$echo_testing_string" = "X$echo_test_string"; then
  320. echo="$CONFIG_SHELL $0 --fallback-echo"
  321. else
  322. # maybe with a smaller string...
  323. prev=:
  324. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  325. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  326. then
  327. break
  328. fi
  329. prev="$cmd"
  330. done
  331. if test "$prev" != 'sed 50q "$0"'; then
  332. echo_test_string=`eval $prev`
  333. export echo_test_string
  334. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  335. else
  336. # Oops. We lost completely, so just stick with echo.
  337. echo=echo
  338. fi
  339. fi
  340. fi
  341. fi
  342. fi
  343. fi
  344. # Copy echo and quote the copy suitably for passing to libtool from
  345. # the Makefile, instead of quoting the original, which is used later.
  346. ECHO=$echo
  347. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  348. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  349. fi
  350. tagnames=${tagnames+${tagnames},}CXX
  351. tagnames=${tagnames+${tagnames},}F77
  352. # Name of the host.
  353. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  354. # so uname gets run too.
  355. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  356. exec 6>&1
  357. #
  358. # Initializations.
  359. #
  360. ac_default_prefix=/usr/local
  361. ac_config_libobj_dir=.
  362. cross_compiling=no
  363. subdirs=
  364. MFLAGS=
  365. MAKEFLAGS=
  366. SHELL=${CONFIG_SHELL-/bin/sh}
  367. # Maximum number of lines to put in a shell here document.
  368. # This variable seems obsolete. It should probably be removed, and
  369. # only ac_max_sed_lines should be used.
  370. : ${ac_max_here_lines=38}
  371. # Identity of this package.
  372. PACKAGE_NAME='cmockery'
  373. PACKAGE_TARNAME='cmockery'
  374. PACKAGE_VERSION='0.11'
  375. PACKAGE_STRING='cmockery 0.11'
  376. PACKAGE_BUGREPORT='opensource@google.com'
  377. ac_unique_file="README"
  378. # Factoring default headers for most tests.
  379. ac_includes_default="\
  380. #include <stdio.h>
  381. #if HAVE_SYS_TYPES_H
  382. # include <sys/types.h>
  383. #endif
  384. #if HAVE_SYS_STAT_H
  385. # include <sys/stat.h>
  386. #endif
  387. #if STDC_HEADERS
  388. # include <stdlib.h>
  389. # include <stddef.h>
  390. #else
  391. # if HAVE_STDLIB_H
  392. # include <stdlib.h>
  393. # endif
  394. #endif
  395. #if HAVE_STRING_H
  396. # if !STDC_HEADERS && HAVE_MEMORY_H
  397. # include <memory.h>
  398. # endif
  399. # include <string.h>
  400. #endif
  401. #if HAVE_STRINGS_H
  402. # include <strings.h>
  403. #endif
  404. #if HAVE_INTTYPES_H
  405. # include <inttypes.h>
  406. #else
  407. # if HAVE_STDINT_H
  408. # include <stdint.h>
  409. # endif
  410. #endif
  411. #if HAVE_UNISTD_H
  412. # include <unistd.h>
  413. #endif"
  414. 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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE GCC_TRUE GCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS LIBOBJS LTLIBOBJS'
  415. ac_subst_files=''
  416. # Initialize some variables set by options.
  417. ac_init_help=
  418. ac_init_version=false
  419. # The variables have the same names as the options, with
  420. # dashes changed to underlines.
  421. cache_file=/dev/null
  422. exec_prefix=NONE
  423. no_create=
  424. no_recursion=
  425. prefix=NONE
  426. program_prefix=NONE
  427. program_suffix=NONE
  428. program_transform_name=s,x,x,
  429. silent=
  430. site=
  431. srcdir=
  432. verbose=
  433. x_includes=NONE
  434. x_libraries=NONE
  435. # Installation directory options.
  436. # These are left unexpanded so users can "make install exec_prefix=/foo"
  437. # and all the variables that are supposed to be based on exec_prefix
  438. # by default will actually change.
  439. # Use braces instead of parens because sh, perl, etc. also accept them.
  440. bindir='${exec_prefix}/bin'
  441. sbindir='${exec_prefix}/sbin'
  442. libexecdir='${exec_prefix}/libexec'
  443. datadir='${prefix}/share'
  444. sysconfdir='${prefix}/etc'
  445. sharedstatedir='${prefix}/com'
  446. localstatedir='${prefix}/var'
  447. libdir='${exec_prefix}/lib'
  448. includedir='${prefix}/include'
  449. oldincludedir='/usr/include'
  450. infodir='${prefix}/info'
  451. mandir='${prefix}/man'
  452. ac_prev=
  453. for ac_option
  454. do
  455. # If the previous option needs an argument, assign it.
  456. if test -n "$ac_prev"; then
  457. eval "$ac_prev=\$ac_option"
  458. ac_prev=
  459. continue
  460. fi
  461. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  462. # Accept the important Cygnus configure options, so we can diagnose typos.
  463. case $ac_option in
  464. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  465. ac_prev=bindir ;;
  466. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  467. bindir=$ac_optarg ;;
  468. -build | --build | --buil | --bui | --bu)
  469. ac_prev=build_alias ;;
  470. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  471. build_alias=$ac_optarg ;;
  472. -cache-file | --cache-file | --cache-fil | --cache-fi \
  473. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  474. ac_prev=cache_file ;;
  475. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  476. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  477. cache_file=$ac_optarg ;;
  478. --config-cache | -C)
  479. cache_file=config.cache ;;
  480. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  481. ac_prev=datadir ;;
  482. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  483. | --da=*)
  484. datadir=$ac_optarg ;;
  485. -disable-* | --disable-*)
  486. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  487. # Reject names that are not valid shell variable names.
  488. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  489. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  490. { (exit 1); exit 1; }; }
  491. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  492. eval "enable_$ac_feature=no" ;;
  493. -enable-* | --enable-*)
  494. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  495. # Reject names that are not valid shell variable names.
  496. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  497. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  498. { (exit 1); exit 1; }; }
  499. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  500. case $ac_option in
  501. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  502. *) ac_optarg=yes ;;
  503. esac
  504. eval "enable_$ac_feature='$ac_optarg'" ;;
  505. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  506. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  507. | --exec | --exe | --ex)
  508. ac_prev=exec_prefix ;;
  509. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  510. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  511. | --exec=* | --exe=* | --ex=*)
  512. exec_prefix=$ac_optarg ;;
  513. -gas | --gas | --ga | --g)
  514. # Obsolete; use --with-gas.
  515. with_gas=yes ;;
  516. -help | --help | --hel | --he | -h)
  517. ac_init_help=long ;;
  518. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  519. ac_init_help=recursive ;;
  520. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  521. ac_init_help=short ;;
  522. -host | --host | --hos | --ho)
  523. ac_prev=host_alias ;;
  524. -host=* | --host=* | --hos=* | --ho=*)
  525. host_alias=$ac_optarg ;;
  526. -includedir | --includedir | --includedi | --included | --include \
  527. | --includ | --inclu | --incl | --inc)
  528. ac_prev=includedir ;;
  529. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  530. | --includ=* | --inclu=* | --incl=* | --inc=*)
  531. includedir=$ac_optarg ;;
  532. -infodir | --infodir | --infodi | --infod | --info | --inf)
  533. ac_prev=infodir ;;
  534. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  535. infodir=$ac_optarg ;;
  536. -libdir | --libdir | --libdi | --libd)
  537. ac_prev=libdir ;;
  538. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  539. libdir=$ac_optarg ;;
  540. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  541. | --libexe | --libex | --libe)
  542. ac_prev=libexecdir ;;
  543. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  544. | --libexe=* | --libex=* | --libe=*)
  545. libexecdir=$ac_optarg ;;
  546. -localstatedir | --localstatedir | --localstatedi | --localstated \
  547. | --localstate | --localstat | --localsta | --localst \
  548. | --locals | --local | --loca | --loc | --lo)
  549. ac_prev=localstatedir ;;
  550. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  551. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  552. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  553. localstatedir=$ac_optarg ;;
  554. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  555. ac_prev=mandir ;;
  556. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  557. mandir=$ac_optarg ;;
  558. -nfp | --nfp | --nf)
  559. # Obsolete; use --without-fp.
  560. with_fp=no ;;
  561. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  562. | --no-cr | --no-c | -n)
  563. no_create=yes ;;
  564. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  565. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  566. no_recursion=yes ;;
  567. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  568. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  569. | --oldin | --oldi | --old | --ol | --o)
  570. ac_prev=oldincludedir ;;
  571. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  572. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  573. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  574. oldincludedir=$ac_optarg ;;
  575. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  576. ac_prev=prefix ;;
  577. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  578. prefix=$ac_optarg ;;
  579. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  580. | --program-pre | --program-pr | --program-p)
  581. ac_prev=program_prefix ;;
  582. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  583. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  584. program_prefix=$ac_optarg ;;
  585. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  586. | --program-suf | --program-su | --program-s)
  587. ac_prev=program_suffix ;;
  588. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  589. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  590. program_suffix=$ac_optarg ;;
  591. -program-transform-name | --program-transform-name \
  592. | --program-transform-nam | --program-transform-na \
  593. | --program-transform-n | --program-transform- \
  594. | --program-transform | --program-transfor \
  595. | --program-transfo | --program-transf \
  596. | --program-trans | --program-tran \
  597. | --progr-tra | --program-tr | --program-t)
  598. ac_prev=program_transform_name ;;
  599. -program-transform-name=* | --program-transform-name=* \
  600. | --program-transform-nam=* | --program-transform-na=* \
  601. | --program-transform-n=* | --program-transform-=* \
  602. | --program-transform=* | --program-transfor=* \
  603. | --program-transfo=* | --program-transf=* \
  604. | --program-trans=* | --program-tran=* \
  605. | --progr-tra=* | --program-tr=* | --program-t=*)
  606. program_transform_name=$ac_optarg ;;
  607. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  608. | -silent | --silent | --silen | --sile | --sil)
  609. silent=yes ;;
  610. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  611. ac_prev=sbindir ;;
  612. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  613. | --sbi=* | --sb=*)
  614. sbindir=$ac_optarg ;;
  615. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  616. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  617. | --sharedst | --shareds | --shared | --share | --shar \
  618. | --sha | --sh)
  619. ac_prev=sharedstatedir ;;
  620. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  621. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  622. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  623. | --sha=* | --sh=*)
  624. sharedstatedir=$ac_optarg ;;
  625. -site | --site | --sit)
  626. ac_prev=site ;;
  627. -site=* | --site=* | --sit=*)
  628. site=$ac_optarg ;;
  629. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  630. ac_prev=srcdir ;;
  631. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  632. srcdir=$ac_optarg ;;
  633. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  634. | --syscon | --sysco | --sysc | --sys | --sy)
  635. ac_prev=sysconfdir ;;
  636. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  637. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  638. sysconfdir=$ac_optarg ;;
  639. -target | --target | --targe | --targ | --tar | --ta | --t)
  640. ac_prev=target_alias ;;
  641. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  642. target_alias=$ac_optarg ;;
  643. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  644. verbose=yes ;;
  645. -version | --version | --versio | --versi | --vers | -V)
  646. ac_init_version=: ;;
  647. -with-* | --with-*)
  648. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  649. # Reject names that are not valid shell variable names.
  650. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  651. { echo "$as_me: error: invalid package name: $ac_package" >&2
  652. { (exit 1); exit 1; }; }
  653. ac_package=`echo $ac_package| sed 's/-/_/g'`
  654. case $ac_option in
  655. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  656. *) ac_optarg=yes ;;
  657. esac
  658. eval "with_$ac_package='$ac_optarg'" ;;
  659. -without-* | --without-*)
  660. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  661. # Reject names that are not valid shell variable names.
  662. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  663. { echo "$as_me: error: invalid package name: $ac_package" >&2
  664. { (exit 1); exit 1; }; }
  665. ac_package=`echo $ac_package | sed 's/-/_/g'`
  666. eval "with_$ac_package=no" ;;
  667. --x)
  668. # Obsolete; use --with-x.
  669. with_x=yes ;;
  670. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  671. | --x-incl | --x-inc | --x-in | --x-i)
  672. ac_prev=x_includes ;;
  673. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  674. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  675. x_includes=$ac_optarg ;;
  676. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  677. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  678. ac_prev=x_libraries ;;
  679. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  680. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  681. x_libraries=$ac_optarg ;;
  682. -*) { echo "$as_me: error: unrecognized option: $ac_option
  683. Try \`$0 --help' for more information." >&2
  684. { (exit 1); exit 1; }; }
  685. ;;
  686. *=*)
  687. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  688. # Reject names that are not valid shell variable names.
  689. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  690. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  691. { (exit 1); exit 1; }; }
  692. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  693. eval "$ac_envvar='$ac_optarg'"
  694. export $ac_envvar ;;
  695. *)
  696. # FIXME: should be removed in autoconf 3.0.
  697. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  698. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  699. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  700. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  701. ;;
  702. esac
  703. done
  704. if test -n "$ac_prev"; then
  705. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  706. { echo "$as_me: error: missing argument to $ac_option" >&2
  707. { (exit 1); exit 1; }; }
  708. fi
  709. # Be sure to have absolute paths.
  710. for ac_var in exec_prefix prefix
  711. do
  712. eval ac_val=$`echo $ac_var`
  713. case $ac_val in
  714. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  715. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  716. { (exit 1); exit 1; }; };;
  717. esac
  718. done
  719. # Be sure to have absolute paths.
  720. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  721. localstatedir libdir includedir oldincludedir infodir mandir
  722. do
  723. eval ac_val=$`echo $ac_var`
  724. case $ac_val in
  725. [\\/$]* | ?:[\\/]* ) ;;
  726. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  727. { (exit 1); exit 1; }; };;
  728. esac
  729. done
  730. # There might be people who depend on the old broken behavior: `$host'
  731. # used to hold the argument of --host etc.
  732. # FIXME: To remove some day.
  733. build=$build_alias
  734. host=$host_alias
  735. target=$target_alias
  736. # FIXME: To remove some day.
  737. if test "x$host_alias" != x; then
  738. if test "x$build_alias" = x; then
  739. cross_compiling=maybe
  740. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  741. If a cross compiler is detected then cross compile mode will be used." >&2
  742. elif test "x$build_alias" != "x$host_alias"; then
  743. cross_compiling=yes
  744. fi
  745. fi
  746. ac_tool_prefix=
  747. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  748. test "$silent" = yes && exec 6>/dev/null
  749. # Find the source files, if location was not specified.
  750. if test -z "$srcdir"; then
  751. ac_srcdir_defaulted=yes
  752. # Try the directory containing this script, then its parent.
  753. ac_confdir=`(dirname "$0") 2>/dev/null ||
  754. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  755. X"$0" : 'X\(//\)[^/]' \| \
  756. X"$0" : 'X\(//\)$' \| \
  757. X"$0" : 'X\(/\)' \| \
  758. . : '\(.\)' 2>/dev/null ||
  759. echo X"$0" |
  760. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  761. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  762. /^X\(\/\/\)$/{ s//\1/; q; }
  763. /^X\(\/\).*/{ s//\1/; q; }
  764. s/.*/./; q'`
  765. srcdir=$ac_confdir
  766. if test ! -r $srcdir/$ac_unique_file; then
  767. srcdir=..
  768. fi
  769. else
  770. ac_srcdir_defaulted=no
  771. fi
  772. if test ! -r $srcdir/$ac_unique_file; then
  773. if test "$ac_srcdir_defaulted" = yes; then
  774. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  775. { (exit 1); exit 1; }; }
  776. else
  777. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  778. { (exit 1); exit 1; }; }
  779. fi
  780. fi
  781. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  782. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  783. { (exit 1); exit 1; }; }
  784. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  785. ac_env_build_alias_set=${build_alias+set}
  786. ac_env_build_alias_value=$build_alias
  787. ac_cv_env_build_alias_set=${build_alias+set}
  788. ac_cv_env_build_alias_value=$build_alias
  789. ac_env_host_alias_set=${host_alias+set}
  790. ac_env_host_alias_value=$host_alias
  791. ac_cv_env_host_alias_set=${host_alias+set}
  792. ac_cv_env_host_alias_value=$host_alias
  793. ac_env_target_alias_set=${target_alias+set}
  794. ac_env_target_alias_value=$target_alias
  795. ac_cv_env_target_alias_set=${target_alias+set}
  796. ac_cv_env_target_alias_value=$target_alias
  797. ac_env_CC_set=${CC+set}
  798. ac_env_CC_value=$CC
  799. ac_cv_env_CC_set=${CC+set}
  800. ac_cv_env_CC_value=$CC
  801. ac_env_CFLAGS_set=${CFLAGS+set}
  802. ac_env_CFLAGS_value=$CFLAGS
  803. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  804. ac_cv_env_CFLAGS_value=$CFLAGS
  805. ac_env_LDFLAGS_set=${LDFLAGS+set}
  806. ac_env_LDFLAGS_value=$LDFLAGS
  807. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  808. ac_cv_env_LDFLAGS_value=$LDFLAGS
  809. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  810. ac_env_CPPFLAGS_value=$CPPFLAGS
  811. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  812. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  813. ac_env_CPP_set=${CPP+set}
  814. ac_env_CPP_value=$CPP
  815. ac_cv_env_CPP_set=${CPP+set}
  816. ac_cv_env_CPP_value=$CPP
  817. ac_env_CXX_set=${CXX+set}
  818. ac_env_CXX_value=$CXX
  819. ac_cv_env_CXX_set=${CXX+set}
  820. ac_cv_env_CXX_value=$CXX
  821. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  822. ac_env_CXXFLAGS_value=$CXXFLAGS
  823. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  824. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  825. ac_env_CXXCPP_set=${CXXCPP+set}
  826. ac_env_CXXCPP_value=$CXXCPP
  827. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  828. ac_cv_env_CXXCPP_value=$CXXCPP
  829. ac_env_F77_set=${F77+set}
  830. ac_env_F77_value=$F77
  831. ac_cv_env_F77_set=${F77+set}
  832. ac_cv_env_F77_value=$F77
  833. ac_env_FFLAGS_set=${FFLAGS+set}
  834. ac_env_FFLAGS_value=$FFLAGS
  835. ac_cv_env_FFLAGS_set=${FFLAGS+set}
  836. ac_cv_env_FFLAGS_value=$FFLAGS
  837. #
  838. # Report the --help message.
  839. #
  840. if test "$ac_init_help" = "long"; then
  841. # Omit some internal or obsolete options to make the list less imposing.
  842. # This message is too long to be a string in the A/UX 3.1 sh.
  843. cat <<_ACEOF
  844. \`configure' configures cmockery 0.11 to adapt to many kinds of systems.
  845. Usage: $0 [OPTION]... [VAR=VALUE]...
  846. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  847. VAR=VALUE. See below for descriptions of some of the useful variables.
  848. Defaults for the options are specified in brackets.
  849. Configuration:
  850. -h, --help display this help and exit
  851. --help=short display options specific to this package
  852. --help=recursive display the short help of all the included packages
  853. -V, --version display version information and exit
  854. -q, --quiet, --silent do not print \`checking...' messages
  855. --cache-file=FILE cache test results in FILE [disabled]
  856. -C, --config-cache alias for \`--cache-file=config.cache'
  857. -n, --no-create do not create output files
  858. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  859. _ACEOF
  860. cat <<_ACEOF
  861. Installation directories:
  862. --prefix=PREFIX install architecture-independent files in PREFIX
  863. [$ac_default_prefix]
  864. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  865. [PREFIX]
  866. By default, \`make install' will install all the files in
  867. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  868. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  869. for instance \`--prefix=\$HOME'.
  870. For better control, use the options below.
  871. Fine tuning of the installation directories:
  872. --bindir=DIR user executables [EPREFIX/bin]
  873. --sbindir=DIR system admin executables [EPREFIX/sbin]
  874. --libexecdir=DIR program executables [EPREFIX/libexec]
  875. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  876. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  877. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  878. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  879. --libdir=DIR object code libraries [EPREFIX/lib]
  880. --includedir=DIR C header files [PREFIX/include]
  881. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  882. --infodir=DIR info documentation [PREFIX/info]
  883. --mandir=DIR man documentation [PREFIX/man]
  884. _ACEOF
  885. cat <<\_ACEOF
  886. Program names:
  887. --program-prefix=PREFIX prepend PREFIX to installed program names
  888. --program-suffix=SUFFIX append SUFFIX to installed program names
  889. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  890. System types:
  891. --build=BUILD configure for building on BUILD [guessed]
  892. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  893. _ACEOF
  894. fi
  895. if test -n "$ac_init_help"; then
  896. case $ac_init_help in
  897. short | recursive ) echo "Configuration of cmockery 0.11:";;
  898. esac
  899. cat <<\_ACEOF
  900. Optional Features:
  901. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  902. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  903. --disable-dependency-tracking speeds up one-time build
  904. --enable-dependency-tracking do not reject slow dependency extractors
  905. --enable-shared[=PKGS]
  906. build shared libraries [default=yes]
  907. --enable-static[=PKGS]
  908. build static libraries [default=yes]
  909. --enable-fast-install[=PKGS]
  910. optimize for fast installation [default=yes]
  911. --disable-libtool-lock avoid locking (might break parallel builds)
  912. --enable-namespace=FOO to define these Google
  913. classes in the FOO namespace. --disable-namespace
  914. to define them in the global namespace. Default
  915. is to define them in namespace google.
  916. Optional Packages:
  917. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  918. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  919. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  920. --with-pic try to use only PIC/non-PIC objects [default=use
  921. both]
  922. --with-tags[=TAGS]
  923. include additional configurations [automatic]
  924. Some influential environment variables:
  925. CC C compiler command
  926. CFLAGS C compiler flags
  927. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  928. nonstandard directory <lib dir>
  929. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  930. headers in a nonstandard directory <include dir>
  931. CPP C preprocessor
  932. CXX C++ compiler command
  933. CXXFLAGS C++ compiler flags
  934. CXXCPP C++ preprocessor
  935. F77 Fortran 77 compiler command
  936. FFLAGS Fortran 77 compiler flags
  937. Use these variables to override the choices made by `configure' or to help
  938. it to find libraries and programs with nonstandard names/locations.
  939. Report bugs to <opensource@google.com>.
  940. _ACEOF
  941. fi
  942. if test "$ac_init_help" = "recursive"; then
  943. # If there are subdirs, report their specific --help.
  944. ac_popdir=`pwd`
  945. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  946. test -d $ac_dir || continue
  947. ac_builddir=.
  948. if test "$ac_dir" != .; then
  949. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  950. # A "../" for each directory in $ac_dir_suffix.
  951. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  952. else
  953. ac_dir_suffix= ac_top_builddir=
  954. fi
  955. case $srcdir in
  956. .) # No --srcdir option. We are building in place.
  957. ac_srcdir=.
  958. if test -z "$ac_top_builddir"; then
  959. ac_top_srcdir=.
  960. else
  961. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  962. fi ;;
  963. [\\/]* | ?:[\\/]* ) # Absolute path.
  964. ac_srcdir=$srcdir$ac_dir_suffix;
  965. ac_top_srcdir=$srcdir ;;
  966. *) # Relative path.
  967. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  968. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  969. esac
  970. # Do not use `cd foo && pwd` to compute absolute paths, because
  971. # the directories may not exist.
  972. case `pwd` in
  973. .) ac_abs_builddir="$ac_dir";;
  974. *)
  975. case "$ac_dir" in
  976. .) ac_abs_builddir=`pwd`;;
  977. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  978. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  979. esac;;
  980. esac
  981. case $ac_abs_builddir in
  982. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  983. *)
  984. case ${ac_top_builddir}. in
  985. .) ac_abs_top_builddir=$ac_abs_builddir;;
  986. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  987. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  988. esac;;
  989. esac
  990. case $ac_abs_builddir in
  991. .) ac_abs_srcdir=$ac_srcdir;;
  992. *)
  993. case $ac_srcdir in
  994. .) ac_abs_srcdir=$ac_abs_builddir;;
  995. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  996. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  997. esac;;
  998. esac
  999. case $ac_abs_builddir in
  1000. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1001. *)
  1002. case $ac_top_srcdir in
  1003. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1004. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1005. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1006. esac;;
  1007. esac
  1008. cd $ac_dir
  1009. # Check for guested configure; otherwise get Cygnus style configure.
  1010. if test -f $ac_srcdir/configure.gnu; then
  1011. echo
  1012. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1013. elif test -f $ac_srcdir/configure; then
  1014. echo
  1015. $SHELL $ac_srcdir/configure --help=recursive
  1016. elif test -f $ac_srcdir/configure.ac ||
  1017. test -f $ac_srcdir/configure.in; then
  1018. echo
  1019. $ac_configure --help
  1020. else
  1021. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1022. fi
  1023. cd "$ac_popdir"
  1024. done
  1025. fi
  1026. test -n "$ac_init_help" && exit 0
  1027. if $ac_init_version; then
  1028. cat <<\_ACEOF
  1029. cmockery configure 0.11
  1030. generated by GNU Autoconf 2.59
  1031. Copyright (C) 2003 Free Software Foundation, Inc.
  1032. This configure script is free software; the Free Software Foundation
  1033. gives unlimited permission to copy, distribute and modify it.
  1034. _ACEOF
  1035. exit 0
  1036. fi
  1037. exec 5>config.log
  1038. cat >&5 <<_ACEOF
  1039. This file contains any messages produced by compilers while
  1040. running configure, to aid debugging if configure makes a mistake.
  1041. It was created by cmockery $as_me 0.11, which was
  1042. generated by GNU Autoconf 2.59. Invocation command line was
  1043. $ $0 $@
  1044. _ACEOF
  1045. {
  1046. cat <<_ASUNAME
  1047. ## --------- ##
  1048. ## Platform. ##
  1049. ## --------- ##
  1050. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1051. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1052. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1053. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1054. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1055. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1056. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1057. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1058. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1059. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1060. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1061. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1062. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1063. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1064. _ASUNAME
  1065. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1066. for as_dir in $PATH
  1067. do
  1068. IFS=$as_save_IFS
  1069. test -z "$as_dir" && as_dir=.
  1070. echo "PATH: $as_dir"
  1071. done
  1072. } >&5
  1073. cat >&5 <<_ACEOF
  1074. ## ----------- ##
  1075. ## Core tests. ##
  1076. ## ----------- ##
  1077. _ACEOF
  1078. # Keep a trace of the command line.
  1079. # Strip out --no-create and --no-recursion so they do not pile up.
  1080. # Strip out --silent because we don't want to record it for future runs.
  1081. # Also quote any args containing shell meta-characters.
  1082. # Make two passes to allow for proper duplicate-argument suppression.
  1083. ac_configure_args=
  1084. ac_configure_args0=
  1085. ac_configure_args1=
  1086. ac_sep=
  1087. ac_must_keep_next=false
  1088. for ac_pass in 1 2
  1089. do
  1090. for ac_arg
  1091. do
  1092. case $ac_arg in
  1093. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1094. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1095. | -silent | --silent | --silen | --sile | --sil)
  1096. continue ;;
  1097. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1098. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1099. esac
  1100. case $ac_pass in
  1101. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1102. 2)
  1103. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1104. if test $ac_must_keep_next = true; then
  1105. ac_must_keep_next=false # Got value, back to normal.
  1106. else
  1107. case $ac_arg in
  1108. *=* | --config-cache | -C | -disable-* | --disable-* \
  1109. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1110. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1111. | -with-* | --with-* | -without-* | --without-* | --x)
  1112. case "$ac_configure_args0 " in
  1113. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1114. esac
  1115. ;;
  1116. -* ) ac_must_keep_next=true ;;
  1117. esac
  1118. fi
  1119. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1120. # Get rid of the leading space.
  1121. ac_sep=" "
  1122. ;;
  1123. esac
  1124. done
  1125. done
  1126. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1127. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1128. # When interrupted or exit'd, cleanup temporary files, and complete
  1129. # config.log. We remove comments because anyway the quotes in there
  1130. # would cause problems or look ugly.
  1131. # WARNING: Be sure not to use single quotes in there, as some shells,
  1132. # such as our DU 5.0 friend, will then `close' the trap.
  1133. trap 'exit_status=$?
  1134. # Save into config.log some information that might help in debugging.
  1135. {
  1136. echo
  1137. cat <<\_ASBOX
  1138. ## ---------------- ##
  1139. ## Cache variables. ##
  1140. ## ---------------- ##
  1141. _ASBOX
  1142. echo
  1143. # The following way of writing the cache mishandles newlines in values,
  1144. {
  1145. (set) 2>&1 |
  1146. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1147. *ac_space=\ *)
  1148. sed -n \
  1149. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1150. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1151. ;;
  1152. *)
  1153. sed -n \
  1154. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1155. ;;
  1156. esac;
  1157. }
  1158. echo
  1159. cat <<\_ASBOX
  1160. ## ----------------- ##
  1161. ## Output variables. ##
  1162. ## ----------------- ##
  1163. _ASBOX
  1164. echo
  1165. for ac_var in $ac_subst_vars
  1166. do
  1167. eval ac_val=$`echo $ac_var`
  1168. echo "$ac_var='"'"'$ac_val'"'"'"
  1169. done | sort
  1170. echo
  1171. if test -n "$ac_subst_files"; then
  1172. cat <<\_ASBOX
  1173. ## ------------- ##
  1174. ## Output files. ##
  1175. ## ------------- ##
  1176. _ASBOX
  1177. echo
  1178. for ac_var in $ac_subst_files
  1179. do
  1180. eval ac_val=$`echo $ac_var`
  1181. echo "$ac_var='"'"'$ac_val'"'"'"
  1182. done | sort
  1183. echo
  1184. fi
  1185. if test -s confdefs.h; then
  1186. cat <<\_ASBOX
  1187. ## ----------- ##
  1188. ## confdefs.h. ##
  1189. ## ----------- ##
  1190. _ASBOX
  1191. echo
  1192. sed "/^$/d" confdefs.h | sort
  1193. echo
  1194. fi
  1195. test "$ac_signal" != 0 &&
  1196. echo "$as_me: caught signal $ac_signal"
  1197. echo "$as_me: exit $exit_status"
  1198. } >&5
  1199. rm -f core *.core &&
  1200. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1201. exit $exit_status
  1202. ' 0
  1203. for ac_signal in 1 2 13 15; do
  1204. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1205. done
  1206. ac_signal=0
  1207. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1208. rm -rf conftest* confdefs.h
  1209. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1210. echo >confdefs.h
  1211. # Predefined preprocessor variables.
  1212. cat >>confdefs.h <<_ACEOF
  1213. #define PACKAGE_NAME "$PACKAGE_NAME"
  1214. _ACEOF
  1215. cat >>confdefs.h <<_ACEOF
  1216. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1217. _ACEOF
  1218. cat >>confdefs.h <<_ACEOF
  1219. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1220. _ACEOF
  1221. cat >>confdefs.h <<_ACEOF
  1222. #define PACKAGE_STRING "$PACKAGE_STRING"
  1223. _ACEOF
  1224. cat >>confdefs.h <<_ACEOF
  1225. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1226. _ACEOF
  1227. # Let the site file select an alternate cache file if it wants to.
  1228. # Prefer explicitly selected file to automatically selected ones.
  1229. if test -z "$CONFIG_SITE"; then
  1230. if test "x$prefix" != xNONE; then
  1231. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1232. else
  1233. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1234. fi
  1235. fi
  1236. for ac_site_file in $CONFIG_SITE; do
  1237. if test -r "$ac_site_file"; then
  1238. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1239. echo "$as_me: loading site script $ac_site_file" >&6;}
  1240. sed 's/^/| /' "$ac_site_file" >&5
  1241. . "$ac_site_file"
  1242. fi
  1243. done
  1244. if test -r "$cache_file"; then
  1245. # Some versions of bash will fail to source /dev/null (special
  1246. # files actually), so we avoid doing that.
  1247. if test -f "$cache_file"; then
  1248. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1249. echo "$as_me: loading cache $cache_file" >&6;}
  1250. case $cache_file in
  1251. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1252. *) . ./$cache_file;;
  1253. esac
  1254. fi
  1255. else
  1256. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1257. echo "$as_me: creating cache $cache_file" >&6;}
  1258. >$cache_file
  1259. fi
  1260. # Check that the precious variables saved in the cache have kept the same
  1261. # value.
  1262. ac_cache_corrupted=false
  1263. for ac_var in `(set) 2>&1 |
  1264. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1265. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1266. eval ac_new_set=\$ac_env_${ac_var}_set
  1267. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1268. eval ac_new_val="\$ac_env_${ac_var}_value"
  1269. case $ac_old_set,$ac_new_set in
  1270. set,)
  1271. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1272. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1273. ac_cache_corrupted=: ;;
  1274. ,set)
  1275. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1276. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1277. ac_cache_corrupted=: ;;
  1278. ,);;
  1279. *)
  1280. if test "x$ac_old_val" != "x$ac_new_val"; then
  1281. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1282. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1283. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1284. echo "$as_me: former value: $ac_old_val" >&2;}
  1285. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1286. echo "$as_me: current value: $ac_new_val" >&2;}
  1287. ac_cache_corrupted=:
  1288. fi;;
  1289. esac
  1290. # Pass precious variables to config.status.
  1291. if test "$ac_new_set" = set; then
  1292. case $ac_new_val in
  1293. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1294. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1295. *) ac_arg=$ac_var=$ac_new_val ;;
  1296. esac
  1297. case " $ac_configure_args " in
  1298. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1299. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1300. esac
  1301. fi
  1302. done
  1303. if $ac_cache_corrupted; then
  1304. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1305. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1306. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1307. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1308. { (exit 1); exit 1; }; }
  1309. fi
  1310. ac_ext=c
  1311. ac_cpp='$CPP $CPPFLAGS'
  1312. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1313. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1314. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1315. # The argument here is just something that should be in the current directory
  1316. # (for sanity checking)
  1317. am__api_version="1.9"
  1318. ac_aux_dir=
  1319. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1320. if test -f $ac_dir/install-sh; then
  1321. ac_aux_dir=$ac_dir
  1322. ac_install_sh="$ac_aux_dir/install-sh -c"
  1323. break
  1324. elif test -f $ac_dir/install.sh; then
  1325. ac_aux_dir=$ac_dir
  1326. ac_install_sh="$ac_aux_dir/install.sh -c"
  1327. break
  1328. elif test -f $ac_dir/shtool; then
  1329. ac_aux_dir=$ac_dir
  1330. ac_install_sh="$ac_aux_dir/shtool install -c"
  1331. break
  1332. fi
  1333. done
  1334. if test -z "$ac_aux_dir"; then
  1335. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1336. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1337. { (exit 1); exit 1; }; }
  1338. fi
  1339. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1340. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1341. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1342. # Find a good install program. We prefer a C program (faster),
  1343. # so one script is as good as another. But avoid the broken or
  1344. # incompatible versions:
  1345. # SysV /etc/install, /usr/sbin/install
  1346. # SunOS /usr/etc/install
  1347. # IRIX /sbin/install
  1348. # AIX /bin/install
  1349. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1350. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1351. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1352. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1353. # OS/2's system install, which has a completely different semantic
  1354. # ./install, which can be erroneously created by make from ./install.sh.
  1355. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1356. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1357. if test -z "$INSTALL"; then
  1358. if test "${ac_cv_path_install+set}" = set; then
  1359. echo $ECHO_N "(cached) $ECHO_C" >&6
  1360. else
  1361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1362. for as_dir in $PATH
  1363. do
  1364. IFS=$as_save_IFS
  1365. test -z "$as_dir" && as_dir=.
  1366. # Account for people who put trailing slashes in PATH elements.
  1367. case $as_dir/ in
  1368. ./ | .// | /cC/* | \
  1369. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1370. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1371. /usr/ucb/* ) ;;
  1372. *)
  1373. # OSF1 and SCO ODT 3.0 have their own names for install.
  1374. # Don't use installbsd from OSF since it installs stuff as root
  1375. # by default.
  1376. for ac_prog in ginstall scoinst install; do
  1377. for ac_exec_ext in '' $ac_executable_extensions; do
  1378. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1379. if test $ac_prog = install &&
  1380. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1381. # AIX install. It has an incompatible calling convention.
  1382. :
  1383. elif test $ac_prog = install &&
  1384. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1385. # program-specific install script used by HP pwplus--don't use.
  1386. :
  1387. else
  1388. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1389. break 3
  1390. fi
  1391. fi
  1392. done
  1393. done
  1394. ;;
  1395. esac
  1396. done
  1397. fi
  1398. if test "${ac_cv_path_install+set}" = set; then
  1399. INSTALL=$ac_cv_path_install
  1400. else
  1401. # As a last resort, use the slow shell script. We don't cache a
  1402. # path for INSTALL within a source directory, because that will
  1403. # break other packages using the cache if that directory is
  1404. # removed, or if the path is relative.
  1405. INSTALL=$ac_install_sh
  1406. fi
  1407. fi
  1408. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1409. echo "${ECHO_T}$INSTALL" >&6
  1410. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1411. # It thinks the first close brace ends the variable substitution.
  1412. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1413. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1414. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1415. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1416. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1417. # Just in case
  1418. sleep 1
  1419. echo timestamp > conftest.file
  1420. # Do `set' in a subshell so we don't clobber the current shell's
  1421. # arguments. Must try -L first in case configure is actually a
  1422. # symlink; some systems play weird games with the mod time of symlinks
  1423. # (eg FreeBSD returns the mod time of the symlink's containing
  1424. # directory).
  1425. if (
  1426. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1427. if test "$*" = "X"; then
  1428. # -L didn't work.
  1429. set X `ls -t $srcdir/configure conftest.file`
  1430. fi
  1431. rm -f conftest.file
  1432. if test "$*" != "X $srcdir/configure conftest.file" \
  1433. && test "$*" != "X conftest.file $srcdir/configure"; then
  1434. # If neither matched, then we have a broken ls. This can happen
  1435. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1436. # broken ls alias from the environment. This has actually
  1437. # happened. Such a system could not be considered "sane".
  1438. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1439. alias in your environment" >&5
  1440. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1441. alias in your environment" >&2;}
  1442. { (exit 1); exit 1; }; }
  1443. fi
  1444. test "$2" = conftest.file
  1445. )
  1446. then
  1447. # Ok.
  1448. :
  1449. else
  1450. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1451. Check your system clock" >&5
  1452. echo "$as_me: error: newly created file is older than distributed files!
  1453. Check your system clock" >&2;}
  1454. { (exit 1); exit 1; }; }
  1455. fi
  1456. echo "$as_me:$LINENO: result: yes" >&5
  1457. echo "${ECHO_T}yes" >&6
  1458. test "$program_prefix" != NONE &&
  1459. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1460. # Use a double $ so make ignores it.
  1461. test "$program_suffix" != NONE &&
  1462. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1463. # Double any \ or $. echo might interpret backslashes.
  1464. # By default was `s,x,x', remove it if useless.
  1465. cat <<\_ACEOF >conftest.sed
  1466. s/[\\$]/&&/g;s/;s,x,x,$//
  1467. _ACEOF
  1468. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1469. rm conftest.sed
  1470. # expand $ac_aux_dir to an absolute path
  1471. am_aux_dir=`cd $ac_aux_dir && pwd`
  1472. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1473. # Use eval to expand $SHELL
  1474. if eval "$MISSING --run true"; then
  1475. am_missing_run="$MISSING --run "
  1476. else
  1477. am_missing_run=
  1478. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1479. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1480. fi
  1481. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1482. # We used to keeping the `.' as first argument, in order to
  1483. # allow $(mkdir_p) to be used without argument. As in
  1484. # $(mkdir_p) $(somedir)
  1485. # where $(somedir) is conditionally defined. However this is wrong
  1486. # for two reasons:
  1487. # 1. if the package is installed by a user who cannot write `.'
  1488. # make install will fail,
  1489. # 2. the above comment should most certainly read
  1490. # $(mkdir_p) $(DESTDIR)$(somedir)
  1491. # so it does not work when $(somedir) is undefined and
  1492. # $(DESTDIR) is not.
  1493. # To support the latter case, we have to write
  1494. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1495. # so the `.' trick is pointless.
  1496. mkdir_p='mkdir -p --'
  1497. else
  1498. # On NextStep and OpenStep, the `mkdir' command does not
  1499. # recognize any option. It will interpret all options as
  1500. # directories to create, and then abort because `.' already
  1501. # exists.
  1502. for d in ./-p ./--version;
  1503. do
  1504. test -d $d && rmdir $d
  1505. done
  1506. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1507. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1508. mkdir_p='$(mkinstalldirs)'
  1509. else
  1510. mkdir_p='$(install_sh) -d'
  1511. fi
  1512. fi
  1513. for ac_prog in gawk mawk nawk awk
  1514. do
  1515. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1516. set dummy $ac_prog; ac_word=$2
  1517. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1518. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1519. if test "${ac_cv_prog_AWK+set}" = set; then
  1520. echo $ECHO_N "(cached) $ECHO_C" >&6
  1521. else
  1522. if test -n "$AWK"; then
  1523. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1524. else
  1525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1526. for as_dir in $PATH
  1527. do
  1528. IFS=$as_save_IFS
  1529. test -z "$as_dir" && as_dir=.
  1530. for ac_exec_ext in '' $ac_executable_extensions; do
  1531. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1532. ac_cv_prog_AWK="$ac_prog"
  1533. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1534. break 2
  1535. fi
  1536. done
  1537. done
  1538. fi
  1539. fi
  1540. AWK=$ac_cv_prog_AWK
  1541. if test -n "$AWK"; then
  1542. echo "$as_me:$LINENO: result: $AWK" >&5
  1543. echo "${ECHO_T}$AWK" >&6
  1544. else
  1545. echo "$as_me:$LINENO: result: no" >&5
  1546. echo "${ECHO_T}no" >&6
  1547. fi
  1548. test -n "$AWK" && break
  1549. done
  1550. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1551. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1552. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1553. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1554. echo $ECHO_N "(cached) $ECHO_C" >&6
  1555. else
  1556. cat >conftest.make <<\_ACEOF
  1557. all:
  1558. @echo 'ac_maketemp="$(MAKE)"'
  1559. _ACEOF
  1560. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1561. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1562. if test -n "$ac_maketemp"; then
  1563. eval ac_cv_prog_make_${ac_make}_set=yes
  1564. else
  1565. eval ac_cv_prog_make_${ac_make}_set=no
  1566. fi
  1567. rm -f conftest.make
  1568. fi
  1569. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1570. echo "$as_me:$LINENO: result: yes" >&5
  1571. echo "${ECHO_T}yes" >&6
  1572. SET_MAKE=
  1573. else
  1574. echo "$as_me:$LINENO: result: no" >&5
  1575. echo "${ECHO_T}no" >&6
  1576. SET_MAKE="MAKE=${MAKE-make}"
  1577. fi
  1578. rm -rf .tst 2>/dev/null
  1579. mkdir .tst 2>/dev/null
  1580. if test -d .tst; then
  1581. am__leading_dot=.
  1582. else
  1583. am__leading_dot=_
  1584. fi
  1585. rmdir .tst 2>/dev/null
  1586. # test to see if srcdir already configured
  1587. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1588. test -f $srcdir/config.status; then
  1589. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1590. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1591. { (exit 1); exit 1; }; }
  1592. fi
  1593. # test whether we have cygpath
  1594. if test -z "$CYGPATH_W"; then
  1595. if (cygpath --version) >/dev/null 2>/dev/null; then
  1596. CYGPATH_W='cygpath -w'
  1597. else
  1598. CYGPATH_W=echo
  1599. fi
  1600. fi
  1601. # Define the identity of the package.
  1602. PACKAGE='cmockery'
  1603. VERSION='0.11'
  1604. cat >>confdefs.h <<_ACEOF
  1605. #define PACKAGE "$PACKAGE"
  1606. _ACEOF
  1607. cat >>confdefs.h <<_ACEOF
  1608. #define VERSION "$VERSION"
  1609. _ACEOF
  1610. # Some tools Automake needs.
  1611. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1612. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1613. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1614. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1615. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1616. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1617. # Installed binaries are usually stripped using `strip' when the user
  1618. # run `make install-strip'. However `strip' might not be the right
  1619. # tool to use in cross-compilation environments, therefore Automake
  1620. # will honor the `STRIP' environment variable to overrule this program.
  1621. if test "$cross_compiling" != no; then
  1622. if test -n "$ac_tool_prefix"; then
  1623. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1624. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1625. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1626. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1627. if test "${ac_cv_prog_STRIP+set}" = set; then
  1628. echo $ECHO_N "(cached) $ECHO_C" >&6
  1629. else
  1630. if test -n "$STRIP"; then
  1631. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1632. else
  1633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1634. for as_dir in $PATH
  1635. do
  1636. IFS=$as_save_IFS
  1637. test -z "$as_dir" && as_dir=.
  1638. for ac_exec_ext in '' $ac_executable_extensions; do
  1639. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1640. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1641. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1642. break 2
  1643. fi
  1644. done
  1645. done
  1646. fi
  1647. fi
  1648. STRIP=$ac_cv_prog_STRIP
  1649. if test -n "$STRIP"; then
  1650. echo "$as_me:$LINENO: result: $STRIP" >&5
  1651. echo "${ECHO_T}$STRIP" >&6
  1652. else
  1653. echo "$as_me:$LINENO: result: no" >&5
  1654. echo "${ECHO_T}no" >&6
  1655. fi
  1656. fi
  1657. if test -z "$ac_cv_prog_STRIP"; then
  1658. ac_ct_STRIP=$STRIP
  1659. # Extract the first word of "strip", so it can be a program name with args.
  1660. set dummy strip; ac_word=$2
  1661. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1662. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1663. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1664. echo $ECHO_N "(cached) $ECHO_C" >&6
  1665. else
  1666. if test -n "$ac_ct_STRIP"; then
  1667. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1668. else
  1669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1670. for as_dir in $PATH
  1671. do
  1672. IFS=$as_save_IFS
  1673. test -z "$as_dir" && as_dir=.
  1674. for ac_exec_ext in '' $ac_executable_extensions; do
  1675. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1676. ac_cv_prog_ac_ct_STRIP="strip"
  1677. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1678. break 2
  1679. fi
  1680. done
  1681. done
  1682. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1683. fi
  1684. fi
  1685. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1686. if test -n "$ac_ct_STRIP"; then
  1687. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1688. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1689. else
  1690. echo "$as_me:$LINENO: result: no" >&5
  1691. echo "${ECHO_T}no" >&6
  1692. fi
  1693. STRIP=$ac_ct_STRIP
  1694. else
  1695. STRIP="$ac_cv_prog_STRIP"
  1696. fi
  1697. fi
  1698. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1699. # We need awk for the "check" target. The system "awk" is bad on
  1700. # some platforms.
  1701. # Always define AMTAR for backward compatibility.
  1702. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1703. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1704. ac_config_headers="$ac_config_headers src/config.h"
  1705. # Checks for programs.
  1706. ac_ext=c
  1707. ac_cpp='$CPP $CPPFLAGS'
  1708. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1709. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1710. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1711. if test -n "$ac_tool_prefix"; then
  1712. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1713. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1714. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1715. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1716. if test "${ac_cv_prog_CC+set}" = set; then
  1717. echo $ECHO_N "(cached) $ECHO_C" >&6
  1718. else
  1719. if test -n "$CC"; then
  1720. ac_cv_prog_CC="$CC" # Let the user override the test.
  1721. else
  1722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1723. for as_dir in $PATH
  1724. do
  1725. IFS=$as_save_IFS
  1726. test -z "$as_dir" && as_dir=.
  1727. for ac_exec_ext in '' $ac_executable_extensions; do
  1728. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1729. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1730. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1731. break 2
  1732. fi
  1733. done
  1734. done
  1735. fi
  1736. fi
  1737. CC=$ac_cv_prog_CC
  1738. if test -n "$CC"; then
  1739. echo "$as_me:$LINENO: result: $CC" >&5
  1740. echo "${ECHO_T}$CC" >&6
  1741. else
  1742. echo "$as_me:$LINENO: result: no" >&5
  1743. echo "${ECHO_T}no" >&6
  1744. fi
  1745. fi
  1746. if test -z "$ac_cv_prog_CC"; then
  1747. ac_ct_CC=$CC
  1748. # Extract the first word of "gcc", so it can be a program name with args.
  1749. set dummy gcc; ac_word=$2
  1750. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1751. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1752. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1753. echo $ECHO_N "(cached) $ECHO_C" >&6
  1754. else
  1755. if test -n "$ac_ct_CC"; then
  1756. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1757. else
  1758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1759. for as_dir in $PATH
  1760. do
  1761. IFS=$as_save_IFS
  1762. test -z "$as_dir" && as_dir=.
  1763. for ac_exec_ext in '' $ac_executable_extensions; do
  1764. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1765. ac_cv_prog_ac_ct_CC="gcc"
  1766. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1767. break 2
  1768. fi
  1769. done
  1770. done
  1771. fi
  1772. fi
  1773. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1774. if test -n "$ac_ct_CC"; then
  1775. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1776. echo "${ECHO_T}$ac_ct_CC" >&6
  1777. else
  1778. echo "$as_me:$LINENO: result: no" >&5
  1779. echo "${ECHO_T}no" >&6
  1780. fi
  1781. CC=$ac_ct_CC
  1782. else
  1783. CC="$ac_cv_prog_CC"
  1784. fi
  1785. if test -z "$CC"; then
  1786. if test -n "$ac_tool_prefix"; then
  1787. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1788. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1789. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1790. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1791. if test "${ac_cv_prog_CC+set}" = set; then
  1792. echo $ECHO_N "(cached) $ECHO_C" >&6
  1793. else
  1794. if test -n "$CC"; then
  1795. ac_cv_prog_CC="$CC" # Let the user override the test.
  1796. else
  1797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1798. for as_dir in $PATH
  1799. do
  1800. IFS=$as_save_IFS
  1801. test -z "$as_dir" && as_dir=.
  1802. for ac_exec_ext in '' $ac_executable_extensions; do
  1803. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1804. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1805. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1806. break 2
  1807. fi
  1808. done
  1809. done
  1810. fi
  1811. fi
  1812. CC=$ac_cv_prog_CC
  1813. if test -n "$CC"; then
  1814. echo "$as_me:$LINENO: result: $CC" >&5
  1815. echo "${ECHO_T}$CC" >&6
  1816. else
  1817. echo "$as_me:$LINENO: result: no" >&5
  1818. echo "${ECHO_T}no" >&6
  1819. fi
  1820. fi
  1821. if test -z "$ac_cv_prog_CC"; then
  1822. ac_ct_CC=$CC
  1823. # Extract the first word of "cc", so it can be a program name with args.
  1824. set dummy cc; ac_word=$2
  1825. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1826. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1827. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1828. echo $ECHO_N "(cached) $ECHO_C" >&6
  1829. else
  1830. if test -n "$ac_ct_CC"; then
  1831. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1832. else
  1833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1834. for as_dir in $PATH
  1835. do
  1836. IFS=$as_save_IFS
  1837. test -z "$as_dir" && as_dir=.
  1838. for ac_exec_ext in '' $ac_executable_extensions; do
  1839. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1840. ac_cv_prog_ac_ct_CC="cc"
  1841. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1842. break 2
  1843. fi
  1844. done
  1845. done
  1846. fi
  1847. fi
  1848. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1849. if test -n "$ac_ct_CC"; then
  1850. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1851. echo "${ECHO_T}$ac_ct_CC" >&6
  1852. else
  1853. echo "$as_me:$LINENO: result: no" >&5
  1854. echo "${ECHO_T}no" >&6
  1855. fi
  1856. CC=$ac_ct_CC
  1857. else
  1858. CC="$ac_cv_prog_CC"
  1859. fi
  1860. fi
  1861. if test -z "$CC"; then
  1862. # Extract the first word of "cc", so it can be a program name with args.
  1863. set dummy cc; ac_word=$2
  1864. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1865. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1866. if test "${ac_cv_prog_CC+set}" = set; then
  1867. echo $ECHO_N "(cached) $ECHO_C" >&6
  1868. else
  1869. if test -n "$CC"; then
  1870. ac_cv_prog_CC="$CC" # Let the user override the test.
  1871. else
  1872. ac_prog_rejected=no
  1873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1874. for as_dir in $PATH
  1875. do
  1876. IFS=$as_save_IFS
  1877. test -z "$as_dir" && as_dir=.
  1878. for ac_exec_ext in '' $ac_executable_extensions; do
  1879. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1880. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1881. ac_prog_rejected=yes
  1882. continue
  1883. fi
  1884. ac_cv_prog_CC="cc"
  1885. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1886. break 2
  1887. fi
  1888. done
  1889. done
  1890. if test $ac_prog_rejected = yes; then
  1891. # We found a bogon in the path, so make sure we never use it.
  1892. set dummy $ac_cv_prog_CC
  1893. shift
  1894. if test $# != 0; then
  1895. # We chose a different compiler from the bogus one.
  1896. # However, it has the same basename, so the bogon will be chosen
  1897. # first if we set CC to just the basename; use the full file name.
  1898. shift
  1899. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1900. fi
  1901. fi
  1902. fi
  1903. fi
  1904. CC=$ac_cv_prog_CC
  1905. if test -n "$CC"; then
  1906. echo "$as_me:$LINENO: result: $CC" >&5
  1907. echo "${ECHO_T}$CC" >&6
  1908. else
  1909. echo "$as_me:$LINENO: result: no" >&5
  1910. echo "${ECHO_T}no" >&6
  1911. fi
  1912. fi
  1913. if test -z "$CC"; then
  1914. if test -n "$ac_tool_prefix"; then
  1915. for ac_prog in cl
  1916. do
  1917. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1918. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1919. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1920. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1921. if test "${ac_cv_prog_CC+set}" = set; then
  1922. echo $ECHO_N "(cached) $ECHO_C" >&6
  1923. else
  1924. if test -n "$CC"; then
  1925. ac_cv_prog_CC="$CC" # Let the user override the test.
  1926. else
  1927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1928. for as_dir in $PATH
  1929. do
  1930. IFS=$as_save_IFS
  1931. test -z "$as_dir" && as_dir=.
  1932. for ac_exec_ext in '' $ac_executable_extensions; do
  1933. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1934. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1935. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1936. break 2
  1937. fi
  1938. done
  1939. done
  1940. fi
  1941. fi
  1942. CC=$ac_cv_prog_CC
  1943. if test -n "$CC"; then
  1944. echo "$as_me:$LINENO: result: $CC" >&5
  1945. echo "${ECHO_T}$CC" >&6
  1946. else
  1947. echo "$as_me:$LINENO: result: no" >&5
  1948. echo "${ECHO_T}no" >&6
  1949. fi
  1950. test -n "$CC" && break
  1951. done
  1952. fi
  1953. if test -z "$CC"; then
  1954. ac_ct_CC=$CC
  1955. for ac_prog in cl
  1956. do
  1957. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1958. set dummy $ac_prog; ac_word=$2
  1959. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1960. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1961. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1962. echo $ECHO_N "(cached) $ECHO_C" >&6
  1963. else
  1964. if test -n "$ac_ct_CC"; then
  1965. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1966. else
  1967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1968. for as_dir in $PATH
  1969. do
  1970. IFS=$as_save_IFS
  1971. test -z "$as_dir" && as_dir=.
  1972. for ac_exec_ext in '' $ac_executable_extensions; do
  1973. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1974. ac_cv_prog_ac_ct_CC="$ac_prog"
  1975. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1976. break 2
  1977. fi
  1978. done
  1979. done
  1980. fi
  1981. fi
  1982. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1983. if test -n "$ac_ct_CC"; then
  1984. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1985. echo "${ECHO_T}$ac_ct_CC" >&6
  1986. else
  1987. echo "$as_me:$LINENO: result: no" >&5
  1988. echo "${ECHO_T}no" >&6
  1989. fi
  1990. test -n "$ac_ct_CC" && break
  1991. done
  1992. CC=$ac_ct_CC
  1993. fi
  1994. fi
  1995. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1996. See \`config.log' for more details." >&5
  1997. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1998. See \`config.log' for more details." >&2;}
  1999. { (exit 1); exit 1; }; }
  2000. # Provide some information about the compiler.
  2001. echo "$as_me:$LINENO:" \
  2002. "checking for C compiler version" >&5
  2003. ac_compiler=`set X $ac_compile; echo $2`
  2004. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2005. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2006. ac_status=$?
  2007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2008. (exit $ac_status); }
  2009. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2010. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2011. ac_status=$?
  2012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2013. (exit $ac_status); }
  2014. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2015. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2016. ac_status=$?
  2017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2018. (exit $ac_status); }
  2019. cat >conftest.$ac_ext <<_ACEOF
  2020. /* confdefs.h. */
  2021. _ACEOF
  2022. cat confdefs.h >>conftest.$ac_ext
  2023. cat >>conftest.$ac_ext <<_ACEOF
  2024. /* end confdefs.h. */
  2025. int
  2026. main ()
  2027. {
  2028. ;
  2029. return 0;
  2030. }
  2031. _ACEOF
  2032. ac_clean_files_save=$ac_clean_files
  2033. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2034. # Try to create an executable without -o first, disregard a.out.
  2035. # It will help us diagnose broken compilers, and finding out an intuition
  2036. # of exeext.
  2037. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2038. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  2039. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2040. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2041. (eval $ac_link_default) 2>&5
  2042. ac_status=$?
  2043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2044. (exit $ac_status); }; then
  2045. # Find the output, starting from the most likely. This scheme is
  2046. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2047. # resort.
  2048. # Be careful to initialize this variable, since it used to be cached.
  2049. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2050. ac_cv_exeext=
  2051. # b.out is created by i960 compilers.
  2052. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2053. do
  2054. test -f "$ac_file" || continue
  2055. case $ac_file in
  2056. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2057. ;;
  2058. conftest.$ac_ext )
  2059. # This is the source file.
  2060. ;;
  2061. [ab].out )
  2062. # We found the default executable, but exeext='' is most
  2063. # certainly right.
  2064. break;;
  2065. *.* )
  2066. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2067. # FIXME: I believe we export ac_cv_exeext for Libtool,
  2068. # but it would be cool to find out if it's true. Does anybody
  2069. # maintain Libtool? --akim.
  2070. export ac_cv_exeext
  2071. break;;
  2072. * )
  2073. break;;
  2074. esac
  2075. done
  2076. else
  2077. echo "$as_me: failed program was:" >&5
  2078. sed 's/^/| /' conftest.$ac_ext >&5
  2079. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2080. See \`config.log' for more details." >&5
  2081. echo "$as_me: error: C compiler cannot create executables
  2082. See \`config.log' for more details." >&2;}
  2083. { (exit 77); exit 77; }; }
  2084. fi
  2085. ac_exeext=$ac_cv_exeext
  2086. echo "$as_me:$LINENO: result: $ac_file" >&5
  2087. echo "${ECHO_T}$ac_file" >&6
  2088. # Check the compiler produces executables we can run. If not, either
  2089. # the compiler is broken, or we cross compile.
  2090. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2091. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2092. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2093. # If not cross compiling, check that we can run a simple program.
  2094. if test "$cross_compiling" != yes; then
  2095. if { ac_try='./$ac_file'
  2096. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2097. (eval $ac_try) 2>&5
  2098. ac_status=$?
  2099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2100. (exit $ac_status); }; }; then
  2101. cross_compiling=no
  2102. else
  2103. if test "$cross_compiling" = maybe; then
  2104. cross_compiling=yes
  2105. else
  2106. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2107. If you meant to cross compile, use \`--host'.
  2108. See \`config.log' for more details." >&5
  2109. echo "$as_me: error: cannot run C compiled programs.
  2110. If you meant to cross compile, use \`--host'.
  2111. See \`config.log' for more details." >&2;}
  2112. { (exit 1); exit 1; }; }
  2113. fi
  2114. fi
  2115. fi
  2116. echo "$as_me:$LINENO: result: yes" >&5
  2117. echo "${ECHO_T}yes" >&6
  2118. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2119. ac_clean_files=$ac_clean_files_save
  2120. # Check the compiler produces executables we can run. If not, either
  2121. # the compiler is broken, or we cross compile.
  2122. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2123. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2124. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2125. echo "${ECHO_T}$cross_compiling" >&6
  2126. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2127. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2128. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2129. (eval $ac_link) 2>&5
  2130. ac_status=$?
  2131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2132. (exit $ac_status); }; then
  2133. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2134. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2135. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2136. # `rm'.
  2137. for ac_file in conftest.exe conftest conftest.*; do
  2138. test -f "$ac_file" || continue
  2139. case $ac_file in
  2140. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2141. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2142. export ac_cv_exeext
  2143. break;;
  2144. * ) break;;
  2145. esac
  2146. done
  2147. else
  2148. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2149. See \`config.log' for more details." >&5
  2150. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2151. See \`config.log' for more details." >&2;}
  2152. { (exit 1); exit 1; }; }
  2153. fi
  2154. rm -f conftest$ac_cv_exeext
  2155. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2156. echo "${ECHO_T}$ac_cv_exeext" >&6
  2157. rm -f conftest.$ac_ext
  2158. EXEEXT=$ac_cv_exeext
  2159. ac_exeext=$EXEEXT
  2160. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2161. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2162. if test "${ac_cv_objext+set}" = set; then
  2163. echo $ECHO_N "(cached) $ECHO_C" >&6
  2164. else
  2165. cat >conftest.$ac_ext <<_ACEOF
  2166. /* confdefs.h. */
  2167. _ACEOF
  2168. cat confdefs.h >>conftest.$ac_ext
  2169. cat >>conftest.$ac_ext <<_ACEOF
  2170. /* end confdefs.h. */
  2171. int
  2172. main ()
  2173. {
  2174. ;
  2175. return 0;
  2176. }
  2177. _ACEOF
  2178. rm -f conftest.o conftest.obj
  2179. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2180. (eval $ac_compile) 2>&5
  2181. ac_status=$?
  2182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2183. (exit $ac_status); }; then
  2184. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2185. case $ac_file in
  2186. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2187. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2188. break;;
  2189. esac
  2190. done
  2191. else
  2192. echo "$as_me: failed program was:" >&5
  2193. sed 's/^/| /' conftest.$ac_ext >&5
  2194. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2195. See \`config.log' for more details." >&5
  2196. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2197. See \`config.log' for more details." >&2;}
  2198. { (exit 1); exit 1; }; }
  2199. fi
  2200. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2201. fi
  2202. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2203. echo "${ECHO_T}$ac_cv_objext" >&6
  2204. OBJEXT=$ac_cv_objext
  2205. ac_objext=$OBJEXT
  2206. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2207. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2208. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2209. echo $ECHO_N "(cached) $ECHO_C" >&6
  2210. else
  2211. cat >conftest.$ac_ext <<_ACEOF
  2212. /* confdefs.h. */
  2213. _ACEOF
  2214. cat confdefs.h >>conftest.$ac_ext
  2215. cat >>conftest.$ac_ext <<_ACEOF
  2216. /* end confdefs.h. */
  2217. int
  2218. main ()
  2219. {
  2220. #ifndef __GNUC__
  2221. choke me
  2222. #endif
  2223. ;
  2224. return 0;
  2225. }
  2226. _ACEOF
  2227. rm -f conftest.$ac_objext
  2228. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2229. (eval $ac_compile) 2>conftest.er1
  2230. ac_status=$?
  2231. grep -v '^ *+' conftest.er1 >conftest.err
  2232. rm -f conftest.er1
  2233. cat conftest.err >&5
  2234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2235. (exit $ac_status); } &&
  2236. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2237. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2238. (eval $ac_try) 2>&5
  2239. ac_status=$?
  2240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2241. (exit $ac_status); }; } &&
  2242. { ac_try='test -s conftest.$ac_objext'
  2243. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2244. (eval $ac_try) 2>&5
  2245. ac_status=$?
  2246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2247. (exit $ac_status); }; }; then
  2248. ac_compiler_gnu=yes
  2249. else
  2250. echo "$as_me: failed program was:" >&5
  2251. sed 's/^/| /' conftest.$ac_ext >&5
  2252. ac_compiler_gnu=no
  2253. fi
  2254. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2255. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2256. fi
  2257. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2258. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2259. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2260. ac_test_CFLAGS=${CFLAGS+set}
  2261. ac_save_CFLAGS=$CFLAGS
  2262. CFLAGS="-g"
  2263. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2264. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2265. if test "${ac_cv_prog_cc_g+set}" = set; then
  2266. echo $ECHO_N "(cached) $ECHO_C" >&6
  2267. else
  2268. cat >conftest.$ac_ext <<_ACEOF
  2269. /* confdefs.h. */
  2270. _ACEOF
  2271. cat confdefs.h >>conftest.$ac_ext
  2272. cat >>conftest.$ac_ext <<_ACEOF
  2273. /* end confdefs.h. */
  2274. int
  2275. main ()
  2276. {
  2277. ;
  2278. return 0;
  2279. }
  2280. _ACEOF
  2281. rm -f conftest.$ac_objext
  2282. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2283. (eval $ac_compile) 2>conftest.er1
  2284. ac_status=$?
  2285. grep -v '^ *+' conftest.er1 >conftest.err
  2286. rm -f conftest.er1
  2287. cat conftest.err >&5
  2288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2289. (exit $ac_status); } &&
  2290. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2291. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2292. (eval $ac_try) 2>&5
  2293. ac_status=$?
  2294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2295. (exit $ac_status); }; } &&
  2296. { ac_try='test -s conftest.$ac_objext'
  2297. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2298. (eval $ac_try) 2>&5
  2299. ac_status=$?
  2300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2301. (exit $ac_status); }; }; then
  2302. ac_cv_prog_cc_g=yes
  2303. else
  2304. echo "$as_me: failed program was:" >&5
  2305. sed 's/^/| /' conftest.$ac_ext >&5
  2306. ac_cv_prog_cc_g=no
  2307. fi
  2308. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2309. fi
  2310. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2311. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2312. if test "$ac_test_CFLAGS" = set; then
  2313. CFLAGS=$ac_save_CFLAGS
  2314. elif test $ac_cv_prog_cc_g = yes; then
  2315. if test "$GCC" = yes; then
  2316. CFLAGS="-g -O2"
  2317. else
  2318. CFLAGS="-g"
  2319. fi
  2320. else
  2321. if test "$GCC" = yes; then
  2322. CFLAGS="-O2"
  2323. else
  2324. CFLAGS=
  2325. fi
  2326. fi
  2327. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2328. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2329. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2330. echo $ECHO_N "(cached) $ECHO_C" >&6
  2331. else
  2332. ac_cv_prog_cc_stdc=no
  2333. ac_save_CC=$CC
  2334. cat >conftest.$ac_ext <<_ACEOF
  2335. /* confdefs.h. */
  2336. _ACEOF
  2337. cat confdefs.h >>conftest.$ac_ext
  2338. cat >>conftest.$ac_ext <<_ACEOF
  2339. /* end confdefs.h. */
  2340. #include <stdarg.h>
  2341. #include <stdio.h>
  2342. #include <sys/types.h>
  2343. #include <sys/stat.h>
  2344. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2345. struct buf { int x; };
  2346. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2347. static char *e (p, i)
  2348. char **p;
  2349. int i;
  2350. {
  2351. return p[i];
  2352. }
  2353. static char *f (char * (*g) (char **, int), char **p, ...)
  2354. {
  2355. char *s;
  2356. va_list v;
  2357. va_start (v,p);
  2358. s = g (p, va_arg (v,int));
  2359. va_end (v);
  2360. return s;
  2361. }
  2362. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2363. function prototypes and stuff, but not '\xHH' hex character constants.
  2364. These don't provoke an error unfortunately, instead are silently treated
  2365. as 'x'. The following induces an error, until -std1 is added to get
  2366. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2367. array size at least. It's necessary to write '\x00'==0 to get something
  2368. that's true only with -std1. */
  2369. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2370. int test (int i, double x);
  2371. struct s1 {int (*f) (int a);};
  2372. struct s2 {int (*f) (double a);};
  2373. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2374. int argc;
  2375. char **argv;
  2376. int
  2377. main ()
  2378. {
  2379. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2380. ;
  2381. return 0;
  2382. }
  2383. _ACEOF
  2384. # Don't try gcc -ansi; that turns off useful extensions and
  2385. # breaks some systems' header files.
  2386. # AIX -qlanglvl=ansi
  2387. # Ultrix and OSF/1 -std1
  2388. # HP-UX 10.20 and later -Ae
  2389. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2390. # SVR4 -Xc -D__EXTENSIONS__
  2391. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2392. do
  2393. CC="$ac_save_CC $ac_arg"
  2394. rm -f conftest.$ac_objext
  2395. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2396. (eval $ac_compile) 2>conftest.er1
  2397. ac_status=$?
  2398. grep -v '^ *+' conftest.er1 >conftest.err
  2399. rm -f conftest.er1
  2400. cat conftest.err >&5
  2401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2402. (exit $ac_status); } &&
  2403. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2404. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2405. (eval $ac_try) 2>&5
  2406. ac_status=$?
  2407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2408. (exit $ac_status); }; } &&
  2409. { ac_try='test -s conftest.$ac_objext'
  2410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2411. (eval $ac_try) 2>&5
  2412. ac_status=$?
  2413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2414. (exit $ac_status); }; }; then
  2415. ac_cv_prog_cc_stdc=$ac_arg
  2416. break
  2417. else
  2418. echo "$as_me: failed program was:" >&5
  2419. sed 's/^/| /' conftest.$ac_ext >&5
  2420. fi
  2421. rm -f conftest.err conftest.$ac_objext
  2422. done
  2423. rm -f conftest.$ac_ext conftest.$ac_objext
  2424. CC=$ac_save_CC
  2425. fi
  2426. case "x$ac_cv_prog_cc_stdc" in
  2427. x|xno)
  2428. echo "$as_me:$LINENO: result: none needed" >&5
  2429. echo "${ECHO_T}none needed" >&6 ;;
  2430. *)
  2431. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2432. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2433. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2434. esac
  2435. # Some people use a C++ compiler to compile C. Since we use `exit',
  2436. # in C++ we need to declare it. In case someone uses the same compiler
  2437. # for both compiling C and C++ we need to have the C++ compiler decide
  2438. # the declaration of exit, since it's the most demanding environment.
  2439. cat >conftest.$ac_ext <<_ACEOF
  2440. #ifndef __cplusplus
  2441. choke me
  2442. #endif
  2443. _ACEOF
  2444. rm -f conftest.$ac_objext
  2445. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2446. (eval $ac_compile) 2>conftest.er1
  2447. ac_status=$?
  2448. grep -v '^ *+' conftest.er1 >conftest.err
  2449. rm -f conftest.er1
  2450. cat conftest.err >&5
  2451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2452. (exit $ac_status); } &&
  2453. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2454. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2455. (eval $ac_try) 2>&5
  2456. ac_status=$?
  2457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2458. (exit $ac_status); }; } &&
  2459. { ac_try='test -s conftest.$ac_objext'
  2460. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2461. (eval $ac_try) 2>&5
  2462. ac_status=$?
  2463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2464. (exit $ac_status); }; }; then
  2465. for ac_declaration in \
  2466. '' \
  2467. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2468. 'extern "C" void std::exit (int); using std::exit;' \
  2469. 'extern "C" void exit (int) throw ();' \
  2470. 'extern "C" void exit (int);' \
  2471. 'void exit (int);'
  2472. do
  2473. cat >conftest.$ac_ext <<_ACEOF
  2474. /* confdefs.h. */
  2475. _ACEOF
  2476. cat confdefs.h >>conftest.$ac_ext
  2477. cat >>conftest.$ac_ext <<_ACEOF
  2478. /* end confdefs.h. */
  2479. $ac_declaration
  2480. #include <stdlib.h>
  2481. int
  2482. main ()
  2483. {
  2484. exit (42);
  2485. ;
  2486. return 0;
  2487. }
  2488. _ACEOF
  2489. rm -f conftest.$ac_objext
  2490. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2491. (eval $ac_compile) 2>conftest.er1
  2492. ac_status=$?
  2493. grep -v '^ *+' conftest.er1 >conftest.err
  2494. rm -f conftest.er1
  2495. cat conftest.err >&5
  2496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2497. (exit $ac_status); } &&
  2498. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2500. (eval $ac_try) 2>&5
  2501. ac_status=$?
  2502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2503. (exit $ac_status); }; } &&
  2504. { ac_try='test -s conftest.$ac_objext'
  2505. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2506. (eval $ac_try) 2>&5
  2507. ac_status=$?
  2508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2509. (exit $ac_status); }; }; then
  2510. :
  2511. else
  2512. echo "$as_me: failed program was:" >&5
  2513. sed 's/^/| /' conftest.$ac_ext >&5
  2514. continue
  2515. fi
  2516. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2517. cat >conftest.$ac_ext <<_ACEOF
  2518. /* confdefs.h. */
  2519. _ACEOF
  2520. cat confdefs.h >>conftest.$ac_ext
  2521. cat >>conftest.$ac_ext <<_ACEOF
  2522. /* end confdefs.h. */
  2523. $ac_declaration
  2524. int
  2525. main ()
  2526. {
  2527. exit (42);
  2528. ;
  2529. return 0;
  2530. }
  2531. _ACEOF
  2532. rm -f conftest.$ac_objext
  2533. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2534. (eval $ac_compile) 2>conftest.er1
  2535. ac_status=$?
  2536. grep -v '^ *+' conftest.er1 >conftest.err
  2537. rm -f conftest.er1
  2538. cat conftest.err >&5
  2539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2540. (exit $ac_status); } &&
  2541. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2542. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2543. (eval $ac_try) 2>&5
  2544. ac_status=$?
  2545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2546. (exit $ac_status); }; } &&
  2547. { ac_try='test -s conftest.$ac_objext'
  2548. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2549. (eval $ac_try) 2>&5
  2550. ac_status=$?
  2551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2552. (exit $ac_status); }; }; then
  2553. break
  2554. else
  2555. echo "$as_me: failed program was:" >&5
  2556. sed 's/^/| /' conftest.$ac_ext >&5
  2557. fi
  2558. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2559. done
  2560. rm -f conftest*
  2561. if test -n "$ac_declaration"; then
  2562. echo '#ifdef __cplusplus' >>confdefs.h
  2563. echo $ac_declaration >>confdefs.h
  2564. echo '#endif' >>confdefs.h
  2565. fi
  2566. else
  2567. echo "$as_me: failed program was:" >&5
  2568. sed 's/^/| /' conftest.$ac_ext >&5
  2569. fi
  2570. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2571. ac_ext=c
  2572. ac_cpp='$CPP $CPPFLAGS'
  2573. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2574. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2575. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2576. DEPDIR="${am__leading_dot}deps"
  2577. ac_config_commands="$ac_config_commands depfiles"
  2578. am_make=${MAKE-make}
  2579. cat > confinc << 'END'
  2580. am__doit:
  2581. @echo done
  2582. .PHONY: am__doit
  2583. END
  2584. # If we don't find an include directive, just comment out the code.
  2585. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2586. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2587. am__include="#"
  2588. am__quote=
  2589. _am_result=none
  2590. # First try GNU make style include.
  2591. echo "include confinc" > confmf
  2592. # We grep out `Entering directory' and `Leaving directory'
  2593. # messages which can occur if `w' ends up in MAKEFLAGS.
  2594. # In particular we don't look at `^make:' because GNU make might
  2595. # be invoked under some other name (usually "gmake"), in which
  2596. # case it prints its new name instead of `make'.
  2597. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2598. am__include=include
  2599. am__quote=
  2600. _am_result=GNU
  2601. fi
  2602. # Now try BSD make style include.
  2603. if test "$am__include" = "#"; then
  2604. echo '.include "confinc"' > confmf
  2605. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2606. am__include=.include
  2607. am__quote="\""
  2608. _am_result=BSD
  2609. fi
  2610. fi
  2611. echo "$as_me:$LINENO: result: $_am_result" >&5
  2612. echo "${ECHO_T}$_am_result" >&6
  2613. rm -f confinc confmf
  2614. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2615. if test "${enable_dependency_tracking+set}" = set; then
  2616. enableval="$enable_dependency_tracking"
  2617. fi;
  2618. if test "x$enable_dependency_tracking" != xno; then
  2619. am_depcomp="$ac_aux_dir/depcomp"
  2620. AMDEPBACKSLASH='\'
  2621. fi
  2622. if test "x$enable_dependency_tracking" != xno; then
  2623. AMDEP_TRUE=
  2624. AMDEP_FALSE='#'
  2625. else
  2626. AMDEP_TRUE='#'
  2627. AMDEP_FALSE=
  2628. fi
  2629. depcc="$CC" am_compiler_list=
  2630. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2631. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2632. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2633. echo $ECHO_N "(cached) $ECHO_C" >&6
  2634. else
  2635. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2636. # We make a subdir and do the tests there. Otherwise we can end up
  2637. # making bogus files that we don't know about and never remove. For
  2638. # instance it was reported that on HP-UX the gcc test will end up
  2639. # making a dummy file named `D' -- because `-MD' means `put the output
  2640. # in D'.
  2641. mkdir conftest.dir
  2642. # Copy depcomp to subdir because otherwise we won't find it if we're
  2643. # using a relative directory.
  2644. cp "$am_depcomp" conftest.dir
  2645. cd conftest.dir
  2646. # We will build objects and dependencies in a subdirectory because
  2647. # it helps to detect inapplicable dependency modes. For instance
  2648. # both Tru64's cc and ICC support -MD to output dependencies as a
  2649. # side effect of compilation, but ICC will put the dependencies in
  2650. # the current directory while Tru64 will put them in the object
  2651. # directory.
  2652. mkdir sub
  2653. am_cv_CC_dependencies_compiler_type=none
  2654. if test "$am_compiler_list" = ""; then
  2655. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2656. fi
  2657. for depmode in $am_compiler_list; do
  2658. # Setup a source with many dependencies, because some compilers
  2659. # like to wrap large dependency lists on column 80 (with \), and
  2660. # we should not choose a depcomp mode which is confused by this.
  2661. #
  2662. # We need to recreate these files for each test, as the compiler may
  2663. # overwrite some of them when testing with obscure command lines.
  2664. # This happens at least with the AIX C compiler.
  2665. : > sub/conftest.c
  2666. for i in 1 2 3 4 5 6; do
  2667. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2668. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2669. # Solaris 8's {/usr,}/bin/sh.
  2670. touch sub/conftst$i.h
  2671. done
  2672. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2673. case $depmode in
  2674. nosideeffect)
  2675. # after this tag, mechanisms are not by side-effect, so they'll
  2676. # only be used when explicitly requested
  2677. if test "x$enable_dependency_tracking" = xyes; then
  2678. continue
  2679. else
  2680. break
  2681. fi
  2682. ;;
  2683. none) break ;;
  2684. esac
  2685. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2686. # mode. It turns out that the SunPro C++ compiler does not properly
  2687. # handle `-M -o', and we need to detect this.
  2688. if depmode=$depmode \
  2689. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2690. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2691. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2692. >/dev/null 2>conftest.err &&
  2693. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2694. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2695. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2696. # icc doesn't choke on unknown options, it will just issue warnings
  2697. # or remarks (even with -Werror). So we grep stderr for any message
  2698. # that says an option was ignored or not supported.
  2699. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2700. # icc: Command line warning: ignoring option '-M'; no argument required
  2701. # The diagnosis changed in icc 8.0:
  2702. # icc: Command line remark: option '-MP' not supported
  2703. if (grep 'ignoring option' conftest.err ||
  2704. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2705. am_cv_CC_dependencies_compiler_type=$depmode
  2706. break
  2707. fi
  2708. fi
  2709. done
  2710. cd ..
  2711. rm -rf conftest.dir
  2712. else
  2713. am_cv_CC_dependencies_compiler_type=none
  2714. fi
  2715. fi
  2716. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  2717. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  2718. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  2719. if
  2720. test "x$enable_dependency_tracking" != xno \
  2721. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  2722. am__fastdepCC_TRUE=
  2723. am__fastdepCC_FALSE='#'
  2724. else
  2725. am__fastdepCC_TRUE='#'
  2726. am__fastdepCC_FALSE=
  2727. fi
  2728. ac_ext=c
  2729. ac_cpp='$CPP $CPPFLAGS'
  2730. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2731. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2732. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2733. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2734. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2735. # On Suns, sometimes $CPP names a directory.
  2736. if test -n "$CPP" && test -d "$CPP"; then
  2737. CPP=
  2738. fi
  2739. if test -z "$CPP"; then
  2740. if test "${ac_cv_prog_CPP+set}" = set; then
  2741. echo $ECHO_N "(cached) $ECHO_C" >&6
  2742. else
  2743. # Double quotes because CPP needs to be expanded
  2744. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2745. do
  2746. ac_preproc_ok=false
  2747. for ac_c_preproc_warn_flag in '' yes
  2748. do
  2749. # Use a header file that comes with gcc, so configuring glibc
  2750. # with a fresh cross-compiler works.
  2751. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2752. # <limits.h> exists even on freestanding compilers.
  2753. # On the NeXT, cc -E runs the code through the compiler's parser,
  2754. # not just through cpp. "Syntax error" is here to catch this case.
  2755. cat >conftest.$ac_ext <<_ACEOF
  2756. /* confdefs.h. */
  2757. _ACEOF
  2758. cat confdefs.h >>conftest.$ac_ext
  2759. cat >>conftest.$ac_ext <<_ACEOF
  2760. /* end confdefs.h. */
  2761. #ifdef __STDC__
  2762. # include <limits.h>
  2763. #else
  2764. # include <assert.h>
  2765. #endif
  2766. Syntax error
  2767. _ACEOF
  2768. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2769. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2770. ac_status=$?
  2771. grep -v '^ *+' conftest.er1 >conftest.err
  2772. rm -f conftest.er1
  2773. cat conftest.err >&5
  2774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2775. (exit $ac_status); } >/dev/null; then
  2776. if test -s conftest.err; then
  2777. ac_cpp_err=$ac_c_preproc_warn_flag
  2778. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2779. else
  2780. ac_cpp_err=
  2781. fi
  2782. else
  2783. ac_cpp_err=yes
  2784. fi
  2785. if test -z "$ac_cpp_err"; then
  2786. :
  2787. else
  2788. echo "$as_me: failed program was:" >&5
  2789. sed 's/^/| /' conftest.$ac_ext >&5
  2790. # Broken: fails on valid input.
  2791. continue
  2792. fi
  2793. rm -f conftest.err conftest.$ac_ext
  2794. # OK, works on sane cases. Now check whether non-existent headers
  2795. # can be detected and how.
  2796. cat >conftest.$ac_ext <<_ACEOF
  2797. /* confdefs.h. */
  2798. _ACEOF
  2799. cat confdefs.h >>conftest.$ac_ext
  2800. cat >>conftest.$ac_ext <<_ACEOF
  2801. /* end confdefs.h. */
  2802. #include <ac_nonexistent.h>
  2803. _ACEOF
  2804. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2805. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2806. ac_status=$?
  2807. grep -v '^ *+' conftest.er1 >conftest.err
  2808. rm -f conftest.er1
  2809. cat conftest.err >&5
  2810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2811. (exit $ac_status); } >/dev/null; then
  2812. if test -s conftest.err; then
  2813. ac_cpp_err=$ac_c_preproc_warn_flag
  2814. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2815. else
  2816. ac_cpp_err=
  2817. fi
  2818. else
  2819. ac_cpp_err=yes
  2820. fi
  2821. if test -z "$ac_cpp_err"; then
  2822. # Broken: success on invalid input.
  2823. continue
  2824. else
  2825. echo "$as_me: failed program was:" >&5
  2826. sed 's/^/| /' conftest.$ac_ext >&5
  2827. # Passes both tests.
  2828. ac_preproc_ok=:
  2829. break
  2830. fi
  2831. rm -f conftest.err conftest.$ac_ext
  2832. done
  2833. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2834. rm -f conftest.err conftest.$ac_ext
  2835. if $ac_preproc_ok; then
  2836. break
  2837. fi
  2838. done
  2839. ac_cv_prog_CPP=$CPP
  2840. fi
  2841. CPP=$ac_cv_prog_CPP
  2842. else
  2843. ac_cv_prog_CPP=$CPP
  2844. fi
  2845. echo "$as_me:$LINENO: result: $CPP" >&5
  2846. echo "${ECHO_T}$CPP" >&6
  2847. ac_preproc_ok=false
  2848. for ac_c_preproc_warn_flag in '' yes
  2849. do
  2850. # Use a header file that comes with gcc, so configuring glibc
  2851. # with a fresh cross-compiler works.
  2852. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2853. # <limits.h> exists even on freestanding compilers.
  2854. # On the NeXT, cc -E runs the code through the compiler's parser,
  2855. # not just through cpp. "Syntax error" is here to catch this case.
  2856. cat >conftest.$ac_ext <<_ACEOF
  2857. /* confdefs.h. */
  2858. _ACEOF
  2859. cat confdefs.h >>conftest.$ac_ext
  2860. cat >>conftest.$ac_ext <<_ACEOF
  2861. /* end confdefs.h. */
  2862. #ifdef __STDC__
  2863. # include <limits.h>
  2864. #else
  2865. # include <assert.h>
  2866. #endif
  2867. Syntax error
  2868. _ACEOF
  2869. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2870. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2871. ac_status=$?
  2872. grep -v '^ *+' conftest.er1 >conftest.err
  2873. rm -f conftest.er1
  2874. cat conftest.err >&5
  2875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2876. (exit $ac_status); } >/dev/null; then
  2877. if test -s conftest.err; then
  2878. ac_cpp_err=$ac_c_preproc_warn_flag
  2879. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2880. else
  2881. ac_cpp_err=
  2882. fi
  2883. else
  2884. ac_cpp_err=yes
  2885. fi
  2886. if test -z "$ac_cpp_err"; then
  2887. :
  2888. else
  2889. echo "$as_me: failed program was:" >&5
  2890. sed 's/^/| /' conftest.$ac_ext >&5
  2891. # Broken: fails on valid input.
  2892. continue
  2893. fi
  2894. rm -f conftest.err conftest.$ac_ext
  2895. # OK, works on sane cases. Now check whether non-existent headers
  2896. # can be detected and how.
  2897. cat >conftest.$ac_ext <<_ACEOF
  2898. /* confdefs.h. */
  2899. _ACEOF
  2900. cat confdefs.h >>conftest.$ac_ext
  2901. cat >>conftest.$ac_ext <<_ACEOF
  2902. /* end confdefs.h. */
  2903. #include <ac_nonexistent.h>
  2904. _ACEOF
  2905. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2906. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2907. ac_status=$?
  2908. grep -v '^ *+' conftest.er1 >conftest.err
  2909. rm -f conftest.er1
  2910. cat conftest.err >&5
  2911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2912. (exit $ac_status); } >/dev/null; then
  2913. if test -s conftest.err; then
  2914. ac_cpp_err=$ac_c_preproc_warn_flag
  2915. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2916. else
  2917. ac_cpp_err=
  2918. fi
  2919. else
  2920. ac_cpp_err=yes
  2921. fi
  2922. if test -z "$ac_cpp_err"; then
  2923. # Broken: success on invalid input.
  2924. continue
  2925. else
  2926. echo "$as_me: failed program was:" >&5
  2927. sed 's/^/| /' conftest.$ac_ext >&5
  2928. # Passes both tests.
  2929. ac_preproc_ok=:
  2930. break
  2931. fi
  2932. rm -f conftest.err conftest.$ac_ext
  2933. done
  2934. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2935. rm -f conftest.err conftest.$ac_ext
  2936. if $ac_preproc_ok; then
  2937. :
  2938. else
  2939. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2940. See \`config.log' for more details." >&5
  2941. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2942. See \`config.log' for more details." >&2;}
  2943. { (exit 1); exit 1; }; }
  2944. fi
  2945. ac_ext=c
  2946. ac_cpp='$CPP $CPPFLAGS'
  2947. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2948. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2949. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2950. ac_ext=cc
  2951. ac_cpp='$CXXCPP $CPPFLAGS'
  2952. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2953. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2954. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2955. if test -n "$ac_tool_prefix"; then
  2956. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2957. do
  2958. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2959. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2960. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2961. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2962. if test "${ac_cv_prog_CXX+set}" = set; then
  2963. echo $ECHO_N "(cached) $ECHO_C" >&6
  2964. else
  2965. if test -n "$CXX"; then
  2966. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2967. else
  2968. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2969. for as_dir in $PATH
  2970. do
  2971. IFS=$as_save_IFS
  2972. test -z "$as_dir" && as_dir=.
  2973. for ac_exec_ext in '' $ac_executable_extensions; do
  2974. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2975. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2976. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2977. break 2
  2978. fi
  2979. done
  2980. done
  2981. fi
  2982. fi
  2983. CXX=$ac_cv_prog_CXX
  2984. if test -n "$CXX"; then
  2985. echo "$as_me:$LINENO: result: $CXX" >&5
  2986. echo "${ECHO_T}$CXX" >&6
  2987. else
  2988. echo "$as_me:$LINENO: result: no" >&5
  2989. echo "${ECHO_T}no" >&6
  2990. fi
  2991. test -n "$CXX" && break
  2992. done
  2993. fi
  2994. if test -z "$CXX"; then
  2995. ac_ct_CXX=$CXX
  2996. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2997. do
  2998. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2999. set dummy $ac_prog; ac_word=$2
  3000. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3001. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3002. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  3003. echo $ECHO_N "(cached) $ECHO_C" >&6
  3004. else
  3005. if test -n "$ac_ct_CXX"; then
  3006. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3007. else
  3008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3009. for as_dir in $PATH
  3010. do
  3011. IFS=$as_save_IFS
  3012. test -z "$as_dir" && as_dir=.
  3013. for ac_exec_ext in '' $ac_executable_extensions; do
  3014. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3015. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3016. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3017. break 2
  3018. fi
  3019. done
  3020. done
  3021. fi
  3022. fi
  3023. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3024. if test -n "$ac_ct_CXX"; then
  3025. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  3026. echo "${ECHO_T}$ac_ct_CXX" >&6
  3027. else
  3028. echo "$as_me:$LINENO: result: no" >&5
  3029. echo "${ECHO_T}no" >&6
  3030. fi
  3031. test -n "$ac_ct_CXX" && break
  3032. done
  3033. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  3034. CXX=$ac_ct_CXX
  3035. fi
  3036. # Provide some information about the compiler.
  3037. echo "$as_me:$LINENO:" \
  3038. "checking for C++ compiler version" >&5
  3039. ac_compiler=`set X $ac_compile; echo $2`
  3040. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  3041. (eval $ac_compiler --version </dev/null >&5) 2>&5
  3042. ac_status=$?
  3043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3044. (exit $ac_status); }
  3045. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  3046. (eval $ac_compiler -v </dev/null >&5) 2>&5
  3047. ac_status=$?
  3048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3049. (exit $ac_status); }
  3050. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  3051. (eval $ac_compiler -V </dev/null >&5) 2>&5
  3052. ac_status=$?
  3053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3054. (exit $ac_status); }
  3055. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  3056. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  3057. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  3058. echo $ECHO_N "(cached) $ECHO_C" >&6
  3059. else
  3060. cat >conftest.$ac_ext <<_ACEOF
  3061. /* confdefs.h. */
  3062. _ACEOF
  3063. cat confdefs.h >>conftest.$ac_ext
  3064. cat >>conftest.$ac_ext <<_ACEOF
  3065. /* end confdefs.h. */
  3066. int
  3067. main ()
  3068. {
  3069. #ifndef __GNUC__
  3070. choke me
  3071. #endif
  3072. ;
  3073. return 0;
  3074. }
  3075. _ACEOF
  3076. rm -f conftest.$ac_objext
  3077. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3078. (eval $ac_compile) 2>conftest.er1
  3079. ac_status=$?
  3080. grep -v '^ *+' conftest.er1 >conftest.err
  3081. rm -f conftest.er1
  3082. cat conftest.err >&5
  3083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3084. (exit $ac_status); } &&
  3085. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3087. (eval $ac_try) 2>&5
  3088. ac_status=$?
  3089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3090. (exit $ac_status); }; } &&
  3091. { ac_try='test -s conftest.$ac_objext'
  3092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3093. (eval $ac_try) 2>&5
  3094. ac_status=$?
  3095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3096. (exit $ac_status); }; }; then
  3097. ac_compiler_gnu=yes
  3098. else
  3099. echo "$as_me: failed program was:" >&5
  3100. sed 's/^/| /' conftest.$ac_ext >&5
  3101. ac_compiler_gnu=no
  3102. fi
  3103. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3104. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3105. fi
  3106. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  3107. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  3108. GXX=`test $ac_compiler_gnu = yes && echo yes`
  3109. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3110. ac_save_CXXFLAGS=$CXXFLAGS
  3111. CXXFLAGS="-g"
  3112. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3113. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  3114. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3115. echo $ECHO_N "(cached) $ECHO_C" >&6
  3116. else
  3117. cat >conftest.$ac_ext <<_ACEOF
  3118. /* confdefs.h. */
  3119. _ACEOF
  3120. cat confdefs.h >>conftest.$ac_ext
  3121. cat >>conftest.$ac_ext <<_ACEOF
  3122. /* end confdefs.h. */
  3123. int
  3124. main ()
  3125. {
  3126. ;
  3127. return 0;
  3128. }
  3129. _ACEOF
  3130. rm -f conftest.$ac_objext
  3131. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3132. (eval $ac_compile) 2>conftest.er1
  3133. ac_status=$?
  3134. grep -v '^ *+' conftest.er1 >conftest.err
  3135. rm -f conftest.er1
  3136. cat conftest.err >&5
  3137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3138. (exit $ac_status); } &&
  3139. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3140. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3141. (eval $ac_try) 2>&5
  3142. ac_status=$?
  3143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3144. (exit $ac_status); }; } &&
  3145. { ac_try='test -s conftest.$ac_objext'
  3146. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3147. (eval $ac_try) 2>&5
  3148. ac_status=$?
  3149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3150. (exit $ac_status); }; }; then
  3151. ac_cv_prog_cxx_g=yes
  3152. else
  3153. echo "$as_me: failed program was:" >&5
  3154. sed 's/^/| /' conftest.$ac_ext >&5
  3155. ac_cv_prog_cxx_g=no
  3156. fi
  3157. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3158. fi
  3159. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3160. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  3161. if test "$ac_test_CXXFLAGS" = set; then
  3162. CXXFLAGS=$ac_save_CXXFLAGS
  3163. elif test $ac_cv_prog_cxx_g = yes; then
  3164. if test "$GXX" = yes; then
  3165. CXXFLAGS="-g -O2"
  3166. else
  3167. CXXFLAGS="-g"
  3168. fi
  3169. else
  3170. if test "$GXX" = yes; then
  3171. CXXFLAGS="-O2"
  3172. else
  3173. CXXFLAGS=
  3174. fi
  3175. fi
  3176. for ac_declaration in \
  3177. '' \
  3178. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3179. 'extern "C" void std::exit (int); using std::exit;' \
  3180. 'extern "C" void exit (int) throw ();' \
  3181. 'extern "C" void exit (int);' \
  3182. 'void exit (int);'
  3183. do
  3184. cat >conftest.$ac_ext <<_ACEOF
  3185. /* confdefs.h. */
  3186. _ACEOF
  3187. cat confdefs.h >>conftest.$ac_ext
  3188. cat >>conftest.$ac_ext <<_ACEOF
  3189. /* end confdefs.h. */
  3190. $ac_declaration
  3191. #include <stdlib.h>
  3192. int
  3193. main ()
  3194. {
  3195. exit (42);
  3196. ;
  3197. return 0;
  3198. }
  3199. _ACEOF
  3200. rm -f conftest.$ac_objext
  3201. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3202. (eval $ac_compile) 2>conftest.er1
  3203. ac_status=$?
  3204. grep -v '^ *+' conftest.er1 >conftest.err
  3205. rm -f conftest.er1
  3206. cat conftest.err >&5
  3207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3208. (exit $ac_status); } &&
  3209. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3210. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3211. (eval $ac_try) 2>&5
  3212. ac_status=$?
  3213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3214. (exit $ac_status); }; } &&
  3215. { ac_try='test -s conftest.$ac_objext'
  3216. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3217. (eval $ac_try) 2>&5
  3218. ac_status=$?
  3219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3220. (exit $ac_status); }; }; then
  3221. :
  3222. else
  3223. echo "$as_me: failed program was:" >&5
  3224. sed 's/^/| /' conftest.$ac_ext >&5
  3225. continue
  3226. fi
  3227. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3228. cat >conftest.$ac_ext <<_ACEOF
  3229. /* confdefs.h. */
  3230. _ACEOF
  3231. cat confdefs.h >>conftest.$ac_ext
  3232. cat >>conftest.$ac_ext <<_ACEOF
  3233. /* end confdefs.h. */
  3234. $ac_declaration
  3235. int
  3236. main ()
  3237. {
  3238. exit (42);
  3239. ;
  3240. return 0;
  3241. }
  3242. _ACEOF
  3243. rm -f conftest.$ac_objext
  3244. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3245. (eval $ac_compile) 2>conftest.er1
  3246. ac_status=$?
  3247. grep -v '^ *+' conftest.er1 >conftest.err
  3248. rm -f conftest.er1
  3249. cat conftest.err >&5
  3250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3251. (exit $ac_status); } &&
  3252. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3253. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3254. (eval $ac_try) 2>&5
  3255. ac_status=$?
  3256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3257. (exit $ac_status); }; } &&
  3258. { ac_try='test -s conftest.$ac_objext'
  3259. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3260. (eval $ac_try) 2>&5
  3261. ac_status=$?
  3262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3263. (exit $ac_status); }; }; then
  3264. break
  3265. else
  3266. echo "$as_me: failed program was:" >&5
  3267. sed 's/^/| /' conftest.$ac_ext >&5
  3268. fi
  3269. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3270. done
  3271. rm -f conftest*
  3272. if test -n "$ac_declaration"; then
  3273. echo '#ifdef __cplusplus' >>confdefs.h
  3274. echo $ac_declaration >>confdefs.h
  3275. echo '#endif' >>confdefs.h
  3276. fi
  3277. ac_ext=c
  3278. ac_cpp='$CPP $CPPFLAGS'
  3279. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3280. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3281. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3282. depcc="$CXX" am_compiler_list=
  3283. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3284. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3285. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3286. echo $ECHO_N "(cached) $ECHO_C" >&6
  3287. else
  3288. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3289. # We make a subdir and do the tests there. Otherwise we can end up
  3290. # making bogus files that we don't know about and never remove. For
  3291. # instance it was reported that on HP-UX the gcc test will end up
  3292. # making a dummy file named `D' -- because `-MD' means `put the output
  3293. # in D'.
  3294. mkdir conftest.dir
  3295. # Copy depcomp to subdir because otherwise we won't find it if we're
  3296. # using a relative directory.
  3297. cp "$am_depcomp" conftest.dir
  3298. cd conftest.dir
  3299. # We will build objects and dependencies in a subdirectory because
  3300. # it helps to detect inapplicable dependency modes. For instance
  3301. # both Tru64's cc and ICC support -MD to output dependencies as a
  3302. # side effect of compilation, but ICC will put the dependencies in
  3303. # the current directory while Tru64 will put them in the object
  3304. # directory.
  3305. mkdir sub
  3306. am_cv_CXX_dependencies_compiler_type=none
  3307. if test "$am_compiler_list" = ""; then
  3308. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3309. fi
  3310. for depmode in $am_compiler_list; do
  3311. # Setup a source with many dependencies, because some compilers
  3312. # like to wrap large dependency lists on column 80 (with \), and
  3313. # we should not choose a depcomp mode which is confused by this.
  3314. #
  3315. # We need to recreate these files for each test, as the compiler may
  3316. # overwrite some of them when testing with obscure command lines.
  3317. # This happens at least with the AIX C compiler.
  3318. : > sub/conftest.c
  3319. for i in 1 2 3 4 5 6; do
  3320. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3321. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3322. # Solaris 8's {/usr,}/bin/sh.
  3323. touch sub/conftst$i.h
  3324. done
  3325. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3326. case $depmode in
  3327. nosideeffect)
  3328. # after this tag, mechanisms are not by side-effect, so they'll
  3329. # only be used when explicitly requested
  3330. if test "x$enable_dependency_tracking" = xyes; then
  3331. continue
  3332. else
  3333. break
  3334. fi
  3335. ;;
  3336. none) break ;;
  3337. esac
  3338. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3339. # mode. It turns out that the SunPro C++ compiler does not properly
  3340. # handle `-M -o', and we need to detect this.
  3341. if depmode=$depmode \
  3342. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3343. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3344. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3345. >/dev/null 2>conftest.err &&
  3346. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3347. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3348. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3349. # icc doesn't choke on unknown options, it will just issue warnings
  3350. # or remarks (even with -Werror). So we grep stderr for any message
  3351. # that says an option was ignored or not supported.
  3352. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3353. # icc: Command line warning: ignoring option '-M'; no argument required
  3354. # The diagnosis changed in icc 8.0:
  3355. # icc: Command line remark: option '-MP' not supported
  3356. if (grep 'ignoring option' conftest.err ||
  3357. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3358. am_cv_CXX_dependencies_compiler_type=$depmode
  3359. break
  3360. fi
  3361. fi
  3362. done
  3363. cd ..
  3364. rm -rf conftest.dir
  3365. else
  3366. am_cv_CXX_dependencies_compiler_type=none
  3367. fi
  3368. fi
  3369. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3370. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  3371. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3372. if
  3373. test "x$enable_dependency_tracking" != xno \
  3374. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3375. am__fastdepCXX_TRUE=
  3376. am__fastdepCXX_FALSE='#'
  3377. else
  3378. am__fastdepCXX_TRUE='#'
  3379. am__fastdepCXX_FALSE=
  3380. fi
  3381. if test "$GCC" = yes; then
  3382. GCC_TRUE=
  3383. GCC_FALSE='#'
  3384. else
  3385. GCC_TRUE='#'
  3386. GCC_FALSE=
  3387. fi
  3388. # let the Makefile know if we're gcc
  3389. # Uncomment this if you'll be exporting libraries (.so's)
  3390. # Check whether --enable-shared or --disable-shared was given.
  3391. if test "${enable_shared+set}" = set; then
  3392. enableval="$enable_shared"
  3393. p=${PACKAGE-default}
  3394. case $enableval in
  3395. yes) enable_shared=yes ;;
  3396. no) enable_shared=no ;;
  3397. *)
  3398. enable_shared=no
  3399. # Look at the argument we got. We use all the common list separators.
  3400. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3401. for pkg in $enableval; do
  3402. IFS="$lt_save_ifs"
  3403. if test "X$pkg" = "X$p"; then
  3404. enable_shared=yes
  3405. fi
  3406. done
  3407. IFS="$lt_save_ifs"
  3408. ;;
  3409. esac
  3410. else
  3411. enable_shared=yes
  3412. fi;
  3413. # Check whether --enable-static or --disable-static was given.
  3414. if test "${enable_static+set}" = set; then
  3415. enableval="$enable_static"
  3416. p=${PACKAGE-default}
  3417. case $enableval in
  3418. yes) enable_static=yes ;;
  3419. no) enable_static=no ;;
  3420. *)
  3421. enable_static=no
  3422. # Look at the argument we got. We use all the common list separators.
  3423. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3424. for pkg in $enableval; do
  3425. IFS="$lt_save_ifs"
  3426. if test "X$pkg" = "X$p"; then
  3427. enable_static=yes
  3428. fi
  3429. done
  3430. IFS="$lt_save_ifs"
  3431. ;;
  3432. esac
  3433. else
  3434. enable_static=yes
  3435. fi;
  3436. # Check whether --enable-fast-install or --disable-fast-install was given.
  3437. if test "${enable_fast_install+set}" = set; then
  3438. enableval="$enable_fast_install"
  3439. p=${PACKAGE-default}
  3440. case $enableval in
  3441. yes) enable_fast_install=yes ;;
  3442. no) enable_fast_install=no ;;
  3443. *)
  3444. enable_fast_install=no
  3445. # Look at the argument we got. We use all the common list separators.
  3446. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3447. for pkg in $enableval; do
  3448. IFS="$lt_save_ifs"
  3449. if test "X$pkg" = "X$p"; then
  3450. enable_fast_install=yes
  3451. fi
  3452. done
  3453. IFS="$lt_save_ifs"
  3454. ;;
  3455. esac
  3456. else
  3457. enable_fast_install=yes
  3458. fi;
  3459. # Make sure we can run config.sub.
  3460. $ac_config_sub sun4 >/dev/null 2>&1 ||
  3461. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  3462. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  3463. { (exit 1); exit 1; }; }
  3464. echo "$as_me:$LINENO: checking build system type" >&5
  3465. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  3466. if test "${ac_cv_build+set}" = set; then
  3467. echo $ECHO_N "(cached) $ECHO_C" >&6
  3468. else
  3469. ac_cv_build_alias=$build_alias
  3470. test -z "$ac_cv_build_alias" &&
  3471. ac_cv_build_alias=`$ac_config_guess`
  3472. test -z "$ac_cv_build_alias" &&
  3473. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3474. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3475. { (exit 1); exit 1; }; }
  3476. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  3477. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  3478. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  3479. { (exit 1); exit 1; }; }
  3480. fi
  3481. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3482. echo "${ECHO_T}$ac_cv_build" >&6
  3483. build=$ac_cv_build
  3484. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  3485. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  3486. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  3487. echo "$as_me:$LINENO: checking host system type" >&5
  3488. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  3489. if test "${ac_cv_host+set}" = set; then
  3490. echo $ECHO_N "(cached) $ECHO_C" >&6
  3491. else
  3492. ac_cv_host_alias=$host_alias
  3493. test -z "$ac_cv_host_alias" &&
  3494. ac_cv_host_alias=$ac_cv_build_alias
  3495. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  3496. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  3497. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  3498. { (exit 1); exit 1; }; }
  3499. fi
  3500. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3501. echo "${ECHO_T}$ac_cv_host" >&6
  3502. host=$ac_cv_host
  3503. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  3504. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  3505. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  3506. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3507. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  3508. if test "${lt_cv_path_SED+set}" = set; then
  3509. echo $ECHO_N "(cached) $ECHO_C" >&6
  3510. else
  3511. # Loop through the user's path and test for sed and gsed.
  3512. # Then use that list of sed's as ones to test for truncation.
  3513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3514. for as_dir in $PATH
  3515. do
  3516. IFS=$as_save_IFS
  3517. test -z "$as_dir" && as_dir=.
  3518. for lt_ac_prog in sed gsed; do
  3519. for ac_exec_ext in '' $ac_executable_extensions; do
  3520. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3521. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3522. fi
  3523. done
  3524. done
  3525. done
  3526. lt_ac_max=0
  3527. lt_ac_count=0
  3528. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3529. # along with /bin/sed that truncates output.
  3530. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3531. test ! -f $lt_ac_sed && continue
  3532. cat /dev/null > conftest.in
  3533. lt_ac_count=0
  3534. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3535. # Check for GNU sed and select it if it is found.
  3536. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3537. lt_cv_path_SED=$lt_ac_sed
  3538. break
  3539. fi
  3540. while true; do
  3541. cat conftest.in conftest.in >conftest.tmp
  3542. mv conftest.tmp conftest.in
  3543. cp conftest.in conftest.nl
  3544. echo >>conftest.nl
  3545. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3546. cmp -s conftest.out conftest.nl || break
  3547. # 10000 chars as input seems more than enough
  3548. test $lt_ac_count -gt 10 && break
  3549. lt_ac_count=`expr $lt_ac_count + 1`
  3550. if test $lt_ac_count -gt $lt_ac_max; then
  3551. lt_ac_max=$lt_ac_count
  3552. lt_cv_path_SED=$lt_ac_sed
  3553. fi
  3554. done
  3555. done
  3556. fi
  3557. SED=$lt_cv_path_SED
  3558. echo "$as_me:$LINENO: result: $SED" >&5
  3559. echo "${ECHO_T}$SED" >&6
  3560. echo "$as_me:$LINENO: checking for egrep" >&5
  3561. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3562. if test "${ac_cv_prog_egrep+set}" = set; then
  3563. echo $ECHO_N "(cached) $ECHO_C" >&6
  3564. else
  3565. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3566. then ac_cv_prog_egrep='grep -E'
  3567. else ac_cv_prog_egrep='egrep'
  3568. fi
  3569. fi
  3570. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3571. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3572. EGREP=$ac_cv_prog_egrep
  3573. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  3574. if test "${with_gnu_ld+set}" = set; then
  3575. withval="$with_gnu_ld"
  3576. test "$withval" = no || with_gnu_ld=yes
  3577. else
  3578. with_gnu_ld=no
  3579. fi;
  3580. ac_prog=ld
  3581. if test "$GCC" = yes; then
  3582. # Check if gcc -print-prog-name=ld gives a path.
  3583. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3584. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  3585. case $host in
  3586. *-*-mingw*)
  3587. # gcc leaves a trailing carriage return which upsets mingw
  3588. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3589. *)
  3590. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3591. esac
  3592. case $ac_prog in
  3593. # Accept absolute paths.
  3594. [\\/]* | ?:[\\/]*)
  3595. re_direlt='/[^/][^/]*/\.\./'
  3596. # Canonicalize the pathname of ld
  3597. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3598. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3599. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3600. done
  3601. test -z "$LD" && LD="$ac_prog"
  3602. ;;
  3603. "")
  3604. # If it fails, then pretend we aren't using GCC.
  3605. ac_prog=ld
  3606. ;;
  3607. *)
  3608. # If it is relative, then search for the first ld in PATH.
  3609. with_gnu_ld=unknown
  3610. ;;
  3611. esac
  3612. elif test "$with_gnu_ld" = yes; then
  3613. echo "$as_me:$LINENO: checking for GNU ld" >&5
  3614. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  3615. else
  3616. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3617. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  3618. fi
  3619. if test "${lt_cv_path_LD+set}" = set; then
  3620. echo $ECHO_N "(cached) $ECHO_C" >&6
  3621. else
  3622. if test -z "$LD"; then
  3623. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3624. for ac_dir in $PATH; do
  3625. IFS="$lt_save_ifs"
  3626. test -z "$ac_dir" && ac_dir=.
  3627. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3628. lt_cv_path_LD="$ac_dir/$ac_prog"
  3629. # Check to see if the program is GNU ld. I'd rather use --version,
  3630. # but apparently some variants of GNU ld only accept -v.
  3631. # Break only if it was the GNU/non-GNU ld that we prefer.
  3632. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3633. *GNU* | *'with BFD'*)
  3634. test "$with_gnu_ld" != no && break
  3635. ;;
  3636. *)
  3637. test "$with_gnu_ld" != yes && break
  3638. ;;
  3639. esac
  3640. fi
  3641. done
  3642. IFS="$lt_save_ifs"
  3643. else
  3644. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3645. fi
  3646. fi
  3647. LD="$lt_cv_path_LD"
  3648. if test -n "$LD"; then
  3649. echo "$as_me:$LINENO: result: $LD" >&5
  3650. echo "${ECHO_T}$LD" >&6
  3651. else
  3652. echo "$as_me:$LINENO: result: no" >&5
  3653. echo "${ECHO_T}no" >&6
  3654. fi
  3655. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3656. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3657. { (exit 1); exit 1; }; }
  3658. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3659. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  3660. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3661. echo $ECHO_N "(cached) $ECHO_C" >&6
  3662. else
  3663. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3664. case `$LD -v 2>&1 </dev/null` in
  3665. *GNU* | *'with BFD'*)
  3666. lt_cv_prog_gnu_ld=yes
  3667. ;;
  3668. *)
  3669. lt_cv_prog_gnu_ld=no
  3670. ;;
  3671. esac
  3672. fi
  3673. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3674. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  3675. with_gnu_ld=$lt_cv_prog_gnu_ld
  3676. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3677. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  3678. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3679. echo $ECHO_N "(cached) $ECHO_C" >&6
  3680. else
  3681. lt_cv_ld_reload_flag='-r'
  3682. fi
  3683. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3684. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  3685. reload_flag=$lt_cv_ld_reload_flag
  3686. case $reload_flag in
  3687. "" | " "*) ;;
  3688. *) reload_flag=" $reload_flag" ;;
  3689. esac
  3690. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3691. case $host_os in
  3692. darwin*)
  3693. if test "$GCC" = yes; then
  3694. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3695. else
  3696. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3697. fi
  3698. ;;
  3699. esac
  3700. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3701. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  3702. if test "${lt_cv_path_NM+set}" = set; then
  3703. echo $ECHO_N "(cached) $ECHO_C" >&6
  3704. else
  3705. if test -n "$NM"; then
  3706. # Let the user override the test.
  3707. lt_cv_path_NM="$NM"
  3708. else
  3709. lt_nm_to_check="${ac_tool_prefix}nm"
  3710. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3711. lt_nm_to_check="$lt_nm_to_check nm"
  3712. fi
  3713. for lt_tmp_nm in $lt_nm_to_check; do
  3714. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3715. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3716. IFS="$lt_save_ifs"
  3717. test -z "$ac_dir" && ac_dir=.
  3718. tmp_nm="$ac_dir/$lt_tmp_nm"
  3719. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3720. # Check to see if the nm accepts a BSD-compat flag.
  3721. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3722. # nm: unknown option "B" ignored
  3723. # Tru64's nm complains that /dev/null is an invalid object file
  3724. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3725. */dev/null* | *'Invalid file or object type'*)
  3726. lt_cv_path_NM="$tmp_nm -B"
  3727. break
  3728. ;;
  3729. *)
  3730. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3731. */dev/null*)
  3732. lt_cv_path_NM="$tmp_nm -p"
  3733. break
  3734. ;;
  3735. *)
  3736. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3737. continue # so that we can try to find one that supports BSD flags
  3738. ;;
  3739. esac
  3740. ;;
  3741. esac
  3742. fi
  3743. done
  3744. IFS="$lt_save_ifs"
  3745. done
  3746. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3747. fi
  3748. fi
  3749. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3750. echo "${ECHO_T}$lt_cv_path_NM" >&6
  3751. NM="$lt_cv_path_NM"
  3752. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3753. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  3754. LN_S=$as_ln_s
  3755. if test "$LN_S" = "ln -s"; then
  3756. echo "$as_me:$LINENO: result: yes" >&5
  3757. echo "${ECHO_T}yes" >&6
  3758. else
  3759. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3760. echo "${ECHO_T}no, using $LN_S" >&6
  3761. fi
  3762. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3763. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  3764. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3765. echo $ECHO_N "(cached) $ECHO_C" >&6
  3766. else
  3767. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3768. lt_cv_file_magic_test_file=
  3769. lt_cv_deplibs_check_method='unknown'
  3770. # Need to set the preceding variable on all platforms that support
  3771. # interlibrary dependencies.
  3772. # 'none' -- dependencies not supported.
  3773. # `unknown' -- same as none, but documents that we really don't know.
  3774. # 'pass_all' -- all dependencies passed with no checks.
  3775. # 'test_compile' -- check by making test program.
  3776. # 'file_magic [[regex]]' -- check by looking for files in library path
  3777. # which responds to the $file_magic_cmd with a given extended regex.
  3778. # If you have `file' or equivalent on your system and you're not sure
  3779. # whether `pass_all' will *always* work, you probably want this one.
  3780. case $host_os in
  3781. aix4* | aix5*)
  3782. lt_cv_deplibs_check_method=pass_all
  3783. ;;
  3784. beos*)
  3785. lt_cv_deplibs_check_method=pass_all
  3786. ;;
  3787. bsdi[45]*)
  3788. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3789. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3790. lt_cv_file_magic_test_file=/shlib/libc.so
  3791. ;;
  3792. cygwin*)
  3793. # func_win32_libid is a shell function defined in ltmain.sh
  3794. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3795. lt_cv_file_magic_cmd='func_win32_libid'
  3796. ;;
  3797. mingw* | pw32*)
  3798. # Base MSYS/MinGW do not provide the 'file' command needed by
  3799. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3800. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3801. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3802. ;;
  3803. darwin* | rhapsody*)
  3804. lt_cv_deplibs_check_method=pass_all
  3805. ;;
  3806. freebsd* | kfreebsd*-gnu | dragonfly*)
  3807. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3808. case $host_cpu in
  3809. i*86 )
  3810. # Not sure whether the presence of OpenBSD here was a mistake.
  3811. # Let's accept both of them until this is cleared up.
  3812. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3813. lt_cv_file_magic_cmd=/usr/bin/file
  3814. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3815. ;;
  3816. esac
  3817. else
  3818. lt_cv_deplibs_check_method=pass_all
  3819. fi
  3820. ;;
  3821. gnu*)
  3822. lt_cv_deplibs_check_method=pass_all
  3823. ;;
  3824. hpux10.20* | hpux11*)
  3825. lt_cv_file_magic_cmd=/usr/bin/file
  3826. case $host_cpu in
  3827. ia64*)
  3828. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3829. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3830. ;;
  3831. hppa*64*)
  3832. 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]'
  3833. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3834. ;;
  3835. *)
  3836. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3837. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3838. ;;
  3839. esac
  3840. ;;
  3841. interix3*)
  3842. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3843. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3844. ;;
  3845. irix5* | irix6* | nonstopux*)
  3846. case $LD in
  3847. *-32|*"-32 ") libmagic=32-bit;;
  3848. *-n32|*"-n32 ") libmagic=N32;;
  3849. *-64|*"-64 ") libmagic=64-bit;;
  3850. *) libmagic=never-match;;
  3851. esac
  3852. lt_cv_deplibs_check_method=pass_all
  3853. ;;
  3854. # This must be Linux ELF.
  3855. linux*)
  3856. lt_cv_deplibs_check_method=pass_all
  3857. ;;
  3858. netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  3859. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3860. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3861. else
  3862. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3863. fi
  3864. ;;
  3865. newos6*)
  3866. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3867. lt_cv_file_magic_cmd=/usr/bin/file
  3868. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3869. ;;
  3870. nto-qnx*)
  3871. lt_cv_deplibs_check_method=unknown
  3872. ;;
  3873. openbsd*)
  3874. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3875. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3876. else
  3877. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3878. fi
  3879. ;;
  3880. osf3* | osf4* | osf5*)
  3881. lt_cv_deplibs_check_method=pass_all
  3882. ;;
  3883. solaris*)
  3884. lt_cv_deplibs_check_method=pass_all
  3885. ;;
  3886. sysv4 | sysv4.3*)
  3887. case $host_vendor in
  3888. motorola)
  3889. 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]'
  3890. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3891. ;;
  3892. ncr)
  3893. lt_cv_deplibs_check_method=pass_all
  3894. ;;
  3895. sequent)
  3896. lt_cv_file_magic_cmd='/bin/file'
  3897. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3898. ;;
  3899. sni)
  3900. lt_cv_file_magic_cmd='/bin/file'
  3901. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3902. lt_cv_file_magic_test_file=/lib/libc.so
  3903. ;;
  3904. siemens)
  3905. lt_cv_deplibs_check_method=pass_all
  3906. ;;
  3907. pc)
  3908. lt_cv_deplibs_check_method=pass_all
  3909. ;;
  3910. esac
  3911. ;;
  3912. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3913. lt_cv_deplibs_check_method=pass_all
  3914. ;;
  3915. esac
  3916. fi
  3917. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3918. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  3919. file_magic_cmd=$lt_cv_file_magic_cmd
  3920. deplibs_check_method=$lt_cv_deplibs_check_method
  3921. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3922. # If no C compiler was specified, use CC.
  3923. LTCC=${LTCC-"$CC"}
  3924. # If no C compiler flags were specified, use CFLAGS.
  3925. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  3926. # Allow CC to be a program name with arguments.
  3927. compiler=$CC
  3928. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  3929. if test "${enable_libtool_lock+set}" = set; then
  3930. enableval="$enable_libtool_lock"
  3931. fi;
  3932. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3933. # Some flags need to be propagated to the compiler or linker for good
  3934. # libtool support.
  3935. case $host in
  3936. ia64-*-hpux*)
  3937. # Find out which ABI we are using.
  3938. echo 'int i;' > conftest.$ac_ext
  3939. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3940. (eval $ac_compile) 2>&5
  3941. ac_status=$?
  3942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3943. (exit $ac_status); }; then
  3944. case `/usr/bin/file conftest.$ac_objext` in
  3945. *ELF-32*)
  3946. HPUX_IA64_MODE="32"
  3947. ;;
  3948. *ELF-64*)
  3949. HPUX_IA64_MODE="64"
  3950. ;;
  3951. esac
  3952. fi
  3953. rm -rf conftest*
  3954. ;;
  3955. *-*-irix6*)
  3956. # Find out which ABI we are using.
  3957. echo '#line 4384 "configure"' > conftest.$ac_ext
  3958. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3959. (eval $ac_compile) 2>&5
  3960. ac_status=$?
  3961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3962. (exit $ac_status); }; then
  3963. if test "$lt_cv_prog_gnu_ld" = yes; then
  3964. case `/usr/bin/file conftest.$ac_objext` in
  3965. *32-bit*)
  3966. LD="${LD-ld} -melf32bsmip"
  3967. ;;
  3968. *N32*)
  3969. LD="${LD-ld} -melf32bmipn32"
  3970. ;;
  3971. *64-bit*)
  3972. LD="${LD-ld} -melf64bmip"
  3973. ;;
  3974. esac
  3975. else
  3976. case `/usr/bin/file conftest.$ac_objext` in
  3977. *32-bit*)
  3978. LD="${LD-ld} -32"
  3979. ;;
  3980. *N32*)
  3981. LD="${LD-ld} -n32"
  3982. ;;
  3983. *64-bit*)
  3984. LD="${LD-ld} -64"
  3985. ;;
  3986. esac
  3987. fi
  3988. fi
  3989. rm -rf conftest*
  3990. ;;
  3991. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  3992. # Find out which ABI we are using.
  3993. echo 'int i;' > conftest.$ac_ext
  3994. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3995. (eval $ac_compile) 2>&5
  3996. ac_status=$?
  3997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3998. (exit $ac_status); }; then
  3999. case `/usr/bin/file conftest.o` in
  4000. *32-bit*)
  4001. case $host in
  4002. x86_64-*linux*)
  4003. LD="${LD-ld} -m elf_i386"
  4004. ;;
  4005. ppc64-*linux*|powerpc64-*linux*)
  4006. LD="${LD-ld} -m elf32ppclinux"
  4007. ;;
  4008. s390x-*linux*)
  4009. LD="${LD-ld} -m elf_s390"
  4010. ;;
  4011. sparc64-*linux*)
  4012. LD="${LD-ld} -m elf32_sparc"
  4013. ;;
  4014. esac
  4015. ;;
  4016. *64-bit*)
  4017. case $host in
  4018. x86_64-*linux*)
  4019. LD="${LD-ld} -m elf_x86_64"
  4020. ;;
  4021. ppc*-*linux*|powerpc*-*linux*)
  4022. LD="${LD-ld} -m elf64ppc"
  4023. ;;
  4024. s390*-*linux*)
  4025. LD="${LD-ld} -m elf64_s390"
  4026. ;;
  4027. sparc*-*linux*)
  4028. LD="${LD-ld} -m elf64_sparc"
  4029. ;;
  4030. esac
  4031. ;;
  4032. esac
  4033. fi
  4034. rm -rf conftest*
  4035. ;;
  4036. *-*-sco3.2v5*)
  4037. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4038. SAVE_CFLAGS="$CFLAGS"
  4039. CFLAGS="$CFLAGS -belf"
  4040. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4041. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  4042. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4043. echo $ECHO_N "(cached) $ECHO_C" >&6
  4044. else
  4045. ac_ext=c
  4046. ac_cpp='$CPP $CPPFLAGS'
  4047. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4048. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4049. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4050. cat >conftest.$ac_ext <<_ACEOF
  4051. /* confdefs.h. */
  4052. _ACEOF
  4053. cat confdefs.h >>conftest.$ac_ext
  4054. cat >>conftest.$ac_ext <<_ACEOF
  4055. /* end confdefs.h. */
  4056. int
  4057. main ()
  4058. {
  4059. ;
  4060. return 0;
  4061. }
  4062. _ACEOF
  4063. rm -f conftest.$ac_objext conftest$ac_exeext
  4064. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4065. (eval $ac_link) 2>conftest.er1
  4066. ac_status=$?
  4067. grep -v '^ *+' conftest.er1 >conftest.err
  4068. rm -f conftest.er1
  4069. cat conftest.err >&5
  4070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4071. (exit $ac_status); } &&
  4072. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4073. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4074. (eval $ac_try) 2>&5
  4075. ac_status=$?
  4076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4077. (exit $ac_status); }; } &&
  4078. { ac_try='test -s conftest$ac_exeext'
  4079. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4080. (eval $ac_try) 2>&5
  4081. ac_status=$?
  4082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4083. (exit $ac_status); }; }; then
  4084. lt_cv_cc_needs_belf=yes
  4085. else
  4086. echo "$as_me: failed program was:" >&5
  4087. sed 's/^/| /' conftest.$ac_ext >&5
  4088. lt_cv_cc_needs_belf=no
  4089. fi
  4090. rm -f conftest.err conftest.$ac_objext \
  4091. conftest$ac_exeext conftest.$ac_ext
  4092. ac_ext=c
  4093. ac_cpp='$CPP $CPPFLAGS'
  4094. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4095. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4096. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4097. fi
  4098. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4099. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  4100. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4101. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4102. CFLAGS="$SAVE_CFLAGS"
  4103. fi
  4104. ;;
  4105. sparc*-*solaris*)
  4106. # Find out which ABI we are using.
  4107. echo 'int i;' > conftest.$ac_ext
  4108. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4109. (eval $ac_compile) 2>&5
  4110. ac_status=$?
  4111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4112. (exit $ac_status); }; then
  4113. case `/usr/bin/file conftest.o` in
  4114. *64-bit*)
  4115. case $lt_cv_prog_gnu_ld in
  4116. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4117. *) LD="${LD-ld} -64" ;;
  4118. esac
  4119. ;;
  4120. esac
  4121. fi
  4122. rm -rf conftest*
  4123. ;;
  4124. esac
  4125. need_locks="$enable_libtool_lock"
  4126. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4127. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4128. if test "${ac_cv_header_stdc+set}" = set; then
  4129. echo $ECHO_N "(cached) $ECHO_C" >&6
  4130. else
  4131. cat >conftest.$ac_ext <<_ACEOF
  4132. /* confdefs.h. */
  4133. _ACEOF
  4134. cat confdefs.h >>conftest.$ac_ext
  4135. cat >>conftest.$ac_ext <<_ACEOF
  4136. /* end confdefs.h. */
  4137. #include <stdlib.h>
  4138. #include <stdarg.h>
  4139. #include <string.h>
  4140. #include <float.h>
  4141. int
  4142. main ()
  4143. {
  4144. ;
  4145. return 0;
  4146. }
  4147. _ACEOF
  4148. rm -f conftest.$ac_objext
  4149. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4150. (eval $ac_compile) 2>conftest.er1
  4151. ac_status=$?
  4152. grep -v '^ *+' conftest.er1 >conftest.err
  4153. rm -f conftest.er1
  4154. cat conftest.err >&5
  4155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4156. (exit $ac_status); } &&
  4157. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4159. (eval $ac_try) 2>&5
  4160. ac_status=$?
  4161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4162. (exit $ac_status); }; } &&
  4163. { ac_try='test -s conftest.$ac_objext'
  4164. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4165. (eval $ac_try) 2>&5
  4166. ac_status=$?
  4167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4168. (exit $ac_status); }; }; then
  4169. ac_cv_header_stdc=yes
  4170. else
  4171. echo "$as_me: failed program was:" >&5
  4172. sed 's/^/| /' conftest.$ac_ext >&5
  4173. ac_cv_header_stdc=no
  4174. fi
  4175. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4176. if test $ac_cv_header_stdc = yes; then
  4177. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4178. cat >conftest.$ac_ext <<_ACEOF
  4179. /* confdefs.h. */
  4180. _ACEOF
  4181. cat confdefs.h >>conftest.$ac_ext
  4182. cat >>conftest.$ac_ext <<_ACEOF
  4183. /* end confdefs.h. */
  4184. #include <string.h>
  4185. _ACEOF
  4186. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4187. $EGREP "memchr" >/dev/null 2>&1; then
  4188. :
  4189. else
  4190. ac_cv_header_stdc=no
  4191. fi
  4192. rm -f conftest*
  4193. fi
  4194. if test $ac_cv_header_stdc = yes; then
  4195. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4196. cat >conftest.$ac_ext <<_ACEOF
  4197. /* confdefs.h. */
  4198. _ACEOF
  4199. cat confdefs.h >>conftest.$ac_ext
  4200. cat >>conftest.$ac_ext <<_ACEOF
  4201. /* end confdefs.h. */
  4202. #include <stdlib.h>
  4203. _ACEOF
  4204. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4205. $EGREP "free" >/dev/null 2>&1; then
  4206. :
  4207. else
  4208. ac_cv_header_stdc=no
  4209. fi
  4210. rm -f conftest*
  4211. fi
  4212. if test $ac_cv_header_stdc = yes; then
  4213. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4214. if test "$cross_compiling" = yes; then
  4215. :
  4216. else
  4217. cat >conftest.$ac_ext <<_ACEOF
  4218. /* confdefs.h. */
  4219. _ACEOF
  4220. cat confdefs.h >>conftest.$ac_ext
  4221. cat >>conftest.$ac_ext <<_ACEOF
  4222. /* end confdefs.h. */
  4223. #include <ctype.h>
  4224. #if ((' ' & 0x0FF) == 0x020)
  4225. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4226. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4227. #else
  4228. # define ISLOWER(c) \
  4229. (('a' <= (c) && (c) <= 'i') \
  4230. || ('j' <= (c) && (c) <= 'r') \
  4231. || ('s' <= (c) && (c) <= 'z'))
  4232. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4233. #endif
  4234. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4235. int
  4236. main ()
  4237. {
  4238. int i;
  4239. for (i = 0; i < 256; i++)
  4240. if (XOR (islower (i), ISLOWER (i))
  4241. || toupper (i) != TOUPPER (i))
  4242. exit(2);
  4243. exit (0);
  4244. }
  4245. _ACEOF
  4246. rm -f conftest$ac_exeext
  4247. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4248. (eval $ac_link) 2>&5
  4249. ac_status=$?
  4250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4251. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4252. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4253. (eval $ac_try) 2>&5
  4254. ac_status=$?
  4255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4256. (exit $ac_status); }; }; then
  4257. :
  4258. else
  4259. echo "$as_me: program exited with status $ac_status" >&5
  4260. echo "$as_me: failed program was:" >&5
  4261. sed 's/^/| /' conftest.$ac_ext >&5
  4262. ( exit $ac_status )
  4263. ac_cv_header_stdc=no
  4264. fi
  4265. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4266. fi
  4267. fi
  4268. fi
  4269. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4270. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4271. if test $ac_cv_header_stdc = yes; then
  4272. cat >>confdefs.h <<\_ACEOF
  4273. #define STDC_HEADERS 1
  4274. _ACEOF
  4275. fi
  4276. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4277. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4278. inttypes.h stdint.h unistd.h
  4279. do
  4280. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4281. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4282. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4283. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4284. echo $ECHO_N "(cached) $ECHO_C" >&6
  4285. else
  4286. cat >conftest.$ac_ext <<_ACEOF
  4287. /* confdefs.h. */
  4288. _ACEOF
  4289. cat confdefs.h >>conftest.$ac_ext
  4290. cat >>conftest.$ac_ext <<_ACEOF
  4291. /* end confdefs.h. */
  4292. $ac_includes_default
  4293. #include <$ac_header>
  4294. _ACEOF
  4295. rm -f conftest.$ac_objext
  4296. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4297. (eval $ac_compile) 2>conftest.er1
  4298. ac_status=$?
  4299. grep -v '^ *+' conftest.er1 >conftest.err
  4300. rm -f conftest.er1
  4301. cat conftest.err >&5
  4302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4303. (exit $ac_status); } &&
  4304. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4305. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4306. (eval $ac_try) 2>&5
  4307. ac_status=$?
  4308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4309. (exit $ac_status); }; } &&
  4310. { ac_try='test -s conftest.$ac_objext'
  4311. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4312. (eval $ac_try) 2>&5
  4313. ac_status=$?
  4314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4315. (exit $ac_status); }; }; then
  4316. eval "$as_ac_Header=yes"
  4317. else
  4318. echo "$as_me: failed program was:" >&5
  4319. sed 's/^/| /' conftest.$ac_ext >&5
  4320. eval "$as_ac_Header=no"
  4321. fi
  4322. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4323. fi
  4324. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4325. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4326. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4327. cat >>confdefs.h <<_ACEOF
  4328. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4329. _ACEOF
  4330. fi
  4331. done
  4332. for ac_header in dlfcn.h
  4333. do
  4334. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4335. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4336. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4337. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4338. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4339. echo $ECHO_N "(cached) $ECHO_C" >&6
  4340. fi
  4341. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4342. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4343. else
  4344. # Is the header compilable?
  4345. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4346. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4347. cat >conftest.$ac_ext <<_ACEOF
  4348. /* confdefs.h. */
  4349. _ACEOF
  4350. cat confdefs.h >>conftest.$ac_ext
  4351. cat >>conftest.$ac_ext <<_ACEOF
  4352. /* end confdefs.h. */
  4353. $ac_includes_default
  4354. #include <$ac_header>
  4355. _ACEOF
  4356. rm -f conftest.$ac_objext
  4357. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4358. (eval $ac_compile) 2>conftest.er1
  4359. ac_status=$?
  4360. grep -v '^ *+' conftest.er1 >conftest.err
  4361. rm -f conftest.er1
  4362. cat conftest.err >&5
  4363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4364. (exit $ac_status); } &&
  4365. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4366. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4367. (eval $ac_try) 2>&5
  4368. ac_status=$?
  4369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4370. (exit $ac_status); }; } &&
  4371. { ac_try='test -s conftest.$ac_objext'
  4372. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4373. (eval $ac_try) 2>&5
  4374. ac_status=$?
  4375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4376. (exit $ac_status); }; }; then
  4377. ac_header_compiler=yes
  4378. else
  4379. echo "$as_me: failed program was:" >&5
  4380. sed 's/^/| /' conftest.$ac_ext >&5
  4381. ac_header_compiler=no
  4382. fi
  4383. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4384. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4385. echo "${ECHO_T}$ac_header_compiler" >&6
  4386. # Is the header present?
  4387. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4388. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4389. cat >conftest.$ac_ext <<_ACEOF
  4390. /* confdefs.h. */
  4391. _ACEOF
  4392. cat confdefs.h >>conftest.$ac_ext
  4393. cat >>conftest.$ac_ext <<_ACEOF
  4394. /* end confdefs.h. */
  4395. #include <$ac_header>
  4396. _ACEOF
  4397. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4398. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4399. ac_status=$?
  4400. grep -v '^ *+' conftest.er1 >conftest.err
  4401. rm -f conftest.er1
  4402. cat conftest.err >&5
  4403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4404. (exit $ac_status); } >/dev/null; then
  4405. if test -s conftest.err; then
  4406. ac_cpp_err=$ac_c_preproc_warn_flag
  4407. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4408. else
  4409. ac_cpp_err=
  4410. fi
  4411. else
  4412. ac_cpp_err=yes
  4413. fi
  4414. if test -z "$ac_cpp_err"; then
  4415. ac_header_preproc=yes
  4416. else
  4417. echo "$as_me: failed program was:" >&5
  4418. sed 's/^/| /' conftest.$ac_ext >&5
  4419. ac_header_preproc=no
  4420. fi
  4421. rm -f conftest.err conftest.$ac_ext
  4422. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4423. echo "${ECHO_T}$ac_header_preproc" >&6
  4424. # So? What about this header?
  4425. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4426. yes:no: )
  4427. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4428. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4429. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4430. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4431. ac_header_preproc=yes
  4432. ;;
  4433. no:yes:* )
  4434. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4435. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4436. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4437. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4438. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4439. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4440. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4441. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4442. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4443. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4444. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4445. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4446. (
  4447. cat <<\_ASBOX
  4448. ## ------------------------------------ ##
  4449. ## Report this to opensource@google.com ##
  4450. ## ------------------------------------ ##
  4451. _ASBOX
  4452. ) |
  4453. sed "s/^/$as_me: WARNING: /" >&2
  4454. ;;
  4455. esac
  4456. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4457. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4458. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4459. echo $ECHO_N "(cached) $ECHO_C" >&6
  4460. else
  4461. eval "$as_ac_Header=\$ac_header_preproc"
  4462. fi
  4463. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4464. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4465. fi
  4466. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4467. cat >>confdefs.h <<_ACEOF
  4468. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4469. _ACEOF
  4470. fi
  4471. done
  4472. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4473. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4474. (test "X$CXX" != "Xg++"))) ; then
  4475. ac_ext=cc
  4476. ac_cpp='$CXXCPP $CPPFLAGS'
  4477. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4478. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4479. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4480. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4481. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  4482. if test -z "$CXXCPP"; then
  4483. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4484. echo $ECHO_N "(cached) $ECHO_C" >&6
  4485. else
  4486. # Double quotes because CXXCPP needs to be expanded
  4487. for CXXCPP in "$CXX -E" "/lib/cpp"
  4488. do
  4489. ac_preproc_ok=false
  4490. for ac_cxx_preproc_warn_flag in '' yes
  4491. do
  4492. # Use a header file that comes with gcc, so configuring glibc
  4493. # with a fresh cross-compiler works.
  4494. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4495. # <limits.h> exists even on freestanding compilers.
  4496. # On the NeXT, cc -E runs the code through the compiler's parser,
  4497. # not just through cpp. "Syntax error" is here to catch this case.
  4498. cat >conftest.$ac_ext <<_ACEOF
  4499. /* confdefs.h. */
  4500. _ACEOF
  4501. cat confdefs.h >>conftest.$ac_ext
  4502. cat >>conftest.$ac_ext <<_ACEOF
  4503. /* end confdefs.h. */
  4504. #ifdef __STDC__
  4505. # include <limits.h>
  4506. #else
  4507. # include <assert.h>
  4508. #endif
  4509. Syntax error
  4510. _ACEOF
  4511. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4512. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4513. ac_status=$?
  4514. grep -v '^ *+' conftest.er1 >conftest.err
  4515. rm -f conftest.er1
  4516. cat conftest.err >&5
  4517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4518. (exit $ac_status); } >/dev/null; then
  4519. if test -s conftest.err; then
  4520. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4521. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4522. else
  4523. ac_cpp_err=
  4524. fi
  4525. else
  4526. ac_cpp_err=yes
  4527. fi
  4528. if test -z "$ac_cpp_err"; then
  4529. :
  4530. else
  4531. echo "$as_me: failed program was:" >&5
  4532. sed 's/^/| /' conftest.$ac_ext >&5
  4533. # Broken: fails on valid input.
  4534. continue
  4535. fi
  4536. rm -f conftest.err conftest.$ac_ext
  4537. # OK, works on sane cases. Now check whether non-existent headers
  4538. # can be detected and how.
  4539. cat >conftest.$ac_ext <<_ACEOF
  4540. /* confdefs.h. */
  4541. _ACEOF
  4542. cat confdefs.h >>conftest.$ac_ext
  4543. cat >>conftest.$ac_ext <<_ACEOF
  4544. /* end confdefs.h. */
  4545. #include <ac_nonexistent.h>
  4546. _ACEOF
  4547. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4548. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4549. ac_status=$?
  4550. grep -v '^ *+' conftest.er1 >conftest.err
  4551. rm -f conftest.er1
  4552. cat conftest.err >&5
  4553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4554. (exit $ac_status); } >/dev/null; then
  4555. if test -s conftest.err; then
  4556. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4557. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4558. else
  4559. ac_cpp_err=
  4560. fi
  4561. else
  4562. ac_cpp_err=yes
  4563. fi
  4564. if test -z "$ac_cpp_err"; then
  4565. # Broken: success on invalid input.
  4566. continue
  4567. else
  4568. echo "$as_me: failed program was:" >&5
  4569. sed 's/^/| /' conftest.$ac_ext >&5
  4570. # Passes both tests.
  4571. ac_preproc_ok=:
  4572. break
  4573. fi
  4574. rm -f conftest.err conftest.$ac_ext
  4575. done
  4576. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4577. rm -f conftest.err conftest.$ac_ext
  4578. if $ac_preproc_ok; then
  4579. break
  4580. fi
  4581. done
  4582. ac_cv_prog_CXXCPP=$CXXCPP
  4583. fi
  4584. CXXCPP=$ac_cv_prog_CXXCPP
  4585. else
  4586. ac_cv_prog_CXXCPP=$CXXCPP
  4587. fi
  4588. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4589. echo "${ECHO_T}$CXXCPP" >&6
  4590. ac_preproc_ok=false
  4591. for ac_cxx_preproc_warn_flag in '' yes
  4592. do
  4593. # Use a header file that comes with gcc, so configuring glibc
  4594. # with a fresh cross-compiler works.
  4595. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4596. # <limits.h> exists even on freestanding compilers.
  4597. # On the NeXT, cc -E runs the code through the compiler's parser,
  4598. # not just through cpp. "Syntax error" is here to catch this case.
  4599. cat >conftest.$ac_ext <<_ACEOF
  4600. /* confdefs.h. */
  4601. _ACEOF
  4602. cat confdefs.h >>conftest.$ac_ext
  4603. cat >>conftest.$ac_ext <<_ACEOF
  4604. /* end confdefs.h. */
  4605. #ifdef __STDC__
  4606. # include <limits.h>
  4607. #else
  4608. # include <assert.h>
  4609. #endif
  4610. Syntax error
  4611. _ACEOF
  4612. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4613. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4614. ac_status=$?
  4615. grep -v '^ *+' conftest.er1 >conftest.err
  4616. rm -f conftest.er1
  4617. cat conftest.err >&5
  4618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4619. (exit $ac_status); } >/dev/null; then
  4620. if test -s conftest.err; then
  4621. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4622. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4623. else
  4624. ac_cpp_err=
  4625. fi
  4626. else
  4627. ac_cpp_err=yes
  4628. fi
  4629. if test -z "$ac_cpp_err"; then
  4630. :
  4631. else
  4632. echo "$as_me: failed program was:" >&5
  4633. sed 's/^/| /' conftest.$ac_ext >&5
  4634. # Broken: fails on valid input.
  4635. continue
  4636. fi
  4637. rm -f conftest.err conftest.$ac_ext
  4638. # OK, works on sane cases. Now check whether non-existent headers
  4639. # can be detected and how.
  4640. cat >conftest.$ac_ext <<_ACEOF
  4641. /* confdefs.h. */
  4642. _ACEOF
  4643. cat confdefs.h >>conftest.$ac_ext
  4644. cat >>conftest.$ac_ext <<_ACEOF
  4645. /* end confdefs.h. */
  4646. #include <ac_nonexistent.h>
  4647. _ACEOF
  4648. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4649. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4650. ac_status=$?
  4651. grep -v '^ *+' conftest.er1 >conftest.err
  4652. rm -f conftest.er1
  4653. cat conftest.err >&5
  4654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4655. (exit $ac_status); } >/dev/null; then
  4656. if test -s conftest.err; then
  4657. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4658. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4659. else
  4660. ac_cpp_err=
  4661. fi
  4662. else
  4663. ac_cpp_err=yes
  4664. fi
  4665. if test -z "$ac_cpp_err"; then
  4666. # Broken: success on invalid input.
  4667. continue
  4668. else
  4669. echo "$as_me: failed program was:" >&5
  4670. sed 's/^/| /' conftest.$ac_ext >&5
  4671. # Passes both tests.
  4672. ac_preproc_ok=:
  4673. break
  4674. fi
  4675. rm -f conftest.err conftest.$ac_ext
  4676. done
  4677. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4678. rm -f conftest.err conftest.$ac_ext
  4679. if $ac_preproc_ok; then
  4680. :
  4681. else
  4682. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4683. See \`config.log' for more details." >&5
  4684. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4685. See \`config.log' for more details." >&2;}
  4686. { (exit 1); exit 1; }; }
  4687. fi
  4688. ac_ext=cc
  4689. ac_cpp='$CXXCPP $CPPFLAGS'
  4690. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4691. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4692. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4693. fi
  4694. ac_ext=f
  4695. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4696. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4697. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4698. if test -n "$ac_tool_prefix"; then
  4699. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4700. do
  4701. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4702. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4703. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4704. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4705. if test "${ac_cv_prog_F77+set}" = set; then
  4706. echo $ECHO_N "(cached) $ECHO_C" >&6
  4707. else
  4708. if test -n "$F77"; then
  4709. ac_cv_prog_F77="$F77" # Let the user override the test.
  4710. else
  4711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4712. for as_dir in $PATH
  4713. do
  4714. IFS=$as_save_IFS
  4715. test -z "$as_dir" && as_dir=.
  4716. for ac_exec_ext in '' $ac_executable_extensions; do
  4717. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4718. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4719. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4720. break 2
  4721. fi
  4722. done
  4723. done
  4724. fi
  4725. fi
  4726. F77=$ac_cv_prog_F77
  4727. if test -n "$F77"; then
  4728. echo "$as_me:$LINENO: result: $F77" >&5
  4729. echo "${ECHO_T}$F77" >&6
  4730. else
  4731. echo "$as_me:$LINENO: result: no" >&5
  4732. echo "${ECHO_T}no" >&6
  4733. fi
  4734. test -n "$F77" && break
  4735. done
  4736. fi
  4737. if test -z "$F77"; then
  4738. ac_ct_F77=$F77
  4739. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4740. do
  4741. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4742. set dummy $ac_prog; ac_word=$2
  4743. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4744. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4745. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4746. echo $ECHO_N "(cached) $ECHO_C" >&6
  4747. else
  4748. if test -n "$ac_ct_F77"; then
  4749. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4750. else
  4751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4752. for as_dir in $PATH
  4753. do
  4754. IFS=$as_save_IFS
  4755. test -z "$as_dir" && as_dir=.
  4756. for ac_exec_ext in '' $ac_executable_extensions; do
  4757. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4758. ac_cv_prog_ac_ct_F77="$ac_prog"
  4759. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4760. break 2
  4761. fi
  4762. done
  4763. done
  4764. fi
  4765. fi
  4766. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4767. if test -n "$ac_ct_F77"; then
  4768. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4769. echo "${ECHO_T}$ac_ct_F77" >&6
  4770. else
  4771. echo "$as_me:$LINENO: result: no" >&5
  4772. echo "${ECHO_T}no" >&6
  4773. fi
  4774. test -n "$ac_ct_F77" && break
  4775. done
  4776. F77=$ac_ct_F77
  4777. fi
  4778. # Provide some information about the compiler.
  4779. echo "$as_me:5281:" \
  4780. "checking for Fortran 77 compiler version" >&5
  4781. ac_compiler=`set X $ac_compile; echo $2`
  4782. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4783. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4784. ac_status=$?
  4785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4786. (exit $ac_status); }
  4787. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4788. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4789. ac_status=$?
  4790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4791. (exit $ac_status); }
  4792. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4793. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4794. ac_status=$?
  4795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4796. (exit $ac_status); }
  4797. rm -f a.out
  4798. # If we don't use `.F' as extension, the preprocessor is not run on the
  4799. # input file. (Note that this only needs to work for GNU compilers.)
  4800. ac_save_ext=$ac_ext
  4801. ac_ext=F
  4802. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  4803. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  4804. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  4805. echo $ECHO_N "(cached) $ECHO_C" >&6
  4806. else
  4807. cat >conftest.$ac_ext <<_ACEOF
  4808. program main
  4809. #ifndef __GNUC__
  4810. choke me
  4811. #endif
  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_compiler_gnu=yes
  4836. else
  4837. echo "$as_me: failed program was:" >&5
  4838. sed 's/^/| /' conftest.$ac_ext >&5
  4839. ac_compiler_gnu=no
  4840. fi
  4841. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4842. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  4843. fi
  4844. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  4845. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  4846. ac_ext=$ac_save_ext
  4847. ac_test_FFLAGS=${FFLAGS+set}
  4848. ac_save_FFLAGS=$FFLAGS
  4849. FFLAGS=
  4850. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  4851. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  4852. if test "${ac_cv_prog_f77_g+set}" = set; then
  4853. echo $ECHO_N "(cached) $ECHO_C" >&6
  4854. else
  4855. FFLAGS=-g
  4856. cat >conftest.$ac_ext <<_ACEOF
  4857. program main
  4858. end
  4859. _ACEOF
  4860. rm -f conftest.$ac_objext
  4861. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4862. (eval $ac_compile) 2>conftest.er1
  4863. ac_status=$?
  4864. grep -v '^ *+' conftest.er1 >conftest.err
  4865. rm -f conftest.er1
  4866. cat conftest.err >&5
  4867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4868. (exit $ac_status); } &&
  4869. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  4870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4871. (eval $ac_try) 2>&5
  4872. ac_status=$?
  4873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4874. (exit $ac_status); }; } &&
  4875. { ac_try='test -s conftest.$ac_objext'
  4876. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4877. (eval $ac_try) 2>&5
  4878. ac_status=$?
  4879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4880. (exit $ac_status); }; }; then
  4881. ac_cv_prog_f77_g=yes
  4882. else
  4883. echo "$as_me: failed program was:" >&5
  4884. sed 's/^/| /' conftest.$ac_ext >&5
  4885. ac_cv_prog_f77_g=no
  4886. fi
  4887. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4888. fi
  4889. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  4890. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  4891. if test "$ac_test_FFLAGS" = set; then
  4892. FFLAGS=$ac_save_FFLAGS
  4893. elif test $ac_cv_prog_f77_g = yes; then
  4894. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  4895. FFLAGS="-g -O2"
  4896. else
  4897. FFLAGS="-g"
  4898. fi
  4899. else
  4900. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  4901. FFLAGS="-O2"
  4902. else
  4903. FFLAGS=
  4904. fi
  4905. fi
  4906. G77=`test $ac_compiler_gnu = yes && echo yes`
  4907. ac_ext=c
  4908. ac_cpp='$CPP $CPPFLAGS'
  4909. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4910. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4911. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4912. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  4913. # find the maximum length of command line arguments
  4914. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4915. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  4916. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4917. echo $ECHO_N "(cached) $ECHO_C" >&6
  4918. else
  4919. i=0
  4920. teststring="ABCD"
  4921. case $build_os in
  4922. msdosdjgpp*)
  4923. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4924. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4925. # during glob expansion). Even if it were fixed, the result of this
  4926. # check would be larger than it should be.
  4927. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4928. ;;
  4929. gnu*)
  4930. # Under GNU Hurd, this test is not required because there is
  4931. # no limit to the length of command line arguments.
  4932. # Libtool will interpret -1 as no limit whatsoever
  4933. lt_cv_sys_max_cmd_len=-1;
  4934. ;;
  4935. cygwin* | mingw*)
  4936. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4937. # about 5 minutes as the teststring grows exponentially.
  4938. # Worse, since 9x/ME are not pre-emptively multitasking,
  4939. # you end up with a "frozen" computer, even though with patience
  4940. # the test eventually succeeds (with a max line length of 256k).
  4941. # Instead, let's just punt: use the minimum linelength reported by
  4942. # all of the supported platforms: 8192 (on NT/2K/XP).
  4943. lt_cv_sys_max_cmd_len=8192;
  4944. ;;
  4945. amigaos*)
  4946. # On AmigaOS with pdksh, this test takes hours, literally.
  4947. # So we just punt and use a minimum line length of 8192.
  4948. lt_cv_sys_max_cmd_len=8192;
  4949. ;;
  4950. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4951. # This has been around since 386BSD, at least. Likely further.
  4952. if test -x /sbin/sysctl; then
  4953. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4954. elif test -x /usr/sbin/sysctl; then
  4955. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4956. else
  4957. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4958. fi
  4959. # And add a safety zone
  4960. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4961. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4962. ;;
  4963. interix*)
  4964. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4965. lt_cv_sys_max_cmd_len=196608
  4966. ;;
  4967. osf*)
  4968. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4969. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4970. # nice to cause kernel panics so lets avoid the loop below.
  4971. # First set a reasonable default.
  4972. lt_cv_sys_max_cmd_len=16384
  4973. #
  4974. if test -x /sbin/sysconfig; then
  4975. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4976. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4977. esac
  4978. fi
  4979. ;;
  4980. sco3.2v5*)
  4981. lt_cv_sys_max_cmd_len=102400
  4982. ;;
  4983. sysv5* | sco5v6* | sysv4.2uw2*)
  4984. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4985. if test -n "$kargmax"; then
  4986. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4987. else
  4988. lt_cv_sys_max_cmd_len=32768
  4989. fi
  4990. ;;
  4991. *)
  4992. # If test is not a shell built-in, we'll probably end up computing a
  4993. # maximum length that is only half of the actual maximum length, but
  4994. # we can't tell.
  4995. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4996. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  4997. = "XX$teststring") >/dev/null 2>&1 &&
  4998. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  4999. lt_cv_sys_max_cmd_len=$new_result &&
  5000. test $i != 17 # 1/2 MB should be enough
  5001. do
  5002. i=`expr $i + 1`
  5003. teststring=$teststring$teststring
  5004. done
  5005. teststring=
  5006. # Add a significant safety factor because C++ compilers can tack on massive
  5007. # amounts of additional arguments before passing them to the linker.
  5008. # It appears as though 1/2 is a usable value.
  5009. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5010. ;;
  5011. esac
  5012. fi
  5013. if test -n $lt_cv_sys_max_cmd_len ; then
  5014. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5015. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  5016. else
  5017. echo "$as_me:$LINENO: result: none" >&5
  5018. echo "${ECHO_T}none" >&6
  5019. fi
  5020. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5021. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5022. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  5023. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5024. echo $ECHO_N "(cached) $ECHO_C" >&6
  5025. else
  5026. # These are sane defaults that work on at least a few old systems.
  5027. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5028. # Character class describing NM global symbol codes.
  5029. symcode='[BCDEGRST]'
  5030. # Regexp to match symbols that can be accessed directly from C.
  5031. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5032. # Transform an extracted symbol line into a proper C declaration
  5033. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5034. # Transform an extracted symbol line into symbol name and symbol address
  5035. 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'"
  5036. # Define system-specific variables.
  5037. case $host_os in
  5038. aix*)
  5039. symcode='[BCDT]'
  5040. ;;
  5041. cygwin* | mingw* | pw32*)
  5042. symcode='[ABCDGISTW]'
  5043. ;;
  5044. hpux*) # Its linker distinguishes data from code symbols
  5045. if test "$host_cpu" = ia64; then
  5046. symcode='[ABCDEGRST]'
  5047. fi
  5048. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5049. 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'"
  5050. ;;
  5051. linux*)
  5052. if test "$host_cpu" = ia64; then
  5053. symcode='[ABCDGIRSTW]'
  5054. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5055. 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'"
  5056. fi
  5057. ;;
  5058. irix* | nonstopux*)
  5059. symcode='[BCDEGRST]'
  5060. ;;
  5061. osf*)
  5062. symcode='[BCDEGQRST]'
  5063. ;;
  5064. solaris*)
  5065. symcode='[BDRT]'
  5066. ;;
  5067. sco3.2v5*)
  5068. symcode='[DT]'
  5069. ;;
  5070. sysv4.2uw2*)
  5071. symcode='[DT]'
  5072. ;;
  5073. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5074. symcode='[ABDT]'
  5075. ;;
  5076. sysv4)
  5077. symcode='[DFNSTU]'
  5078. ;;
  5079. esac
  5080. # Handle CRLF in mingw tool chain
  5081. opt_cr=
  5082. case $build_os in
  5083. mingw*)
  5084. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5085. ;;
  5086. esac
  5087. # If we're using GNU nm, then use its standard symbol codes.
  5088. case `$NM -V 2>&1` in
  5089. *GNU* | *'with BFD'*)
  5090. symcode='[ABCDGIRSTW]' ;;
  5091. esac
  5092. # Try without a prefix undercore, then with it.
  5093. for ac_symprfx in "" "_"; do
  5094. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5095. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5096. # Write the raw and C identifiers.
  5097. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5098. # Check to see that the pipe works correctly.
  5099. pipe_works=no
  5100. rm -f conftest*
  5101. cat > conftest.$ac_ext <<EOF
  5102. #ifdef __cplusplus
  5103. extern "C" {
  5104. #endif
  5105. char nm_test_var;
  5106. void nm_test_func(){}
  5107. #ifdef __cplusplus
  5108. }
  5109. #endif
  5110. int main(){nm_test_var='a';nm_test_func();return(0);}
  5111. EOF
  5112. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5113. (eval $ac_compile) 2>&5
  5114. ac_status=$?
  5115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5116. (exit $ac_status); }; then
  5117. # Now try to grab the symbols.
  5118. nlist=conftest.nm
  5119. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5120. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5121. ac_status=$?
  5122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5123. (exit $ac_status); } && test -s "$nlist"; then
  5124. # Try sorting and uniquifying the output.
  5125. if sort "$nlist" | uniq > "$nlist"T; then
  5126. mv -f "$nlist"T "$nlist"
  5127. else
  5128. rm -f "$nlist"T
  5129. fi
  5130. # Make sure that we snagged all the symbols we need.
  5131. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5132. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5133. cat <<EOF > conftest.$ac_ext
  5134. #ifdef __cplusplus
  5135. extern "C" {
  5136. #endif
  5137. EOF
  5138. # Now generate the symbol file.
  5139. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5140. cat <<EOF >> conftest.$ac_ext
  5141. #if defined (__STDC__) && __STDC__
  5142. # define lt_ptr_t void *
  5143. #else
  5144. # define lt_ptr_t char *
  5145. # define const
  5146. #endif
  5147. /* The mapping between symbol names and symbols. */
  5148. const struct {
  5149. const char *name;
  5150. lt_ptr_t address;
  5151. }
  5152. lt_preloaded_symbols[] =
  5153. {
  5154. EOF
  5155. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5156. cat <<\EOF >> conftest.$ac_ext
  5157. {0, (lt_ptr_t) 0}
  5158. };
  5159. #ifdef __cplusplus
  5160. }
  5161. #endif
  5162. EOF
  5163. # Now try linking the two files.
  5164. mv conftest.$ac_objext conftstm.$ac_objext
  5165. lt_save_LIBS="$LIBS"
  5166. lt_save_CFLAGS="$CFLAGS"
  5167. LIBS="conftstm.$ac_objext"
  5168. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5169. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5170. (eval $ac_link) 2>&5
  5171. ac_status=$?
  5172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5173. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5174. pipe_works=yes
  5175. fi
  5176. LIBS="$lt_save_LIBS"
  5177. CFLAGS="$lt_save_CFLAGS"
  5178. else
  5179. echo "cannot find nm_test_func in $nlist" >&5
  5180. fi
  5181. else
  5182. echo "cannot find nm_test_var in $nlist" >&5
  5183. fi
  5184. else
  5185. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5186. fi
  5187. else
  5188. echo "$progname: failed program was:" >&5
  5189. cat conftest.$ac_ext >&5
  5190. fi
  5191. rm -f conftest* conftst*
  5192. # Do not use the global_symbol_pipe unless it works.
  5193. if test "$pipe_works" = yes; then
  5194. break
  5195. else
  5196. lt_cv_sys_global_symbol_pipe=
  5197. fi
  5198. done
  5199. fi
  5200. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5201. lt_cv_sys_global_symbol_to_cdecl=
  5202. fi
  5203. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5204. echo "$as_me:$LINENO: result: failed" >&5
  5205. echo "${ECHO_T}failed" >&6
  5206. else
  5207. echo "$as_me:$LINENO: result: ok" >&5
  5208. echo "${ECHO_T}ok" >&6
  5209. fi
  5210. echo "$as_me:$LINENO: checking for objdir" >&5
  5211. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  5212. if test "${lt_cv_objdir+set}" = set; then
  5213. echo $ECHO_N "(cached) $ECHO_C" >&6
  5214. else
  5215. rm -f .libs 2>/dev/null
  5216. mkdir .libs 2>/dev/null
  5217. if test -d .libs; then
  5218. lt_cv_objdir=.libs
  5219. else
  5220. # MS-DOS does not allow filenames that begin with a dot.
  5221. lt_cv_objdir=_libs
  5222. fi
  5223. rmdir .libs 2>/dev/null
  5224. fi
  5225. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5226. echo "${ECHO_T}$lt_cv_objdir" >&6
  5227. objdir=$lt_cv_objdir
  5228. case $host_os in
  5229. aix3*)
  5230. # AIX sometimes has problems with the GCC collect2 program. For some
  5231. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5232. # vanish in a puff of smoke.
  5233. if test "X${COLLECT_NAMES+set}" != Xset; then
  5234. COLLECT_NAMES=
  5235. export COLLECT_NAMES
  5236. fi
  5237. ;;
  5238. esac
  5239. # Sed substitution that helps us do robust quoting. It backslashifies
  5240. # metacharacters that are still active within double-quoted strings.
  5241. Xsed='sed -e 1s/^X//'
  5242. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5243. # Same as above, but do not quote variable references.
  5244. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5245. # Sed substitution to delay expansion of an escaped shell variable in a
  5246. # double_quote_subst'ed string.
  5247. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5248. # Sed substitution to avoid accidental globbing in evaled expressions
  5249. no_glob_subst='s/\*/\\\*/g'
  5250. # Constants:
  5251. rm="rm -f"
  5252. # Global variables:
  5253. default_ofile=libtool
  5254. can_build_shared=yes
  5255. # All known linkers require a `.a' archive for static linking (except MSVC,
  5256. # which needs '.lib').
  5257. libext=a
  5258. ltmain="$ac_aux_dir/ltmain.sh"
  5259. ofile="$default_ofile"
  5260. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5261. if test -n "$ac_tool_prefix"; then
  5262. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5263. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5264. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5265. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5266. if test "${ac_cv_prog_AR+set}" = set; then
  5267. echo $ECHO_N "(cached) $ECHO_C" >&6
  5268. else
  5269. if test -n "$AR"; then
  5270. ac_cv_prog_AR="$AR" # Let the user override the test.
  5271. else
  5272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5273. for as_dir in $PATH
  5274. do
  5275. IFS=$as_save_IFS
  5276. test -z "$as_dir" && as_dir=.
  5277. for ac_exec_ext in '' $ac_executable_extensions; do
  5278. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5279. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5280. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5281. break 2
  5282. fi
  5283. done
  5284. done
  5285. fi
  5286. fi
  5287. AR=$ac_cv_prog_AR
  5288. if test -n "$AR"; then
  5289. echo "$as_me:$LINENO: result: $AR" >&5
  5290. echo "${ECHO_T}$AR" >&6
  5291. else
  5292. echo "$as_me:$LINENO: result: no" >&5
  5293. echo "${ECHO_T}no" >&6
  5294. fi
  5295. fi
  5296. if test -z "$ac_cv_prog_AR"; then
  5297. ac_ct_AR=$AR
  5298. # Extract the first word of "ar", so it can be a program name with args.
  5299. set dummy ar; ac_word=$2
  5300. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5301. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5302. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5303. echo $ECHO_N "(cached) $ECHO_C" >&6
  5304. else
  5305. if test -n "$ac_ct_AR"; then
  5306. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5307. else
  5308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5309. for as_dir in $PATH
  5310. do
  5311. IFS=$as_save_IFS
  5312. test -z "$as_dir" && as_dir=.
  5313. for ac_exec_ext in '' $ac_executable_extensions; do
  5314. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5315. ac_cv_prog_ac_ct_AR="ar"
  5316. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5317. break 2
  5318. fi
  5319. done
  5320. done
  5321. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  5322. fi
  5323. fi
  5324. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5325. if test -n "$ac_ct_AR"; then
  5326. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5327. echo "${ECHO_T}$ac_ct_AR" >&6
  5328. else
  5329. echo "$as_me:$LINENO: result: no" >&5
  5330. echo "${ECHO_T}no" >&6
  5331. fi
  5332. AR=$ac_ct_AR
  5333. else
  5334. AR="$ac_cv_prog_AR"
  5335. fi
  5336. if test -n "$ac_tool_prefix"; then
  5337. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5338. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5339. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5340. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5341. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5342. echo $ECHO_N "(cached) $ECHO_C" >&6
  5343. else
  5344. if test -n "$RANLIB"; then
  5345. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5346. else
  5347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5348. for as_dir in $PATH
  5349. do
  5350. IFS=$as_save_IFS
  5351. test -z "$as_dir" && as_dir=.
  5352. for ac_exec_ext in '' $ac_executable_extensions; do
  5353. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5354. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5355. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5356. break 2
  5357. fi
  5358. done
  5359. done
  5360. fi
  5361. fi
  5362. RANLIB=$ac_cv_prog_RANLIB
  5363. if test -n "$RANLIB"; then
  5364. echo "$as_me:$LINENO: result: $RANLIB" >&5
  5365. echo "${ECHO_T}$RANLIB" >&6
  5366. else
  5367. echo "$as_me:$LINENO: result: no" >&5
  5368. echo "${ECHO_T}no" >&6
  5369. fi
  5370. fi
  5371. if test -z "$ac_cv_prog_RANLIB"; then
  5372. ac_ct_RANLIB=$RANLIB
  5373. # Extract the first word of "ranlib", so it can be a program name with args.
  5374. set dummy ranlib; ac_word=$2
  5375. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5376. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5377. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5378. echo $ECHO_N "(cached) $ECHO_C" >&6
  5379. else
  5380. if test -n "$ac_ct_RANLIB"; then
  5381. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5382. else
  5383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5384. for as_dir in $PATH
  5385. do
  5386. IFS=$as_save_IFS
  5387. test -z "$as_dir" && as_dir=.
  5388. for ac_exec_ext in '' $ac_executable_extensions; do
  5389. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5390. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5391. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5392. break 2
  5393. fi
  5394. done
  5395. done
  5396. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  5397. fi
  5398. fi
  5399. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5400. if test -n "$ac_ct_RANLIB"; then
  5401. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5402. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  5403. else
  5404. echo "$as_me:$LINENO: result: no" >&5
  5405. echo "${ECHO_T}no" >&6
  5406. fi
  5407. RANLIB=$ac_ct_RANLIB
  5408. else
  5409. RANLIB="$ac_cv_prog_RANLIB"
  5410. fi
  5411. if test -n "$ac_tool_prefix"; then
  5412. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5413. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5414. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5415. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5416. if test "${ac_cv_prog_STRIP+set}" = set; then
  5417. echo $ECHO_N "(cached) $ECHO_C" >&6
  5418. else
  5419. if test -n "$STRIP"; then
  5420. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5421. else
  5422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5423. for as_dir in $PATH
  5424. do
  5425. IFS=$as_save_IFS
  5426. test -z "$as_dir" && as_dir=.
  5427. for ac_exec_ext in '' $ac_executable_extensions; do
  5428. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5429. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5430. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5431. break 2
  5432. fi
  5433. done
  5434. done
  5435. fi
  5436. fi
  5437. STRIP=$ac_cv_prog_STRIP
  5438. if test -n "$STRIP"; then
  5439. echo "$as_me:$LINENO: result: $STRIP" >&5
  5440. echo "${ECHO_T}$STRIP" >&6
  5441. else
  5442. echo "$as_me:$LINENO: result: no" >&5
  5443. echo "${ECHO_T}no" >&6
  5444. fi
  5445. fi
  5446. if test -z "$ac_cv_prog_STRIP"; then
  5447. ac_ct_STRIP=$STRIP
  5448. # Extract the first word of "strip", so it can be a program name with args.
  5449. set dummy strip; ac_word=$2
  5450. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5451. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5452. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5453. echo $ECHO_N "(cached) $ECHO_C" >&6
  5454. else
  5455. if test -n "$ac_ct_STRIP"; then
  5456. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5457. else
  5458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5459. for as_dir in $PATH
  5460. do
  5461. IFS=$as_save_IFS
  5462. test -z "$as_dir" && as_dir=.
  5463. for ac_exec_ext in '' $ac_executable_extensions; do
  5464. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5465. ac_cv_prog_ac_ct_STRIP="strip"
  5466. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5467. break 2
  5468. fi
  5469. done
  5470. done
  5471. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  5472. fi
  5473. fi
  5474. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5475. if test -n "$ac_ct_STRIP"; then
  5476. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5477. echo "${ECHO_T}$ac_ct_STRIP" >&6
  5478. else
  5479. echo "$as_me:$LINENO: result: no" >&5
  5480. echo "${ECHO_T}no" >&6
  5481. fi
  5482. STRIP=$ac_ct_STRIP
  5483. else
  5484. STRIP="$ac_cv_prog_STRIP"
  5485. fi
  5486. old_CC="$CC"
  5487. old_CFLAGS="$CFLAGS"
  5488. # Set sane defaults for various variables
  5489. test -z "$AR" && AR=ar
  5490. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5491. test -z "$AS" && AS=as
  5492. test -z "$CC" && CC=cc
  5493. test -z "$LTCC" && LTCC=$CC
  5494. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  5495. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5496. test -z "$LD" && LD=ld
  5497. test -z "$LN_S" && LN_S="ln -s"
  5498. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5499. test -z "$NM" && NM=nm
  5500. test -z "$SED" && SED=sed
  5501. test -z "$OBJDUMP" && OBJDUMP=objdump
  5502. test -z "$RANLIB" && RANLIB=:
  5503. test -z "$STRIP" && STRIP=:
  5504. test -z "$ac_objext" && ac_objext=o
  5505. # Determine commands to create old-style static archives.
  5506. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  5507. old_postinstall_cmds='chmod 644 $oldlib'
  5508. old_postuninstall_cmds=
  5509. if test -n "$RANLIB"; then
  5510. case $host_os in
  5511. openbsd*)
  5512. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5513. ;;
  5514. *)
  5515. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5516. ;;
  5517. esac
  5518. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5519. fi
  5520. for cc_temp in $compiler""; do
  5521. case $cc_temp in
  5522. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5523. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5524. \-*) ;;
  5525. *) break;;
  5526. esac
  5527. done
  5528. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5529. # Only perform the check for file, if the check method requires it
  5530. case $deplibs_check_method in
  5531. file_magic*)
  5532. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5533. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5534. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  5535. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5536. echo $ECHO_N "(cached) $ECHO_C" >&6
  5537. else
  5538. case $MAGIC_CMD in
  5539. [\\/*] | ?:[\\/]*)
  5540. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5541. ;;
  5542. *)
  5543. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5544. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5545. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5546. for ac_dir in $ac_dummy; do
  5547. IFS="$lt_save_ifs"
  5548. test -z "$ac_dir" && ac_dir=.
  5549. if test -f $ac_dir/${ac_tool_prefix}file; then
  5550. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5551. if test -n "$file_magic_test_file"; then
  5552. case $deplibs_check_method in
  5553. "file_magic "*)
  5554. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5555. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5556. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5557. $EGREP "$file_magic_regex" > /dev/null; then
  5558. :
  5559. else
  5560. cat <<EOF 1>&2
  5561. *** Warning: the command libtool uses to detect shared libraries,
  5562. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5563. *** The result is that libtool may fail to recognize shared libraries
  5564. *** as such. This will affect the creation of libtool libraries that
  5565. *** depend on shared libraries, but programs linked with such libtool
  5566. *** libraries will work regardless of this problem. Nevertheless, you
  5567. *** may want to report the problem to your system manager and/or to
  5568. *** bug-libtool@gnu.org
  5569. EOF
  5570. fi ;;
  5571. esac
  5572. fi
  5573. break
  5574. fi
  5575. done
  5576. IFS="$lt_save_ifs"
  5577. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5578. ;;
  5579. esac
  5580. fi
  5581. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5582. if test -n "$MAGIC_CMD"; then
  5583. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5584. echo "${ECHO_T}$MAGIC_CMD" >&6
  5585. else
  5586. echo "$as_me:$LINENO: result: no" >&5
  5587. echo "${ECHO_T}no" >&6
  5588. fi
  5589. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5590. if test -n "$ac_tool_prefix"; then
  5591. echo "$as_me:$LINENO: checking for file" >&5
  5592. echo $ECHO_N "checking for file... $ECHO_C" >&6
  5593. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5594. echo $ECHO_N "(cached) $ECHO_C" >&6
  5595. else
  5596. case $MAGIC_CMD in
  5597. [\\/*] | ?:[\\/]*)
  5598. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5599. ;;
  5600. *)
  5601. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5602. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5603. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5604. for ac_dir in $ac_dummy; do
  5605. IFS="$lt_save_ifs"
  5606. test -z "$ac_dir" && ac_dir=.
  5607. if test -f $ac_dir/file; then
  5608. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5609. if test -n "$file_magic_test_file"; then
  5610. case $deplibs_check_method in
  5611. "file_magic "*)
  5612. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5613. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5614. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5615. $EGREP "$file_magic_regex" > /dev/null; then
  5616. :
  5617. else
  5618. cat <<EOF 1>&2
  5619. *** Warning: the command libtool uses to detect shared libraries,
  5620. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5621. *** The result is that libtool may fail to recognize shared libraries
  5622. *** as such. This will affect the creation of libtool libraries that
  5623. *** depend on shared libraries, but programs linked with such libtool
  5624. *** libraries will work regardless of this problem. Nevertheless, you
  5625. *** may want to report the problem to your system manager and/or to
  5626. *** bug-libtool@gnu.org
  5627. EOF
  5628. fi ;;
  5629. esac
  5630. fi
  5631. break
  5632. fi
  5633. done
  5634. IFS="$lt_save_ifs"
  5635. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5636. ;;
  5637. esac
  5638. fi
  5639. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5640. if test -n "$MAGIC_CMD"; then
  5641. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5642. echo "${ECHO_T}$MAGIC_CMD" >&6
  5643. else
  5644. echo "$as_me:$LINENO: result: no" >&5
  5645. echo "${ECHO_T}no" >&6
  5646. fi
  5647. else
  5648. MAGIC_CMD=:
  5649. fi
  5650. fi
  5651. fi
  5652. ;;
  5653. esac
  5654. enable_dlopen=no
  5655. enable_win32_dll=no
  5656. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5657. if test "${enable_libtool_lock+set}" = set; then
  5658. enableval="$enable_libtool_lock"
  5659. fi;
  5660. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5661. # Check whether --with-pic or --without-pic was given.
  5662. if test "${with_pic+set}" = set; then
  5663. withval="$with_pic"
  5664. pic_mode="$withval"
  5665. else
  5666. pic_mode=default
  5667. fi;
  5668. test -z "$pic_mode" && pic_mode=default
  5669. # Use C for the default configuration in the libtool script
  5670. tagname=
  5671. lt_save_CC="$CC"
  5672. ac_ext=c
  5673. ac_cpp='$CPP $CPPFLAGS'
  5674. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5675. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5676. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5677. # Source file extension for C test sources.
  5678. ac_ext=c
  5679. # Object file extension for compiled C test sources.
  5680. objext=o
  5681. objext=$objext
  5682. # Code to be used in simple compile tests
  5683. lt_simple_compile_test_code="int some_variable = 0;\n"
  5684. # Code to be used in simple link tests
  5685. lt_simple_link_test_code='int main(){return(0);}\n'
  5686. # If no C compiler was specified, use CC.
  5687. LTCC=${LTCC-"$CC"}
  5688. # If no C compiler flags were specified, use CFLAGS.
  5689. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5690. # Allow CC to be a program name with arguments.
  5691. compiler=$CC
  5692. # save warnings/boilerplate of simple test code
  5693. ac_outfile=conftest.$ac_objext
  5694. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5695. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5696. _lt_compiler_boilerplate=`cat conftest.err`
  5697. $rm conftest*
  5698. ac_outfile=conftest.$ac_objext
  5699. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5700. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5701. _lt_linker_boilerplate=`cat conftest.err`
  5702. $rm conftest*
  5703. lt_prog_compiler_no_builtin_flag=
  5704. if test "$GCC" = yes; then
  5705. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5706. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5707. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5708. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5709. echo $ECHO_N "(cached) $ECHO_C" >&6
  5710. else
  5711. lt_cv_prog_compiler_rtti_exceptions=no
  5712. ac_outfile=conftest.$ac_objext
  5713. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5714. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5715. # Insert the option either (1) after the last *FLAGS variable, or
  5716. # (2) before a word containing "conftest.", or (3) at the end.
  5717. # Note that $ac_compile itself does not contain backslashes and begins
  5718. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5719. # The option is referenced via a variable to avoid confusing sed.
  5720. lt_compile=`echo "$ac_compile" | $SED \
  5721. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5722. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5723. -e 's:$: $lt_compiler_flag:'`
  5724. (eval echo "\"\$as_me:6342: $lt_compile\"" >&5)
  5725. (eval "$lt_compile" 2>conftest.err)
  5726. ac_status=$?
  5727. cat conftest.err >&5
  5728. echo "$as_me:6346: \$? = $ac_status" >&5
  5729. if (exit $ac_status) && test -s "$ac_outfile"; then
  5730. # The compiler can only warn and ignore the option if not recognized
  5731. # So say no if there are warnings other than the usual output.
  5732. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5733. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5734. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5735. lt_cv_prog_compiler_rtti_exceptions=yes
  5736. fi
  5737. fi
  5738. $rm conftest*
  5739. fi
  5740. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5741. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5742. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5743. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5744. else
  5745. :
  5746. fi
  5747. fi
  5748. lt_prog_compiler_wl=
  5749. lt_prog_compiler_pic=
  5750. lt_prog_compiler_static=
  5751. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5752. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5753. if test "$GCC" = yes; then
  5754. lt_prog_compiler_wl='-Wl,'
  5755. lt_prog_compiler_static='-static'
  5756. case $host_os in
  5757. aix*)
  5758. # All AIX code is PIC.
  5759. if test "$host_cpu" = ia64; then
  5760. # AIX 5 now supports IA64 processor
  5761. lt_prog_compiler_static='-Bstatic'
  5762. fi
  5763. ;;
  5764. amigaos*)
  5765. # FIXME: we need at least 68020 code to build shared libraries, but
  5766. # adding the `-m68020' flag to GCC prevents building anything better,
  5767. # like `-m68040'.
  5768. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5769. ;;
  5770. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5771. # PIC is the default for these OSes.
  5772. ;;
  5773. mingw* | pw32* | os2*)
  5774. # This hack is so that the source file can tell whether it is being
  5775. # built for inclusion in a dll (and should export symbols for example).
  5776. lt_prog_compiler_pic='-DDLL_EXPORT'
  5777. ;;
  5778. darwin* | rhapsody*)
  5779. # PIC is the default on this platform
  5780. # Common symbols not allowed in MH_DYLIB files
  5781. lt_prog_compiler_pic='-fno-common'
  5782. ;;
  5783. interix3*)
  5784. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5785. # Instead, we relocate shared libraries at runtime.
  5786. ;;
  5787. msdosdjgpp*)
  5788. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5789. # on systems that don't support them.
  5790. lt_prog_compiler_can_build_shared=no
  5791. enable_shared=no
  5792. ;;
  5793. sysv4*MP*)
  5794. if test -d /usr/nec; then
  5795. lt_prog_compiler_pic=-Kconform_pic
  5796. fi
  5797. ;;
  5798. hpux*)
  5799. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5800. # not for PA HP-UX.
  5801. case $host_cpu in
  5802. hppa*64*|ia64*)
  5803. # +Z the default
  5804. ;;
  5805. *)
  5806. lt_prog_compiler_pic='-fPIC'
  5807. ;;
  5808. esac
  5809. ;;
  5810. *)
  5811. lt_prog_compiler_pic='-fPIC'
  5812. ;;
  5813. esac
  5814. else
  5815. # PORTME Check for flag to pass linker flags through the system compiler.
  5816. case $host_os in
  5817. aix*)
  5818. lt_prog_compiler_wl='-Wl,'
  5819. if test "$host_cpu" = ia64; then
  5820. # AIX 5 now supports IA64 processor
  5821. lt_prog_compiler_static='-Bstatic'
  5822. else
  5823. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  5824. fi
  5825. ;;
  5826. darwin*)
  5827. # PIC is the default on this platform
  5828. # Common symbols not allowed in MH_DYLIB files
  5829. case $cc_basename in
  5830. xlc*)
  5831. lt_prog_compiler_pic='-qnocommon'
  5832. lt_prog_compiler_wl='-Wl,'
  5833. ;;
  5834. esac
  5835. ;;
  5836. mingw* | pw32* | os2*)
  5837. # This hack is so that the source file can tell whether it is being
  5838. # built for inclusion in a dll (and should export symbols for example).
  5839. lt_prog_compiler_pic='-DDLL_EXPORT'
  5840. ;;
  5841. hpux9* | hpux10* | hpux11*)
  5842. lt_prog_compiler_wl='-Wl,'
  5843. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5844. # not for PA HP-UX.
  5845. case $host_cpu in
  5846. hppa*64*|ia64*)
  5847. # +Z the default
  5848. ;;
  5849. *)
  5850. lt_prog_compiler_pic='+Z'
  5851. ;;
  5852. esac
  5853. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5854. lt_prog_compiler_static='${wl}-a ${wl}archive'
  5855. ;;
  5856. irix5* | irix6* | nonstopux*)
  5857. lt_prog_compiler_wl='-Wl,'
  5858. # PIC (with -KPIC) is the default.
  5859. lt_prog_compiler_static='-non_shared'
  5860. ;;
  5861. newsos6)
  5862. lt_prog_compiler_pic='-KPIC'
  5863. lt_prog_compiler_static='-Bstatic'
  5864. ;;
  5865. linux*)
  5866. case $cc_basename in
  5867. icc* | ecc*)
  5868. lt_prog_compiler_wl='-Wl,'
  5869. lt_prog_compiler_pic='-KPIC'
  5870. lt_prog_compiler_static='-static'
  5871. ;;
  5872. pgcc* | pgf77* | pgf90* | pgf95*)
  5873. # Portland Group compilers (*not* the Pentium gcc compiler,
  5874. # which looks to be a dead project)
  5875. lt_prog_compiler_wl='-Wl,'
  5876. lt_prog_compiler_pic='-fpic'
  5877. lt_prog_compiler_static='-Bstatic'
  5878. ;;
  5879. ccc*)
  5880. lt_prog_compiler_wl='-Wl,'
  5881. # All Alpha code is PIC.
  5882. lt_prog_compiler_static='-non_shared'
  5883. ;;
  5884. esac
  5885. ;;
  5886. osf3* | osf4* | osf5*)
  5887. lt_prog_compiler_wl='-Wl,'
  5888. # All OSF/1 code is PIC.
  5889. lt_prog_compiler_static='-non_shared'
  5890. ;;
  5891. solaris*)
  5892. lt_prog_compiler_pic='-KPIC'
  5893. lt_prog_compiler_static='-Bstatic'
  5894. case $cc_basename in
  5895. f77* | f90* | f95*)
  5896. lt_prog_compiler_wl='-Qoption ld ';;
  5897. *)
  5898. lt_prog_compiler_wl='-Wl,';;
  5899. esac
  5900. ;;
  5901. sunos4*)
  5902. lt_prog_compiler_wl='-Qoption ld '
  5903. lt_prog_compiler_pic='-PIC'
  5904. lt_prog_compiler_static='-Bstatic'
  5905. ;;
  5906. sysv4 | sysv4.2uw2* | sysv4.3*)
  5907. lt_prog_compiler_wl='-Wl,'
  5908. lt_prog_compiler_pic='-KPIC'
  5909. lt_prog_compiler_static='-Bstatic'
  5910. ;;
  5911. sysv4*MP*)
  5912. if test -d /usr/nec ;then
  5913. lt_prog_compiler_pic='-Kconform_pic'
  5914. lt_prog_compiler_static='-Bstatic'
  5915. fi
  5916. ;;
  5917. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5918. lt_prog_compiler_wl='-Wl,'
  5919. lt_prog_compiler_pic='-KPIC'
  5920. lt_prog_compiler_static='-Bstatic'
  5921. ;;
  5922. unicos*)
  5923. lt_prog_compiler_wl='-Wl,'
  5924. lt_prog_compiler_can_build_shared=no
  5925. ;;
  5926. uts4*)
  5927. lt_prog_compiler_pic='-pic'
  5928. lt_prog_compiler_static='-Bstatic'
  5929. ;;
  5930. *)
  5931. lt_prog_compiler_can_build_shared=no
  5932. ;;
  5933. esac
  5934. fi
  5935. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  5936. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  5937. #
  5938. # Check to make sure the PIC flag actually works.
  5939. #
  5940. if test -n "$lt_prog_compiler_pic"; then
  5941. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  5942. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  5943. if test "${lt_prog_compiler_pic_works+set}" = set; then
  5944. echo $ECHO_N "(cached) $ECHO_C" >&6
  5945. else
  5946. lt_prog_compiler_pic_works=no
  5947. ac_outfile=conftest.$ac_objext
  5948. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5949. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  5950. # Insert the option either (1) after the last *FLAGS variable, or
  5951. # (2) before a word containing "conftest.", or (3) at the end.
  5952. # Note that $ac_compile itself does not contain backslashes and begins
  5953. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5954. # The option is referenced via a variable to avoid confusing sed.
  5955. lt_compile=`echo "$ac_compile" | $SED \
  5956. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5957. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5958. -e 's:$: $lt_compiler_flag:'`
  5959. (eval echo "\"\$as_me:6610: $lt_compile\"" >&5)
  5960. (eval "$lt_compile" 2>conftest.err)
  5961. ac_status=$?
  5962. cat conftest.err >&5
  5963. echo "$as_me:6614: \$? = $ac_status" >&5
  5964. if (exit $ac_status) && test -s "$ac_outfile"; then
  5965. # The compiler can only warn and ignore the option if not recognized
  5966. # So say no if there are warnings other than the usual output.
  5967. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5968. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5969. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5970. lt_prog_compiler_pic_works=yes
  5971. fi
  5972. fi
  5973. $rm conftest*
  5974. fi
  5975. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  5976. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  5977. if test x"$lt_prog_compiler_pic_works" = xyes; then
  5978. case $lt_prog_compiler_pic in
  5979. "" | " "*) ;;
  5980. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  5981. esac
  5982. else
  5983. lt_prog_compiler_pic=
  5984. lt_prog_compiler_can_build_shared=no
  5985. fi
  5986. fi
  5987. case $host_os in
  5988. # For platforms which do not support PIC, -DPIC is meaningless:
  5989. *djgpp*)
  5990. lt_prog_compiler_pic=
  5991. ;;
  5992. *)
  5993. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  5994. ;;
  5995. esac
  5996. #
  5997. # Check to make sure the static flag actually works.
  5998. #
  5999. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6000. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6001. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  6002. if test "${lt_prog_compiler_static_works+set}" = set; then
  6003. echo $ECHO_N "(cached) $ECHO_C" >&6
  6004. else
  6005. lt_prog_compiler_static_works=no
  6006. save_LDFLAGS="$LDFLAGS"
  6007. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6008. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6009. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6010. # The linker can only warn and ignore the option if not recognized
  6011. # So say no if there are warnings
  6012. if test -s conftest.err; then
  6013. # Append any errors to the config.log.
  6014. cat conftest.err 1>&5
  6015. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6016. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6017. if diff conftest.exp conftest.er2 >/dev/null; then
  6018. lt_prog_compiler_static_works=yes
  6019. fi
  6020. else
  6021. lt_prog_compiler_static_works=yes
  6022. fi
  6023. fi
  6024. $rm conftest*
  6025. LDFLAGS="$save_LDFLAGS"
  6026. fi
  6027. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6028. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  6029. if test x"$lt_prog_compiler_static_works" = xyes; then
  6030. :
  6031. else
  6032. lt_prog_compiler_static=
  6033. fi
  6034. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6035. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  6036. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6037. echo $ECHO_N "(cached) $ECHO_C" >&6
  6038. else
  6039. lt_cv_prog_compiler_c_o=no
  6040. $rm -r conftest 2>/dev/null
  6041. mkdir conftest
  6042. cd conftest
  6043. mkdir out
  6044. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6045. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6046. # Insert the option either (1) after the last *FLAGS variable, or
  6047. # (2) before a word containing "conftest.", or (3) at the end.
  6048. # Note that $ac_compile itself does not contain backslashes and begins
  6049. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6050. lt_compile=`echo "$ac_compile" | $SED \
  6051. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6052. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6053. -e 's:$: $lt_compiler_flag:'`
  6054. (eval echo "\"\$as_me:6714: $lt_compile\"" >&5)
  6055. (eval "$lt_compile" 2>out/conftest.err)
  6056. ac_status=$?
  6057. cat out/conftest.err >&5
  6058. echo "$as_me:6718: \$? = $ac_status" >&5
  6059. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6060. then
  6061. # The compiler can only warn and ignore the option if not recognized
  6062. # So say no if there are warnings
  6063. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6064. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6065. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6066. lt_cv_prog_compiler_c_o=yes
  6067. fi
  6068. fi
  6069. chmod u+w . 2>&5
  6070. $rm conftest*
  6071. # SGI C++ compiler will create directory out/ii_files/ for
  6072. # template instantiation
  6073. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6074. $rm out/* && rmdir out
  6075. cd ..
  6076. rmdir conftest
  6077. $rm conftest*
  6078. fi
  6079. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6080. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  6081. hard_links="nottested"
  6082. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6083. # do not overwrite the value of need_locks provided by the user
  6084. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6085. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  6086. hard_links=yes
  6087. $rm conftest*
  6088. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6089. touch conftest.a
  6090. ln conftest.a conftest.b 2>&5 || hard_links=no
  6091. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6092. echo "$as_me:$LINENO: result: $hard_links" >&5
  6093. echo "${ECHO_T}$hard_links" >&6
  6094. if test "$hard_links" = no; then
  6095. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6096. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6097. need_locks=warn
  6098. fi
  6099. else
  6100. need_locks=no
  6101. fi
  6102. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6103. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  6104. runpath_var=
  6105. allow_undefined_flag=
  6106. enable_shared_with_static_runtimes=no
  6107. archive_cmds=
  6108. archive_expsym_cmds=
  6109. old_archive_From_new_cmds=
  6110. old_archive_from_expsyms_cmds=
  6111. export_dynamic_flag_spec=
  6112. whole_archive_flag_spec=
  6113. thread_safe_flag_spec=
  6114. hardcode_libdir_flag_spec=
  6115. hardcode_libdir_flag_spec_ld=
  6116. hardcode_libdir_separator=
  6117. hardcode_direct=no
  6118. hardcode_minus_L=no
  6119. hardcode_shlibpath_var=unsupported
  6120. link_all_deplibs=unknown
  6121. hardcode_automatic=no
  6122. module_cmds=
  6123. module_expsym_cmds=
  6124. always_export_symbols=no
  6125. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6126. # include_expsyms should be a list of space-separated symbols to be *always*
  6127. # included in the symbol list
  6128. include_expsyms=
  6129. # exclude_expsyms can be an extended regexp of symbols to exclude
  6130. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6131. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6132. # as well as any symbol that contains `d'.
  6133. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6134. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6135. # platforms (ab)use it in PIC code, but their linkers get confused if
  6136. # the symbol is explicitly referenced. Since portable code cannot
  6137. # rely on this symbol name, it's probably fine to never include it in
  6138. # preloaded symbol tables.
  6139. extract_expsyms_cmds=
  6140. # Just being paranoid about ensuring that cc_basename is set.
  6141. for cc_temp in $compiler""; do
  6142. case $cc_temp in
  6143. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6144. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6145. \-*) ;;
  6146. *) break;;
  6147. esac
  6148. done
  6149. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6150. case $host_os in
  6151. cygwin* | mingw* | pw32*)
  6152. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6153. # When not using gcc, we currently assume that we are using
  6154. # Microsoft Visual C++.
  6155. if test "$GCC" != yes; then
  6156. with_gnu_ld=no
  6157. fi
  6158. ;;
  6159. interix*)
  6160. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6161. with_gnu_ld=yes
  6162. ;;
  6163. openbsd*)
  6164. with_gnu_ld=no
  6165. ;;
  6166. esac
  6167. ld_shlibs=yes
  6168. if test "$with_gnu_ld" = yes; then
  6169. # If archive_cmds runs LD, not CC, wlarc should be empty
  6170. wlarc='${wl}'
  6171. # Set some defaults for GNU ld with shared library support. These
  6172. # are reset later if shared libraries are not supported. Putting them
  6173. # here allows them to be overridden if necessary.
  6174. runpath_var=LD_RUN_PATH
  6175. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6176. export_dynamic_flag_spec='${wl}--export-dynamic'
  6177. # ancient GNU ld didn't support --whole-archive et. al.
  6178. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6179. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6180. else
  6181. whole_archive_flag_spec=
  6182. fi
  6183. supports_anon_versioning=no
  6184. case `$LD -v 2>/dev/null` in
  6185. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6186. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6187. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6188. *\ 2.11.*) ;; # other 2.11 versions
  6189. *) supports_anon_versioning=yes ;;
  6190. esac
  6191. # See if GNU ld supports shared libraries.
  6192. case $host_os in
  6193. aix3* | aix4* | aix5*)
  6194. # On AIX/PPC, the GNU linker is very broken
  6195. if test "$host_cpu" != ia64; then
  6196. ld_shlibs=no
  6197. cat <<EOF 1>&2
  6198. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6199. *** to be unable to reliably create shared libraries on AIX.
  6200. *** Therefore, libtool is disabling shared libraries support. If you
  6201. *** really care for shared libraries, you may want to modify your PATH
  6202. *** so that a non-GNU linker is found, and then restart.
  6203. EOF
  6204. fi
  6205. ;;
  6206. amigaos*)
  6207. 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)'
  6208. hardcode_libdir_flag_spec='-L$libdir'
  6209. hardcode_minus_L=yes
  6210. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  6211. # that the semantics of dynamic libraries on AmigaOS, at least up
  6212. # to version 4, is to share data among multiple programs linked
  6213. # with the same dynamic library. Since this doesn't match the
  6214. # behavior of shared libraries on other platforms, we can't use
  6215. # them.
  6216. ld_shlibs=no
  6217. ;;
  6218. beos*)
  6219. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6220. allow_undefined_flag=unsupported
  6221. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6222. # support --undefined. This deserves some investigation. FIXME
  6223. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6224. else
  6225. ld_shlibs=no
  6226. fi
  6227. ;;
  6228. cygwin* | mingw* | pw32*)
  6229. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6230. # as there is no search path for DLLs.
  6231. hardcode_libdir_flag_spec='-L$libdir'
  6232. allow_undefined_flag=unsupported
  6233. always_export_symbols=no
  6234. enable_shared_with_static_runtimes=yes
  6235. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  6236. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6237. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6238. # If the export-symbols file already is a .def file (1st line
  6239. # is EXPORTS), use it as is; otherwise, prepend...
  6240. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6241. cp $export_symbols $output_objdir/$soname.def;
  6242. else
  6243. echo EXPORTS > $output_objdir/$soname.def;
  6244. cat $export_symbols >> $output_objdir/$soname.def;
  6245. fi~
  6246. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6247. else
  6248. ld_shlibs=no
  6249. fi
  6250. ;;
  6251. interix3*)
  6252. hardcode_direct=no
  6253. hardcode_shlibpath_var=no
  6254. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6255. export_dynamic_flag_spec='${wl}-E'
  6256. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6257. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6258. # default) and relocated if they conflict, which is a slow very memory
  6259. # consuming and fragmenting process. To avoid this, we pick a random,
  6260. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6261. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6262. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6263. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6264. ;;
  6265. linux*)
  6266. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6267. tmp_addflag=
  6268. case $cc_basename,$host_cpu in
  6269. pgcc*) # Portland Group C compiler
  6270. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  6271. tmp_addflag=' $pic_flag'
  6272. ;;
  6273. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6274. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  6275. tmp_addflag=' $pic_flag -Mnomain' ;;
  6276. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6277. tmp_addflag=' -i_dynamic' ;;
  6278. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6279. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6280. ifc* | ifort*) # Intel Fortran compiler
  6281. tmp_addflag=' -nofor_main' ;;
  6282. esac
  6283. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6284. if test $supports_anon_versioning = yes; then
  6285. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6286. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6287. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6288. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6289. fi
  6290. link_all_deplibs=no
  6291. else
  6292. ld_shlibs=no
  6293. fi
  6294. ;;
  6295. netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  6296. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6297. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6298. wlarc=
  6299. else
  6300. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6301. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6302. fi
  6303. ;;
  6304. solaris*)
  6305. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6306. ld_shlibs=no
  6307. cat <<EOF 1>&2
  6308. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6309. *** create shared libraries on Solaris systems. Therefore, libtool
  6310. *** is disabling shared libraries support. We urge you to upgrade GNU
  6311. *** binutils to release 2.9.1 or newer. Another option is to modify
  6312. *** your PATH or compiler configuration so that the native linker is
  6313. *** used, and then restart.
  6314. EOF
  6315. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6316. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6317. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6318. else
  6319. ld_shlibs=no
  6320. fi
  6321. ;;
  6322. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6323. case `$LD -v 2>&1` in
  6324. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6325. ld_shlibs=no
  6326. cat <<_LT_EOF 1>&2
  6327. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6328. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6329. *** is disabling shared libraries support. We urge you to upgrade GNU
  6330. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6331. *** your PATH or compiler configuration so that the native linker is
  6332. *** used, and then restart.
  6333. _LT_EOF
  6334. ;;
  6335. *)
  6336. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6337. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  6338. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  6339. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  6340. else
  6341. ld_shlibs=no
  6342. fi
  6343. ;;
  6344. esac
  6345. ;;
  6346. sunos4*)
  6347. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6348. wlarc=
  6349. hardcode_direct=yes
  6350. hardcode_shlibpath_var=no
  6351. ;;
  6352. *)
  6353. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6354. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6355. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6356. else
  6357. ld_shlibs=no
  6358. fi
  6359. ;;
  6360. esac
  6361. if test "$ld_shlibs" = no; then
  6362. runpath_var=
  6363. hardcode_libdir_flag_spec=
  6364. export_dynamic_flag_spec=
  6365. whole_archive_flag_spec=
  6366. fi
  6367. else
  6368. # PORTME fill in a description of your system's linker (not GNU ld)
  6369. case $host_os in
  6370. aix3*)
  6371. allow_undefined_flag=unsupported
  6372. always_export_symbols=yes
  6373. 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'
  6374. # Note: this linker hardcodes the directories in LIBPATH if there
  6375. # are no directories specified by -L.
  6376. hardcode_minus_L=yes
  6377. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6378. # Neither direct hardcoding nor static linking is supported with a
  6379. # broken collect2.
  6380. hardcode_direct=unsupported
  6381. fi
  6382. ;;
  6383. aix4* | aix5*)
  6384. if test "$host_cpu" = ia64; then
  6385. # On IA64, the linker does run time linking by default, so we don't
  6386. # have to do anything special.
  6387. aix_use_runtimelinking=no
  6388. exp_sym_flag='-Bexport'
  6389. no_entry_flag=""
  6390. else
  6391. # If we're using GNU nm, then we don't want the "-C" option.
  6392. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6393. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6394. 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'
  6395. else
  6396. 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'
  6397. fi
  6398. aix_use_runtimelinking=no
  6399. # Test if we are trying to use run time linking or normal
  6400. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6401. # need to do runtime linking.
  6402. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  6403. for ld_flag in $LDFLAGS; do
  6404. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6405. aix_use_runtimelinking=yes
  6406. break
  6407. fi
  6408. done
  6409. ;;
  6410. esac
  6411. exp_sym_flag='-bexport'
  6412. no_entry_flag='-bnoentry'
  6413. fi
  6414. # When large executables or shared objects are built, AIX ld can
  6415. # have problems creating the table of contents. If linking a library
  6416. # or program results in "error TOC overflow" add -mminimal-toc to
  6417. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6418. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6419. archive_cmds=''
  6420. hardcode_direct=yes
  6421. hardcode_libdir_separator=':'
  6422. link_all_deplibs=yes
  6423. if test "$GCC" = yes; then
  6424. case $host_os in aix4.[012]|aix4.[012].*)
  6425. # We only want to do this on AIX 4.2 and lower, the check
  6426. # below for broken collect2 doesn't work under 4.3+
  6427. collect2name=`${CC} -print-prog-name=collect2`
  6428. if test -f "$collect2name" && \
  6429. strings "$collect2name" | grep resolve_lib_name >/dev/null
  6430. then
  6431. # We have reworked collect2
  6432. hardcode_direct=yes
  6433. else
  6434. # We have old collect2
  6435. hardcode_direct=unsupported
  6436. # It fails to find uninstalled libraries when the uninstalled
  6437. # path is not listed in the libpath. Setting hardcode_minus_L
  6438. # to unsupported forces relinking
  6439. hardcode_minus_L=yes
  6440. hardcode_libdir_flag_spec='-L$libdir'
  6441. hardcode_libdir_separator=
  6442. fi
  6443. ;;
  6444. esac
  6445. shared_flag='-shared'
  6446. if test "$aix_use_runtimelinking" = yes; then
  6447. shared_flag="$shared_flag "'${wl}-G'
  6448. fi
  6449. else
  6450. # not using gcc
  6451. if test "$host_cpu" = ia64; then
  6452. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6453. # chokes on -Wl,-G. The following line is correct:
  6454. shared_flag='-G'
  6455. else
  6456. if test "$aix_use_runtimelinking" = yes; then
  6457. shared_flag='${wl}-G'
  6458. else
  6459. shared_flag='${wl}-bM:SRE'
  6460. fi
  6461. fi
  6462. fi
  6463. # It seems that -bexpall does not export symbols beginning with
  6464. # underscore (_), so it is better to generate a list of symbols to export.
  6465. always_export_symbols=yes
  6466. if test "$aix_use_runtimelinking" = yes; then
  6467. # Warning - without using the other runtime loading flags (-brtl),
  6468. # -berok will link without error, but may produce a broken library.
  6469. allow_undefined_flag='-berok'
  6470. # Determine the default libpath from the value encoded in an empty executable.
  6471. cat >conftest.$ac_ext <<_ACEOF
  6472. /* confdefs.h. */
  6473. _ACEOF
  6474. cat confdefs.h >>conftest.$ac_ext
  6475. cat >>conftest.$ac_ext <<_ACEOF
  6476. /* end confdefs.h. */
  6477. int
  6478. main ()
  6479. {
  6480. ;
  6481. return 0;
  6482. }
  6483. _ACEOF
  6484. rm -f conftest.$ac_objext conftest$ac_exeext
  6485. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6486. (eval $ac_link) 2>conftest.er1
  6487. ac_status=$?
  6488. grep -v '^ *+' conftest.er1 >conftest.err
  6489. rm -f conftest.er1
  6490. cat conftest.err >&5
  6491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6492. (exit $ac_status); } &&
  6493. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6494. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6495. (eval $ac_try) 2>&5
  6496. ac_status=$?
  6497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6498. (exit $ac_status); }; } &&
  6499. { ac_try='test -s conftest$ac_exeext'
  6500. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6501. (eval $ac_try) 2>&5
  6502. ac_status=$?
  6503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6504. (exit $ac_status); }; }; then
  6505. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6506. }'`
  6507. # Check for a 64-bit object if we didn't find anything.
  6508. 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; }
  6509. }'`; fi
  6510. else
  6511. echo "$as_me: failed program was:" >&5
  6512. sed 's/^/| /' conftest.$ac_ext >&5
  6513. fi
  6514. rm -f conftest.err conftest.$ac_objext \
  6515. conftest$ac_exeext conftest.$ac_ext
  6516. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6517. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6518. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  6519. else
  6520. if test "$host_cpu" = ia64; then
  6521. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6522. allow_undefined_flag="-z nodefs"
  6523. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  6524. else
  6525. # Determine the default libpath from the value encoded in an empty executable.
  6526. cat >conftest.$ac_ext <<_ACEOF
  6527. /* confdefs.h. */
  6528. _ACEOF
  6529. cat confdefs.h >>conftest.$ac_ext
  6530. cat >>conftest.$ac_ext <<_ACEOF
  6531. /* end confdefs.h. */
  6532. int
  6533. main ()
  6534. {
  6535. ;
  6536. return 0;
  6537. }
  6538. _ACEOF
  6539. rm -f conftest.$ac_objext conftest$ac_exeext
  6540. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6541. (eval $ac_link) 2>conftest.er1
  6542. ac_status=$?
  6543. grep -v '^ *+' conftest.er1 >conftest.err
  6544. rm -f conftest.er1
  6545. cat conftest.err >&5
  6546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6547. (exit $ac_status); } &&
  6548. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6550. (eval $ac_try) 2>&5
  6551. ac_status=$?
  6552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6553. (exit $ac_status); }; } &&
  6554. { ac_try='test -s conftest$ac_exeext'
  6555. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6556. (eval $ac_try) 2>&5
  6557. ac_status=$?
  6558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6559. (exit $ac_status); }; }; then
  6560. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6561. }'`
  6562. # Check for a 64-bit object if we didn't find anything.
  6563. 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; }
  6564. }'`; fi
  6565. else
  6566. echo "$as_me: failed program was:" >&5
  6567. sed 's/^/| /' conftest.$ac_ext >&5
  6568. fi
  6569. rm -f conftest.err conftest.$ac_objext \
  6570. conftest$ac_exeext conftest.$ac_ext
  6571. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6572. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6573. # Warning - without using the other run time loading flags,
  6574. # -berok will link without error, but may produce a broken library.
  6575. no_undefined_flag=' ${wl}-bernotok'
  6576. allow_undefined_flag=' ${wl}-berok'
  6577. # Exported symbols can be pulled into shared objects from archives
  6578. whole_archive_flag_spec='$convenience'
  6579. archive_cmds_need_lc=yes
  6580. # This is similar to how AIX traditionally builds its shared libraries.
  6581. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  6582. fi
  6583. fi
  6584. ;;
  6585. amigaos*)
  6586. 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)'
  6587. hardcode_libdir_flag_spec='-L$libdir'
  6588. hardcode_minus_L=yes
  6589. # see comment about different semantics on the GNU ld section
  6590. ld_shlibs=no
  6591. ;;
  6592. bsdi[45]*)
  6593. export_dynamic_flag_spec=-rdynamic
  6594. ;;
  6595. cygwin* | mingw* | pw32*)
  6596. # When not using gcc, we currently assume that we are using
  6597. # Microsoft Visual C++.
  6598. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6599. # no search path for DLLs.
  6600. hardcode_libdir_flag_spec=' '
  6601. allow_undefined_flag=unsupported
  6602. # Tell ltmain to make .lib files, not .a files.
  6603. libext=lib
  6604. # Tell ltmain to make .dll files, not .so files.
  6605. shrext_cmds=".dll"
  6606. # FIXME: Setting linknames here is a bad hack.
  6607. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6608. # The linker will automatically build a .lib file if we build a DLL.
  6609. old_archive_From_new_cmds='true'
  6610. # FIXME: Should let the user specify the lib program.
  6611. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6612. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6613. enable_shared_with_static_runtimes=yes
  6614. ;;
  6615. darwin* | rhapsody*)
  6616. case $host_os in
  6617. rhapsody* | darwin1.[012])
  6618. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  6619. ;;
  6620. *) # Darwin 1.3 on
  6621. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6622. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6623. else
  6624. case ${MACOSX_DEPLOYMENT_TARGET} in
  6625. 10.[012])
  6626. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6627. ;;
  6628. 10.*)
  6629. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  6630. ;;
  6631. esac
  6632. fi
  6633. ;;
  6634. esac
  6635. archive_cmds_need_lc=no
  6636. hardcode_direct=no
  6637. hardcode_automatic=yes
  6638. hardcode_shlibpath_var=unsupported
  6639. whole_archive_flag_spec=''
  6640. link_all_deplibs=yes
  6641. if test "$GCC" = yes ; then
  6642. output_verbose_link_cmd='echo'
  6643. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6644. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6645. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6646. 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}'
  6647. 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}'
  6648. else
  6649. case $cc_basename in
  6650. xlc*)
  6651. output_verbose_link_cmd='echo'
  6652. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6653. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6654. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6655. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6656. 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}'
  6657. ;;
  6658. *)
  6659. ld_shlibs=no
  6660. ;;
  6661. esac
  6662. fi
  6663. ;;
  6664. dgux*)
  6665. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6666. hardcode_libdir_flag_spec='-L$libdir'
  6667. hardcode_shlibpath_var=no
  6668. ;;
  6669. freebsd1*)
  6670. ld_shlibs=no
  6671. ;;
  6672. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6673. # support. Future versions do this automatically, but an explicit c++rt0.o
  6674. # does not break anything, and helps significantly (at the cost of a little
  6675. # extra space).
  6676. freebsd2.2*)
  6677. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6678. hardcode_libdir_flag_spec='-R$libdir'
  6679. hardcode_direct=yes
  6680. hardcode_shlibpath_var=no
  6681. ;;
  6682. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6683. freebsd2*)
  6684. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6685. hardcode_direct=yes
  6686. hardcode_minus_L=yes
  6687. hardcode_shlibpath_var=no
  6688. ;;
  6689. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6690. freebsd* | dragonfly*)
  6691. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6692. hardcode_libdir_flag_spec='-R$libdir'
  6693. hardcode_direct=yes
  6694. hardcode_shlibpath_var=no
  6695. ;;
  6696. # GNU/kFreeBSD uses gcc -shared to do shared libraries.
  6697. kfreebsd*-gnu)
  6698. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6699. hardcode_libdir_flag_spec='-R$libdir'
  6700. hardcode_direct=yes
  6701. hardcode_shlibpath_var=no
  6702. link_all_deplibs=no
  6703. ;;
  6704. hpux9*)
  6705. if test "$GCC" = yes; then
  6706. 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'
  6707. else
  6708. 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'
  6709. fi
  6710. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6711. hardcode_libdir_separator=:
  6712. hardcode_direct=yes
  6713. # hardcode_minus_L: Not really in the search PATH,
  6714. # but as the default location of the library.
  6715. hardcode_minus_L=yes
  6716. export_dynamic_flag_spec='${wl}-E'
  6717. ;;
  6718. hpux10*)
  6719. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6720. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6721. else
  6722. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6723. fi
  6724. if test "$with_gnu_ld" = no; then
  6725. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6726. hardcode_libdir_separator=:
  6727. hardcode_direct=yes
  6728. export_dynamic_flag_spec='${wl}-E'
  6729. # hardcode_minus_L: Not really in the search PATH,
  6730. # but as the default location of the library.
  6731. hardcode_minus_L=yes
  6732. fi
  6733. ;;
  6734. hpux11*)
  6735. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6736. case $host_cpu in
  6737. hppa*64*)
  6738. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6739. ;;
  6740. ia64*)
  6741. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6742. ;;
  6743. *)
  6744. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6745. ;;
  6746. esac
  6747. else
  6748. case $host_cpu in
  6749. hppa*64*)
  6750. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6751. ;;
  6752. ia64*)
  6753. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6754. ;;
  6755. *)
  6756. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6757. ;;
  6758. esac
  6759. fi
  6760. if test "$with_gnu_ld" = no; then
  6761. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6762. hardcode_libdir_separator=:
  6763. case $host_cpu in
  6764. hppa*64*|ia64*)
  6765. hardcode_libdir_flag_spec_ld='+b $libdir'
  6766. hardcode_direct=no
  6767. hardcode_shlibpath_var=no
  6768. ;;
  6769. *)
  6770. hardcode_direct=yes
  6771. export_dynamic_flag_spec='${wl}-E'
  6772. # hardcode_minus_L: Not really in the search PATH,
  6773. # but as the default location of the library.
  6774. hardcode_minus_L=yes
  6775. ;;
  6776. esac
  6777. fi
  6778. ;;
  6779. irix5* | irix6* | nonstopux*)
  6780. if test "$GCC" = yes; then
  6781. 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'
  6782. else
  6783. 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'
  6784. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6785. fi
  6786. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6787. hardcode_libdir_separator=:
  6788. link_all_deplibs=yes
  6789. ;;
  6790. netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  6791. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6792. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6793. else
  6794. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6795. fi
  6796. hardcode_libdir_flag_spec='-R$libdir'
  6797. hardcode_direct=yes
  6798. hardcode_shlibpath_var=no
  6799. ;;
  6800. newsos6)
  6801. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6802. hardcode_direct=yes
  6803. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6804. hardcode_libdir_separator=:
  6805. hardcode_shlibpath_var=no
  6806. ;;
  6807. openbsd*)
  6808. hardcode_direct=yes
  6809. hardcode_shlibpath_var=no
  6810. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6811. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6812. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6813. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6814. export_dynamic_flag_spec='${wl}-E'
  6815. else
  6816. case $host_os in
  6817. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6818. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6819. hardcode_libdir_flag_spec='-R$libdir'
  6820. ;;
  6821. *)
  6822. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6823. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6824. ;;
  6825. esac
  6826. fi
  6827. ;;
  6828. os2*)
  6829. hardcode_libdir_flag_spec='-L$libdir'
  6830. hardcode_minus_L=yes
  6831. allow_undefined_flag=unsupported
  6832. 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'
  6833. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6834. ;;
  6835. osf3*)
  6836. if test "$GCC" = yes; then
  6837. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6838. 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'
  6839. else
  6840. allow_undefined_flag=' -expect_unresolved \*'
  6841. 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'
  6842. fi
  6843. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6844. hardcode_libdir_separator=:
  6845. ;;
  6846. osf4* | osf5*) # as osf3* with the addition of -msym flag
  6847. if test "$GCC" = yes; then
  6848. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6849. 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'
  6850. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6851. else
  6852. allow_undefined_flag=' -expect_unresolved \*'
  6853. 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'
  6854. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  6855. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  6856. # Both c and cxx compiler support -rpath directly
  6857. hardcode_libdir_flag_spec='-rpath $libdir'
  6858. fi
  6859. hardcode_libdir_separator=:
  6860. ;;
  6861. solaris*)
  6862. no_undefined_flag=' -z text'
  6863. if test "$GCC" = yes; then
  6864. wlarc='${wl}'
  6865. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6866. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6867. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  6868. else
  6869. wlarc=''
  6870. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6871. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6872. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6873. fi
  6874. hardcode_libdir_flag_spec='-R$libdir'
  6875. hardcode_shlibpath_var=no
  6876. case $host_os in
  6877. solaris2.[0-5] | solaris2.[0-5].*) ;;
  6878. *)
  6879. # The compiler driver will combine linker options so we
  6880. # cannot just pass the convience library names through
  6881. # without $wl, iff we do not link with $LD.
  6882. # Luckily, gcc supports the same syntax we need for Sun Studio.
  6883. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6884. case $wlarc in
  6885. '')
  6886. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  6887. *)
  6888. whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  6889. esac ;;
  6890. esac
  6891. link_all_deplibs=yes
  6892. ;;
  6893. sunos4*)
  6894. if test "x$host_vendor" = xsequent; then
  6895. # Use $CC to link under sequent, because it throws in some extra .o
  6896. # files that make .init and .fini sections work.
  6897. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6898. else
  6899. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6900. fi
  6901. hardcode_libdir_flag_spec='-L$libdir'
  6902. hardcode_direct=yes
  6903. hardcode_minus_L=yes
  6904. hardcode_shlibpath_var=no
  6905. ;;
  6906. sysv4)
  6907. case $host_vendor in
  6908. sni)
  6909. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6910. hardcode_direct=yes # is this really true???
  6911. ;;
  6912. siemens)
  6913. ## LD is ld it makes a PLAMLIB
  6914. ## CC just makes a GrossModule.
  6915. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6916. reload_cmds='$CC -r -o $output$reload_objs'
  6917. hardcode_direct=no
  6918. ;;
  6919. motorola)
  6920. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6921. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  6922. ;;
  6923. esac
  6924. runpath_var='LD_RUN_PATH'
  6925. hardcode_shlibpath_var=no
  6926. ;;
  6927. sysv4.3*)
  6928. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6929. hardcode_shlibpath_var=no
  6930. export_dynamic_flag_spec='-Bexport'
  6931. ;;
  6932. sysv4*MP*)
  6933. if test -d /usr/nec; then
  6934. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6935. hardcode_shlibpath_var=no
  6936. runpath_var=LD_RUN_PATH
  6937. hardcode_runpath_var=yes
  6938. ld_shlibs=yes
  6939. fi
  6940. ;;
  6941. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  6942. no_undefined_flag='${wl}-z,text'
  6943. archive_cmds_need_lc=no
  6944. hardcode_shlibpath_var=no
  6945. runpath_var='LD_RUN_PATH'
  6946. if test "$GCC" = yes; then
  6947. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6948. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6949. else
  6950. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6951. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6952. fi
  6953. ;;
  6954. sysv5* | sco3.2v5* | sco5v6*)
  6955. # Note: We can NOT use -z defs as we might desire, because we do not
  6956. # link with -lc, and that would cause any symbols used from libc to
  6957. # always be unresolved, which means just about no library would
  6958. # ever link correctly. If we're not using GNU ld we use -z text
  6959. # though, which does catch some bad symbols but isn't as heavy-handed
  6960. # as -z defs.
  6961. no_undefined_flag='${wl}-z,text'
  6962. allow_undefined_flag='${wl}-z,nodefs'
  6963. archive_cmds_need_lc=no
  6964. hardcode_shlibpath_var=no
  6965. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  6966. hardcode_libdir_separator=':'
  6967. link_all_deplibs=yes
  6968. export_dynamic_flag_spec='${wl}-Bexport'
  6969. runpath_var='LD_RUN_PATH'
  6970. if test "$GCC" = yes; then
  6971. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6972. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6973. else
  6974. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6975. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6976. fi
  6977. ;;
  6978. uts4*)
  6979. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6980. hardcode_libdir_flag_spec='-L$libdir'
  6981. hardcode_shlibpath_var=no
  6982. ;;
  6983. *)
  6984. ld_shlibs=no
  6985. ;;
  6986. esac
  6987. fi
  6988. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  6989. echo "${ECHO_T}$ld_shlibs" >&6
  6990. test "$ld_shlibs" = no && can_build_shared=no
  6991. #
  6992. # Do we need to explicitly link libc?
  6993. #
  6994. case "x$archive_cmds_need_lc" in
  6995. x|xyes)
  6996. # Assume -lc should be added
  6997. archive_cmds_need_lc=yes
  6998. if test "$enable_shared" = yes && test "$GCC" = yes; then
  6999. case $archive_cmds in
  7000. *'~'*)
  7001. # FIXME: we may have to deal with multi-command sequences.
  7002. ;;
  7003. '$CC '*)
  7004. # Test whether the compiler implicitly links with -lc since on some
  7005. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7006. # to ld, don't add -lc before -lgcc.
  7007. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7008. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  7009. $rm conftest*
  7010. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7011. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7012. (eval $ac_compile) 2>&5
  7013. ac_status=$?
  7014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7015. (exit $ac_status); } 2>conftest.err; then
  7016. soname=conftest
  7017. lib=conftest
  7018. libobjs=conftest.$ac_objext
  7019. deplibs=
  7020. wl=$lt_prog_compiler_wl
  7021. pic_flag=$lt_prog_compiler_pic
  7022. compiler_flags=-v
  7023. linker_flags=-v
  7024. verstring=
  7025. output_objdir=.
  7026. libname=conftest
  7027. lt_save_allow_undefined_flag=$allow_undefined_flag
  7028. allow_undefined_flag=
  7029. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7030. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7031. ac_status=$?
  7032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7033. (exit $ac_status); }
  7034. then
  7035. archive_cmds_need_lc=no
  7036. else
  7037. archive_cmds_need_lc=yes
  7038. fi
  7039. allow_undefined_flag=$lt_save_allow_undefined_flag
  7040. else
  7041. cat conftest.err 1>&5
  7042. fi
  7043. $rm conftest*
  7044. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7045. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  7046. ;;
  7047. esac
  7048. fi
  7049. ;;
  7050. esac
  7051. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7052. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  7053. library_names_spec=
  7054. libname_spec='lib$name'
  7055. soname_spec=
  7056. shrext_cmds=".so"
  7057. postinstall_cmds=
  7058. postuninstall_cmds=
  7059. finish_cmds=
  7060. finish_eval=
  7061. shlibpath_var=
  7062. shlibpath_overrides_runpath=unknown
  7063. version_type=none
  7064. dynamic_linker="$host_os ld.so"
  7065. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7066. if test "$GCC" = yes; then
  7067. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7068. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7069. # if the path contains ";" then we assume it to be the separator
  7070. # otherwise default to the standard path separator (i.e. ":") - it is
  7071. # assumed that no part of a normal pathname contains ";" but that should
  7072. # okay in the real world where ";" in dirpaths is itself problematic.
  7073. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7074. else
  7075. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7076. fi
  7077. else
  7078. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7079. fi
  7080. need_lib_prefix=unknown
  7081. hardcode_into_libs=no
  7082. # when you set need_version to no, make sure it does not cause -set_version
  7083. # flags to be left without arguments
  7084. need_version=unknown
  7085. case $host_os in
  7086. aix3*)
  7087. version_type=linux
  7088. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7089. shlibpath_var=LIBPATH
  7090. # AIX 3 has no versioning support, so we append a major version to the name.
  7091. soname_spec='${libname}${release}${shared_ext}$major'
  7092. ;;
  7093. aix4* | aix5*)
  7094. version_type=linux
  7095. need_lib_prefix=no
  7096. need_version=no
  7097. hardcode_into_libs=yes
  7098. if test "$host_cpu" = ia64; then
  7099. # AIX 5 supports IA64
  7100. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7101. shlibpath_var=LD_LIBRARY_PATH
  7102. else
  7103. # With GCC up to 2.95.x, collect2 would create an import file
  7104. # for dependence libraries. The import file would start with
  7105. # the line `#! .'. This would cause the generated library to
  7106. # depend on `.', always an invalid library. This was fixed in
  7107. # development snapshots of GCC prior to 3.0.
  7108. case $host_os in
  7109. aix4 | aix4.[01] | aix4.[01].*)
  7110. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7111. echo ' yes '
  7112. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7113. :
  7114. else
  7115. can_build_shared=no
  7116. fi
  7117. ;;
  7118. esac
  7119. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7120. # soname into executable. Probably we can add versioning support to
  7121. # collect2, so additional links can be useful in future.
  7122. if test "$aix_use_runtimelinking" = yes; then
  7123. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7124. # instead of lib<name>.a to let people know that these are not
  7125. # typical AIX shared libraries.
  7126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7127. else
  7128. # We preserve .a as extension for shared libraries through AIX4.2
  7129. # and later when we are not doing run time linking.
  7130. library_names_spec='${libname}${release}.a $libname.a'
  7131. soname_spec='${libname}${release}${shared_ext}$major'
  7132. fi
  7133. shlibpath_var=LIBPATH
  7134. fi
  7135. ;;
  7136. amigaos*)
  7137. library_names_spec='$libname.ixlibrary $libname.a'
  7138. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7139. 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'
  7140. ;;
  7141. beos*)
  7142. library_names_spec='${libname}${shared_ext}'
  7143. dynamic_linker="$host_os ld.so"
  7144. shlibpath_var=LIBRARY_PATH
  7145. ;;
  7146. bsdi[45]*)
  7147. version_type=linux
  7148. need_version=no
  7149. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7150. soname_spec='${libname}${release}${shared_ext}$major'
  7151. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7152. shlibpath_var=LD_LIBRARY_PATH
  7153. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7154. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7155. # the default ld.so.conf also contains /usr/contrib/lib and
  7156. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7157. # libtool to hard-code these into programs
  7158. ;;
  7159. cygwin* | mingw* | pw32*)
  7160. version_type=windows
  7161. shrext_cmds=".dll"
  7162. need_version=no
  7163. need_lib_prefix=no
  7164. case $GCC,$host_os in
  7165. yes,cygwin* | yes,mingw* | yes,pw32*)
  7166. library_names_spec='$libname.dll.a'
  7167. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7168. postinstall_cmds='base_file=`basename \${file}`~
  7169. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7170. dldir=$destdir/`dirname \$dlpath`~
  7171. test -d \$dldir || mkdir -p \$dldir~
  7172. $install_prog $dir/$dlname \$dldir/$dlname~
  7173. chmod a+x \$dldir/$dlname'
  7174. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7175. dlpath=$dir/\$dldll~
  7176. $rm \$dlpath'
  7177. shlibpath_overrides_runpath=yes
  7178. case $host_os in
  7179. cygwin*)
  7180. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7181. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7182. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7183. ;;
  7184. mingw*)
  7185. # MinGW DLLs use traditional 'lib' prefix
  7186. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7187. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7188. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7189. # It is most probably a Windows format PATH printed by
  7190. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7191. # path with ; separators, and with drive letters. We can handle the
  7192. # drive letters (cygwin fileutils understands them), so leave them,
  7193. # especially as we might pass files found there to a mingw objdump,
  7194. # which wouldn't understand a cygwinified path. Ahh.
  7195. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7196. else
  7197. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7198. fi
  7199. ;;
  7200. pw32*)
  7201. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7202. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7203. ;;
  7204. esac
  7205. ;;
  7206. *)
  7207. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7208. ;;
  7209. esac
  7210. dynamic_linker='Win32 ld.exe'
  7211. # FIXME: first we should search . and the directory the executable is in
  7212. shlibpath_var=PATH
  7213. ;;
  7214. darwin* | rhapsody*)
  7215. dynamic_linker="$host_os dyld"
  7216. version_type=darwin
  7217. need_lib_prefix=no
  7218. need_version=no
  7219. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7220. soname_spec='${libname}${release}${major}$shared_ext'
  7221. shlibpath_overrides_runpath=yes
  7222. shlibpath_var=DYLD_LIBRARY_PATH
  7223. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7224. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7225. if test "$GCC" = yes; then
  7226. 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"`
  7227. else
  7228. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7229. fi
  7230. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7231. ;;
  7232. dgux*)
  7233. version_type=linux
  7234. need_lib_prefix=no
  7235. need_version=no
  7236. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7237. soname_spec='${libname}${release}${shared_ext}$major'
  7238. shlibpath_var=LD_LIBRARY_PATH
  7239. ;;
  7240. freebsd1*)
  7241. dynamic_linker=no
  7242. ;;
  7243. kfreebsd*-gnu)
  7244. version_type=linux
  7245. need_lib_prefix=no
  7246. need_version=no
  7247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7248. soname_spec='${libname}${release}${shared_ext}$major'
  7249. shlibpath_var=LD_LIBRARY_PATH
  7250. shlibpath_overrides_runpath=no
  7251. hardcode_into_libs=yes
  7252. dynamic_linker='GNU ld.so'
  7253. ;;
  7254. freebsd* | dragonfly*)
  7255. # DragonFly does not have aout. When/if they implement a new
  7256. # versioning mechanism, adjust this.
  7257. if test -x /usr/bin/objformat; then
  7258. objformat=`/usr/bin/objformat`
  7259. else
  7260. case $host_os in
  7261. freebsd[123]*) objformat=aout ;;
  7262. *) objformat=elf ;;
  7263. esac
  7264. fi
  7265. version_type=freebsd-$objformat
  7266. case $version_type in
  7267. freebsd-elf*)
  7268. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7269. need_version=no
  7270. need_lib_prefix=no
  7271. ;;
  7272. freebsd-*)
  7273. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7274. need_version=yes
  7275. ;;
  7276. esac
  7277. shlibpath_var=LD_LIBRARY_PATH
  7278. case $host_os in
  7279. freebsd2*)
  7280. shlibpath_overrides_runpath=yes
  7281. ;;
  7282. freebsd3.[01]* | freebsdelf3.[01]*)
  7283. shlibpath_overrides_runpath=yes
  7284. hardcode_into_libs=yes
  7285. ;;
  7286. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7287. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7288. shlibpath_overrides_runpath=no
  7289. hardcode_into_libs=yes
  7290. ;;
  7291. freebsd*) # from 4.6 on
  7292. shlibpath_overrides_runpath=yes
  7293. hardcode_into_libs=yes
  7294. ;;
  7295. esac
  7296. ;;
  7297. gnu*)
  7298. version_type=linux
  7299. need_lib_prefix=no
  7300. need_version=no
  7301. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7302. soname_spec='${libname}${release}${shared_ext}$major'
  7303. shlibpath_var=LD_LIBRARY_PATH
  7304. hardcode_into_libs=yes
  7305. ;;
  7306. hpux9* | hpux10* | hpux11*)
  7307. # Give a soname corresponding to the major version so that dld.sl refuses to
  7308. # link against other versions.
  7309. version_type=sunos
  7310. need_lib_prefix=no
  7311. need_version=no
  7312. case $host_cpu in
  7313. ia64*)
  7314. shrext_cmds='.so'
  7315. hardcode_into_libs=yes
  7316. dynamic_linker="$host_os dld.so"
  7317. shlibpath_var=LD_LIBRARY_PATH
  7318. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7320. soname_spec='${libname}${release}${shared_ext}$major'
  7321. if test "X$HPUX_IA64_MODE" = X32; then
  7322. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7323. else
  7324. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7325. fi
  7326. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7327. ;;
  7328. hppa*64*)
  7329. shrext_cmds='.sl'
  7330. hardcode_into_libs=yes
  7331. dynamic_linker="$host_os dld.sl"
  7332. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7333. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7334. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7335. soname_spec='${libname}${release}${shared_ext}$major'
  7336. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7337. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7338. ;;
  7339. *)
  7340. shrext_cmds='.sl'
  7341. dynamic_linker="$host_os dld.sl"
  7342. shlibpath_var=SHLIB_PATH
  7343. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7344. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7345. soname_spec='${libname}${release}${shared_ext}$major'
  7346. ;;
  7347. esac
  7348. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7349. postinstall_cmds='chmod 555 $lib'
  7350. ;;
  7351. interix3*)
  7352. version_type=linux
  7353. need_lib_prefix=no
  7354. need_version=no
  7355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7356. soname_spec='${libname}${release}${shared_ext}$major'
  7357. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  7358. shlibpath_var=LD_LIBRARY_PATH
  7359. shlibpath_overrides_runpath=no
  7360. hardcode_into_libs=yes
  7361. ;;
  7362. irix5* | irix6* | nonstopux*)
  7363. case $host_os in
  7364. nonstopux*) version_type=nonstopux ;;
  7365. *)
  7366. if test "$lt_cv_prog_gnu_ld" = yes; then
  7367. version_type=linux
  7368. else
  7369. version_type=irix
  7370. fi ;;
  7371. esac
  7372. need_lib_prefix=no
  7373. need_version=no
  7374. soname_spec='${libname}${release}${shared_ext}$major'
  7375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7376. case $host_os in
  7377. irix5* | nonstopux*)
  7378. libsuff= shlibsuff=
  7379. ;;
  7380. *)
  7381. case $LD in # libtool.m4 will add one of these switches to LD
  7382. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7383. libsuff= shlibsuff= libmagic=32-bit;;
  7384. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7385. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7386. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7387. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7388. *) libsuff= shlibsuff= libmagic=never-match;;
  7389. esac
  7390. ;;
  7391. esac
  7392. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7393. shlibpath_overrides_runpath=no
  7394. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7395. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7396. hardcode_into_libs=yes
  7397. ;;
  7398. # No shared lib support for Linux oldld, aout, or coff.
  7399. linux*oldld* | linux*aout* | linux*coff*)
  7400. dynamic_linker=no
  7401. ;;
  7402. # This must be Linux ELF.
  7403. linux*)
  7404. version_type=linux
  7405. need_lib_prefix=no
  7406. need_version=no
  7407. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7408. soname_spec='${libname}${release}${shared_ext}$major'
  7409. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7410. shlibpath_var=LD_LIBRARY_PATH
  7411. shlibpath_overrides_runpath=no
  7412. # This implies no fast_install, which is unacceptable.
  7413. # Some rework will be needed to allow for fast_install
  7414. # before this can be enabled.
  7415. hardcode_into_libs=yes
  7416. # Append ld.so.conf contents to the search path
  7417. if test -f /etc/ld.so.conf; then
  7418. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  7419. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  7420. fi
  7421. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7422. # powerpc, because MkLinux only supported shared libraries with the
  7423. # GNU dynamic linker. Since this was broken with cross compilers,
  7424. # most powerpc-linux boxes support dynamic linking these days and
  7425. # people can always --disable-shared, the test was removed, and we
  7426. # assume the GNU/Linux dynamic linker is in use.
  7427. dynamic_linker='GNU/Linux ld.so'
  7428. ;;
  7429. netbsdelf*-gnu)
  7430. version_type=linux
  7431. need_lib_prefix=no
  7432. need_version=no
  7433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7434. soname_spec='${libname}${release}${shared_ext}$major'
  7435. shlibpath_var=LD_LIBRARY_PATH
  7436. shlibpath_overrides_runpath=no
  7437. hardcode_into_libs=yes
  7438. dynamic_linker='NetBSD ld.elf_so'
  7439. ;;
  7440. knetbsd*-gnu)
  7441. version_type=linux
  7442. need_lib_prefix=no
  7443. need_version=no
  7444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7445. soname_spec='${libname}${release}${shared_ext}$major'
  7446. shlibpath_var=LD_LIBRARY_PATH
  7447. shlibpath_overrides_runpath=no
  7448. hardcode_into_libs=yes
  7449. dynamic_linker='GNU ld.so'
  7450. ;;
  7451. netbsd*)
  7452. version_type=sunos
  7453. need_lib_prefix=no
  7454. need_version=no
  7455. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7456. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7457. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7458. dynamic_linker='NetBSD (a.out) ld.so'
  7459. else
  7460. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7461. soname_spec='${libname}${release}${shared_ext}$major'
  7462. dynamic_linker='NetBSD ld.elf_so'
  7463. fi
  7464. shlibpath_var=LD_LIBRARY_PATH
  7465. shlibpath_overrides_runpath=yes
  7466. hardcode_into_libs=yes
  7467. ;;
  7468. newsos6)
  7469. version_type=linux
  7470. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7471. shlibpath_var=LD_LIBRARY_PATH
  7472. shlibpath_overrides_runpath=yes
  7473. ;;
  7474. nto-qnx*)
  7475. version_type=linux
  7476. need_lib_prefix=no
  7477. need_version=no
  7478. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7479. soname_spec='${libname}${release}${shared_ext}$major'
  7480. shlibpath_var=LD_LIBRARY_PATH
  7481. shlibpath_overrides_runpath=yes
  7482. ;;
  7483. openbsd*)
  7484. version_type=sunos
  7485. sys_lib_dlsearch_path_spec="/usr/lib"
  7486. need_lib_prefix=no
  7487. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  7488. case $host_os in
  7489. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  7490. *) need_version=no ;;
  7491. esac
  7492. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7493. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7494. shlibpath_var=LD_LIBRARY_PATH
  7495. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7496. case $host_os in
  7497. openbsd2.[89] | openbsd2.[89].*)
  7498. shlibpath_overrides_runpath=no
  7499. ;;
  7500. *)
  7501. shlibpath_overrides_runpath=yes
  7502. ;;
  7503. esac
  7504. else
  7505. shlibpath_overrides_runpath=yes
  7506. fi
  7507. ;;
  7508. os2*)
  7509. libname_spec='$name'
  7510. shrext_cmds=".dll"
  7511. need_lib_prefix=no
  7512. library_names_spec='$libname${shared_ext} $libname.a'
  7513. dynamic_linker='OS/2 ld.exe'
  7514. shlibpath_var=LIBPATH
  7515. ;;
  7516. osf3* | osf4* | osf5*)
  7517. version_type=osf
  7518. need_lib_prefix=no
  7519. need_version=no
  7520. soname_spec='${libname}${release}${shared_ext}$major'
  7521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7522. shlibpath_var=LD_LIBRARY_PATH
  7523. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7524. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7525. ;;
  7526. solaris*)
  7527. version_type=linux
  7528. need_lib_prefix=no
  7529. need_version=no
  7530. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7531. soname_spec='${libname}${release}${shared_ext}$major'
  7532. shlibpath_var=LD_LIBRARY_PATH
  7533. shlibpath_overrides_runpath=yes
  7534. hardcode_into_libs=yes
  7535. # ldd complains unless libraries are executable
  7536. postinstall_cmds='chmod +x $lib'
  7537. ;;
  7538. sunos4*)
  7539. version_type=sunos
  7540. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7541. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7542. shlibpath_var=LD_LIBRARY_PATH
  7543. shlibpath_overrides_runpath=yes
  7544. if test "$with_gnu_ld" = yes; then
  7545. need_lib_prefix=no
  7546. fi
  7547. need_version=yes
  7548. ;;
  7549. sysv4 | sysv4.3*)
  7550. version_type=linux
  7551. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7552. soname_spec='${libname}${release}${shared_ext}$major'
  7553. shlibpath_var=LD_LIBRARY_PATH
  7554. case $host_vendor in
  7555. sni)
  7556. shlibpath_overrides_runpath=no
  7557. need_lib_prefix=no
  7558. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7559. runpath_var=LD_RUN_PATH
  7560. ;;
  7561. siemens)
  7562. need_lib_prefix=no
  7563. ;;
  7564. motorola)
  7565. need_lib_prefix=no
  7566. need_version=no
  7567. shlibpath_overrides_runpath=no
  7568. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7569. ;;
  7570. esac
  7571. ;;
  7572. sysv4*MP*)
  7573. if test -d /usr/nec ;then
  7574. version_type=linux
  7575. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7576. soname_spec='$libname${shared_ext}.$major'
  7577. shlibpath_var=LD_LIBRARY_PATH
  7578. fi
  7579. ;;
  7580. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7581. version_type=freebsd-elf
  7582. need_lib_prefix=no
  7583. need_version=no
  7584. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7585. soname_spec='${libname}${release}${shared_ext}$major'
  7586. shlibpath_var=LD_LIBRARY_PATH
  7587. hardcode_into_libs=yes
  7588. if test "$with_gnu_ld" = yes; then
  7589. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  7590. shlibpath_overrides_runpath=no
  7591. else
  7592. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  7593. shlibpath_overrides_runpath=yes
  7594. case $host_os in
  7595. sco3.2v5*)
  7596. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  7597. ;;
  7598. esac
  7599. fi
  7600. sys_lib_dlsearch_path_spec='/usr/lib'
  7601. ;;
  7602. uts4*)
  7603. version_type=linux
  7604. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7605. soname_spec='${libname}${release}${shared_ext}$major'
  7606. shlibpath_var=LD_LIBRARY_PATH
  7607. ;;
  7608. *)
  7609. dynamic_linker=no
  7610. ;;
  7611. esac
  7612. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  7613. echo "${ECHO_T}$dynamic_linker" >&6
  7614. test "$dynamic_linker" = no && can_build_shared=no
  7615. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7616. if test "$GCC" = yes; then
  7617. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7618. fi
  7619. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  7620. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  7621. hardcode_action=
  7622. if test -n "$hardcode_libdir_flag_spec" || \
  7623. test -n "$runpath_var" || \
  7624. test "X$hardcode_automatic" = "Xyes" ; then
  7625. # We can hardcode non-existant directories.
  7626. if test "$hardcode_direct" != no &&
  7627. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7628. # have to relink, otherwise we might link with an installed library
  7629. # when we should be linking with a yet-to-be-installed one
  7630. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7631. test "$hardcode_minus_L" != no; then
  7632. # Linking always hardcodes the temporary library directory.
  7633. hardcode_action=relink
  7634. else
  7635. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7636. hardcode_action=immediate
  7637. fi
  7638. else
  7639. # We cannot hardcode anything, or else we can only hardcode existing
  7640. # directories.
  7641. hardcode_action=unsupported
  7642. fi
  7643. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  7644. echo "${ECHO_T}$hardcode_action" >&6
  7645. if test "$hardcode_action" = relink; then
  7646. # Fast installation is not supported
  7647. enable_fast_install=no
  7648. elif test "$shlibpath_overrides_runpath" = yes ||
  7649. test "$enable_shared" = no; then
  7650. # Fast installation is not necessary
  7651. enable_fast_install=needless
  7652. fi
  7653. striplib=
  7654. old_striplib=
  7655. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  7656. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  7657. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7658. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7659. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7660. echo "$as_me:$LINENO: result: yes" >&5
  7661. echo "${ECHO_T}yes" >&6
  7662. else
  7663. # FIXME - insert some real tests, host_os isn't really good enough
  7664. case $host_os in
  7665. darwin*)
  7666. if test -n "$STRIP" ; then
  7667. striplib="$STRIP -x"
  7668. echo "$as_me:$LINENO: result: yes" >&5
  7669. echo "${ECHO_T}yes" >&6
  7670. else
  7671. echo "$as_me:$LINENO: result: no" >&5
  7672. echo "${ECHO_T}no" >&6
  7673. fi
  7674. ;;
  7675. *)
  7676. echo "$as_me:$LINENO: result: no" >&5
  7677. echo "${ECHO_T}no" >&6
  7678. ;;
  7679. esac
  7680. fi
  7681. if test "x$enable_dlopen" != xyes; then
  7682. enable_dlopen=unknown
  7683. enable_dlopen_self=unknown
  7684. enable_dlopen_self_static=unknown
  7685. else
  7686. lt_cv_dlopen=no
  7687. lt_cv_dlopen_libs=
  7688. case $host_os in
  7689. beos*)
  7690. lt_cv_dlopen="load_add_on"
  7691. lt_cv_dlopen_libs=
  7692. lt_cv_dlopen_self=yes
  7693. ;;
  7694. mingw* | pw32*)
  7695. lt_cv_dlopen="LoadLibrary"
  7696. lt_cv_dlopen_libs=
  7697. ;;
  7698. cygwin*)
  7699. lt_cv_dlopen="dlopen"
  7700. lt_cv_dlopen_libs=
  7701. ;;
  7702. darwin*)
  7703. # if libdl is installed we need to link against it
  7704. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7705. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7706. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7707. echo $ECHO_N "(cached) $ECHO_C" >&6
  7708. else
  7709. ac_check_lib_save_LIBS=$LIBS
  7710. LIBS="-ldl $LIBS"
  7711. cat >conftest.$ac_ext <<_ACEOF
  7712. /* confdefs.h. */
  7713. _ACEOF
  7714. cat confdefs.h >>conftest.$ac_ext
  7715. cat >>conftest.$ac_ext <<_ACEOF
  7716. /* end confdefs.h. */
  7717. /* Override any gcc2 internal prototype to avoid an error. */
  7718. #ifdef __cplusplus
  7719. extern "C"
  7720. #endif
  7721. /* We use char because int might match the return type of a gcc2
  7722. builtin and then its argument prototype would still apply. */
  7723. char dlopen ();
  7724. int
  7725. main ()
  7726. {
  7727. dlopen ();
  7728. ;
  7729. return 0;
  7730. }
  7731. _ACEOF
  7732. rm -f conftest.$ac_objext conftest$ac_exeext
  7733. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7734. (eval $ac_link) 2>conftest.er1
  7735. ac_status=$?
  7736. grep -v '^ *+' conftest.er1 >conftest.err
  7737. rm -f conftest.er1
  7738. cat conftest.err >&5
  7739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7740. (exit $ac_status); } &&
  7741. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7742. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7743. (eval $ac_try) 2>&5
  7744. ac_status=$?
  7745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7746. (exit $ac_status); }; } &&
  7747. { ac_try='test -s conftest$ac_exeext'
  7748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7749. (eval $ac_try) 2>&5
  7750. ac_status=$?
  7751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7752. (exit $ac_status); }; }; then
  7753. ac_cv_lib_dl_dlopen=yes
  7754. else
  7755. echo "$as_me: failed program was:" >&5
  7756. sed 's/^/| /' conftest.$ac_ext >&5
  7757. ac_cv_lib_dl_dlopen=no
  7758. fi
  7759. rm -f conftest.err conftest.$ac_objext \
  7760. conftest$ac_exeext conftest.$ac_ext
  7761. LIBS=$ac_check_lib_save_LIBS
  7762. fi
  7763. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7764. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7765. if test $ac_cv_lib_dl_dlopen = yes; then
  7766. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7767. else
  7768. lt_cv_dlopen="dyld"
  7769. lt_cv_dlopen_libs=
  7770. lt_cv_dlopen_self=yes
  7771. fi
  7772. ;;
  7773. *)
  7774. echo "$as_me:$LINENO: checking for shl_load" >&5
  7775. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  7776. if test "${ac_cv_func_shl_load+set}" = set; then
  7777. echo $ECHO_N "(cached) $ECHO_C" >&6
  7778. else
  7779. cat >conftest.$ac_ext <<_ACEOF
  7780. /* confdefs.h. */
  7781. _ACEOF
  7782. cat confdefs.h >>conftest.$ac_ext
  7783. cat >>conftest.$ac_ext <<_ACEOF
  7784. /* end confdefs.h. */
  7785. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  7786. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7787. #define shl_load innocuous_shl_load
  7788. /* System header to define __stub macros and hopefully few prototypes,
  7789. which can conflict with char shl_load (); below.
  7790. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7791. <limits.h> exists even on freestanding compilers. */
  7792. #ifdef __STDC__
  7793. # include <limits.h>
  7794. #else
  7795. # include <assert.h>
  7796. #endif
  7797. #undef shl_load
  7798. /* Override any gcc2 internal prototype to avoid an error. */
  7799. #ifdef __cplusplus
  7800. extern "C"
  7801. {
  7802. #endif
  7803. /* We use char because int might match the return type of a gcc2
  7804. builtin and then its argument prototype would still apply. */
  7805. char shl_load ();
  7806. /* The GNU C library defines this for functions which it implements
  7807. to always fail with ENOSYS. Some functions are actually named
  7808. something starting with __ and the normal name is an alias. */
  7809. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  7810. choke me
  7811. #else
  7812. char (*f) () = shl_load;
  7813. #endif
  7814. #ifdef __cplusplus
  7815. }
  7816. #endif
  7817. int
  7818. main ()
  7819. {
  7820. return f != shl_load;
  7821. ;
  7822. return 0;
  7823. }
  7824. _ACEOF
  7825. rm -f conftest.$ac_objext conftest$ac_exeext
  7826. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7827. (eval $ac_link) 2>conftest.er1
  7828. ac_status=$?
  7829. grep -v '^ *+' conftest.er1 >conftest.err
  7830. rm -f conftest.er1
  7831. cat conftest.err >&5
  7832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7833. (exit $ac_status); } &&
  7834. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7835. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7836. (eval $ac_try) 2>&5
  7837. ac_status=$?
  7838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7839. (exit $ac_status); }; } &&
  7840. { ac_try='test -s conftest$ac_exeext'
  7841. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7842. (eval $ac_try) 2>&5
  7843. ac_status=$?
  7844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7845. (exit $ac_status); }; }; then
  7846. ac_cv_func_shl_load=yes
  7847. else
  7848. echo "$as_me: failed program was:" >&5
  7849. sed 's/^/| /' conftest.$ac_ext >&5
  7850. ac_cv_func_shl_load=no
  7851. fi
  7852. rm -f conftest.err conftest.$ac_objext \
  7853. conftest$ac_exeext conftest.$ac_ext
  7854. fi
  7855. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  7856. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  7857. if test $ac_cv_func_shl_load = yes; then
  7858. lt_cv_dlopen="shl_load"
  7859. else
  7860. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  7861. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  7862. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  7863. echo $ECHO_N "(cached) $ECHO_C" >&6
  7864. else
  7865. ac_check_lib_save_LIBS=$LIBS
  7866. LIBS="-ldld $LIBS"
  7867. cat >conftest.$ac_ext <<_ACEOF
  7868. /* confdefs.h. */
  7869. _ACEOF
  7870. cat confdefs.h >>conftest.$ac_ext
  7871. cat >>conftest.$ac_ext <<_ACEOF
  7872. /* end confdefs.h. */
  7873. /* Override any gcc2 internal prototype to avoid an error. */
  7874. #ifdef __cplusplus
  7875. extern "C"
  7876. #endif
  7877. /* We use char because int might match the return type of a gcc2
  7878. builtin and then its argument prototype would still apply. */
  7879. char shl_load ();
  7880. int
  7881. main ()
  7882. {
  7883. shl_load ();
  7884. ;
  7885. return 0;
  7886. }
  7887. _ACEOF
  7888. rm -f conftest.$ac_objext conftest$ac_exeext
  7889. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7890. (eval $ac_link) 2>conftest.er1
  7891. ac_status=$?
  7892. grep -v '^ *+' conftest.er1 >conftest.err
  7893. rm -f conftest.er1
  7894. cat conftest.err >&5
  7895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7896. (exit $ac_status); } &&
  7897. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7898. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7899. (eval $ac_try) 2>&5
  7900. ac_status=$?
  7901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7902. (exit $ac_status); }; } &&
  7903. { ac_try='test -s conftest$ac_exeext'
  7904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7905. (eval $ac_try) 2>&5
  7906. ac_status=$?
  7907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7908. (exit $ac_status); }; }; then
  7909. ac_cv_lib_dld_shl_load=yes
  7910. else
  7911. echo "$as_me: failed program was:" >&5
  7912. sed 's/^/| /' conftest.$ac_ext >&5
  7913. ac_cv_lib_dld_shl_load=no
  7914. fi
  7915. rm -f conftest.err conftest.$ac_objext \
  7916. conftest$ac_exeext conftest.$ac_ext
  7917. LIBS=$ac_check_lib_save_LIBS
  7918. fi
  7919. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  7920. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  7921. if test $ac_cv_lib_dld_shl_load = yes; then
  7922. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  7923. else
  7924. echo "$as_me:$LINENO: checking for dlopen" >&5
  7925. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  7926. if test "${ac_cv_func_dlopen+set}" = set; then
  7927. echo $ECHO_N "(cached) $ECHO_C" >&6
  7928. else
  7929. cat >conftest.$ac_ext <<_ACEOF
  7930. /* confdefs.h. */
  7931. _ACEOF
  7932. cat confdefs.h >>conftest.$ac_ext
  7933. cat >>conftest.$ac_ext <<_ACEOF
  7934. /* end confdefs.h. */
  7935. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  7936. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7937. #define dlopen innocuous_dlopen
  7938. /* System header to define __stub macros and hopefully few prototypes,
  7939. which can conflict with char dlopen (); below.
  7940. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7941. <limits.h> exists even on freestanding compilers. */
  7942. #ifdef __STDC__
  7943. # include <limits.h>
  7944. #else
  7945. # include <assert.h>
  7946. #endif
  7947. #undef dlopen
  7948. /* Override any gcc2 internal prototype to avoid an error. */
  7949. #ifdef __cplusplus
  7950. extern "C"
  7951. {
  7952. #endif
  7953. /* We use char because int might match the return type of a gcc2
  7954. builtin and then its argument prototype would still apply. */
  7955. char dlopen ();
  7956. /* The GNU C library defines this for functions which it implements
  7957. to always fail with ENOSYS. Some functions are actually named
  7958. something starting with __ and the normal name is an alias. */
  7959. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  7960. choke me
  7961. #else
  7962. char (*f) () = dlopen;
  7963. #endif
  7964. #ifdef __cplusplus
  7965. }
  7966. #endif
  7967. int
  7968. main ()
  7969. {
  7970. return f != dlopen;
  7971. ;
  7972. return 0;
  7973. }
  7974. _ACEOF
  7975. rm -f conftest.$ac_objext conftest$ac_exeext
  7976. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7977. (eval $ac_link) 2>conftest.er1
  7978. ac_status=$?
  7979. grep -v '^ *+' conftest.er1 >conftest.err
  7980. rm -f conftest.er1
  7981. cat conftest.err >&5
  7982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7983. (exit $ac_status); } &&
  7984. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7985. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7986. (eval $ac_try) 2>&5
  7987. ac_status=$?
  7988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7989. (exit $ac_status); }; } &&
  7990. { ac_try='test -s conftest$ac_exeext'
  7991. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7992. (eval $ac_try) 2>&5
  7993. ac_status=$?
  7994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7995. (exit $ac_status); }; }; then
  7996. ac_cv_func_dlopen=yes
  7997. else
  7998. echo "$as_me: failed program was:" >&5
  7999. sed 's/^/| /' conftest.$ac_ext >&5
  8000. ac_cv_func_dlopen=no
  8001. fi
  8002. rm -f conftest.err conftest.$ac_objext \
  8003. conftest$ac_exeext conftest.$ac_ext
  8004. fi
  8005. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8006. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  8007. if test $ac_cv_func_dlopen = yes; then
  8008. lt_cv_dlopen="dlopen"
  8009. else
  8010. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8011. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8012. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8013. echo $ECHO_N "(cached) $ECHO_C" >&6
  8014. else
  8015. ac_check_lib_save_LIBS=$LIBS
  8016. LIBS="-ldl $LIBS"
  8017. cat >conftest.$ac_ext <<_ACEOF
  8018. /* confdefs.h. */
  8019. _ACEOF
  8020. cat confdefs.h >>conftest.$ac_ext
  8021. cat >>conftest.$ac_ext <<_ACEOF
  8022. /* end confdefs.h. */
  8023. /* Override any gcc2 internal prototype to avoid an error. */
  8024. #ifdef __cplusplus
  8025. extern "C"
  8026. #endif
  8027. /* We use char because int might match the return type of a gcc2
  8028. builtin and then its argument prototype would still apply. */
  8029. char dlopen ();
  8030. int
  8031. main ()
  8032. {
  8033. dlopen ();
  8034. ;
  8035. return 0;
  8036. }
  8037. _ACEOF
  8038. rm -f conftest.$ac_objext conftest$ac_exeext
  8039. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8040. (eval $ac_link) 2>conftest.er1
  8041. ac_status=$?
  8042. grep -v '^ *+' conftest.er1 >conftest.err
  8043. rm -f conftest.er1
  8044. cat conftest.err >&5
  8045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8046. (exit $ac_status); } &&
  8047. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8048. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8049. (eval $ac_try) 2>&5
  8050. ac_status=$?
  8051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8052. (exit $ac_status); }; } &&
  8053. { ac_try='test -s conftest$ac_exeext'
  8054. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8055. (eval $ac_try) 2>&5
  8056. ac_status=$?
  8057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8058. (exit $ac_status); }; }; then
  8059. ac_cv_lib_dl_dlopen=yes
  8060. else
  8061. echo "$as_me: failed program was:" >&5
  8062. sed 's/^/| /' conftest.$ac_ext >&5
  8063. ac_cv_lib_dl_dlopen=no
  8064. fi
  8065. rm -f conftest.err conftest.$ac_objext \
  8066. conftest$ac_exeext conftest.$ac_ext
  8067. LIBS=$ac_check_lib_save_LIBS
  8068. fi
  8069. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8070. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8071. if test $ac_cv_lib_dl_dlopen = yes; then
  8072. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8073. else
  8074. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8075. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  8076. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8077. echo $ECHO_N "(cached) $ECHO_C" >&6
  8078. else
  8079. ac_check_lib_save_LIBS=$LIBS
  8080. LIBS="-lsvld $LIBS"
  8081. cat >conftest.$ac_ext <<_ACEOF
  8082. /* confdefs.h. */
  8083. _ACEOF
  8084. cat confdefs.h >>conftest.$ac_ext
  8085. cat >>conftest.$ac_ext <<_ACEOF
  8086. /* end confdefs.h. */
  8087. /* Override any gcc2 internal prototype to avoid an error. */
  8088. #ifdef __cplusplus
  8089. extern "C"
  8090. #endif
  8091. /* We use char because int might match the return type of a gcc2
  8092. builtin and then its argument prototype would still apply. */
  8093. char dlopen ();
  8094. int
  8095. main ()
  8096. {
  8097. dlopen ();
  8098. ;
  8099. return 0;
  8100. }
  8101. _ACEOF
  8102. rm -f conftest.$ac_objext conftest$ac_exeext
  8103. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8104. (eval $ac_link) 2>conftest.er1
  8105. ac_status=$?
  8106. grep -v '^ *+' conftest.er1 >conftest.err
  8107. rm -f conftest.er1
  8108. cat conftest.err >&5
  8109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8110. (exit $ac_status); } &&
  8111. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8112. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8113. (eval $ac_try) 2>&5
  8114. ac_status=$?
  8115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8116. (exit $ac_status); }; } &&
  8117. { ac_try='test -s conftest$ac_exeext'
  8118. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8119. (eval $ac_try) 2>&5
  8120. ac_status=$?
  8121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8122. (exit $ac_status); }; }; then
  8123. ac_cv_lib_svld_dlopen=yes
  8124. else
  8125. echo "$as_me: failed program was:" >&5
  8126. sed 's/^/| /' conftest.$ac_ext >&5
  8127. ac_cv_lib_svld_dlopen=no
  8128. fi
  8129. rm -f conftest.err conftest.$ac_objext \
  8130. conftest$ac_exeext conftest.$ac_ext
  8131. LIBS=$ac_check_lib_save_LIBS
  8132. fi
  8133. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8134. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  8135. if test $ac_cv_lib_svld_dlopen = yes; then
  8136. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8137. else
  8138. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8139. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  8140. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8141. echo $ECHO_N "(cached) $ECHO_C" >&6
  8142. else
  8143. ac_check_lib_save_LIBS=$LIBS
  8144. LIBS="-ldld $LIBS"
  8145. cat >conftest.$ac_ext <<_ACEOF
  8146. /* confdefs.h. */
  8147. _ACEOF
  8148. cat confdefs.h >>conftest.$ac_ext
  8149. cat >>conftest.$ac_ext <<_ACEOF
  8150. /* end confdefs.h. */
  8151. /* Override any gcc2 internal prototype to avoid an error. */
  8152. #ifdef __cplusplus
  8153. extern "C"
  8154. #endif
  8155. /* We use char because int might match the return type of a gcc2
  8156. builtin and then its argument prototype would still apply. */
  8157. char dld_link ();
  8158. int
  8159. main ()
  8160. {
  8161. dld_link ();
  8162. ;
  8163. return 0;
  8164. }
  8165. _ACEOF
  8166. rm -f conftest.$ac_objext conftest$ac_exeext
  8167. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8168. (eval $ac_link) 2>conftest.er1
  8169. ac_status=$?
  8170. grep -v '^ *+' conftest.er1 >conftest.err
  8171. rm -f conftest.er1
  8172. cat conftest.err >&5
  8173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8174. (exit $ac_status); } &&
  8175. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8176. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8177. (eval $ac_try) 2>&5
  8178. ac_status=$?
  8179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8180. (exit $ac_status); }; } &&
  8181. { ac_try='test -s conftest$ac_exeext'
  8182. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8183. (eval $ac_try) 2>&5
  8184. ac_status=$?
  8185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8186. (exit $ac_status); }; }; then
  8187. ac_cv_lib_dld_dld_link=yes
  8188. else
  8189. echo "$as_me: failed program was:" >&5
  8190. sed 's/^/| /' conftest.$ac_ext >&5
  8191. ac_cv_lib_dld_dld_link=no
  8192. fi
  8193. rm -f conftest.err conftest.$ac_objext \
  8194. conftest$ac_exeext conftest.$ac_ext
  8195. LIBS=$ac_check_lib_save_LIBS
  8196. fi
  8197. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8198. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  8199. if test $ac_cv_lib_dld_dld_link = yes; then
  8200. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8201. fi
  8202. fi
  8203. fi
  8204. fi
  8205. fi
  8206. fi
  8207. ;;
  8208. esac
  8209. if test "x$lt_cv_dlopen" != xno; then
  8210. enable_dlopen=yes
  8211. else
  8212. enable_dlopen=no
  8213. fi
  8214. case $lt_cv_dlopen in
  8215. dlopen)
  8216. save_CPPFLAGS="$CPPFLAGS"
  8217. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8218. save_LDFLAGS="$LDFLAGS"
  8219. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8220. save_LIBS="$LIBS"
  8221. LIBS="$lt_cv_dlopen_libs $LIBS"
  8222. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8223. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  8224. if test "${lt_cv_dlopen_self+set}" = set; then
  8225. echo $ECHO_N "(cached) $ECHO_C" >&6
  8226. else
  8227. if test "$cross_compiling" = yes; then :
  8228. lt_cv_dlopen_self=cross
  8229. else
  8230. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8231. lt_status=$lt_dlunknown
  8232. cat > conftest.$ac_ext <<EOF
  8233. #line 9072 "configure"
  8234. #include "confdefs.h"
  8235. #if HAVE_DLFCN_H
  8236. #include <dlfcn.h>
  8237. #endif
  8238. #include <stdio.h>
  8239. #ifdef RTLD_GLOBAL
  8240. # define LT_DLGLOBAL RTLD_GLOBAL
  8241. #else
  8242. # ifdef DL_GLOBAL
  8243. # define LT_DLGLOBAL DL_GLOBAL
  8244. # else
  8245. # define LT_DLGLOBAL 0
  8246. # endif
  8247. #endif
  8248. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8249. find out it does not work in some platform. */
  8250. #ifndef LT_DLLAZY_OR_NOW
  8251. # ifdef RTLD_LAZY
  8252. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8253. # else
  8254. # ifdef DL_LAZY
  8255. # define LT_DLLAZY_OR_NOW DL_LAZY
  8256. # else
  8257. # ifdef RTLD_NOW
  8258. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8259. # else
  8260. # ifdef DL_NOW
  8261. # define LT_DLLAZY_OR_NOW DL_NOW
  8262. # else
  8263. # define LT_DLLAZY_OR_NOW 0
  8264. # endif
  8265. # endif
  8266. # endif
  8267. # endif
  8268. #endif
  8269. #ifdef __cplusplus
  8270. extern "C" void exit (int);
  8271. #endif
  8272. void fnord() { int i=42;}
  8273. int main ()
  8274. {
  8275. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8276. int status = $lt_dlunknown;
  8277. if (self)
  8278. {
  8279. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8280. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8281. /* dlclose (self); */
  8282. }
  8283. else
  8284. puts (dlerror ());
  8285. exit (status);
  8286. }
  8287. EOF
  8288. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8289. (eval $ac_link) 2>&5
  8290. ac_status=$?
  8291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8292. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8293. (./conftest; exit; ) >&5 2>/dev/null
  8294. lt_status=$?
  8295. case x$lt_status in
  8296. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8297. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8298. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8299. esac
  8300. else :
  8301. # compilation failed
  8302. lt_cv_dlopen_self=no
  8303. fi
  8304. fi
  8305. rm -fr conftest*
  8306. fi
  8307. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8308. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  8309. if test "x$lt_cv_dlopen_self" = xyes; then
  8310. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8311. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8312. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  8313. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8314. echo $ECHO_N "(cached) $ECHO_C" >&6
  8315. else
  8316. if test "$cross_compiling" = yes; then :
  8317. lt_cv_dlopen_self_static=cross
  8318. else
  8319. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8320. lt_status=$lt_dlunknown
  8321. cat > conftest.$ac_ext <<EOF
  8322. #line 9172 "configure"
  8323. #include "confdefs.h"
  8324. #if HAVE_DLFCN_H
  8325. #include <dlfcn.h>
  8326. #endif
  8327. #include <stdio.h>
  8328. #ifdef RTLD_GLOBAL
  8329. # define LT_DLGLOBAL RTLD_GLOBAL
  8330. #else
  8331. # ifdef DL_GLOBAL
  8332. # define LT_DLGLOBAL DL_GLOBAL
  8333. # else
  8334. # define LT_DLGLOBAL 0
  8335. # endif
  8336. #endif
  8337. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8338. find out it does not work in some platform. */
  8339. #ifndef LT_DLLAZY_OR_NOW
  8340. # ifdef RTLD_LAZY
  8341. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8342. # else
  8343. # ifdef DL_LAZY
  8344. # define LT_DLLAZY_OR_NOW DL_LAZY
  8345. # else
  8346. # ifdef RTLD_NOW
  8347. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8348. # else
  8349. # ifdef DL_NOW
  8350. # define LT_DLLAZY_OR_NOW DL_NOW
  8351. # else
  8352. # define LT_DLLAZY_OR_NOW 0
  8353. # endif
  8354. # endif
  8355. # endif
  8356. # endif
  8357. #endif
  8358. #ifdef __cplusplus
  8359. extern "C" void exit (int);
  8360. #endif
  8361. void fnord() { int i=42;}
  8362. int main ()
  8363. {
  8364. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8365. int status = $lt_dlunknown;
  8366. if (self)
  8367. {
  8368. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8369. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8370. /* dlclose (self); */
  8371. }
  8372. else
  8373. puts (dlerror ());
  8374. exit (status);
  8375. }
  8376. EOF
  8377. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8378. (eval $ac_link) 2>&5
  8379. ac_status=$?
  8380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8381. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8382. (./conftest; exit; ) >&5 2>/dev/null
  8383. lt_status=$?
  8384. case x$lt_status in
  8385. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8386. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8387. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8388. esac
  8389. else :
  8390. # compilation failed
  8391. lt_cv_dlopen_self_static=no
  8392. fi
  8393. fi
  8394. rm -fr conftest*
  8395. fi
  8396. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8397. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  8398. fi
  8399. CPPFLAGS="$save_CPPFLAGS"
  8400. LDFLAGS="$save_LDFLAGS"
  8401. LIBS="$save_LIBS"
  8402. ;;
  8403. esac
  8404. case $lt_cv_dlopen_self in
  8405. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8406. *) enable_dlopen_self=unknown ;;
  8407. esac
  8408. case $lt_cv_dlopen_self_static in
  8409. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8410. *) enable_dlopen_self_static=unknown ;;
  8411. esac
  8412. fi
  8413. # Report which library types will actually be built
  8414. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8415. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  8416. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8417. echo "${ECHO_T}$can_build_shared" >&6
  8418. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8419. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  8420. test "$can_build_shared" = "no" && enable_shared=no
  8421. # On AIX, shared libraries and static libraries use the same namespace, and
  8422. # are all built from PIC.
  8423. case $host_os in
  8424. aix3*)
  8425. test "$enable_shared" = yes && enable_static=no
  8426. if test -n "$RANLIB"; then
  8427. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8428. postinstall_cmds='$RANLIB $lib'
  8429. fi
  8430. ;;
  8431. aix4* | aix5*)
  8432. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8433. test "$enable_shared" = yes && enable_static=no
  8434. fi
  8435. ;;
  8436. esac
  8437. echo "$as_me:$LINENO: result: $enable_shared" >&5
  8438. echo "${ECHO_T}$enable_shared" >&6
  8439. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8440. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  8441. # Make sure either enable_shared or enable_static is yes.
  8442. test "$enable_shared" = yes || enable_static=yes
  8443. echo "$as_me:$LINENO: result: $enable_static" >&5
  8444. echo "${ECHO_T}$enable_static" >&6
  8445. # The else clause should only fire when bootstrapping the
  8446. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8447. # with your package, and you will get complaints that there are
  8448. # no rules to generate ltmain.sh.
  8449. if test -f "$ltmain"; then
  8450. # See if we are running on zsh, and set the options which allow our commands through
  8451. # without removal of \ escapes.
  8452. if test -n "${ZSH_VERSION+set}" ; then
  8453. setopt NO_GLOB_SUBST
  8454. fi
  8455. # Now quote all the things that may contain metacharacters while being
  8456. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8457. # variables and quote the copies for generation of the libtool script.
  8458. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  8459. SED SHELL STRIP \
  8460. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8461. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8462. deplibs_check_method reload_flag reload_cmds need_locks \
  8463. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8464. lt_cv_sys_global_symbol_to_c_name_address \
  8465. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8466. old_postinstall_cmds old_postuninstall_cmds \
  8467. compiler \
  8468. CC \
  8469. LD \
  8470. lt_prog_compiler_wl \
  8471. lt_prog_compiler_pic \
  8472. lt_prog_compiler_static \
  8473. lt_prog_compiler_no_builtin_flag \
  8474. export_dynamic_flag_spec \
  8475. thread_safe_flag_spec \
  8476. whole_archive_flag_spec \
  8477. enable_shared_with_static_runtimes \
  8478. old_archive_cmds \
  8479. old_archive_from_new_cmds \
  8480. predep_objects \
  8481. postdep_objects \
  8482. predeps \
  8483. postdeps \
  8484. compiler_lib_search_path \
  8485. archive_cmds \
  8486. archive_expsym_cmds \
  8487. postinstall_cmds \
  8488. postuninstall_cmds \
  8489. old_archive_from_expsyms_cmds \
  8490. allow_undefined_flag \
  8491. no_undefined_flag \
  8492. export_symbols_cmds \
  8493. hardcode_libdir_flag_spec \
  8494. hardcode_libdir_flag_spec_ld \
  8495. hardcode_libdir_separator \
  8496. hardcode_automatic \
  8497. module_cmds \
  8498. module_expsym_cmds \
  8499. lt_cv_prog_compiler_c_o \
  8500. exclude_expsyms \
  8501. include_expsyms; do
  8502. case $var in
  8503. old_archive_cmds | \
  8504. old_archive_from_new_cmds | \
  8505. archive_cmds | \
  8506. archive_expsym_cmds | \
  8507. module_cmds | \
  8508. module_expsym_cmds | \
  8509. old_archive_from_expsyms_cmds | \
  8510. export_symbols_cmds | \
  8511. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  8512. postinstall_cmds | postuninstall_cmds | \
  8513. old_postinstall_cmds | old_postuninstall_cmds | \
  8514. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  8515. # Double-quote double-evaled strings.
  8516. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  8517. ;;
  8518. *)
  8519. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  8520. ;;
  8521. esac
  8522. done
  8523. case $lt_echo in
  8524. *'\$0 --fallback-echo"')
  8525. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  8526. ;;
  8527. esac
  8528. cfgfile="${ofile}T"
  8529. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  8530. $rm -f "$cfgfile"
  8531. { echo "$as_me:$LINENO: creating $ofile" >&5
  8532. echo "$as_me: creating $ofile" >&6;}
  8533. cat <<__EOF__ >> "$cfgfile"
  8534. #! $SHELL
  8535. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  8536. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  8537. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  8538. #
  8539. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  8540. # Free Software Foundation, Inc.
  8541. #
  8542. # This file is part of GNU Libtool:
  8543. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  8544. #
  8545. # This program is free software; you can redistribute it and/or modify
  8546. # it under the terms of the GNU General Public License as published by
  8547. # the Free Software Foundation; either version 2 of the License, or
  8548. # (at your option) any later version.
  8549. #
  8550. # This program is distributed in the hope that it will be useful, but
  8551. # WITHOUT ANY WARRANTY; without even the implied warranty of
  8552. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8553. # General Public License for more details.
  8554. #
  8555. # You should have received a copy of the GNU General Public License
  8556. # along with this program; if not, write to the Free Software
  8557. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  8558. #
  8559. # As a special exception to the GNU General Public License, if you
  8560. # distribute this file as part of a program that contains a
  8561. # configuration script generated by Autoconf, you may include it under
  8562. # the same distribution terms that you use for the rest of that program.
  8563. # A sed program that does not truncate output.
  8564. SED=$lt_SED
  8565. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8566. Xsed="$SED -e 1s/^X//"
  8567. # The HP-UX ksh and POSIX shell print the target directory to stdout
  8568. # if CDPATH is set.
  8569. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8570. # The names of the tagged configurations supported by this script.
  8571. available_tags=
  8572. # ### BEGIN LIBTOOL CONFIG
  8573. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8574. # Shell to use when invoking shell scripts.
  8575. SHELL=$lt_SHELL
  8576. # Whether or not to build shared libraries.
  8577. build_libtool_libs=$enable_shared
  8578. # Whether or not to build static libraries.
  8579. build_old_libs=$enable_static
  8580. # Whether or not to add -lc for building shared libraries.
  8581. build_libtool_need_lc=$archive_cmds_need_lc
  8582. # Whether or not to disallow shared libs when runtime libs are static
  8583. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  8584. # Whether or not to optimize for fast installation.
  8585. fast_install=$enable_fast_install
  8586. # The host system.
  8587. host_alias=$host_alias
  8588. host=$host
  8589. host_os=$host_os
  8590. # The build system.
  8591. build_alias=$build_alias
  8592. build=$build
  8593. build_os=$build_os
  8594. # An echo program that does not interpret backslashes.
  8595. echo=$lt_echo
  8596. # The archiver.
  8597. AR=$lt_AR
  8598. AR_FLAGS=$lt_AR_FLAGS
  8599. # A C compiler.
  8600. LTCC=$lt_LTCC
  8601. # LTCC compiler flags.
  8602. LTCFLAGS=$lt_LTCFLAGS
  8603. # A language-specific compiler.
  8604. CC=$lt_compiler
  8605. # Is the compiler the GNU C compiler?
  8606. with_gcc=$GCC
  8607. # An ERE matcher.
  8608. EGREP=$lt_EGREP
  8609. # The linker used to build libraries.
  8610. LD=$lt_LD
  8611. # Whether we need hard or soft links.
  8612. LN_S=$lt_LN_S
  8613. # A BSD-compatible nm program.
  8614. NM=$lt_NM
  8615. # A symbol stripping program
  8616. STRIP=$lt_STRIP
  8617. # Used to examine libraries when file_magic_cmd begins "file"
  8618. MAGIC_CMD=$MAGIC_CMD
  8619. # Used on cygwin: DLL creation program.
  8620. DLLTOOL="$DLLTOOL"
  8621. # Used on cygwin: object dumper.
  8622. OBJDUMP="$OBJDUMP"
  8623. # Used on cygwin: assembler.
  8624. AS="$AS"
  8625. # The name of the directory that contains temporary libtool files.
  8626. objdir=$objdir
  8627. # How to create reloadable object files.
  8628. reload_flag=$lt_reload_flag
  8629. reload_cmds=$lt_reload_cmds
  8630. # How to pass a linker flag through the compiler.
  8631. wl=$lt_lt_prog_compiler_wl
  8632. # Object file suffix (normally "o").
  8633. objext="$ac_objext"
  8634. # Old archive suffix (normally "a").
  8635. libext="$libext"
  8636. # Shared library suffix (normally ".so").
  8637. shrext_cmds='$shrext_cmds'
  8638. # Executable file suffix (normally "").
  8639. exeext="$exeext"
  8640. # Additional compiler flags for building library objects.
  8641. pic_flag=$lt_lt_prog_compiler_pic
  8642. pic_mode=$pic_mode
  8643. # What is the maximum length of a command?
  8644. max_cmd_len=$lt_cv_sys_max_cmd_len
  8645. # Does compiler simultaneously support -c and -o options?
  8646. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  8647. # Must we lock files when doing compilation?
  8648. need_locks=$lt_need_locks
  8649. # Do we need the lib prefix for modules?
  8650. need_lib_prefix=$need_lib_prefix
  8651. # Do we need a version for libraries?
  8652. need_version=$need_version
  8653. # Whether dlopen is supported.
  8654. dlopen_support=$enable_dlopen
  8655. # Whether dlopen of programs is supported.
  8656. dlopen_self=$enable_dlopen_self
  8657. # Whether dlopen of statically linked programs is supported.
  8658. dlopen_self_static=$enable_dlopen_self_static
  8659. # Compiler flag to prevent dynamic linking.
  8660. link_static_flag=$lt_lt_prog_compiler_static
  8661. # Compiler flag to turn off builtin functions.
  8662. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8663. # Compiler flag to allow reflexive dlopens.
  8664. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8665. # Compiler flag to generate shared objects directly from archives.
  8666. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8667. # Compiler flag to generate thread-safe objects.
  8668. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8669. # Library versioning type.
  8670. version_type=$version_type
  8671. # Format of library name prefix.
  8672. libname_spec=$lt_libname_spec
  8673. # List of archive names. First name is the real one, the rest are links.
  8674. # The last name is the one that the linker finds with -lNAME.
  8675. library_names_spec=$lt_library_names_spec
  8676. # The coded name of the library, if different from the real name.
  8677. soname_spec=$lt_soname_spec
  8678. # Commands used to build and install an old-style archive.
  8679. RANLIB=$lt_RANLIB
  8680. old_archive_cmds=$lt_old_archive_cmds
  8681. old_postinstall_cmds=$lt_old_postinstall_cmds
  8682. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8683. # Create an old-style archive from a shared archive.
  8684. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8685. # Create a temporary old-style archive to link instead of a shared archive.
  8686. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8687. # Commands used to build and install a shared archive.
  8688. archive_cmds=$lt_archive_cmds
  8689. archive_expsym_cmds=$lt_archive_expsym_cmds
  8690. postinstall_cmds=$lt_postinstall_cmds
  8691. postuninstall_cmds=$lt_postuninstall_cmds
  8692. # Commands used to build a loadable module (assumed same as above if empty)
  8693. module_cmds=$lt_module_cmds
  8694. module_expsym_cmds=$lt_module_expsym_cmds
  8695. # Commands to strip libraries.
  8696. old_striplib=$lt_old_striplib
  8697. striplib=$lt_striplib
  8698. # Dependencies to place before the objects being linked to create a
  8699. # shared library.
  8700. predep_objects=$lt_predep_objects
  8701. # Dependencies to place after the objects being linked to create a
  8702. # shared library.
  8703. postdep_objects=$lt_postdep_objects
  8704. # Dependencies to place before the objects being linked to create a
  8705. # shared library.
  8706. predeps=$lt_predeps
  8707. # Dependencies to place after the objects being linked to create a
  8708. # shared library.
  8709. postdeps=$lt_postdeps
  8710. # The library search path used internally by the compiler when linking
  8711. # a shared library.
  8712. compiler_lib_search_path=$lt_compiler_lib_search_path
  8713. # Method to check whether dependent libraries are shared objects.
  8714. deplibs_check_method=$lt_deplibs_check_method
  8715. # Command to use when deplibs_check_method == file_magic.
  8716. file_magic_cmd=$lt_file_magic_cmd
  8717. # Flag that allows shared libraries with undefined symbols to be built.
  8718. allow_undefined_flag=$lt_allow_undefined_flag
  8719. # Flag that forces no undefined symbols.
  8720. no_undefined_flag=$lt_no_undefined_flag
  8721. # Commands used to finish a libtool library installation in a directory.
  8722. finish_cmds=$lt_finish_cmds
  8723. # Same as above, but a single script fragment to be evaled but not shown.
  8724. finish_eval=$lt_finish_eval
  8725. # Take the output of nm and produce a listing of raw symbols and C names.
  8726. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8727. # Transform the output of nm in a proper C declaration
  8728. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8729. # Transform the output of nm in a C name address pair
  8730. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8731. # This is the shared library runtime path variable.
  8732. runpath_var=$runpath_var
  8733. # This is the shared library path variable.
  8734. shlibpath_var=$shlibpath_var
  8735. # Is shlibpath searched before the hard-coded library search path?
  8736. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8737. # How to hardcode a shared library path into an executable.
  8738. hardcode_action=$hardcode_action
  8739. # Whether we should hardcode library paths into libraries.
  8740. hardcode_into_libs=$hardcode_into_libs
  8741. # Flag to hardcode \$libdir into a binary during linking.
  8742. # This must work even if \$libdir does not exist.
  8743. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8744. # If ld is used when linking, flag to hardcode \$libdir into
  8745. # a binary during linking. This must work even if \$libdir does
  8746. # not exist.
  8747. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8748. # Whether we need a single -rpath flag with a separated argument.
  8749. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8750. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8751. # resulting binary.
  8752. hardcode_direct=$hardcode_direct
  8753. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8754. # resulting binary.
  8755. hardcode_minus_L=$hardcode_minus_L
  8756. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8757. # the resulting binary.
  8758. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8759. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8760. # and all subsequent libraries and executables linked against it.
  8761. hardcode_automatic=$hardcode_automatic
  8762. # Variables whose values should be saved in libtool wrapper scripts and
  8763. # restored at relink time.
  8764. variables_saved_for_relink="$variables_saved_for_relink"
  8765. # Whether libtool must link a program against all its dependency libraries.
  8766. link_all_deplibs=$link_all_deplibs
  8767. # Compile-time system search path for libraries
  8768. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8769. # Run-time system search path for libraries
  8770. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8771. # Fix the shell variable \$srcfile for the compiler.
  8772. fix_srcfile_path="$fix_srcfile_path"
  8773. # Set to yes if exported symbols are required.
  8774. always_export_symbols=$always_export_symbols
  8775. # The commands to list exported symbols.
  8776. export_symbols_cmds=$lt_export_symbols_cmds
  8777. # The commands to extract the exported symbol list from a shared archive.
  8778. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8779. # Symbols that should not be listed in the preloaded symbols.
  8780. exclude_expsyms=$lt_exclude_expsyms
  8781. # Symbols that must always be exported.
  8782. include_expsyms=$lt_include_expsyms
  8783. # ### END LIBTOOL CONFIG
  8784. __EOF__
  8785. case $host_os in
  8786. aix3*)
  8787. cat <<\EOF >> "$cfgfile"
  8788. # AIX sometimes has problems with the GCC collect2 program. For some
  8789. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8790. # vanish in a puff of smoke.
  8791. if test "X${COLLECT_NAMES+set}" != Xset; then
  8792. COLLECT_NAMES=
  8793. export COLLECT_NAMES
  8794. fi
  8795. EOF
  8796. ;;
  8797. esac
  8798. # We use sed instead of cat because bash on DJGPP gets confused if
  8799. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8800. # text mode, it properly converts lines to CR/LF. This bash problem
  8801. # is reportedly fixed, but why not run on old versions too?
  8802. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8803. mv -f "$cfgfile" "$ofile" || \
  8804. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8805. chmod +x "$ofile"
  8806. else
  8807. # If there is no Makefile yet, we rely on a make rule to execute
  8808. # `config.status --recheck' to rerun these tests and create the
  8809. # libtool script then.
  8810. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8811. if test -f "$ltmain_in"; then
  8812. test -f Makefile && make "$ltmain"
  8813. fi
  8814. fi
  8815. ac_ext=c
  8816. ac_cpp='$CPP $CPPFLAGS'
  8817. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8818. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8819. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8820. CC="$lt_save_CC"
  8821. # Check whether --with-tags or --without-tags was given.
  8822. if test "${with_tags+set}" = set; then
  8823. withval="$with_tags"
  8824. tagnames="$withval"
  8825. fi;
  8826. if test -f "$ltmain" && test -n "$tagnames"; then
  8827. if test ! -f "${ofile}"; then
  8828. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  8829. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  8830. fi
  8831. if test -z "$LTCC"; then
  8832. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  8833. if test -z "$LTCC"; then
  8834. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  8835. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  8836. else
  8837. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  8838. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  8839. fi
  8840. fi
  8841. if test -z "$LTCFLAGS"; then
  8842. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  8843. fi
  8844. # Extract list of available tagged configurations in $ofile.
  8845. # Note that this assumes the entire list is on one line.
  8846. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  8847. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8848. for tagname in $tagnames; do
  8849. IFS="$lt_save_ifs"
  8850. # Check whether tagname contains only valid characters
  8851. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  8852. "") ;;
  8853. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  8854. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  8855. { (exit 1); exit 1; }; }
  8856. ;;
  8857. esac
  8858. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  8859. then
  8860. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  8861. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  8862. { (exit 1); exit 1; }; }
  8863. fi
  8864. # Update the list of available tags.
  8865. if test -n "$tagname"; then
  8866. echo appending configuration tag \"$tagname\" to $ofile
  8867. case $tagname in
  8868. CXX)
  8869. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  8870. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  8871. (test "X$CXX" != "Xg++"))) ; then
  8872. ac_ext=cc
  8873. ac_cpp='$CXXCPP $CPPFLAGS'
  8874. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8875. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8876. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8877. archive_cmds_need_lc_CXX=no
  8878. allow_undefined_flag_CXX=
  8879. always_export_symbols_CXX=no
  8880. archive_expsym_cmds_CXX=
  8881. export_dynamic_flag_spec_CXX=
  8882. hardcode_direct_CXX=no
  8883. hardcode_libdir_flag_spec_CXX=
  8884. hardcode_libdir_flag_spec_ld_CXX=
  8885. hardcode_libdir_separator_CXX=
  8886. hardcode_minus_L_CXX=no
  8887. hardcode_shlibpath_var_CXX=unsupported
  8888. hardcode_automatic_CXX=no
  8889. module_cmds_CXX=
  8890. module_expsym_cmds_CXX=
  8891. link_all_deplibs_CXX=unknown
  8892. old_archive_cmds_CXX=$old_archive_cmds
  8893. no_undefined_flag_CXX=
  8894. whole_archive_flag_spec_CXX=
  8895. enable_shared_with_static_runtimes_CXX=no
  8896. # Dependencies to place before and after the object being linked:
  8897. predep_objects_CXX=
  8898. postdep_objects_CXX=
  8899. predeps_CXX=
  8900. postdeps_CXX=
  8901. compiler_lib_search_path_CXX=
  8902. # Source file extension for C++ test sources.
  8903. ac_ext=cpp
  8904. # Object file extension for compiled C++ test sources.
  8905. objext=o
  8906. objext_CXX=$objext
  8907. # Code to be used in simple compile tests
  8908. lt_simple_compile_test_code="int some_variable = 0;\n"
  8909. # Code to be used in simple link tests
  8910. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  8911. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8912. # If no C compiler was specified, use CC.
  8913. LTCC=${LTCC-"$CC"}
  8914. # If no C compiler flags were specified, use CFLAGS.
  8915. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8916. # Allow CC to be a program name with arguments.
  8917. compiler=$CC
  8918. # save warnings/boilerplate of simple test code
  8919. ac_outfile=conftest.$ac_objext
  8920. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  8921. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8922. _lt_compiler_boilerplate=`cat conftest.err`
  8923. $rm conftest*
  8924. ac_outfile=conftest.$ac_objext
  8925. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  8926. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8927. _lt_linker_boilerplate=`cat conftest.err`
  8928. $rm conftest*
  8929. # Allow CC to be a program name with arguments.
  8930. lt_save_CC=$CC
  8931. lt_save_LD=$LD
  8932. lt_save_GCC=$GCC
  8933. GCC=$GXX
  8934. lt_save_with_gnu_ld=$with_gnu_ld
  8935. lt_save_path_LD=$lt_cv_path_LD
  8936. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  8937. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  8938. else
  8939. $as_unset lt_cv_prog_gnu_ld
  8940. fi
  8941. if test -n "${lt_cv_path_LDCXX+set}"; then
  8942. lt_cv_path_LD=$lt_cv_path_LDCXX
  8943. else
  8944. $as_unset lt_cv_path_LD
  8945. fi
  8946. test -z "${LDCXX+set}" || LD=$LDCXX
  8947. CC=${CXX-"c++"}
  8948. compiler=$CC
  8949. compiler_CXX=$CC
  8950. for cc_temp in $compiler""; do
  8951. case $cc_temp in
  8952. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8953. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8954. \-*) ;;
  8955. *) break;;
  8956. esac
  8957. done
  8958. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8959. # We don't want -fno-exception wen compiling C++ code, so set the
  8960. # no_builtin_flag separately
  8961. if test "$GXX" = yes; then
  8962. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  8963. else
  8964. lt_prog_compiler_no_builtin_flag_CXX=
  8965. fi
  8966. if test "$GXX" = yes; then
  8967. # Set up default GNU C++ configuration
  8968. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  8969. if test "${with_gnu_ld+set}" = set; then
  8970. withval="$with_gnu_ld"
  8971. test "$withval" = no || with_gnu_ld=yes
  8972. else
  8973. with_gnu_ld=no
  8974. fi;
  8975. ac_prog=ld
  8976. if test "$GCC" = yes; then
  8977. # Check if gcc -print-prog-name=ld gives a path.
  8978. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  8979. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  8980. case $host in
  8981. *-*-mingw*)
  8982. # gcc leaves a trailing carriage return which upsets mingw
  8983. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8984. *)
  8985. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8986. esac
  8987. case $ac_prog in
  8988. # Accept absolute paths.
  8989. [\\/]* | ?:[\\/]*)
  8990. re_direlt='/[^/][^/]*/\.\./'
  8991. # Canonicalize the pathname of ld
  8992. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  8993. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8994. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  8995. done
  8996. test -z "$LD" && LD="$ac_prog"
  8997. ;;
  8998. "")
  8999. # If it fails, then pretend we aren't using GCC.
  9000. ac_prog=ld
  9001. ;;
  9002. *)
  9003. # If it is relative, then search for the first ld in PATH.
  9004. with_gnu_ld=unknown
  9005. ;;
  9006. esac
  9007. elif test "$with_gnu_ld" = yes; then
  9008. echo "$as_me:$LINENO: checking for GNU ld" >&5
  9009. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  9010. else
  9011. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9012. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  9013. fi
  9014. if test "${lt_cv_path_LD+set}" = set; then
  9015. echo $ECHO_N "(cached) $ECHO_C" >&6
  9016. else
  9017. if test -z "$LD"; then
  9018. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9019. for ac_dir in $PATH; do
  9020. IFS="$lt_save_ifs"
  9021. test -z "$ac_dir" && ac_dir=.
  9022. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9023. lt_cv_path_LD="$ac_dir/$ac_prog"
  9024. # Check to see if the program is GNU ld. I'd rather use --version,
  9025. # but apparently some variants of GNU ld only accept -v.
  9026. # Break only if it was the GNU/non-GNU ld that we prefer.
  9027. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9028. *GNU* | *'with BFD'*)
  9029. test "$with_gnu_ld" != no && break
  9030. ;;
  9031. *)
  9032. test "$with_gnu_ld" != yes && break
  9033. ;;
  9034. esac
  9035. fi
  9036. done
  9037. IFS="$lt_save_ifs"
  9038. else
  9039. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9040. fi
  9041. fi
  9042. LD="$lt_cv_path_LD"
  9043. if test -n "$LD"; then
  9044. echo "$as_me:$LINENO: result: $LD" >&5
  9045. echo "${ECHO_T}$LD" >&6
  9046. else
  9047. echo "$as_me:$LINENO: result: no" >&5
  9048. echo "${ECHO_T}no" >&6
  9049. fi
  9050. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9051. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9052. { (exit 1); exit 1; }; }
  9053. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9054. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  9055. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9056. echo $ECHO_N "(cached) $ECHO_C" >&6
  9057. else
  9058. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9059. case `$LD -v 2>&1 </dev/null` in
  9060. *GNU* | *'with BFD'*)
  9061. lt_cv_prog_gnu_ld=yes
  9062. ;;
  9063. *)
  9064. lt_cv_prog_gnu_ld=no
  9065. ;;
  9066. esac
  9067. fi
  9068. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9069. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  9070. with_gnu_ld=$lt_cv_prog_gnu_ld
  9071. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9072. # archiving commands below assume that GNU ld is being used.
  9073. if test "$with_gnu_ld" = yes; then
  9074. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9075. 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'
  9076. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9077. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9078. # If archive_cmds runs LD, not CC, wlarc should be empty
  9079. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9080. # investigate it a little bit more. (MM)
  9081. wlarc='${wl}'
  9082. # ancient GNU ld didn't support --whole-archive et. al.
  9083. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9084. grep 'no-whole-archive' > /dev/null; then
  9085. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9086. else
  9087. whole_archive_flag_spec_CXX=
  9088. fi
  9089. else
  9090. with_gnu_ld=no
  9091. wlarc=
  9092. # A generic and very simple default shared library creation
  9093. # command for GNU C++ for the case where it uses the native
  9094. # linker, instead of GNU ld. If possible, this setting should
  9095. # overridden to take advantage of the native linker features on
  9096. # the platform it is being used on.
  9097. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9098. fi
  9099. # Commands to make compiler produce verbose output that lists
  9100. # what "hidden" libraries, object files and flags are used when
  9101. # linking a shared library.
  9102. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9103. else
  9104. GXX=no
  9105. with_gnu_ld=no
  9106. wlarc=
  9107. fi
  9108. # PORTME: fill in a description of your system's C++ link characteristics
  9109. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9110. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  9111. ld_shlibs_CXX=yes
  9112. case $host_os in
  9113. aix3*)
  9114. # FIXME: insert proper C++ library support
  9115. ld_shlibs_CXX=no
  9116. ;;
  9117. aix4* | aix5*)
  9118. if test "$host_cpu" = ia64; then
  9119. # On IA64, the linker does run time linking by default, so we don't
  9120. # have to do anything special.
  9121. aix_use_runtimelinking=no
  9122. exp_sym_flag='-Bexport'
  9123. no_entry_flag=""
  9124. else
  9125. aix_use_runtimelinking=no
  9126. # Test if we are trying to use run time linking or normal
  9127. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9128. # need to do runtime linking.
  9129. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9130. for ld_flag in $LDFLAGS; do
  9131. case $ld_flag in
  9132. *-brtl*)
  9133. aix_use_runtimelinking=yes
  9134. break
  9135. ;;
  9136. esac
  9137. done
  9138. ;;
  9139. esac
  9140. exp_sym_flag='-bexport'
  9141. no_entry_flag='-bnoentry'
  9142. fi
  9143. # When large executables or shared objects are built, AIX ld can
  9144. # have problems creating the table of contents. If linking a library
  9145. # or program results in "error TOC overflow" add -mminimal-toc to
  9146. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9147. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9148. archive_cmds_CXX=''
  9149. hardcode_direct_CXX=yes
  9150. hardcode_libdir_separator_CXX=':'
  9151. link_all_deplibs_CXX=yes
  9152. if test "$GXX" = yes; then
  9153. case $host_os in aix4.[012]|aix4.[012].*)
  9154. # We only want to do this on AIX 4.2 and lower, the check
  9155. # below for broken collect2 doesn't work under 4.3+
  9156. collect2name=`${CC} -print-prog-name=collect2`
  9157. if test -f "$collect2name" && \
  9158. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9159. then
  9160. # We have reworked collect2
  9161. hardcode_direct_CXX=yes
  9162. else
  9163. # We have old collect2
  9164. hardcode_direct_CXX=unsupported
  9165. # It fails to find uninstalled libraries when the uninstalled
  9166. # path is not listed in the libpath. Setting hardcode_minus_L
  9167. # to unsupported forces relinking
  9168. hardcode_minus_L_CXX=yes
  9169. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9170. hardcode_libdir_separator_CXX=
  9171. fi
  9172. ;;
  9173. esac
  9174. shared_flag='-shared'
  9175. if test "$aix_use_runtimelinking" = yes; then
  9176. shared_flag="$shared_flag "'${wl}-G'
  9177. fi
  9178. else
  9179. # not using gcc
  9180. if test "$host_cpu" = ia64; then
  9181. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9182. # chokes on -Wl,-G. The following line is correct:
  9183. shared_flag='-G'
  9184. else
  9185. if test "$aix_use_runtimelinking" = yes; then
  9186. shared_flag='${wl}-G'
  9187. else
  9188. shared_flag='${wl}-bM:SRE'
  9189. fi
  9190. fi
  9191. fi
  9192. # It seems that -bexpall does not export symbols beginning with
  9193. # underscore (_), so it is better to generate a list of symbols to export.
  9194. always_export_symbols_CXX=yes
  9195. if test "$aix_use_runtimelinking" = yes; then
  9196. # Warning - without using the other runtime loading flags (-brtl),
  9197. # -berok will link without error, but may produce a broken library.
  9198. allow_undefined_flag_CXX='-berok'
  9199. # Determine the default libpath from the value encoded in an empty executable.
  9200. cat >conftest.$ac_ext <<_ACEOF
  9201. /* confdefs.h. */
  9202. _ACEOF
  9203. cat confdefs.h >>conftest.$ac_ext
  9204. cat >>conftest.$ac_ext <<_ACEOF
  9205. /* end confdefs.h. */
  9206. int
  9207. main ()
  9208. {
  9209. ;
  9210. return 0;
  9211. }
  9212. _ACEOF
  9213. rm -f conftest.$ac_objext conftest$ac_exeext
  9214. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9215. (eval $ac_link) 2>conftest.er1
  9216. ac_status=$?
  9217. grep -v '^ *+' conftest.er1 >conftest.err
  9218. rm -f conftest.er1
  9219. cat conftest.err >&5
  9220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9221. (exit $ac_status); } &&
  9222. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9223. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9224. (eval $ac_try) 2>&5
  9225. ac_status=$?
  9226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9227. (exit $ac_status); }; } &&
  9228. { ac_try='test -s conftest$ac_exeext'
  9229. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9230. (eval $ac_try) 2>&5
  9231. ac_status=$?
  9232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9233. (exit $ac_status); }; }; then
  9234. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9235. }'`
  9236. # Check for a 64-bit object if we didn't find anything.
  9237. 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; }
  9238. }'`; fi
  9239. else
  9240. echo "$as_me: failed program was:" >&5
  9241. sed 's/^/| /' conftest.$ac_ext >&5
  9242. fi
  9243. rm -f conftest.err conftest.$ac_objext \
  9244. conftest$ac_exeext conftest.$ac_ext
  9245. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9246. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9247. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9248. else
  9249. if test "$host_cpu" = ia64; then
  9250. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9251. allow_undefined_flag_CXX="-z nodefs"
  9252. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  9253. else
  9254. # Determine the default libpath from the value encoded in an empty executable.
  9255. cat >conftest.$ac_ext <<_ACEOF
  9256. /* confdefs.h. */
  9257. _ACEOF
  9258. cat confdefs.h >>conftest.$ac_ext
  9259. cat >>conftest.$ac_ext <<_ACEOF
  9260. /* end confdefs.h. */
  9261. int
  9262. main ()
  9263. {
  9264. ;
  9265. return 0;
  9266. }
  9267. _ACEOF
  9268. rm -f conftest.$ac_objext conftest$ac_exeext
  9269. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9270. (eval $ac_link) 2>conftest.er1
  9271. ac_status=$?
  9272. grep -v '^ *+' conftest.er1 >conftest.err
  9273. rm -f conftest.er1
  9274. cat conftest.err >&5
  9275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9276. (exit $ac_status); } &&
  9277. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9279. (eval $ac_try) 2>&5
  9280. ac_status=$?
  9281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9282. (exit $ac_status); }; } &&
  9283. { ac_try='test -s conftest$ac_exeext'
  9284. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9285. (eval $ac_try) 2>&5
  9286. ac_status=$?
  9287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9288. (exit $ac_status); }; }; then
  9289. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9290. }'`
  9291. # Check for a 64-bit object if we didn't find anything.
  9292. 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; }
  9293. }'`; fi
  9294. else
  9295. echo "$as_me: failed program was:" >&5
  9296. sed 's/^/| /' conftest.$ac_ext >&5
  9297. fi
  9298. rm -f conftest.err conftest.$ac_objext \
  9299. conftest$ac_exeext conftest.$ac_ext
  9300. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9301. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9302. # Warning - without using the other run time loading flags,
  9303. # -berok will link without error, but may produce a broken library.
  9304. no_undefined_flag_CXX=' ${wl}-bernotok'
  9305. allow_undefined_flag_CXX=' ${wl}-berok'
  9306. # Exported symbols can be pulled into shared objects from archives
  9307. whole_archive_flag_spec_CXX='$convenience'
  9308. archive_cmds_need_lc_CXX=yes
  9309. # This is similar to how AIX traditionally builds its shared libraries.
  9310. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  9311. fi
  9312. fi
  9313. ;;
  9314. beos*)
  9315. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9316. allow_undefined_flag_CXX=unsupported
  9317. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9318. # support --undefined. This deserves some investigation. FIXME
  9319. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9320. else
  9321. ld_shlibs_CXX=no
  9322. fi
  9323. ;;
  9324. chorus*)
  9325. case $cc_basename in
  9326. *)
  9327. # FIXME: insert proper C++ library support
  9328. ld_shlibs_CXX=no
  9329. ;;
  9330. esac
  9331. ;;
  9332. cygwin* | mingw* | pw32*)
  9333. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9334. # as there is no search path for DLLs.
  9335. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9336. allow_undefined_flag_CXX=unsupported
  9337. always_export_symbols_CXX=no
  9338. enable_shared_with_static_runtimes_CXX=yes
  9339. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9340. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9341. # If the export-symbols file already is a .def file (1st line
  9342. # is EXPORTS), use it as is; otherwise, prepend...
  9343. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9344. cp $export_symbols $output_objdir/$soname.def;
  9345. else
  9346. echo EXPORTS > $output_objdir/$soname.def;
  9347. cat $export_symbols >> $output_objdir/$soname.def;
  9348. fi~
  9349. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9350. else
  9351. ld_shlibs_CXX=no
  9352. fi
  9353. ;;
  9354. darwin* | rhapsody*)
  9355. case $host_os in
  9356. rhapsody* | darwin1.[012])
  9357. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9358. ;;
  9359. *) # Darwin 1.3 on
  9360. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9361. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9362. else
  9363. case ${MACOSX_DEPLOYMENT_TARGET} in
  9364. 10.[012])
  9365. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9366. ;;
  9367. 10.*)
  9368. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  9369. ;;
  9370. esac
  9371. fi
  9372. ;;
  9373. esac
  9374. archive_cmds_need_lc_CXX=no
  9375. hardcode_direct_CXX=no
  9376. hardcode_automatic_CXX=yes
  9377. hardcode_shlibpath_var_CXX=unsupported
  9378. whole_archive_flag_spec_CXX=''
  9379. link_all_deplibs_CXX=yes
  9380. if test "$GXX" = yes ; then
  9381. lt_int_apple_cc_single_mod=no
  9382. output_verbose_link_cmd='echo'
  9383. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  9384. lt_int_apple_cc_single_mod=yes
  9385. fi
  9386. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9387. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9388. else
  9389. archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9390. fi
  9391. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9392. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9393. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9394. 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}'
  9395. else
  9396. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9397. fi
  9398. 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}'
  9399. else
  9400. case $cc_basename in
  9401. xlc*)
  9402. output_verbose_link_cmd='echo'
  9403. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  9404. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9405. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9406. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9407. 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}'
  9408. ;;
  9409. *)
  9410. ld_shlibs_CXX=no
  9411. ;;
  9412. esac
  9413. fi
  9414. ;;
  9415. dgux*)
  9416. case $cc_basename in
  9417. ec++*)
  9418. # FIXME: insert proper C++ library support
  9419. ld_shlibs_CXX=no
  9420. ;;
  9421. ghcx*)
  9422. # Green Hills C++ Compiler
  9423. # FIXME: insert proper C++ library support
  9424. ld_shlibs_CXX=no
  9425. ;;
  9426. *)
  9427. # FIXME: insert proper C++ library support
  9428. ld_shlibs_CXX=no
  9429. ;;
  9430. esac
  9431. ;;
  9432. freebsd[12]*)
  9433. # C++ shared libraries reported to be fairly broken before switch to ELF
  9434. ld_shlibs_CXX=no
  9435. ;;
  9436. freebsd-elf*)
  9437. archive_cmds_need_lc_CXX=no
  9438. ;;
  9439. freebsd* | kfreebsd*-gnu | dragonfly*)
  9440. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9441. # conventions
  9442. ld_shlibs_CXX=yes
  9443. ;;
  9444. gnu*)
  9445. ;;
  9446. hpux9*)
  9447. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9448. hardcode_libdir_separator_CXX=:
  9449. export_dynamic_flag_spec_CXX='${wl}-E'
  9450. hardcode_direct_CXX=yes
  9451. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9452. # but as the default
  9453. # location of the library.
  9454. case $cc_basename in
  9455. CC*)
  9456. # FIXME: insert proper C++ library support
  9457. ld_shlibs_CXX=no
  9458. ;;
  9459. aCC*)
  9460. 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'
  9461. # Commands to make compiler produce verbose output that lists
  9462. # what "hidden" libraries, object files and flags are used when
  9463. # linking a shared library.
  9464. #
  9465. # There doesn't appear to be a way to prevent this compiler from
  9466. # explicitly linking system object files so we need to strip them
  9467. # from the output so that they don't get included in the library
  9468. # dependencies.
  9469. 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'
  9470. ;;
  9471. *)
  9472. if test "$GXX" = yes; then
  9473. 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'
  9474. else
  9475. # FIXME: insert proper C++ library support
  9476. ld_shlibs_CXX=no
  9477. fi
  9478. ;;
  9479. esac
  9480. ;;
  9481. hpux10*|hpux11*)
  9482. if test $with_gnu_ld = no; then
  9483. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9484. hardcode_libdir_separator_CXX=:
  9485. case $host_cpu in
  9486. hppa*64*|ia64*)
  9487. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  9488. ;;
  9489. *)
  9490. export_dynamic_flag_spec_CXX='${wl}-E'
  9491. ;;
  9492. esac
  9493. fi
  9494. case $host_cpu in
  9495. hppa*64*|ia64*)
  9496. hardcode_direct_CXX=no
  9497. hardcode_shlibpath_var_CXX=no
  9498. ;;
  9499. *)
  9500. hardcode_direct_CXX=yes
  9501. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9502. # but as the default
  9503. # location of the library.
  9504. ;;
  9505. esac
  9506. case $cc_basename in
  9507. CC*)
  9508. # FIXME: insert proper C++ library support
  9509. ld_shlibs_CXX=no
  9510. ;;
  9511. aCC*)
  9512. case $host_cpu in
  9513. hppa*64*)
  9514. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9515. ;;
  9516. ia64*)
  9517. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9518. ;;
  9519. *)
  9520. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9521. ;;
  9522. esac
  9523. # Commands to make compiler produce verbose output that lists
  9524. # what "hidden" libraries, object files and flags are used when
  9525. # linking a shared library.
  9526. #
  9527. # There doesn't appear to be a way to prevent this compiler from
  9528. # explicitly linking system object files so we need to strip them
  9529. # from the output so that they don't get included in the library
  9530. # dependencies.
  9531. 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'
  9532. ;;
  9533. *)
  9534. if test "$GXX" = yes; then
  9535. if test $with_gnu_ld = no; then
  9536. case $host_cpu in
  9537. hppa*64*)
  9538. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9539. ;;
  9540. ia64*)
  9541. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9542. ;;
  9543. *)
  9544. 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'
  9545. ;;
  9546. esac
  9547. fi
  9548. else
  9549. # FIXME: insert proper C++ library support
  9550. ld_shlibs_CXX=no
  9551. fi
  9552. ;;
  9553. esac
  9554. ;;
  9555. interix3*)
  9556. hardcode_direct_CXX=no
  9557. hardcode_shlibpath_var_CXX=no
  9558. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9559. export_dynamic_flag_spec_CXX='${wl}-E'
  9560. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9561. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9562. # default) and relocated if they conflict, which is a slow very memory
  9563. # consuming and fragmenting process. To avoid this, we pick a random,
  9564. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9565. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9566. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9567. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9568. ;;
  9569. irix5* | irix6*)
  9570. case $cc_basename in
  9571. CC*)
  9572. # SGI C++
  9573. 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 ${output_objdir}/so_locations -o $lib'
  9574. # Archives containing C++ object files must be created using
  9575. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9576. # necessary to make sure instantiated templates are included
  9577. # in the archive.
  9578. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9579. ;;
  9580. *)
  9581. if test "$GXX" = yes; then
  9582. if test "$with_gnu_ld" = no; then
  9583. 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}${output_objdir}/so_locations -o $lib'
  9584. else
  9585. 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'
  9586. fi
  9587. fi
  9588. link_all_deplibs_CXX=yes
  9589. ;;
  9590. esac
  9591. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9592. hardcode_libdir_separator_CXX=:
  9593. ;;
  9594. linux*)
  9595. case $cc_basename in
  9596. KCC*)
  9597. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9598. # KCC will only create a shared library if the output file
  9599. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9600. # to its proper name (with version) after linking.
  9601. 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'
  9602. 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'
  9603. # Commands to make compiler produce verbose output that lists
  9604. # what "hidden" libraries, object files and flags are used when
  9605. # linking a shared library.
  9606. #
  9607. # There doesn't appear to be a way to prevent this compiler from
  9608. # explicitly linking system object files so we need to strip them
  9609. # from the output so that they don't get included in the library
  9610. # dependencies.
  9611. 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'
  9612. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  9613. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9614. # Archives containing C++ object files must be created using
  9615. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9616. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9617. ;;
  9618. icpc*)
  9619. # Intel C++
  9620. with_gnu_ld=yes
  9621. # version 8.0 and above of icpc choke on multiply defined symbols
  9622. # if we add $predep_objects and $postdep_objects, however 7.1 and
  9623. # earlier do not add the objects themselves.
  9624. case `$CC -V 2>&1` in
  9625. *"Version 7."*)
  9626. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9627. 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'
  9628. ;;
  9629. *) # Version 8.0 or newer
  9630. tmp_idyn=
  9631. case $host_cpu in
  9632. ia64*) tmp_idyn=' -i_dynamic';;
  9633. esac
  9634. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9635. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9636. ;;
  9637. esac
  9638. archive_cmds_need_lc_CXX=no
  9639. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9640. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9641. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9642. ;;
  9643. pgCC*)
  9644. # Portland Group C++ compiler
  9645. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9646. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  9647. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9648. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9649. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9650. ;;
  9651. cxx*)
  9652. # Compaq C++
  9653. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9654. 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'
  9655. runpath_var=LD_RUN_PATH
  9656. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9657. hardcode_libdir_separator_CXX=:
  9658. # Commands to make compiler produce verbose output that lists
  9659. # what "hidden" libraries, object files and flags are used when
  9660. # linking a shared library.
  9661. #
  9662. # There doesn't appear to be a way to prevent this compiler from
  9663. # explicitly linking system object files so we need to strip them
  9664. # from the output so that they don't get included in the library
  9665. # dependencies.
  9666. 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'
  9667. ;;
  9668. esac
  9669. ;;
  9670. lynxos*)
  9671. # FIXME: insert proper C++ library support
  9672. ld_shlibs_CXX=no
  9673. ;;
  9674. m88k*)
  9675. # FIXME: insert proper C++ library support
  9676. ld_shlibs_CXX=no
  9677. ;;
  9678. mvs*)
  9679. case $cc_basename in
  9680. cxx*)
  9681. # FIXME: insert proper C++ library support
  9682. ld_shlibs_CXX=no
  9683. ;;
  9684. *)
  9685. # FIXME: insert proper C++ library support
  9686. ld_shlibs_CXX=no
  9687. ;;
  9688. esac
  9689. ;;
  9690. netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  9691. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9692. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9693. wlarc=
  9694. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9695. hardcode_direct_CXX=yes
  9696. hardcode_shlibpath_var_CXX=no
  9697. fi
  9698. # Workaround some broken pre-1.5 toolchains
  9699. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9700. ;;
  9701. openbsd2*)
  9702. # C++ shared libraries are fairly broken
  9703. ld_shlibs_CXX=no
  9704. ;;
  9705. openbsd*)
  9706. hardcode_direct_CXX=yes
  9707. hardcode_shlibpath_var_CXX=no
  9708. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9709. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9710. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9711. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  9712. export_dynamic_flag_spec_CXX='${wl}-E'
  9713. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9714. fi
  9715. output_verbose_link_cmd='echo'
  9716. ;;
  9717. osf3*)
  9718. case $cc_basename in
  9719. KCC*)
  9720. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9721. # KCC will only create a shared library if the output file
  9722. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9723. # to its proper name (with version) after linking.
  9724. 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'
  9725. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9726. hardcode_libdir_separator_CXX=:
  9727. # Archives containing C++ object files must be created using
  9728. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9729. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9730. ;;
  9731. RCC*)
  9732. # Rational C++ 2.4.1
  9733. # FIXME: insert proper C++ library support
  9734. ld_shlibs_CXX=no
  9735. ;;
  9736. cxx*)
  9737. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9738. 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 ${output_objdir}/so_locations -o $lib'
  9739. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9740. hardcode_libdir_separator_CXX=:
  9741. # Commands to make compiler produce verbose output that lists
  9742. # what "hidden" libraries, object files and flags are used when
  9743. # linking a shared library.
  9744. #
  9745. # There doesn't appear to be a way to prevent this compiler from
  9746. # explicitly linking system object files so we need to strip them
  9747. # from the output so that they don't get included in the library
  9748. # dependencies.
  9749. 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'
  9750. ;;
  9751. *)
  9752. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9753. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9754. 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}${output_objdir}/so_locations -o $lib'
  9755. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9756. hardcode_libdir_separator_CXX=:
  9757. # Commands to make compiler produce verbose output that lists
  9758. # what "hidden" libraries, object files and flags are used when
  9759. # linking a shared library.
  9760. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9761. else
  9762. # FIXME: insert proper C++ library support
  9763. ld_shlibs_CXX=no
  9764. fi
  9765. ;;
  9766. esac
  9767. ;;
  9768. osf4* | osf5*)
  9769. case $cc_basename in
  9770. KCC*)
  9771. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9772. # KCC will only create a shared library if the output file
  9773. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9774. # to its proper name (with version) after linking.
  9775. 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'
  9776. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9777. hardcode_libdir_separator_CXX=:
  9778. # Archives containing C++ object files must be created using
  9779. # the KAI C++ compiler.
  9780. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  9781. ;;
  9782. RCC*)
  9783. # Rational C++ 2.4.1
  9784. # FIXME: insert proper C++ library support
  9785. ld_shlibs_CXX=no
  9786. ;;
  9787. cxx*)
  9788. allow_undefined_flag_CXX=' -expect_unresolved \*'
  9789. 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 ${output_objdir}/so_locations -o $lib'
  9790. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  9791. echo "-hidden">> $lib.exp~
  9792. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  9793. $rm $lib.exp'
  9794. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9795. hardcode_libdir_separator_CXX=:
  9796. # Commands to make compiler produce verbose output that lists
  9797. # what "hidden" libraries, object files and flags are used when
  9798. # linking a shared library.
  9799. #
  9800. # There doesn't appear to be a way to prevent this compiler from
  9801. # explicitly linking system object files so we need to strip them
  9802. # from the output so that they don't get included in the library
  9803. # dependencies.
  9804. 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'
  9805. ;;
  9806. *)
  9807. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9808. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9809. 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}${output_objdir}/so_locations -o $lib'
  9810. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9811. hardcode_libdir_separator_CXX=:
  9812. # Commands to make compiler produce verbose output that lists
  9813. # what "hidden" libraries, object files and flags are used when
  9814. # linking a shared library.
  9815. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9816. else
  9817. # FIXME: insert proper C++ library support
  9818. ld_shlibs_CXX=no
  9819. fi
  9820. ;;
  9821. esac
  9822. ;;
  9823. psos*)
  9824. # FIXME: insert proper C++ library support
  9825. ld_shlibs_CXX=no
  9826. ;;
  9827. sunos4*)
  9828. case $cc_basename in
  9829. CC*)
  9830. # Sun C++ 4.x
  9831. # FIXME: insert proper C++ library support
  9832. ld_shlibs_CXX=no
  9833. ;;
  9834. lcc*)
  9835. # Lucid
  9836. # FIXME: insert proper C++ library support
  9837. ld_shlibs_CXX=no
  9838. ;;
  9839. *)
  9840. # FIXME: insert proper C++ library support
  9841. ld_shlibs_CXX=no
  9842. ;;
  9843. esac
  9844. ;;
  9845. solaris*)
  9846. case $cc_basename in
  9847. CC*)
  9848. # Sun C++ 4.2, 5.x and Centerline C++
  9849. archive_cmds_need_lc_CXX=yes
  9850. no_undefined_flag_CXX=' -zdefs'
  9851. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9852. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9853. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9854. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9855. hardcode_shlibpath_var_CXX=no
  9856. case $host_os in
  9857. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9858. *)
  9859. # The C++ compiler is used as linker so we must use $wl
  9860. # flag to pass the commands to the underlying system
  9861. # linker. We must also pass each convience library through
  9862. # to the system linker between allextract/defaultextract.
  9863. # The C++ compiler will combine linker options so we
  9864. # cannot just pass the convience library names through
  9865. # without $wl.
  9866. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9867. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  9868. ;;
  9869. esac
  9870. link_all_deplibs_CXX=yes
  9871. output_verbose_link_cmd='echo'
  9872. # Archives containing C++ object files must be created using
  9873. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  9874. # necessary to make sure instantiated templates are included
  9875. # in the archive.
  9876. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  9877. ;;
  9878. gcx*)
  9879. # Green Hills C++ Compiler
  9880. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9881. # The C++ compiler must be used to create the archive.
  9882. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  9883. ;;
  9884. *)
  9885. # GNU C++ compiler with Solaris linker
  9886. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9887. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  9888. if $CC --version | grep -v '^2\.7' > /dev/null; then
  9889. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9890. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9891. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9892. # Commands to make compiler produce verbose output that lists
  9893. # what "hidden" libraries, object files and flags are used when
  9894. # linking a shared library.
  9895. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9896. else
  9897. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  9898. # platform.
  9899. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9900. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9901. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9902. # Commands to make compiler produce verbose output that lists
  9903. # what "hidden" libraries, object files and flags are used when
  9904. # linking a shared library.
  9905. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9906. fi
  9907. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  9908. fi
  9909. ;;
  9910. esac
  9911. ;;
  9912. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9913. no_undefined_flag_CXX='${wl}-z,text'
  9914. archive_cmds_need_lc_CXX=no
  9915. hardcode_shlibpath_var_CXX=no
  9916. runpath_var='LD_RUN_PATH'
  9917. case $cc_basename in
  9918. CC*)
  9919. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9920. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9921. ;;
  9922. *)
  9923. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9924. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9925. ;;
  9926. esac
  9927. ;;
  9928. sysv5* | sco3.2v5* | sco5v6*)
  9929. # Note: We can NOT use -z defs as we might desire, because we do not
  9930. # link with -lc, and that would cause any symbols used from libc to
  9931. # always be unresolved, which means just about no library would
  9932. # ever link correctly. If we're not using GNU ld we use -z text
  9933. # though, which does catch some bad symbols but isn't as heavy-handed
  9934. # as -z defs.
  9935. # For security reasons, it is highly recommended that you always
  9936. # use absolute paths for naming shared libraries, and exclude the
  9937. # DT_RUNPATH tag from executables and libraries. But doing so
  9938. # requires that you compile everything twice, which is a pain.
  9939. # So that behaviour is only enabled if SCOABSPATH is set to a
  9940. # non-empty value in the environment. Most likely only useful for
  9941. # creating official distributions of packages.
  9942. # This is a hack until libtool officially supports absolute path
  9943. # names for shared libraries.
  9944. no_undefined_flag_CXX='${wl}-z,text'
  9945. allow_undefined_flag_CXX='${wl}-z,nodefs'
  9946. archive_cmds_need_lc_CXX=no
  9947. hardcode_shlibpath_var_CXX=no
  9948. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  9949. hardcode_libdir_separator_CXX=':'
  9950. link_all_deplibs_CXX=yes
  9951. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  9952. runpath_var='LD_RUN_PATH'
  9953. case $cc_basename in
  9954. CC*)
  9955. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9956. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9957. ;;
  9958. *)
  9959. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9960. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9961. ;;
  9962. esac
  9963. ;;
  9964. tandem*)
  9965. case $cc_basename in
  9966. NCC*)
  9967. # NonStop-UX NCC 3.20
  9968. # FIXME: insert proper C++ library support
  9969. ld_shlibs_CXX=no
  9970. ;;
  9971. *)
  9972. # FIXME: insert proper C++ library support
  9973. ld_shlibs_CXX=no
  9974. ;;
  9975. esac
  9976. ;;
  9977. vxworks*)
  9978. # FIXME: insert proper C++ library support
  9979. ld_shlibs_CXX=no
  9980. ;;
  9981. *)
  9982. # FIXME: insert proper C++ library support
  9983. ld_shlibs_CXX=no
  9984. ;;
  9985. esac
  9986. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  9987. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  9988. test "$ld_shlibs_CXX" = no && can_build_shared=no
  9989. GCC_CXX="$GXX"
  9990. LD_CXX="$LD"
  9991. cat > conftest.$ac_ext <<EOF
  9992. class Foo
  9993. {
  9994. public:
  9995. Foo (void) { a = 0; }
  9996. private:
  9997. int a;
  9998. };
  9999. EOF
  10000. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10001. (eval $ac_compile) 2>&5
  10002. ac_status=$?
  10003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10004. (exit $ac_status); }; then
  10005. # Parse the compiler output and extract the necessary
  10006. # objects, libraries and library flags.
  10007. # Sentinel used to keep track of whether or not we are before
  10008. # the conftest object file.
  10009. pre_test_object_deps_done=no
  10010. # The `*' in the case matches for architectures that use `case' in
  10011. # $output_verbose_cmd can trigger glob expansion during the loop
  10012. # eval without this substitution.
  10013. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10014. for p in `eval $output_verbose_link_cmd`; do
  10015. case $p in
  10016. -L* | -R* | -l*)
  10017. # Some compilers place space between "-{L,R}" and the path.
  10018. # Remove the space.
  10019. if test $p = "-L" \
  10020. || test $p = "-R"; then
  10021. prev=$p
  10022. continue
  10023. else
  10024. prev=
  10025. fi
  10026. if test "$pre_test_object_deps_done" = no; then
  10027. case $p in
  10028. -L* | -R*)
  10029. # Internal compiler library paths should come after those
  10030. # provided the user. The postdeps already come after the
  10031. # user supplied libs so there is no need to process them.
  10032. if test -z "$compiler_lib_search_path_CXX"; then
  10033. compiler_lib_search_path_CXX="${prev}${p}"
  10034. else
  10035. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10036. fi
  10037. ;;
  10038. # The "-l" case would never come before the object being
  10039. # linked, so don't bother handling this case.
  10040. esac
  10041. else
  10042. if test -z "$postdeps_CXX"; then
  10043. postdeps_CXX="${prev}${p}"
  10044. else
  10045. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10046. fi
  10047. fi
  10048. ;;
  10049. *.$objext)
  10050. # This assumes that the test object file only shows up
  10051. # once in the compiler output.
  10052. if test "$p" = "conftest.$objext"; then
  10053. pre_test_object_deps_done=yes
  10054. continue
  10055. fi
  10056. if test "$pre_test_object_deps_done" = no; then
  10057. if test -z "$predep_objects_CXX"; then
  10058. predep_objects_CXX="$p"
  10059. else
  10060. predep_objects_CXX="$predep_objects_CXX $p"
  10061. fi
  10062. else
  10063. if test -z "$postdep_objects_CXX"; then
  10064. postdep_objects_CXX="$p"
  10065. else
  10066. postdep_objects_CXX="$postdep_objects_CXX $p"
  10067. fi
  10068. fi
  10069. ;;
  10070. *) ;; # Ignore the rest.
  10071. esac
  10072. done
  10073. # Clean up.
  10074. rm -f a.out a.exe
  10075. else
  10076. echo "libtool.m4: error: problem compiling CXX test program"
  10077. fi
  10078. $rm -f confest.$objext
  10079. # PORTME: override above test on systems where it is broken
  10080. case $host_os in
  10081. interix3*)
  10082. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10083. # hack all around it, let's just trust "g++" to DTRT.
  10084. predep_objects_CXX=
  10085. postdep_objects_CXX=
  10086. postdeps_CXX=
  10087. ;;
  10088. solaris*)
  10089. case $cc_basename in
  10090. CC*)
  10091. # Adding this requires a known-good setup of shared libraries for
  10092. # Sun compiler versions before 5.6, else PIC objects from an old
  10093. # archive will be linked into the output, leading to subtle bugs.
  10094. postdeps_CXX='-lCstd -lCrun'
  10095. ;;
  10096. esac
  10097. ;;
  10098. esac
  10099. case " $postdeps_CXX " in
  10100. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10101. esac
  10102. lt_prog_compiler_wl_CXX=
  10103. lt_prog_compiler_pic_CXX=
  10104. lt_prog_compiler_static_CXX=
  10105. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10106. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  10107. # C++ specific cases for pic, static, wl, etc.
  10108. if test "$GXX" = yes; then
  10109. lt_prog_compiler_wl_CXX='-Wl,'
  10110. lt_prog_compiler_static_CXX='-static'
  10111. case $host_os in
  10112. aix*)
  10113. # All AIX code is PIC.
  10114. if test "$host_cpu" = ia64; then
  10115. # AIX 5 now supports IA64 processor
  10116. lt_prog_compiler_static_CXX='-Bstatic'
  10117. fi
  10118. ;;
  10119. amigaos*)
  10120. # FIXME: we need at least 68020 code to build shared libraries, but
  10121. # adding the `-m68020' flag to GCC prevents building anything better,
  10122. # like `-m68040'.
  10123. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10124. ;;
  10125. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10126. # PIC is the default for these OSes.
  10127. ;;
  10128. mingw* | os2* | pw32*)
  10129. # This hack is so that the source file can tell whether it is being
  10130. # built for inclusion in a dll (and should export symbols for example).
  10131. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10132. ;;
  10133. darwin* | rhapsody*)
  10134. # PIC is the default on this platform
  10135. # Common symbols not allowed in MH_DYLIB files
  10136. lt_prog_compiler_pic_CXX='-fno-common'
  10137. ;;
  10138. *djgpp*)
  10139. # DJGPP does not support shared libraries at all
  10140. lt_prog_compiler_pic_CXX=
  10141. ;;
  10142. interix3*)
  10143. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10144. # Instead, we relocate shared libraries at runtime.
  10145. ;;
  10146. sysv4*MP*)
  10147. if test -d /usr/nec; then
  10148. lt_prog_compiler_pic_CXX=-Kconform_pic
  10149. fi
  10150. ;;
  10151. hpux*)
  10152. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10153. # not for PA HP-UX.
  10154. case $host_cpu in
  10155. hppa*64*|ia64*)
  10156. ;;
  10157. *)
  10158. lt_prog_compiler_pic_CXX='-fPIC'
  10159. ;;
  10160. esac
  10161. ;;
  10162. *)
  10163. lt_prog_compiler_pic_CXX='-fPIC'
  10164. ;;
  10165. esac
  10166. else
  10167. case $host_os in
  10168. aix4* | aix5*)
  10169. # All AIX code is PIC.
  10170. if test "$host_cpu" = ia64; then
  10171. # AIX 5 now supports IA64 processor
  10172. lt_prog_compiler_static_CXX='-Bstatic'
  10173. else
  10174. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10175. fi
  10176. ;;
  10177. chorus*)
  10178. case $cc_basename in
  10179. cxch68*)
  10180. # Green Hills C++ Compiler
  10181. # _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"
  10182. ;;
  10183. esac
  10184. ;;
  10185. darwin*)
  10186. # PIC is the default on this platform
  10187. # Common symbols not allowed in MH_DYLIB files
  10188. case $cc_basename in
  10189. xlc*)
  10190. lt_prog_compiler_pic_CXX='-qnocommon'
  10191. lt_prog_compiler_wl_CXX='-Wl,'
  10192. ;;
  10193. esac
  10194. ;;
  10195. dgux*)
  10196. case $cc_basename in
  10197. ec++*)
  10198. lt_prog_compiler_pic_CXX='-KPIC'
  10199. ;;
  10200. ghcx*)
  10201. # Green Hills C++ Compiler
  10202. lt_prog_compiler_pic_CXX='-pic'
  10203. ;;
  10204. *)
  10205. ;;
  10206. esac
  10207. ;;
  10208. freebsd* | kfreebsd*-gnu | dragonfly*)
  10209. # FreeBSD uses GNU C++
  10210. ;;
  10211. hpux9* | hpux10* | hpux11*)
  10212. case $cc_basename in
  10213. CC*)
  10214. lt_prog_compiler_wl_CXX='-Wl,'
  10215. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10216. if test "$host_cpu" != ia64; then
  10217. lt_prog_compiler_pic_CXX='+Z'
  10218. fi
  10219. ;;
  10220. aCC*)
  10221. lt_prog_compiler_wl_CXX='-Wl,'
  10222. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10223. case $host_cpu in
  10224. hppa*64*|ia64*)
  10225. # +Z the default
  10226. ;;
  10227. *)
  10228. lt_prog_compiler_pic_CXX='+Z'
  10229. ;;
  10230. esac
  10231. ;;
  10232. *)
  10233. ;;
  10234. esac
  10235. ;;
  10236. interix*)
  10237. # This is c89, which is MS Visual C++ (no shared libs)
  10238. # Anyone wants to do a port?
  10239. ;;
  10240. irix5* | irix6* | nonstopux*)
  10241. case $cc_basename in
  10242. CC*)
  10243. lt_prog_compiler_wl_CXX='-Wl,'
  10244. lt_prog_compiler_static_CXX='-non_shared'
  10245. # CC pic flag -KPIC is the default.
  10246. ;;
  10247. *)
  10248. ;;
  10249. esac
  10250. ;;
  10251. linux*)
  10252. case $cc_basename in
  10253. KCC*)
  10254. # KAI C++ Compiler
  10255. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10256. lt_prog_compiler_pic_CXX='-fPIC'
  10257. ;;
  10258. icpc* | ecpc*)
  10259. # Intel C++
  10260. lt_prog_compiler_wl_CXX='-Wl,'
  10261. lt_prog_compiler_pic_CXX='-KPIC'
  10262. lt_prog_compiler_static_CXX='-static'
  10263. ;;
  10264. pgCC*)
  10265. # Portland Group C++ compiler.
  10266. lt_prog_compiler_wl_CXX='-Wl,'
  10267. lt_prog_compiler_pic_CXX='-fpic'
  10268. lt_prog_compiler_static_CXX='-Bstatic'
  10269. ;;
  10270. cxx*)
  10271. # Compaq C++
  10272. # Make sure the PIC flag is empty. It appears that all Alpha
  10273. # Linux and Compaq Tru64 Unix objects are PIC.
  10274. lt_prog_compiler_pic_CXX=
  10275. lt_prog_compiler_static_CXX='-non_shared'
  10276. ;;
  10277. *)
  10278. ;;
  10279. esac
  10280. ;;
  10281. lynxos*)
  10282. ;;
  10283. m88k*)
  10284. ;;
  10285. mvs*)
  10286. case $cc_basename in
  10287. cxx*)
  10288. lt_prog_compiler_pic_CXX='-W c,exportall'
  10289. ;;
  10290. *)
  10291. ;;
  10292. esac
  10293. ;;
  10294. netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  10295. ;;
  10296. osf3* | osf4* | osf5*)
  10297. case $cc_basename in
  10298. KCC*)
  10299. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10300. ;;
  10301. RCC*)
  10302. # Rational C++ 2.4.1
  10303. lt_prog_compiler_pic_CXX='-pic'
  10304. ;;
  10305. cxx*)
  10306. # Digital/Compaq C++
  10307. lt_prog_compiler_wl_CXX='-Wl,'
  10308. # Make sure the PIC flag is empty. It appears that all Alpha
  10309. # Linux and Compaq Tru64 Unix objects are PIC.
  10310. lt_prog_compiler_pic_CXX=
  10311. lt_prog_compiler_static_CXX='-non_shared'
  10312. ;;
  10313. *)
  10314. ;;
  10315. esac
  10316. ;;
  10317. psos*)
  10318. ;;
  10319. solaris*)
  10320. case $cc_basename in
  10321. CC*)
  10322. # Sun C++ 4.2, 5.x and Centerline C++
  10323. lt_prog_compiler_pic_CXX='-KPIC'
  10324. lt_prog_compiler_static_CXX='-Bstatic'
  10325. lt_prog_compiler_wl_CXX='-Qoption ld '
  10326. ;;
  10327. gcx*)
  10328. # Green Hills C++ Compiler
  10329. lt_prog_compiler_pic_CXX='-PIC'
  10330. ;;
  10331. *)
  10332. ;;
  10333. esac
  10334. ;;
  10335. sunos4*)
  10336. case $cc_basename in
  10337. CC*)
  10338. # Sun C++ 4.x
  10339. lt_prog_compiler_pic_CXX='-pic'
  10340. lt_prog_compiler_static_CXX='-Bstatic'
  10341. ;;
  10342. lcc*)
  10343. # Lucid
  10344. lt_prog_compiler_pic_CXX='-pic'
  10345. ;;
  10346. *)
  10347. ;;
  10348. esac
  10349. ;;
  10350. tandem*)
  10351. case $cc_basename in
  10352. NCC*)
  10353. # NonStop-UX NCC 3.20
  10354. lt_prog_compiler_pic_CXX='-KPIC'
  10355. ;;
  10356. *)
  10357. ;;
  10358. esac
  10359. ;;
  10360. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10361. case $cc_basename in
  10362. CC*)
  10363. lt_prog_compiler_wl_CXX='-Wl,'
  10364. lt_prog_compiler_pic_CXX='-KPIC'
  10365. lt_prog_compiler_static_CXX='-Bstatic'
  10366. ;;
  10367. esac
  10368. ;;
  10369. vxworks*)
  10370. ;;
  10371. *)
  10372. lt_prog_compiler_can_build_shared_CXX=no
  10373. ;;
  10374. esac
  10375. fi
  10376. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10377. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  10378. #
  10379. # Check to make sure the PIC flag actually works.
  10380. #
  10381. if test -n "$lt_prog_compiler_pic_CXX"; then
  10382. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10383. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  10384. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  10385. echo $ECHO_N "(cached) $ECHO_C" >&6
  10386. else
  10387. lt_prog_compiler_pic_works_CXX=no
  10388. ac_outfile=conftest.$ac_objext
  10389. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10390. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10391. # Insert the option either (1) after the last *FLAGS variable, or
  10392. # (2) before a word containing "conftest.", or (3) at the end.
  10393. # Note that $ac_compile itself does not contain backslashes and begins
  10394. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10395. # The option is referenced via a variable to avoid confusing sed.
  10396. lt_compile=`echo "$ac_compile" | $SED \
  10397. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10398. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10399. -e 's:$: $lt_compiler_flag:'`
  10400. (eval echo "\"\$as_me:11510: $lt_compile\"" >&5)
  10401. (eval "$lt_compile" 2>conftest.err)
  10402. ac_status=$?
  10403. cat conftest.err >&5
  10404. echo "$as_me:11514: \$? = $ac_status" >&5
  10405. if (exit $ac_status) && test -s "$ac_outfile"; then
  10406. # The compiler can only warn and ignore the option if not recognized
  10407. # So say no if there are warnings other than the usual output.
  10408. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  10409. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10410. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10411. lt_prog_compiler_pic_works_CXX=yes
  10412. fi
  10413. fi
  10414. $rm conftest*
  10415. fi
  10416. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  10417. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  10418. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  10419. case $lt_prog_compiler_pic_CXX in
  10420. "" | " "*) ;;
  10421. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10422. esac
  10423. else
  10424. lt_prog_compiler_pic_CXX=
  10425. lt_prog_compiler_can_build_shared_CXX=no
  10426. fi
  10427. fi
  10428. case $host_os in
  10429. # For platforms which do not support PIC, -DPIC is meaningless:
  10430. *djgpp*)
  10431. lt_prog_compiler_pic_CXX=
  10432. ;;
  10433. *)
  10434. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10435. ;;
  10436. esac
  10437. #
  10438. # Check to make sure the static flag actually works.
  10439. #
  10440. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  10441. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10442. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  10443. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  10444. echo $ECHO_N "(cached) $ECHO_C" >&6
  10445. else
  10446. lt_prog_compiler_static_works_CXX=no
  10447. save_LDFLAGS="$LDFLAGS"
  10448. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10449. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  10450. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10451. # The linker can only warn and ignore the option if not recognized
  10452. # So say no if there are warnings
  10453. if test -s conftest.err; then
  10454. # Append any errors to the config.log.
  10455. cat conftest.err 1>&5
  10456. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  10457. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10458. if diff conftest.exp conftest.er2 >/dev/null; then
  10459. lt_prog_compiler_static_works_CXX=yes
  10460. fi
  10461. else
  10462. lt_prog_compiler_static_works_CXX=yes
  10463. fi
  10464. fi
  10465. $rm conftest*
  10466. LDFLAGS="$save_LDFLAGS"
  10467. fi
  10468. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  10469. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
  10470. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  10471. :
  10472. else
  10473. lt_prog_compiler_static_CXX=
  10474. fi
  10475. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10476. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  10477. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  10478. echo $ECHO_N "(cached) $ECHO_C" >&6
  10479. else
  10480. lt_cv_prog_compiler_c_o_CXX=no
  10481. $rm -r conftest 2>/dev/null
  10482. mkdir conftest
  10483. cd conftest
  10484. mkdir out
  10485. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10486. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10487. # Insert the option either (1) after the last *FLAGS variable, or
  10488. # (2) before a word containing "conftest.", or (3) at the end.
  10489. # Note that $ac_compile itself does not contain backslashes and begins
  10490. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10491. lt_compile=`echo "$ac_compile" | $SED \
  10492. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10493. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10494. -e 's:$: $lt_compiler_flag:'`
  10495. (eval echo "\"\$as_me:11614: $lt_compile\"" >&5)
  10496. (eval "$lt_compile" 2>out/conftest.err)
  10497. ac_status=$?
  10498. cat out/conftest.err >&5
  10499. echo "$as_me:11618: \$? = $ac_status" >&5
  10500. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10501. then
  10502. # The compiler can only warn and ignore the option if not recognized
  10503. # So say no if there are warnings
  10504. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  10505. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10506. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10507. lt_cv_prog_compiler_c_o_CXX=yes
  10508. fi
  10509. fi
  10510. chmod u+w . 2>&5
  10511. $rm conftest*
  10512. # SGI C++ compiler will create directory out/ii_files/ for
  10513. # template instantiation
  10514. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  10515. $rm out/* && rmdir out
  10516. cd ..
  10517. rmdir conftest
  10518. $rm conftest*
  10519. fi
  10520. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  10521. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  10522. hard_links="nottested"
  10523. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  10524. # do not overwrite the value of need_locks provided by the user
  10525. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  10526. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  10527. hard_links=yes
  10528. $rm conftest*
  10529. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10530. touch conftest.a
  10531. ln conftest.a conftest.b 2>&5 || hard_links=no
  10532. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10533. echo "$as_me:$LINENO: result: $hard_links" >&5
  10534. echo "${ECHO_T}$hard_links" >&6
  10535. if test "$hard_links" = no; then
  10536. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10537. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10538. need_locks=warn
  10539. fi
  10540. else
  10541. need_locks=no
  10542. fi
  10543. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10544. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  10545. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10546. case $host_os in
  10547. aix4* | aix5*)
  10548. # If we're using GNU nm, then we don't want the "-C" option.
  10549. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10550. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10551. 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'
  10552. else
  10553. 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'
  10554. fi
  10555. ;;
  10556. pw32*)
  10557. export_symbols_cmds_CXX="$ltdll_cmds"
  10558. ;;
  10559. cygwin* | mingw*)
  10560. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  10561. ;;
  10562. kfreebsd*-gnu)
  10563. link_all_deplibs_CXX=no
  10564. ;;
  10565. linux*)
  10566. link_all_deplibs_CXX=no
  10567. ;;
  10568. *)
  10569. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10570. ;;
  10571. esac
  10572. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10573. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10574. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10575. #
  10576. # Do we need to explicitly link libc?
  10577. #
  10578. case "x$archive_cmds_need_lc_CXX" in
  10579. x|xyes)
  10580. # Assume -lc should be added
  10581. archive_cmds_need_lc_CXX=yes
  10582. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10583. case $archive_cmds_CXX in
  10584. *'~'*)
  10585. # FIXME: we may have to deal with multi-command sequences.
  10586. ;;
  10587. '$CC '*)
  10588. # Test whether the compiler implicitly links with -lc since on some
  10589. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10590. # to ld, don't add -lc before -lgcc.
  10591. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10592. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  10593. $rm conftest*
  10594. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10595. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10596. (eval $ac_compile) 2>&5
  10597. ac_status=$?
  10598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10599. (exit $ac_status); } 2>conftest.err; then
  10600. soname=conftest
  10601. lib=conftest
  10602. libobjs=conftest.$ac_objext
  10603. deplibs=
  10604. wl=$lt_prog_compiler_wl_CXX
  10605. pic_flag=$lt_prog_compiler_pic_CXX
  10606. compiler_flags=-v
  10607. linker_flags=-v
  10608. verstring=
  10609. output_objdir=.
  10610. libname=conftest
  10611. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  10612. allow_undefined_flag_CXX=
  10613. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10614. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10615. ac_status=$?
  10616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10617. (exit $ac_status); }
  10618. then
  10619. archive_cmds_need_lc_CXX=no
  10620. else
  10621. archive_cmds_need_lc_CXX=yes
  10622. fi
  10623. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  10624. else
  10625. cat conftest.err 1>&5
  10626. fi
  10627. $rm conftest*
  10628. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  10629. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  10630. ;;
  10631. esac
  10632. fi
  10633. ;;
  10634. esac
  10635. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  10636. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  10637. library_names_spec=
  10638. libname_spec='lib$name'
  10639. soname_spec=
  10640. shrext_cmds=".so"
  10641. postinstall_cmds=
  10642. postuninstall_cmds=
  10643. finish_cmds=
  10644. finish_eval=
  10645. shlibpath_var=
  10646. shlibpath_overrides_runpath=unknown
  10647. version_type=none
  10648. dynamic_linker="$host_os ld.so"
  10649. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10650. if test "$GCC" = yes; then
  10651. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10652. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  10653. # if the path contains ";" then we assume it to be the separator
  10654. # otherwise default to the standard path separator (i.e. ":") - it is
  10655. # assumed that no part of a normal pathname contains ";" but that should
  10656. # okay in the real world where ";" in dirpaths is itself problematic.
  10657. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10658. else
  10659. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10660. fi
  10661. else
  10662. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10663. fi
  10664. need_lib_prefix=unknown
  10665. hardcode_into_libs=no
  10666. # when you set need_version to no, make sure it does not cause -set_version
  10667. # flags to be left without arguments
  10668. need_version=unknown
  10669. case $host_os in
  10670. aix3*)
  10671. version_type=linux
  10672. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10673. shlibpath_var=LIBPATH
  10674. # AIX 3 has no versioning support, so we append a major version to the name.
  10675. soname_spec='${libname}${release}${shared_ext}$major'
  10676. ;;
  10677. aix4* | aix5*)
  10678. version_type=linux
  10679. need_lib_prefix=no
  10680. need_version=no
  10681. hardcode_into_libs=yes
  10682. if test "$host_cpu" = ia64; then
  10683. # AIX 5 supports IA64
  10684. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10685. shlibpath_var=LD_LIBRARY_PATH
  10686. else
  10687. # With GCC up to 2.95.x, collect2 would create an import file
  10688. # for dependence libraries. The import file would start with
  10689. # the line `#! .'. This would cause the generated library to
  10690. # depend on `.', always an invalid library. This was fixed in
  10691. # development snapshots of GCC prior to 3.0.
  10692. case $host_os in
  10693. aix4 | aix4.[01] | aix4.[01].*)
  10694. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10695. echo ' yes '
  10696. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10697. :
  10698. else
  10699. can_build_shared=no
  10700. fi
  10701. ;;
  10702. esac
  10703. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10704. # soname into executable. Probably we can add versioning support to
  10705. # collect2, so additional links can be useful in future.
  10706. if test "$aix_use_runtimelinking" = yes; then
  10707. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10708. # instead of lib<name>.a to let people know that these are not
  10709. # typical AIX shared libraries.
  10710. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10711. else
  10712. # We preserve .a as extension for shared libraries through AIX4.2
  10713. # and later when we are not doing run time linking.
  10714. library_names_spec='${libname}${release}.a $libname.a'
  10715. soname_spec='${libname}${release}${shared_ext}$major'
  10716. fi
  10717. shlibpath_var=LIBPATH
  10718. fi
  10719. ;;
  10720. amigaos*)
  10721. library_names_spec='$libname.ixlibrary $libname.a'
  10722. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10723. 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'
  10724. ;;
  10725. beos*)
  10726. library_names_spec='${libname}${shared_ext}'
  10727. dynamic_linker="$host_os ld.so"
  10728. shlibpath_var=LIBRARY_PATH
  10729. ;;
  10730. bsdi[45]*)
  10731. version_type=linux
  10732. need_version=no
  10733. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10734. soname_spec='${libname}${release}${shared_ext}$major'
  10735. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10736. shlibpath_var=LD_LIBRARY_PATH
  10737. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10738. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10739. # the default ld.so.conf also contains /usr/contrib/lib and
  10740. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10741. # libtool to hard-code these into programs
  10742. ;;
  10743. cygwin* | mingw* | pw32*)
  10744. version_type=windows
  10745. shrext_cmds=".dll"
  10746. need_version=no
  10747. need_lib_prefix=no
  10748. case $GCC,$host_os in
  10749. yes,cygwin* | yes,mingw* | yes,pw32*)
  10750. library_names_spec='$libname.dll.a'
  10751. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10752. postinstall_cmds='base_file=`basename \${file}`~
  10753. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10754. dldir=$destdir/`dirname \$dlpath`~
  10755. test -d \$dldir || mkdir -p \$dldir~
  10756. $install_prog $dir/$dlname \$dldir/$dlname~
  10757. chmod a+x \$dldir/$dlname'
  10758. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10759. dlpath=$dir/\$dldll~
  10760. $rm \$dlpath'
  10761. shlibpath_overrides_runpath=yes
  10762. case $host_os in
  10763. cygwin*)
  10764. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10765. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10766. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10767. ;;
  10768. mingw*)
  10769. # MinGW DLLs use traditional 'lib' prefix
  10770. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10771. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10772. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  10773. # It is most probably a Windows format PATH printed by
  10774. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  10775. # path with ; separators, and with drive letters. We can handle the
  10776. # drive letters (cygwin fileutils understands them), so leave them,
  10777. # especially as we might pass files found there to a mingw objdump,
  10778. # which wouldn't understand a cygwinified path. Ahh.
  10779. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10780. else
  10781. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10782. fi
  10783. ;;
  10784. pw32*)
  10785. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10786. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10787. ;;
  10788. esac
  10789. ;;
  10790. *)
  10791. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10792. ;;
  10793. esac
  10794. dynamic_linker='Win32 ld.exe'
  10795. # FIXME: first we should search . and the directory the executable is in
  10796. shlibpath_var=PATH
  10797. ;;
  10798. darwin* | rhapsody*)
  10799. dynamic_linker="$host_os dyld"
  10800. version_type=darwin
  10801. need_lib_prefix=no
  10802. need_version=no
  10803. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10804. soname_spec='${libname}${release}${major}$shared_ext'
  10805. shlibpath_overrides_runpath=yes
  10806. shlibpath_var=DYLD_LIBRARY_PATH
  10807. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10808. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  10809. if test "$GCC" = yes; then
  10810. 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"`
  10811. else
  10812. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  10813. fi
  10814. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10815. ;;
  10816. dgux*)
  10817. version_type=linux
  10818. need_lib_prefix=no
  10819. need_version=no
  10820. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10821. soname_spec='${libname}${release}${shared_ext}$major'
  10822. shlibpath_var=LD_LIBRARY_PATH
  10823. ;;
  10824. freebsd1*)
  10825. dynamic_linker=no
  10826. ;;
  10827. kfreebsd*-gnu)
  10828. version_type=linux
  10829. need_lib_prefix=no
  10830. need_version=no
  10831. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10832. soname_spec='${libname}${release}${shared_ext}$major'
  10833. shlibpath_var=LD_LIBRARY_PATH
  10834. shlibpath_overrides_runpath=no
  10835. hardcode_into_libs=yes
  10836. dynamic_linker='GNU ld.so'
  10837. ;;
  10838. freebsd* | dragonfly*)
  10839. # DragonFly does not have aout. When/if they implement a new
  10840. # versioning mechanism, adjust this.
  10841. if test -x /usr/bin/objformat; then
  10842. objformat=`/usr/bin/objformat`
  10843. else
  10844. case $host_os in
  10845. freebsd[123]*) objformat=aout ;;
  10846. *) objformat=elf ;;
  10847. esac
  10848. fi
  10849. version_type=freebsd-$objformat
  10850. case $version_type in
  10851. freebsd-elf*)
  10852. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10853. need_version=no
  10854. need_lib_prefix=no
  10855. ;;
  10856. freebsd-*)
  10857. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10858. need_version=yes
  10859. ;;
  10860. esac
  10861. shlibpath_var=LD_LIBRARY_PATH
  10862. case $host_os in
  10863. freebsd2*)
  10864. shlibpath_overrides_runpath=yes
  10865. ;;
  10866. freebsd3.[01]* | freebsdelf3.[01]*)
  10867. shlibpath_overrides_runpath=yes
  10868. hardcode_into_libs=yes
  10869. ;;
  10870. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10871. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10872. shlibpath_overrides_runpath=no
  10873. hardcode_into_libs=yes
  10874. ;;
  10875. freebsd*) # from 4.6 on
  10876. shlibpath_overrides_runpath=yes
  10877. hardcode_into_libs=yes
  10878. ;;
  10879. esac
  10880. ;;
  10881. gnu*)
  10882. version_type=linux
  10883. need_lib_prefix=no
  10884. need_version=no
  10885. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10886. soname_spec='${libname}${release}${shared_ext}$major'
  10887. shlibpath_var=LD_LIBRARY_PATH
  10888. hardcode_into_libs=yes
  10889. ;;
  10890. hpux9* | hpux10* | hpux11*)
  10891. # Give a soname corresponding to the major version so that dld.sl refuses to
  10892. # link against other versions.
  10893. version_type=sunos
  10894. need_lib_prefix=no
  10895. need_version=no
  10896. case $host_cpu in
  10897. ia64*)
  10898. shrext_cmds='.so'
  10899. hardcode_into_libs=yes
  10900. dynamic_linker="$host_os dld.so"
  10901. shlibpath_var=LD_LIBRARY_PATH
  10902. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10904. soname_spec='${libname}${release}${shared_ext}$major'
  10905. if test "X$HPUX_IA64_MODE" = X32; then
  10906. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10907. else
  10908. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10909. fi
  10910. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10911. ;;
  10912. hppa*64*)
  10913. shrext_cmds='.sl'
  10914. hardcode_into_libs=yes
  10915. dynamic_linker="$host_os dld.sl"
  10916. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10917. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10918. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10919. soname_spec='${libname}${release}${shared_ext}$major'
  10920. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10921. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10922. ;;
  10923. *)
  10924. shrext_cmds='.sl'
  10925. dynamic_linker="$host_os dld.sl"
  10926. shlibpath_var=SHLIB_PATH
  10927. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10928. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10929. soname_spec='${libname}${release}${shared_ext}$major'
  10930. ;;
  10931. esac
  10932. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  10933. postinstall_cmds='chmod 555 $lib'
  10934. ;;
  10935. interix3*)
  10936. version_type=linux
  10937. need_lib_prefix=no
  10938. need_version=no
  10939. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10940. soname_spec='${libname}${release}${shared_ext}$major'
  10941. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10942. shlibpath_var=LD_LIBRARY_PATH
  10943. shlibpath_overrides_runpath=no
  10944. hardcode_into_libs=yes
  10945. ;;
  10946. irix5* | irix6* | nonstopux*)
  10947. case $host_os in
  10948. nonstopux*) version_type=nonstopux ;;
  10949. *)
  10950. if test "$lt_cv_prog_gnu_ld" = yes; then
  10951. version_type=linux
  10952. else
  10953. version_type=irix
  10954. fi ;;
  10955. esac
  10956. need_lib_prefix=no
  10957. need_version=no
  10958. soname_spec='${libname}${release}${shared_ext}$major'
  10959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10960. case $host_os in
  10961. irix5* | nonstopux*)
  10962. libsuff= shlibsuff=
  10963. ;;
  10964. *)
  10965. case $LD in # libtool.m4 will add one of these switches to LD
  10966. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10967. libsuff= shlibsuff= libmagic=32-bit;;
  10968. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10969. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10970. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10971. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10972. *) libsuff= shlibsuff= libmagic=never-match;;
  10973. esac
  10974. ;;
  10975. esac
  10976. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10977. shlibpath_overrides_runpath=no
  10978. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10979. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10980. hardcode_into_libs=yes
  10981. ;;
  10982. # No shared lib support for Linux oldld, aout, or coff.
  10983. linux*oldld* | linux*aout* | linux*coff*)
  10984. dynamic_linker=no
  10985. ;;
  10986. # This must be Linux ELF.
  10987. linux*)
  10988. version_type=linux
  10989. need_lib_prefix=no
  10990. need_version=no
  10991. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10992. soname_spec='${libname}${release}${shared_ext}$major'
  10993. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10994. shlibpath_var=LD_LIBRARY_PATH
  10995. shlibpath_overrides_runpath=no
  10996. # This implies no fast_install, which is unacceptable.
  10997. # Some rework will be needed to allow for fast_install
  10998. # before this can be enabled.
  10999. hardcode_into_libs=yes
  11000. # Append ld.so.conf contents to the search path
  11001. if test -f /etc/ld.so.conf; then
  11002. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  11003. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11004. fi
  11005. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11006. # powerpc, because MkLinux only supported shared libraries with the
  11007. # GNU dynamic linker. Since this was broken with cross compilers,
  11008. # most powerpc-linux boxes support dynamic linking these days and
  11009. # people can always --disable-shared, the test was removed, and we
  11010. # assume the GNU/Linux dynamic linker is in use.
  11011. dynamic_linker='GNU/Linux ld.so'
  11012. ;;
  11013. netbsdelf*-gnu)
  11014. version_type=linux
  11015. need_lib_prefix=no
  11016. need_version=no
  11017. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11018. soname_spec='${libname}${release}${shared_ext}$major'
  11019. shlibpath_var=LD_LIBRARY_PATH
  11020. shlibpath_overrides_runpath=no
  11021. hardcode_into_libs=yes
  11022. dynamic_linker='NetBSD ld.elf_so'
  11023. ;;
  11024. knetbsd*-gnu)
  11025. version_type=linux
  11026. need_lib_prefix=no
  11027. need_version=no
  11028. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11029. soname_spec='${libname}${release}${shared_ext}$major'
  11030. shlibpath_var=LD_LIBRARY_PATH
  11031. shlibpath_overrides_runpath=no
  11032. hardcode_into_libs=yes
  11033. dynamic_linker='GNU ld.so'
  11034. ;;
  11035. netbsd*)
  11036. version_type=sunos
  11037. need_lib_prefix=no
  11038. need_version=no
  11039. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11040. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11041. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11042. dynamic_linker='NetBSD (a.out) ld.so'
  11043. else
  11044. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11045. soname_spec='${libname}${release}${shared_ext}$major'
  11046. dynamic_linker='NetBSD ld.elf_so'
  11047. fi
  11048. shlibpath_var=LD_LIBRARY_PATH
  11049. shlibpath_overrides_runpath=yes
  11050. hardcode_into_libs=yes
  11051. ;;
  11052. newsos6)
  11053. version_type=linux
  11054. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11055. shlibpath_var=LD_LIBRARY_PATH
  11056. shlibpath_overrides_runpath=yes
  11057. ;;
  11058. nto-qnx*)
  11059. version_type=linux
  11060. need_lib_prefix=no
  11061. need_version=no
  11062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11063. soname_spec='${libname}${release}${shared_ext}$major'
  11064. shlibpath_var=LD_LIBRARY_PATH
  11065. shlibpath_overrides_runpath=yes
  11066. ;;
  11067. openbsd*)
  11068. version_type=sunos
  11069. sys_lib_dlsearch_path_spec="/usr/lib"
  11070. need_lib_prefix=no
  11071. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11072. case $host_os in
  11073. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11074. *) need_version=no ;;
  11075. esac
  11076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11077. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11078. shlibpath_var=LD_LIBRARY_PATH
  11079. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11080. case $host_os in
  11081. openbsd2.[89] | openbsd2.[89].*)
  11082. shlibpath_overrides_runpath=no
  11083. ;;
  11084. *)
  11085. shlibpath_overrides_runpath=yes
  11086. ;;
  11087. esac
  11088. else
  11089. shlibpath_overrides_runpath=yes
  11090. fi
  11091. ;;
  11092. os2*)
  11093. libname_spec='$name'
  11094. shrext_cmds=".dll"
  11095. need_lib_prefix=no
  11096. library_names_spec='$libname${shared_ext} $libname.a'
  11097. dynamic_linker='OS/2 ld.exe'
  11098. shlibpath_var=LIBPATH
  11099. ;;
  11100. osf3* | osf4* | osf5*)
  11101. version_type=osf
  11102. need_lib_prefix=no
  11103. need_version=no
  11104. soname_spec='${libname}${release}${shared_ext}$major'
  11105. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11106. shlibpath_var=LD_LIBRARY_PATH
  11107. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11108. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11109. ;;
  11110. solaris*)
  11111. version_type=linux
  11112. need_lib_prefix=no
  11113. need_version=no
  11114. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11115. soname_spec='${libname}${release}${shared_ext}$major'
  11116. shlibpath_var=LD_LIBRARY_PATH
  11117. shlibpath_overrides_runpath=yes
  11118. hardcode_into_libs=yes
  11119. # ldd complains unless libraries are executable
  11120. postinstall_cmds='chmod +x $lib'
  11121. ;;
  11122. sunos4*)
  11123. version_type=sunos
  11124. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11125. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11126. shlibpath_var=LD_LIBRARY_PATH
  11127. shlibpath_overrides_runpath=yes
  11128. if test "$with_gnu_ld" = yes; then
  11129. need_lib_prefix=no
  11130. fi
  11131. need_version=yes
  11132. ;;
  11133. sysv4 | sysv4.3*)
  11134. version_type=linux
  11135. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11136. soname_spec='${libname}${release}${shared_ext}$major'
  11137. shlibpath_var=LD_LIBRARY_PATH
  11138. case $host_vendor in
  11139. sni)
  11140. shlibpath_overrides_runpath=no
  11141. need_lib_prefix=no
  11142. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11143. runpath_var=LD_RUN_PATH
  11144. ;;
  11145. siemens)
  11146. need_lib_prefix=no
  11147. ;;
  11148. motorola)
  11149. need_lib_prefix=no
  11150. need_version=no
  11151. shlibpath_overrides_runpath=no
  11152. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11153. ;;
  11154. esac
  11155. ;;
  11156. sysv4*MP*)
  11157. if test -d /usr/nec ;then
  11158. version_type=linux
  11159. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11160. soname_spec='$libname${shared_ext}.$major'
  11161. shlibpath_var=LD_LIBRARY_PATH
  11162. fi
  11163. ;;
  11164. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11165. version_type=freebsd-elf
  11166. need_lib_prefix=no
  11167. need_version=no
  11168. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11169. soname_spec='${libname}${release}${shared_ext}$major'
  11170. shlibpath_var=LD_LIBRARY_PATH
  11171. hardcode_into_libs=yes
  11172. if test "$with_gnu_ld" = yes; then
  11173. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11174. shlibpath_overrides_runpath=no
  11175. else
  11176. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11177. shlibpath_overrides_runpath=yes
  11178. case $host_os in
  11179. sco3.2v5*)
  11180. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11181. ;;
  11182. esac
  11183. fi
  11184. sys_lib_dlsearch_path_spec='/usr/lib'
  11185. ;;
  11186. uts4*)
  11187. version_type=linux
  11188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11189. soname_spec='${libname}${release}${shared_ext}$major'
  11190. shlibpath_var=LD_LIBRARY_PATH
  11191. ;;
  11192. *)
  11193. dynamic_linker=no
  11194. ;;
  11195. esac
  11196. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11197. echo "${ECHO_T}$dynamic_linker" >&6
  11198. test "$dynamic_linker" = no && can_build_shared=no
  11199. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11200. if test "$GCC" = yes; then
  11201. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11202. fi
  11203. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11204. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  11205. hardcode_action_CXX=
  11206. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11207. test -n "$runpath_var_CXX" || \
  11208. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11209. # We can hardcode non-existant directories.
  11210. if test "$hardcode_direct_CXX" != no &&
  11211. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11212. # have to relink, otherwise we might link with an installed library
  11213. # when we should be linking with a yet-to-be-installed one
  11214. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11215. test "$hardcode_minus_L_CXX" != no; then
  11216. # Linking always hardcodes the temporary library directory.
  11217. hardcode_action_CXX=relink
  11218. else
  11219. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11220. hardcode_action_CXX=immediate
  11221. fi
  11222. else
  11223. # We cannot hardcode anything, or else we can only hardcode existing
  11224. # directories.
  11225. hardcode_action_CXX=unsupported
  11226. fi
  11227. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11228. echo "${ECHO_T}$hardcode_action_CXX" >&6
  11229. if test "$hardcode_action_CXX" = relink; then
  11230. # Fast installation is not supported
  11231. enable_fast_install=no
  11232. elif test "$shlibpath_overrides_runpath" = yes ||
  11233. test "$enable_shared" = no; then
  11234. # Fast installation is not necessary
  11235. enable_fast_install=needless
  11236. fi
  11237. # The else clause should only fire when bootstrapping the
  11238. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11239. # with your package, and you will get complaints that there are
  11240. # no rules to generate ltmain.sh.
  11241. if test -f "$ltmain"; then
  11242. # See if we are running on zsh, and set the options which allow our commands through
  11243. # without removal of \ escapes.
  11244. if test -n "${ZSH_VERSION+set}" ; then
  11245. setopt NO_GLOB_SUBST
  11246. fi
  11247. # Now quote all the things that may contain metacharacters while being
  11248. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11249. # variables and quote the copies for generation of the libtool script.
  11250. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  11251. SED SHELL STRIP \
  11252. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11253. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11254. deplibs_check_method reload_flag reload_cmds need_locks \
  11255. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11256. lt_cv_sys_global_symbol_to_c_name_address \
  11257. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11258. old_postinstall_cmds old_postuninstall_cmds \
  11259. compiler_CXX \
  11260. CC_CXX \
  11261. LD_CXX \
  11262. lt_prog_compiler_wl_CXX \
  11263. lt_prog_compiler_pic_CXX \
  11264. lt_prog_compiler_static_CXX \
  11265. lt_prog_compiler_no_builtin_flag_CXX \
  11266. export_dynamic_flag_spec_CXX \
  11267. thread_safe_flag_spec_CXX \
  11268. whole_archive_flag_spec_CXX \
  11269. enable_shared_with_static_runtimes_CXX \
  11270. old_archive_cmds_CXX \
  11271. old_archive_from_new_cmds_CXX \
  11272. predep_objects_CXX \
  11273. postdep_objects_CXX \
  11274. predeps_CXX \
  11275. postdeps_CXX \
  11276. compiler_lib_search_path_CXX \
  11277. archive_cmds_CXX \
  11278. archive_expsym_cmds_CXX \
  11279. postinstall_cmds_CXX \
  11280. postuninstall_cmds_CXX \
  11281. old_archive_from_expsyms_cmds_CXX \
  11282. allow_undefined_flag_CXX \
  11283. no_undefined_flag_CXX \
  11284. export_symbols_cmds_CXX \
  11285. hardcode_libdir_flag_spec_CXX \
  11286. hardcode_libdir_flag_spec_ld_CXX \
  11287. hardcode_libdir_separator_CXX \
  11288. hardcode_automatic_CXX \
  11289. module_cmds_CXX \
  11290. module_expsym_cmds_CXX \
  11291. lt_cv_prog_compiler_c_o_CXX \
  11292. exclude_expsyms_CXX \
  11293. include_expsyms_CXX; do
  11294. case $var in
  11295. old_archive_cmds_CXX | \
  11296. old_archive_from_new_cmds_CXX | \
  11297. archive_cmds_CXX | \
  11298. archive_expsym_cmds_CXX | \
  11299. module_cmds_CXX | \
  11300. module_expsym_cmds_CXX | \
  11301. old_archive_from_expsyms_cmds_CXX | \
  11302. export_symbols_cmds_CXX | \
  11303. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11304. postinstall_cmds | postuninstall_cmds | \
  11305. old_postinstall_cmds | old_postuninstall_cmds | \
  11306. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11307. # Double-quote double-evaled strings.
  11308. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11309. ;;
  11310. *)
  11311. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11312. ;;
  11313. esac
  11314. done
  11315. case $lt_echo in
  11316. *'\$0 --fallback-echo"')
  11317. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11318. ;;
  11319. esac
  11320. cfgfile="$ofile"
  11321. cat <<__EOF__ >> "$cfgfile"
  11322. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11323. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11324. # Shell to use when invoking shell scripts.
  11325. SHELL=$lt_SHELL
  11326. # Whether or not to build shared libraries.
  11327. build_libtool_libs=$enable_shared
  11328. # Whether or not to build static libraries.
  11329. build_old_libs=$enable_static
  11330. # Whether or not to add -lc for building shared libraries.
  11331. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11332. # Whether or not to disallow shared libs when runtime libs are static
  11333. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11334. # Whether or not to optimize for fast installation.
  11335. fast_install=$enable_fast_install
  11336. # The host system.
  11337. host_alias=$host_alias
  11338. host=$host
  11339. host_os=$host_os
  11340. # The build system.
  11341. build_alias=$build_alias
  11342. build=$build
  11343. build_os=$build_os
  11344. # An echo program that does not interpret backslashes.
  11345. echo=$lt_echo
  11346. # The archiver.
  11347. AR=$lt_AR
  11348. AR_FLAGS=$lt_AR_FLAGS
  11349. # A C compiler.
  11350. LTCC=$lt_LTCC
  11351. # LTCC compiler flags.
  11352. LTCFLAGS=$lt_LTCFLAGS
  11353. # A language-specific compiler.
  11354. CC=$lt_compiler_CXX
  11355. # Is the compiler the GNU C compiler?
  11356. with_gcc=$GCC_CXX
  11357. # An ERE matcher.
  11358. EGREP=$lt_EGREP
  11359. # The linker used to build libraries.
  11360. LD=$lt_LD_CXX
  11361. # Whether we need hard or soft links.
  11362. LN_S=$lt_LN_S
  11363. # A BSD-compatible nm program.
  11364. NM=$lt_NM
  11365. # A symbol stripping program
  11366. STRIP=$lt_STRIP
  11367. # Used to examine libraries when file_magic_cmd begins "file"
  11368. MAGIC_CMD=$MAGIC_CMD
  11369. # Used on cygwin: DLL creation program.
  11370. DLLTOOL="$DLLTOOL"
  11371. # Used on cygwin: object dumper.
  11372. OBJDUMP="$OBJDUMP"
  11373. # Used on cygwin: assembler.
  11374. AS="$AS"
  11375. # The name of the directory that contains temporary libtool files.
  11376. objdir=$objdir
  11377. # How to create reloadable object files.
  11378. reload_flag=$lt_reload_flag
  11379. reload_cmds=$lt_reload_cmds
  11380. # How to pass a linker flag through the compiler.
  11381. wl=$lt_lt_prog_compiler_wl_CXX
  11382. # Object file suffix (normally "o").
  11383. objext="$ac_objext"
  11384. # Old archive suffix (normally "a").
  11385. libext="$libext"
  11386. # Shared library suffix (normally ".so").
  11387. shrext_cmds='$shrext_cmds'
  11388. # Executable file suffix (normally "").
  11389. exeext="$exeext"
  11390. # Additional compiler flags for building library objects.
  11391. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11392. pic_mode=$pic_mode
  11393. # What is the maximum length of a command?
  11394. max_cmd_len=$lt_cv_sys_max_cmd_len
  11395. # Does compiler simultaneously support -c and -o options?
  11396. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11397. # Must we lock files when doing compilation?
  11398. need_locks=$lt_need_locks
  11399. # Do we need the lib prefix for modules?
  11400. need_lib_prefix=$need_lib_prefix
  11401. # Do we need a version for libraries?
  11402. need_version=$need_version
  11403. # Whether dlopen is supported.
  11404. dlopen_support=$enable_dlopen
  11405. # Whether dlopen of programs is supported.
  11406. dlopen_self=$enable_dlopen_self
  11407. # Whether dlopen of statically linked programs is supported.
  11408. dlopen_self_static=$enable_dlopen_self_static
  11409. # Compiler flag to prevent dynamic linking.
  11410. link_static_flag=$lt_lt_prog_compiler_static_CXX
  11411. # Compiler flag to turn off builtin functions.
  11412. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  11413. # Compiler flag to allow reflexive dlopens.
  11414. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  11415. # Compiler flag to generate shared objects directly from archives.
  11416. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  11417. # Compiler flag to generate thread-safe objects.
  11418. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  11419. # Library versioning type.
  11420. version_type=$version_type
  11421. # Format of library name prefix.
  11422. libname_spec=$lt_libname_spec
  11423. # List of archive names. First name is the real one, the rest are links.
  11424. # The last name is the one that the linker finds with -lNAME.
  11425. library_names_spec=$lt_library_names_spec
  11426. # The coded name of the library, if different from the real name.
  11427. soname_spec=$lt_soname_spec
  11428. # Commands used to build and install an old-style archive.
  11429. RANLIB=$lt_RANLIB
  11430. old_archive_cmds=$lt_old_archive_cmds_CXX
  11431. old_postinstall_cmds=$lt_old_postinstall_cmds
  11432. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11433. # Create an old-style archive from a shared archive.
  11434. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  11435. # Create a temporary old-style archive to link instead of a shared archive.
  11436. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  11437. # Commands used to build and install a shared archive.
  11438. archive_cmds=$lt_archive_cmds_CXX
  11439. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  11440. postinstall_cmds=$lt_postinstall_cmds
  11441. postuninstall_cmds=$lt_postuninstall_cmds
  11442. # Commands used to build a loadable module (assumed same as above if empty)
  11443. module_cmds=$lt_module_cmds_CXX
  11444. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  11445. # Commands to strip libraries.
  11446. old_striplib=$lt_old_striplib
  11447. striplib=$lt_striplib
  11448. # Dependencies to place before the objects being linked to create a
  11449. # shared library.
  11450. predep_objects=$lt_predep_objects_CXX
  11451. # Dependencies to place after the objects being linked to create a
  11452. # shared library.
  11453. postdep_objects=$lt_postdep_objects_CXX
  11454. # Dependencies to place before the objects being linked to create a
  11455. # shared library.
  11456. predeps=$lt_predeps_CXX
  11457. # Dependencies to place after the objects being linked to create a
  11458. # shared library.
  11459. postdeps=$lt_postdeps_CXX
  11460. # The library search path used internally by the compiler when linking
  11461. # a shared library.
  11462. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  11463. # Method to check whether dependent libraries are shared objects.
  11464. deplibs_check_method=$lt_deplibs_check_method
  11465. # Command to use when deplibs_check_method == file_magic.
  11466. file_magic_cmd=$lt_file_magic_cmd
  11467. # Flag that allows shared libraries with undefined symbols to be built.
  11468. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  11469. # Flag that forces no undefined symbols.
  11470. no_undefined_flag=$lt_no_undefined_flag_CXX
  11471. # Commands used to finish a libtool library installation in a directory.
  11472. finish_cmds=$lt_finish_cmds
  11473. # Same as above, but a single script fragment to be evaled but not shown.
  11474. finish_eval=$lt_finish_eval
  11475. # Take the output of nm and produce a listing of raw symbols and C names.
  11476. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11477. # Transform the output of nm in a proper C declaration
  11478. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11479. # Transform the output of nm in a C name address pair
  11480. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11481. # This is the shared library runtime path variable.
  11482. runpath_var=$runpath_var
  11483. # This is the shared library path variable.
  11484. shlibpath_var=$shlibpath_var
  11485. # Is shlibpath searched before the hard-coded library search path?
  11486. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11487. # How to hardcode a shared library path into an executable.
  11488. hardcode_action=$hardcode_action_CXX
  11489. # Whether we should hardcode library paths into libraries.
  11490. hardcode_into_libs=$hardcode_into_libs
  11491. # Flag to hardcode \$libdir into a binary during linking.
  11492. # This must work even if \$libdir does not exist.
  11493. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  11494. # If ld is used when linking, flag to hardcode \$libdir into
  11495. # a binary during linking. This must work even if \$libdir does
  11496. # not exist.
  11497. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  11498. # Whether we need a single -rpath flag with a separated argument.
  11499. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  11500. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11501. # resulting binary.
  11502. hardcode_direct=$hardcode_direct_CXX
  11503. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11504. # resulting binary.
  11505. hardcode_minus_L=$hardcode_minus_L_CXX
  11506. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11507. # the resulting binary.
  11508. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  11509. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11510. # and all subsequent libraries and executables linked against it.
  11511. hardcode_automatic=$hardcode_automatic_CXX
  11512. # Variables whose values should be saved in libtool wrapper scripts and
  11513. # restored at relink time.
  11514. variables_saved_for_relink="$variables_saved_for_relink"
  11515. # Whether libtool must link a program against all its dependency libraries.
  11516. link_all_deplibs=$link_all_deplibs_CXX
  11517. # Compile-time system search path for libraries
  11518. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11519. # Run-time system search path for libraries
  11520. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11521. # Fix the shell variable \$srcfile for the compiler.
  11522. fix_srcfile_path="$fix_srcfile_path_CXX"
  11523. # Set to yes if exported symbols are required.
  11524. always_export_symbols=$always_export_symbols_CXX
  11525. # The commands to list exported symbols.
  11526. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  11527. # The commands to extract the exported symbol list from a shared archive.
  11528. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11529. # Symbols that should not be listed in the preloaded symbols.
  11530. exclude_expsyms=$lt_exclude_expsyms_CXX
  11531. # Symbols that must always be exported.
  11532. include_expsyms=$lt_include_expsyms_CXX
  11533. # ### END LIBTOOL TAG CONFIG: $tagname
  11534. __EOF__
  11535. else
  11536. # If there is no Makefile yet, we rely on a make rule to execute
  11537. # `config.status --recheck' to rerun these tests and create the
  11538. # libtool script then.
  11539. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11540. if test -f "$ltmain_in"; then
  11541. test -f Makefile && make "$ltmain"
  11542. fi
  11543. fi
  11544. ac_ext=c
  11545. ac_cpp='$CPP $CPPFLAGS'
  11546. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11547. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11548. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11549. CC=$lt_save_CC
  11550. LDCXX=$LD
  11551. LD=$lt_save_LD
  11552. GCC=$lt_save_GCC
  11553. with_gnu_ldcxx=$with_gnu_ld
  11554. with_gnu_ld=$lt_save_with_gnu_ld
  11555. lt_cv_path_LDCXX=$lt_cv_path_LD
  11556. lt_cv_path_LD=$lt_save_path_LD
  11557. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11558. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11559. else
  11560. tagname=""
  11561. fi
  11562. ;;
  11563. F77)
  11564. if test -n "$F77" && test "X$F77" != "Xno"; then
  11565. ac_ext=f
  11566. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  11567. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11568. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  11569. archive_cmds_need_lc_F77=no
  11570. allow_undefined_flag_F77=
  11571. always_export_symbols_F77=no
  11572. archive_expsym_cmds_F77=
  11573. export_dynamic_flag_spec_F77=
  11574. hardcode_direct_F77=no
  11575. hardcode_libdir_flag_spec_F77=
  11576. hardcode_libdir_flag_spec_ld_F77=
  11577. hardcode_libdir_separator_F77=
  11578. hardcode_minus_L_F77=no
  11579. hardcode_automatic_F77=no
  11580. module_cmds_F77=
  11581. module_expsym_cmds_F77=
  11582. link_all_deplibs_F77=unknown
  11583. old_archive_cmds_F77=$old_archive_cmds
  11584. no_undefined_flag_F77=
  11585. whole_archive_flag_spec_F77=
  11586. enable_shared_with_static_runtimes_F77=no
  11587. # Source file extension for f77 test sources.
  11588. ac_ext=f
  11589. # Object file extension for compiled f77 test sources.
  11590. objext=o
  11591. objext_F77=$objext
  11592. # Code to be used in simple compile tests
  11593. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11594. # Code to be used in simple link tests
  11595. lt_simple_link_test_code=" program t\n end\n"
  11596. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11597. # If no C compiler was specified, use CC.
  11598. LTCC=${LTCC-"$CC"}
  11599. # If no C compiler flags were specified, use CFLAGS.
  11600. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11601. # Allow CC to be a program name with arguments.
  11602. compiler=$CC
  11603. # save warnings/boilerplate of simple test code
  11604. ac_outfile=conftest.$ac_objext
  11605. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11606. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11607. _lt_compiler_boilerplate=`cat conftest.err`
  11608. $rm conftest*
  11609. ac_outfile=conftest.$ac_objext
  11610. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11611. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11612. _lt_linker_boilerplate=`cat conftest.err`
  11613. $rm conftest*
  11614. # Allow CC to be a program name with arguments.
  11615. lt_save_CC="$CC"
  11616. CC=${F77-"f77"}
  11617. compiler=$CC
  11618. compiler_F77=$CC
  11619. for cc_temp in $compiler""; do
  11620. case $cc_temp in
  11621. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11622. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11623. \-*) ;;
  11624. *) break;;
  11625. esac
  11626. done
  11627. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11628. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11629. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  11630. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11631. echo "${ECHO_T}$can_build_shared" >&6
  11632. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11633. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  11634. test "$can_build_shared" = "no" && enable_shared=no
  11635. # On AIX, shared libraries and static libraries use the same namespace, and
  11636. # are all built from PIC.
  11637. case $host_os in
  11638. aix3*)
  11639. test "$enable_shared" = yes && enable_static=no
  11640. if test -n "$RANLIB"; then
  11641. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11642. postinstall_cmds='$RANLIB $lib'
  11643. fi
  11644. ;;
  11645. aix4* | aix5*)
  11646. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11647. test "$enable_shared" = yes && enable_static=no
  11648. fi
  11649. ;;
  11650. esac
  11651. echo "$as_me:$LINENO: result: $enable_shared" >&5
  11652. echo "${ECHO_T}$enable_shared" >&6
  11653. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11654. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  11655. # Make sure either enable_shared or enable_static is yes.
  11656. test "$enable_shared" = yes || enable_static=yes
  11657. echo "$as_me:$LINENO: result: $enable_static" >&5
  11658. echo "${ECHO_T}$enable_static" >&6
  11659. GCC_F77="$G77"
  11660. LD_F77="$LD"
  11661. lt_prog_compiler_wl_F77=
  11662. lt_prog_compiler_pic_F77=
  11663. lt_prog_compiler_static_F77=
  11664. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11665. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11666. if test "$GCC" = yes; then
  11667. lt_prog_compiler_wl_F77='-Wl,'
  11668. lt_prog_compiler_static_F77='-static'
  11669. case $host_os in
  11670. aix*)
  11671. # All AIX code is PIC.
  11672. if test "$host_cpu" = ia64; then
  11673. # AIX 5 now supports IA64 processor
  11674. lt_prog_compiler_static_F77='-Bstatic'
  11675. fi
  11676. ;;
  11677. amigaos*)
  11678. # FIXME: we need at least 68020 code to build shared libraries, but
  11679. # adding the `-m68020' flag to GCC prevents building anything better,
  11680. # like `-m68040'.
  11681. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  11682. ;;
  11683. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11684. # PIC is the default for these OSes.
  11685. ;;
  11686. mingw* | pw32* | os2*)
  11687. # This hack is so that the source file can tell whether it is being
  11688. # built for inclusion in a dll (and should export symbols for example).
  11689. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11690. ;;
  11691. darwin* | rhapsody*)
  11692. # PIC is the default on this platform
  11693. # Common symbols not allowed in MH_DYLIB files
  11694. lt_prog_compiler_pic_F77='-fno-common'
  11695. ;;
  11696. interix3*)
  11697. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11698. # Instead, we relocate shared libraries at runtime.
  11699. ;;
  11700. msdosdjgpp*)
  11701. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11702. # on systems that don't support them.
  11703. lt_prog_compiler_can_build_shared_F77=no
  11704. enable_shared=no
  11705. ;;
  11706. sysv4*MP*)
  11707. if test -d /usr/nec; then
  11708. lt_prog_compiler_pic_F77=-Kconform_pic
  11709. fi
  11710. ;;
  11711. hpux*)
  11712. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11713. # not for PA HP-UX.
  11714. case $host_cpu in
  11715. hppa*64*|ia64*)
  11716. # +Z the default
  11717. ;;
  11718. *)
  11719. lt_prog_compiler_pic_F77='-fPIC'
  11720. ;;
  11721. esac
  11722. ;;
  11723. *)
  11724. lt_prog_compiler_pic_F77='-fPIC'
  11725. ;;
  11726. esac
  11727. else
  11728. # PORTME Check for flag to pass linker flags through the system compiler.
  11729. case $host_os in
  11730. aix*)
  11731. lt_prog_compiler_wl_F77='-Wl,'
  11732. if test "$host_cpu" = ia64; then
  11733. # AIX 5 now supports IA64 processor
  11734. lt_prog_compiler_static_F77='-Bstatic'
  11735. else
  11736. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  11737. fi
  11738. ;;
  11739. darwin*)
  11740. # PIC is the default on this platform
  11741. # Common symbols not allowed in MH_DYLIB files
  11742. case $cc_basename in
  11743. xlc*)
  11744. lt_prog_compiler_pic_F77='-qnocommon'
  11745. lt_prog_compiler_wl_F77='-Wl,'
  11746. ;;
  11747. esac
  11748. ;;
  11749. mingw* | pw32* | os2*)
  11750. # This hack is so that the source file can tell whether it is being
  11751. # built for inclusion in a dll (and should export symbols for example).
  11752. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11753. ;;
  11754. hpux9* | hpux10* | hpux11*)
  11755. lt_prog_compiler_wl_F77='-Wl,'
  11756. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11757. # not for PA HP-UX.
  11758. case $host_cpu in
  11759. hppa*64*|ia64*)
  11760. # +Z the default
  11761. ;;
  11762. *)
  11763. lt_prog_compiler_pic_F77='+Z'
  11764. ;;
  11765. esac
  11766. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11767. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  11768. ;;
  11769. irix5* | irix6* | nonstopux*)
  11770. lt_prog_compiler_wl_F77='-Wl,'
  11771. # PIC (with -KPIC) is the default.
  11772. lt_prog_compiler_static_F77='-non_shared'
  11773. ;;
  11774. newsos6)
  11775. lt_prog_compiler_pic_F77='-KPIC'
  11776. lt_prog_compiler_static_F77='-Bstatic'
  11777. ;;
  11778. linux*)
  11779. case $cc_basename in
  11780. icc* | ecc*)
  11781. lt_prog_compiler_wl_F77='-Wl,'
  11782. lt_prog_compiler_pic_F77='-KPIC'
  11783. lt_prog_compiler_static_F77='-static'
  11784. ;;
  11785. pgcc* | pgf77* | pgf90* | pgf95*)
  11786. # Portland Group compilers (*not* the Pentium gcc compiler,
  11787. # which looks to be a dead project)
  11788. lt_prog_compiler_wl_F77='-Wl,'
  11789. lt_prog_compiler_pic_F77='-fpic'
  11790. lt_prog_compiler_static_F77='-Bstatic'
  11791. ;;
  11792. ccc*)
  11793. lt_prog_compiler_wl_F77='-Wl,'
  11794. # All Alpha code is PIC.
  11795. lt_prog_compiler_static_F77='-non_shared'
  11796. ;;
  11797. esac
  11798. ;;
  11799. osf3* | osf4* | osf5*)
  11800. lt_prog_compiler_wl_F77='-Wl,'
  11801. # All OSF/1 code is PIC.
  11802. lt_prog_compiler_static_F77='-non_shared'
  11803. ;;
  11804. solaris*)
  11805. lt_prog_compiler_pic_F77='-KPIC'
  11806. lt_prog_compiler_static_F77='-Bstatic'
  11807. case $cc_basename in
  11808. f77* | f90* | f95*)
  11809. lt_prog_compiler_wl_F77='-Qoption ld ';;
  11810. *)
  11811. lt_prog_compiler_wl_F77='-Wl,';;
  11812. esac
  11813. ;;
  11814. sunos4*)
  11815. lt_prog_compiler_wl_F77='-Qoption ld '
  11816. lt_prog_compiler_pic_F77='-PIC'
  11817. lt_prog_compiler_static_F77='-Bstatic'
  11818. ;;
  11819. sysv4 | sysv4.2uw2* | sysv4.3*)
  11820. lt_prog_compiler_wl_F77='-Wl,'
  11821. lt_prog_compiler_pic_F77='-KPIC'
  11822. lt_prog_compiler_static_F77='-Bstatic'
  11823. ;;
  11824. sysv4*MP*)
  11825. if test -d /usr/nec ;then
  11826. lt_prog_compiler_pic_F77='-Kconform_pic'
  11827. lt_prog_compiler_static_F77='-Bstatic'
  11828. fi
  11829. ;;
  11830. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11831. lt_prog_compiler_wl_F77='-Wl,'
  11832. lt_prog_compiler_pic_F77='-KPIC'
  11833. lt_prog_compiler_static_F77='-Bstatic'
  11834. ;;
  11835. unicos*)
  11836. lt_prog_compiler_wl_F77='-Wl,'
  11837. lt_prog_compiler_can_build_shared_F77=no
  11838. ;;
  11839. uts4*)
  11840. lt_prog_compiler_pic_F77='-pic'
  11841. lt_prog_compiler_static_F77='-Bstatic'
  11842. ;;
  11843. *)
  11844. lt_prog_compiler_can_build_shared_F77=no
  11845. ;;
  11846. esac
  11847. fi
  11848. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  11849. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  11850. #
  11851. # Check to make sure the PIC flag actually works.
  11852. #
  11853. if test -n "$lt_prog_compiler_pic_F77"; then
  11854. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  11855. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  11856. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  11857. echo $ECHO_N "(cached) $ECHO_C" >&6
  11858. else
  11859. lt_prog_compiler_pic_works_F77=no
  11860. ac_outfile=conftest.$ac_objext
  11861. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11862. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  11863. # Insert the option either (1) after the last *FLAGS variable, or
  11864. # (2) before a word containing "conftest.", or (3) at the end.
  11865. # Note that $ac_compile itself does not contain backslashes and begins
  11866. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11867. # The option is referenced via a variable to avoid confusing sed.
  11868. lt_compile=`echo "$ac_compile" | $SED \
  11869. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11870. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11871. -e 's:$: $lt_compiler_flag:'`
  11872. (eval echo "\"\$as_me:13202: $lt_compile\"" >&5)
  11873. (eval "$lt_compile" 2>conftest.err)
  11874. ac_status=$?
  11875. cat conftest.err >&5
  11876. echo "$as_me:13206: \$? = $ac_status" >&5
  11877. if (exit $ac_status) && test -s "$ac_outfile"; then
  11878. # The compiler can only warn and ignore the option if not recognized
  11879. # So say no if there are warnings other than the usual output.
  11880. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11881. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11882. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11883. lt_prog_compiler_pic_works_F77=yes
  11884. fi
  11885. fi
  11886. $rm conftest*
  11887. fi
  11888. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  11889. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  11890. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  11891. case $lt_prog_compiler_pic_F77 in
  11892. "" | " "*) ;;
  11893. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  11894. esac
  11895. else
  11896. lt_prog_compiler_pic_F77=
  11897. lt_prog_compiler_can_build_shared_F77=no
  11898. fi
  11899. fi
  11900. case $host_os in
  11901. # For platforms which do not support PIC, -DPIC is meaningless:
  11902. *djgpp*)
  11903. lt_prog_compiler_pic_F77=
  11904. ;;
  11905. *)
  11906. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  11907. ;;
  11908. esac
  11909. #
  11910. # Check to make sure the static flag actually works.
  11911. #
  11912. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  11913. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11914. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  11915. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  11916. echo $ECHO_N "(cached) $ECHO_C" >&6
  11917. else
  11918. lt_prog_compiler_static_works_F77=no
  11919. save_LDFLAGS="$LDFLAGS"
  11920. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11921. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  11922. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11923. # The linker can only warn and ignore the option if not recognized
  11924. # So say no if there are warnings
  11925. if test -s conftest.err; then
  11926. # Append any errors to the config.log.
  11927. cat conftest.err 1>&5
  11928. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11929. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11930. if diff conftest.exp conftest.er2 >/dev/null; then
  11931. lt_prog_compiler_static_works_F77=yes
  11932. fi
  11933. else
  11934. lt_prog_compiler_static_works_F77=yes
  11935. fi
  11936. fi
  11937. $rm conftest*
  11938. LDFLAGS="$save_LDFLAGS"
  11939. fi
  11940. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  11941. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
  11942. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  11943. :
  11944. else
  11945. lt_prog_compiler_static_F77=
  11946. fi
  11947. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11948. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  11949. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  11950. echo $ECHO_N "(cached) $ECHO_C" >&6
  11951. else
  11952. lt_cv_prog_compiler_c_o_F77=no
  11953. $rm -r conftest 2>/dev/null
  11954. mkdir conftest
  11955. cd conftest
  11956. mkdir out
  11957. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11958. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11959. # Insert the option either (1) after the last *FLAGS variable, or
  11960. # (2) before a word containing "conftest.", or (3) at the end.
  11961. # Note that $ac_compile itself does not contain backslashes and begins
  11962. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11963. lt_compile=`echo "$ac_compile" | $SED \
  11964. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11965. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11966. -e 's:$: $lt_compiler_flag:'`
  11967. (eval echo "\"\$as_me:13306: $lt_compile\"" >&5)
  11968. (eval "$lt_compile" 2>out/conftest.err)
  11969. ac_status=$?
  11970. cat out/conftest.err >&5
  11971. echo "$as_me:13310: \$? = $ac_status" >&5
  11972. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11973. then
  11974. # The compiler can only warn and ignore the option if not recognized
  11975. # So say no if there are warnings
  11976. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11977. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11978. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11979. lt_cv_prog_compiler_c_o_F77=yes
  11980. fi
  11981. fi
  11982. chmod u+w . 2>&5
  11983. $rm conftest*
  11984. # SGI C++ compiler will create directory out/ii_files/ for
  11985. # template instantiation
  11986. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11987. $rm out/* && rmdir out
  11988. cd ..
  11989. rmdir conftest
  11990. $rm conftest*
  11991. fi
  11992. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  11993. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  11994. hard_links="nottested"
  11995. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  11996. # do not overwrite the value of need_locks provided by the user
  11997. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11998. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  11999. hard_links=yes
  12000. $rm conftest*
  12001. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12002. touch conftest.a
  12003. ln conftest.a conftest.b 2>&5 || hard_links=no
  12004. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12005. echo "$as_me:$LINENO: result: $hard_links" >&5
  12006. echo "${ECHO_T}$hard_links" >&6
  12007. if test "$hard_links" = no; then
  12008. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12009. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12010. need_locks=warn
  12011. fi
  12012. else
  12013. need_locks=no
  12014. fi
  12015. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12016. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  12017. runpath_var=
  12018. allow_undefined_flag_F77=
  12019. enable_shared_with_static_runtimes_F77=no
  12020. archive_cmds_F77=
  12021. archive_expsym_cmds_F77=
  12022. old_archive_From_new_cmds_F77=
  12023. old_archive_from_expsyms_cmds_F77=
  12024. export_dynamic_flag_spec_F77=
  12025. whole_archive_flag_spec_F77=
  12026. thread_safe_flag_spec_F77=
  12027. hardcode_libdir_flag_spec_F77=
  12028. hardcode_libdir_flag_spec_ld_F77=
  12029. hardcode_libdir_separator_F77=
  12030. hardcode_direct_F77=no
  12031. hardcode_minus_L_F77=no
  12032. hardcode_shlibpath_var_F77=unsupported
  12033. link_all_deplibs_F77=unknown
  12034. hardcode_automatic_F77=no
  12035. module_cmds_F77=
  12036. module_expsym_cmds_F77=
  12037. always_export_symbols_F77=no
  12038. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12039. # include_expsyms should be a list of space-separated symbols to be *always*
  12040. # included in the symbol list
  12041. include_expsyms_F77=
  12042. # exclude_expsyms can be an extended regexp of symbols to exclude
  12043. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12044. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12045. # as well as any symbol that contains `d'.
  12046. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12047. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12048. # platforms (ab)use it in PIC code, but their linkers get confused if
  12049. # the symbol is explicitly referenced. Since portable code cannot
  12050. # rely on this symbol name, it's probably fine to never include it in
  12051. # preloaded symbol tables.
  12052. extract_expsyms_cmds=
  12053. # Just being paranoid about ensuring that cc_basename is set.
  12054. for cc_temp in $compiler""; do
  12055. case $cc_temp in
  12056. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12057. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12058. \-*) ;;
  12059. *) break;;
  12060. esac
  12061. done
  12062. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12063. case $host_os in
  12064. cygwin* | mingw* | pw32*)
  12065. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12066. # When not using gcc, we currently assume that we are using
  12067. # Microsoft Visual C++.
  12068. if test "$GCC" != yes; then
  12069. with_gnu_ld=no
  12070. fi
  12071. ;;
  12072. interix*)
  12073. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12074. with_gnu_ld=yes
  12075. ;;
  12076. openbsd*)
  12077. with_gnu_ld=no
  12078. ;;
  12079. esac
  12080. ld_shlibs_F77=yes
  12081. if test "$with_gnu_ld" = yes; then
  12082. # If archive_cmds runs LD, not CC, wlarc should be empty
  12083. wlarc='${wl}'
  12084. # Set some defaults for GNU ld with shared library support. These
  12085. # are reset later if shared libraries are not supported. Putting them
  12086. # here allows them to be overridden if necessary.
  12087. runpath_var=LD_RUN_PATH
  12088. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12089. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12090. # ancient GNU ld didn't support --whole-archive et. al.
  12091. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12092. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12093. else
  12094. whole_archive_flag_spec_F77=
  12095. fi
  12096. supports_anon_versioning=no
  12097. case `$LD -v 2>/dev/null` in
  12098. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12099. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12100. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12101. *\ 2.11.*) ;; # other 2.11 versions
  12102. *) supports_anon_versioning=yes ;;
  12103. esac
  12104. # See if GNU ld supports shared libraries.
  12105. case $host_os in
  12106. aix3* | aix4* | aix5*)
  12107. # On AIX/PPC, the GNU linker is very broken
  12108. if test "$host_cpu" != ia64; then
  12109. ld_shlibs_F77=no
  12110. cat <<EOF 1>&2
  12111. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12112. *** to be unable to reliably create shared libraries on AIX.
  12113. *** Therefore, libtool is disabling shared libraries support. If you
  12114. *** really care for shared libraries, you may want to modify your PATH
  12115. *** so that a non-GNU linker is found, and then restart.
  12116. EOF
  12117. fi
  12118. ;;
  12119. amigaos*)
  12120. 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)'
  12121. hardcode_libdir_flag_spec_F77='-L$libdir'
  12122. hardcode_minus_L_F77=yes
  12123. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  12124. # that the semantics of dynamic libraries on AmigaOS, at least up
  12125. # to version 4, is to share data among multiple programs linked
  12126. # with the same dynamic library. Since this doesn't match the
  12127. # behavior of shared libraries on other platforms, we can't use
  12128. # them.
  12129. ld_shlibs_F77=no
  12130. ;;
  12131. beos*)
  12132. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12133. allow_undefined_flag_F77=unsupported
  12134. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12135. # support --undefined. This deserves some investigation. FIXME
  12136. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12137. else
  12138. ld_shlibs_F77=no
  12139. fi
  12140. ;;
  12141. cygwin* | mingw* | pw32*)
  12142. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  12143. # as there is no search path for DLLs.
  12144. hardcode_libdir_flag_spec_F77='-L$libdir'
  12145. allow_undefined_flag_F77=unsupported
  12146. always_export_symbols_F77=no
  12147. enable_shared_with_static_runtimes_F77=yes
  12148. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12149. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12150. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12151. # If the export-symbols file already is a .def file (1st line
  12152. # is EXPORTS), use it as is; otherwise, prepend...
  12153. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12154. cp $export_symbols $output_objdir/$soname.def;
  12155. else
  12156. echo EXPORTS > $output_objdir/$soname.def;
  12157. cat $export_symbols >> $output_objdir/$soname.def;
  12158. fi~
  12159. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12160. else
  12161. ld_shlibs_F77=no
  12162. fi
  12163. ;;
  12164. interix3*)
  12165. hardcode_direct_F77=no
  12166. hardcode_shlibpath_var_F77=no
  12167. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12168. export_dynamic_flag_spec_F77='${wl}-E'
  12169. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12170. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12171. # default) and relocated if they conflict, which is a slow very memory
  12172. # consuming and fragmenting process. To avoid this, we pick a random,
  12173. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12174. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12175. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12176. archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12177. ;;
  12178. linux*)
  12179. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12180. tmp_addflag=
  12181. case $cc_basename,$host_cpu in
  12182. pgcc*) # Portland Group C compiler
  12183. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  12184. tmp_addflag=' $pic_flag'
  12185. ;;
  12186. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12187. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  12188. tmp_addflag=' $pic_flag -Mnomain' ;;
  12189. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12190. tmp_addflag=' -i_dynamic' ;;
  12191. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12192. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12193. ifc* | ifort*) # Intel Fortran compiler
  12194. tmp_addflag=' -nofor_main' ;;
  12195. esac
  12196. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12197. if test $supports_anon_versioning = yes; then
  12198. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12199. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12200. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12201. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12202. fi
  12203. link_all_deplibs_F77=no
  12204. else
  12205. ld_shlibs_F77=no
  12206. fi
  12207. ;;
  12208. netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  12209. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12210. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12211. wlarc=
  12212. else
  12213. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12214. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12215. fi
  12216. ;;
  12217. solaris*)
  12218. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12219. ld_shlibs_F77=no
  12220. cat <<EOF 1>&2
  12221. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12222. *** create shared libraries on Solaris systems. Therefore, libtool
  12223. *** is disabling shared libraries support. We urge you to upgrade GNU
  12224. *** binutils to release 2.9.1 or newer. Another option is to modify
  12225. *** your PATH or compiler configuration so that the native linker is
  12226. *** used, and then restart.
  12227. EOF
  12228. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12229. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12230. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12231. else
  12232. ld_shlibs_F77=no
  12233. fi
  12234. ;;
  12235. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12236. case `$LD -v 2>&1` in
  12237. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12238. ld_shlibs_F77=no
  12239. cat <<_LT_EOF 1>&2
  12240. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12241. *** reliably create shared libraries on SCO systems. Therefore, libtool
  12242. *** is disabling shared libraries support. We urge you to upgrade GNU
  12243. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12244. *** your PATH or compiler configuration so that the native linker is
  12245. *** used, and then restart.
  12246. _LT_EOF
  12247. ;;
  12248. *)
  12249. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12250. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  12251. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  12252. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  12253. else
  12254. ld_shlibs_F77=no
  12255. fi
  12256. ;;
  12257. esac
  12258. ;;
  12259. sunos4*)
  12260. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12261. wlarc=
  12262. hardcode_direct_F77=yes
  12263. hardcode_shlibpath_var_F77=no
  12264. ;;
  12265. *)
  12266. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12267. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12268. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12269. else
  12270. ld_shlibs_F77=no
  12271. fi
  12272. ;;
  12273. esac
  12274. if test "$ld_shlibs_F77" = no; then
  12275. runpath_var=
  12276. hardcode_libdir_flag_spec_F77=
  12277. export_dynamic_flag_spec_F77=
  12278. whole_archive_flag_spec_F77=
  12279. fi
  12280. else
  12281. # PORTME fill in a description of your system's linker (not GNU ld)
  12282. case $host_os in
  12283. aix3*)
  12284. allow_undefined_flag_F77=unsupported
  12285. always_export_symbols_F77=yes
  12286. 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'
  12287. # Note: this linker hardcodes the directories in LIBPATH if there
  12288. # are no directories specified by -L.
  12289. hardcode_minus_L_F77=yes
  12290. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12291. # Neither direct hardcoding nor static linking is supported with a
  12292. # broken collect2.
  12293. hardcode_direct_F77=unsupported
  12294. fi
  12295. ;;
  12296. aix4* | aix5*)
  12297. if test "$host_cpu" = ia64; then
  12298. # On IA64, the linker does run time linking by default, so we don't
  12299. # have to do anything special.
  12300. aix_use_runtimelinking=no
  12301. exp_sym_flag='-Bexport'
  12302. no_entry_flag=""
  12303. else
  12304. # If we're using GNU nm, then we don't want the "-C" option.
  12305. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12306. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12307. 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'
  12308. else
  12309. 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'
  12310. fi
  12311. aix_use_runtimelinking=no
  12312. # Test if we are trying to use run time linking or normal
  12313. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12314. # need to do runtime linking.
  12315. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12316. for ld_flag in $LDFLAGS; do
  12317. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12318. aix_use_runtimelinking=yes
  12319. break
  12320. fi
  12321. done
  12322. ;;
  12323. esac
  12324. exp_sym_flag='-bexport'
  12325. no_entry_flag='-bnoentry'
  12326. fi
  12327. # When large executables or shared objects are built, AIX ld can
  12328. # have problems creating the table of contents. If linking a library
  12329. # or program results in "error TOC overflow" add -mminimal-toc to
  12330. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12331. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12332. archive_cmds_F77=''
  12333. hardcode_direct_F77=yes
  12334. hardcode_libdir_separator_F77=':'
  12335. link_all_deplibs_F77=yes
  12336. if test "$GCC" = yes; then
  12337. case $host_os in aix4.[012]|aix4.[012].*)
  12338. # We only want to do this on AIX 4.2 and lower, the check
  12339. # below for broken collect2 doesn't work under 4.3+
  12340. collect2name=`${CC} -print-prog-name=collect2`
  12341. if test -f "$collect2name" && \
  12342. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12343. then
  12344. # We have reworked collect2
  12345. hardcode_direct_F77=yes
  12346. else
  12347. # We have old collect2
  12348. hardcode_direct_F77=unsupported
  12349. # It fails to find uninstalled libraries when the uninstalled
  12350. # path is not listed in the libpath. Setting hardcode_minus_L
  12351. # to unsupported forces relinking
  12352. hardcode_minus_L_F77=yes
  12353. hardcode_libdir_flag_spec_F77='-L$libdir'
  12354. hardcode_libdir_separator_F77=
  12355. fi
  12356. ;;
  12357. esac
  12358. shared_flag='-shared'
  12359. if test "$aix_use_runtimelinking" = yes; then
  12360. shared_flag="$shared_flag "'${wl}-G'
  12361. fi
  12362. else
  12363. # not using gcc
  12364. if test "$host_cpu" = ia64; then
  12365. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12366. # chokes on -Wl,-G. The following line is correct:
  12367. shared_flag='-G'
  12368. else
  12369. if test "$aix_use_runtimelinking" = yes; then
  12370. shared_flag='${wl}-G'
  12371. else
  12372. shared_flag='${wl}-bM:SRE'
  12373. fi
  12374. fi
  12375. fi
  12376. # It seems that -bexpall does not export symbols beginning with
  12377. # underscore (_), so it is better to generate a list of symbols to export.
  12378. always_export_symbols_F77=yes
  12379. if test "$aix_use_runtimelinking" = yes; then
  12380. # Warning - without using the other runtime loading flags (-brtl),
  12381. # -berok will link without error, but may produce a broken library.
  12382. allow_undefined_flag_F77='-berok'
  12383. # Determine the default libpath from the value encoded in an empty executable.
  12384. cat >conftest.$ac_ext <<_ACEOF
  12385. program main
  12386. end
  12387. _ACEOF
  12388. rm -f conftest.$ac_objext conftest$ac_exeext
  12389. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12390. (eval $ac_link) 2>conftest.er1
  12391. ac_status=$?
  12392. grep -v '^ *+' conftest.er1 >conftest.err
  12393. rm -f conftest.er1
  12394. cat conftest.err >&5
  12395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12396. (exit $ac_status); } &&
  12397. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  12398. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12399. (eval $ac_try) 2>&5
  12400. ac_status=$?
  12401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12402. (exit $ac_status); }; } &&
  12403. { ac_try='test -s conftest$ac_exeext'
  12404. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12405. (eval $ac_try) 2>&5
  12406. ac_status=$?
  12407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12408. (exit $ac_status); }; }; then
  12409. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12410. }'`
  12411. # Check for a 64-bit object if we didn't find anything.
  12412. 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; }
  12413. }'`; fi
  12414. else
  12415. echo "$as_me: failed program was:" >&5
  12416. sed 's/^/| /' conftest.$ac_ext >&5
  12417. fi
  12418. rm -f conftest.err conftest.$ac_objext \
  12419. conftest$ac_exeext conftest.$ac_ext
  12420. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12421. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12422. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  12423. else
  12424. if test "$host_cpu" = ia64; then
  12425. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  12426. allow_undefined_flag_F77="-z nodefs"
  12427. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  12428. else
  12429. # Determine the default libpath from the value encoded in an empty executable.
  12430. cat >conftest.$ac_ext <<_ACEOF
  12431. program main
  12432. end
  12433. _ACEOF
  12434. rm -f conftest.$ac_objext conftest$ac_exeext
  12435. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12436. (eval $ac_link) 2>conftest.er1
  12437. ac_status=$?
  12438. grep -v '^ *+' conftest.er1 >conftest.err
  12439. rm -f conftest.er1
  12440. cat conftest.err >&5
  12441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12442. (exit $ac_status); } &&
  12443. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  12444. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12445. (eval $ac_try) 2>&5
  12446. ac_status=$?
  12447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12448. (exit $ac_status); }; } &&
  12449. { ac_try='test -s conftest$ac_exeext'
  12450. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12451. (eval $ac_try) 2>&5
  12452. ac_status=$?
  12453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12454. (exit $ac_status); }; }; then
  12455. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12456. }'`
  12457. # Check for a 64-bit object if we didn't find anything.
  12458. 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; }
  12459. }'`; fi
  12460. else
  12461. echo "$as_me: failed program was:" >&5
  12462. sed 's/^/| /' conftest.$ac_ext >&5
  12463. fi
  12464. rm -f conftest.err conftest.$ac_objext \
  12465. conftest$ac_exeext conftest.$ac_ext
  12466. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12467. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12468. # Warning - without using the other run time loading flags,
  12469. # -berok will link without error, but may produce a broken library.
  12470. no_undefined_flag_F77=' ${wl}-bernotok'
  12471. allow_undefined_flag_F77=' ${wl}-berok'
  12472. # Exported symbols can be pulled into shared objects from archives
  12473. whole_archive_flag_spec_F77='$convenience'
  12474. archive_cmds_need_lc_F77=yes
  12475. # This is similar to how AIX traditionally builds its shared libraries.
  12476. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  12477. fi
  12478. fi
  12479. ;;
  12480. amigaos*)
  12481. 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)'
  12482. hardcode_libdir_flag_spec_F77='-L$libdir'
  12483. hardcode_minus_L_F77=yes
  12484. # see comment about different semantics on the GNU ld section
  12485. ld_shlibs_F77=no
  12486. ;;
  12487. bsdi[45]*)
  12488. export_dynamic_flag_spec_F77=-rdynamic
  12489. ;;
  12490. cygwin* | mingw* | pw32*)
  12491. # When not using gcc, we currently assume that we are using
  12492. # Microsoft Visual C++.
  12493. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12494. # no search path for DLLs.
  12495. hardcode_libdir_flag_spec_F77=' '
  12496. allow_undefined_flag_F77=unsupported
  12497. # Tell ltmain to make .lib files, not .a files.
  12498. libext=lib
  12499. # Tell ltmain to make .dll files, not .so files.
  12500. shrext_cmds=".dll"
  12501. # FIXME: Setting linknames here is a bad hack.
  12502. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12503. # The linker will automatically build a .lib file if we build a DLL.
  12504. old_archive_From_new_cmds_F77='true'
  12505. # FIXME: Should let the user specify the lib program.
  12506. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12507. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  12508. enable_shared_with_static_runtimes_F77=yes
  12509. ;;
  12510. darwin* | rhapsody*)
  12511. case $host_os in
  12512. rhapsody* | darwin1.[012])
  12513. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  12514. ;;
  12515. *) # Darwin 1.3 on
  12516. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12517. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12518. else
  12519. case ${MACOSX_DEPLOYMENT_TARGET} in
  12520. 10.[012])
  12521. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12522. ;;
  12523. 10.*)
  12524. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  12525. ;;
  12526. esac
  12527. fi
  12528. ;;
  12529. esac
  12530. archive_cmds_need_lc_F77=no
  12531. hardcode_direct_F77=no
  12532. hardcode_automatic_F77=yes
  12533. hardcode_shlibpath_var_F77=unsupported
  12534. whole_archive_flag_spec_F77=''
  12535. link_all_deplibs_F77=yes
  12536. if test "$GCC" = yes ; then
  12537. output_verbose_link_cmd='echo'
  12538. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12539. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12540. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12541. archive_expsym_cmds_F77='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}'
  12542. 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}'
  12543. else
  12544. case $cc_basename in
  12545. xlc*)
  12546. output_verbose_link_cmd='echo'
  12547. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12548. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12549. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12550. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12551. 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}'
  12552. ;;
  12553. *)
  12554. ld_shlibs_F77=no
  12555. ;;
  12556. esac
  12557. fi
  12558. ;;
  12559. dgux*)
  12560. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12561. hardcode_libdir_flag_spec_F77='-L$libdir'
  12562. hardcode_shlibpath_var_F77=no
  12563. ;;
  12564. freebsd1*)
  12565. ld_shlibs_F77=no
  12566. ;;
  12567. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12568. # support. Future versions do this automatically, but an explicit c++rt0.o
  12569. # does not break anything, and helps significantly (at the cost of a little
  12570. # extra space).
  12571. freebsd2.2*)
  12572. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12573. hardcode_libdir_flag_spec_F77='-R$libdir'
  12574. hardcode_direct_F77=yes
  12575. hardcode_shlibpath_var_F77=no
  12576. ;;
  12577. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12578. freebsd2*)
  12579. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12580. hardcode_direct_F77=yes
  12581. hardcode_minus_L_F77=yes
  12582. hardcode_shlibpath_var_F77=no
  12583. ;;
  12584. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12585. freebsd* | dragonfly*)
  12586. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12587. hardcode_libdir_flag_spec_F77='-R$libdir'
  12588. hardcode_direct_F77=yes
  12589. hardcode_shlibpath_var_F77=no
  12590. ;;
  12591. # GNU/kFreeBSD uses gcc -shared to do shared libraries.
  12592. kfreebsd*-gnu)
  12593. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12594. hardcode_libdir_flag_spec_F77='-R$libdir'
  12595. hardcode_direct_F77=yes
  12596. hardcode_shlibpath_var_F77=no
  12597. link_all_deplibs_F77=no
  12598. ;;
  12599. hpux9*)
  12600. if test "$GCC" = yes; then
  12601. 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'
  12602. else
  12603. 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'
  12604. fi
  12605. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12606. hardcode_libdir_separator_F77=:
  12607. hardcode_direct_F77=yes
  12608. # hardcode_minus_L: Not really in the search PATH,
  12609. # but as the default location of the library.
  12610. hardcode_minus_L_F77=yes
  12611. export_dynamic_flag_spec_F77='${wl}-E'
  12612. ;;
  12613. hpux10*)
  12614. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12615. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12616. else
  12617. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12618. fi
  12619. if test "$with_gnu_ld" = no; then
  12620. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12621. hardcode_libdir_separator_F77=:
  12622. hardcode_direct_F77=yes
  12623. export_dynamic_flag_spec_F77='${wl}-E'
  12624. # hardcode_minus_L: Not really in the search PATH,
  12625. # but as the default location of the library.
  12626. hardcode_minus_L_F77=yes
  12627. fi
  12628. ;;
  12629. hpux11*)
  12630. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12631. case $host_cpu in
  12632. hppa*64*)
  12633. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12634. ;;
  12635. ia64*)
  12636. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12637. ;;
  12638. *)
  12639. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12640. ;;
  12641. esac
  12642. else
  12643. case $host_cpu in
  12644. hppa*64*)
  12645. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12646. ;;
  12647. ia64*)
  12648. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12649. ;;
  12650. *)
  12651. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12652. ;;
  12653. esac
  12654. fi
  12655. if test "$with_gnu_ld" = no; then
  12656. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12657. hardcode_libdir_separator_F77=:
  12658. case $host_cpu in
  12659. hppa*64*|ia64*)
  12660. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  12661. hardcode_direct_F77=no
  12662. hardcode_shlibpath_var_F77=no
  12663. ;;
  12664. *)
  12665. hardcode_direct_F77=yes
  12666. export_dynamic_flag_spec_F77='${wl}-E'
  12667. # hardcode_minus_L: Not really in the search PATH,
  12668. # but as the default location of the library.
  12669. hardcode_minus_L_F77=yes
  12670. ;;
  12671. esac
  12672. fi
  12673. ;;
  12674. irix5* | irix6* | nonstopux*)
  12675. if test "$GCC" = yes; then
  12676. 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'
  12677. else
  12678. 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'
  12679. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  12680. fi
  12681. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12682. hardcode_libdir_separator_F77=:
  12683. link_all_deplibs_F77=yes
  12684. ;;
  12685. netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  12686. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12687. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12688. else
  12689. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12690. fi
  12691. hardcode_libdir_flag_spec_F77='-R$libdir'
  12692. hardcode_direct_F77=yes
  12693. hardcode_shlibpath_var_F77=no
  12694. ;;
  12695. newsos6)
  12696. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12697. hardcode_direct_F77=yes
  12698. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12699. hardcode_libdir_separator_F77=:
  12700. hardcode_shlibpath_var_F77=no
  12701. ;;
  12702. openbsd*)
  12703. hardcode_direct_F77=yes
  12704. hardcode_shlibpath_var_F77=no
  12705. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12706. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12707. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12708. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12709. export_dynamic_flag_spec_F77='${wl}-E'
  12710. else
  12711. case $host_os in
  12712. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12713. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12714. hardcode_libdir_flag_spec_F77='-R$libdir'
  12715. ;;
  12716. *)
  12717. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12718. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12719. ;;
  12720. esac
  12721. fi
  12722. ;;
  12723. os2*)
  12724. hardcode_libdir_flag_spec_F77='-L$libdir'
  12725. hardcode_minus_L_F77=yes
  12726. allow_undefined_flag_F77=unsupported
  12727. 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'
  12728. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12729. ;;
  12730. osf3*)
  12731. if test "$GCC" = yes; then
  12732. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12733. 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'
  12734. else
  12735. allow_undefined_flag_F77=' -expect_unresolved \*'
  12736. 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'
  12737. fi
  12738. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12739. hardcode_libdir_separator_F77=:
  12740. ;;
  12741. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12742. if test "$GCC" = yes; then
  12743. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12744. 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'
  12745. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12746. else
  12747. allow_undefined_flag_F77=' -expect_unresolved \*'
  12748. 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'
  12749. 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~
  12750. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  12751. # Both c and cxx compiler support -rpath directly
  12752. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  12753. fi
  12754. hardcode_libdir_separator_F77=:
  12755. ;;
  12756. solaris*)
  12757. no_undefined_flag_F77=' -z text'
  12758. if test "$GCC" = yes; then
  12759. wlarc='${wl}'
  12760. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12761. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12762. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12763. else
  12764. wlarc=''
  12765. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12766. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12767. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12768. fi
  12769. hardcode_libdir_flag_spec_F77='-R$libdir'
  12770. hardcode_shlibpath_var_F77=no
  12771. case $host_os in
  12772. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12773. *)
  12774. # The compiler driver will combine linker options so we
  12775. # cannot just pass the convience library names through
  12776. # without $wl, iff we do not link with $LD.
  12777. # Luckily, gcc supports the same syntax we need for Sun Studio.
  12778. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12779. case $wlarc in
  12780. '')
  12781. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  12782. *)
  12783. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  12784. esac ;;
  12785. esac
  12786. link_all_deplibs_F77=yes
  12787. ;;
  12788. sunos4*)
  12789. if test "x$host_vendor" = xsequent; then
  12790. # Use $CC to link under sequent, because it throws in some extra .o
  12791. # files that make .init and .fini sections work.
  12792. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12793. else
  12794. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12795. fi
  12796. hardcode_libdir_flag_spec_F77='-L$libdir'
  12797. hardcode_direct_F77=yes
  12798. hardcode_minus_L_F77=yes
  12799. hardcode_shlibpath_var_F77=no
  12800. ;;
  12801. sysv4)
  12802. case $host_vendor in
  12803. sni)
  12804. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12805. hardcode_direct_F77=yes # is this really true???
  12806. ;;
  12807. siemens)
  12808. ## LD is ld it makes a PLAMLIB
  12809. ## CC just makes a GrossModule.
  12810. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12811. reload_cmds_F77='$CC -r -o $output$reload_objs'
  12812. hardcode_direct_F77=no
  12813. ;;
  12814. motorola)
  12815. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12816. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  12817. ;;
  12818. esac
  12819. runpath_var='LD_RUN_PATH'
  12820. hardcode_shlibpath_var_F77=no
  12821. ;;
  12822. sysv4.3*)
  12823. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12824. hardcode_shlibpath_var_F77=no
  12825. export_dynamic_flag_spec_F77='-Bexport'
  12826. ;;
  12827. sysv4*MP*)
  12828. if test -d /usr/nec; then
  12829. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12830. hardcode_shlibpath_var_F77=no
  12831. runpath_var=LD_RUN_PATH
  12832. hardcode_runpath_var=yes
  12833. ld_shlibs_F77=yes
  12834. fi
  12835. ;;
  12836. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  12837. no_undefined_flag_F77='${wl}-z,text'
  12838. archive_cmds_need_lc_F77=no
  12839. hardcode_shlibpath_var_F77=no
  12840. runpath_var='LD_RUN_PATH'
  12841. if test "$GCC" = yes; then
  12842. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12843. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12844. else
  12845. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12846. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12847. fi
  12848. ;;
  12849. sysv5* | sco3.2v5* | sco5v6*)
  12850. # Note: We can NOT use -z defs as we might desire, because we do not
  12851. # link with -lc, and that would cause any symbols used from libc to
  12852. # always be unresolved, which means just about no library would
  12853. # ever link correctly. If we're not using GNU ld we use -z text
  12854. # though, which does catch some bad symbols but isn't as heavy-handed
  12855. # as -z defs.
  12856. no_undefined_flag_F77='${wl}-z,text'
  12857. allow_undefined_flag_F77='${wl}-z,nodefs'
  12858. archive_cmds_need_lc_F77=no
  12859. hardcode_shlibpath_var_F77=no
  12860. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  12861. hardcode_libdir_separator_F77=':'
  12862. link_all_deplibs_F77=yes
  12863. export_dynamic_flag_spec_F77='${wl}-Bexport'
  12864. runpath_var='LD_RUN_PATH'
  12865. if test "$GCC" = yes; then
  12866. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12867. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12868. else
  12869. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12870. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12871. fi
  12872. ;;
  12873. uts4*)
  12874. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12875. hardcode_libdir_flag_spec_F77='-L$libdir'
  12876. hardcode_shlibpath_var_F77=no
  12877. ;;
  12878. *)
  12879. ld_shlibs_F77=no
  12880. ;;
  12881. esac
  12882. fi
  12883. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  12884. echo "${ECHO_T}$ld_shlibs_F77" >&6
  12885. test "$ld_shlibs_F77" = no && can_build_shared=no
  12886. #
  12887. # Do we need to explicitly link libc?
  12888. #
  12889. case "x$archive_cmds_need_lc_F77" in
  12890. x|xyes)
  12891. # Assume -lc should be added
  12892. archive_cmds_need_lc_F77=yes
  12893. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12894. case $archive_cmds_F77 in
  12895. *'~'*)
  12896. # FIXME: we may have to deal with multi-command sequences.
  12897. ;;
  12898. '$CC '*)
  12899. # Test whether the compiler implicitly links with -lc since on some
  12900. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12901. # to ld, don't add -lc before -lgcc.
  12902. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12903. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  12904. $rm conftest*
  12905. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12906. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12907. (eval $ac_compile) 2>&5
  12908. ac_status=$?
  12909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12910. (exit $ac_status); } 2>conftest.err; then
  12911. soname=conftest
  12912. lib=conftest
  12913. libobjs=conftest.$ac_objext
  12914. deplibs=
  12915. wl=$lt_prog_compiler_wl_F77
  12916. pic_flag=$lt_prog_compiler_pic_F77
  12917. compiler_flags=-v
  12918. linker_flags=-v
  12919. verstring=
  12920. output_objdir=.
  12921. libname=conftest
  12922. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  12923. allow_undefined_flag_F77=
  12924. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12925. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12926. ac_status=$?
  12927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12928. (exit $ac_status); }
  12929. then
  12930. archive_cmds_need_lc_F77=no
  12931. else
  12932. archive_cmds_need_lc_F77=yes
  12933. fi
  12934. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  12935. else
  12936. cat conftest.err 1>&5
  12937. fi
  12938. $rm conftest*
  12939. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  12940. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  12941. ;;
  12942. esac
  12943. fi
  12944. ;;
  12945. esac
  12946. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12947. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  12948. library_names_spec=
  12949. libname_spec='lib$name'
  12950. soname_spec=
  12951. shrext_cmds=".so"
  12952. postinstall_cmds=
  12953. postuninstall_cmds=
  12954. finish_cmds=
  12955. finish_eval=
  12956. shlibpath_var=
  12957. shlibpath_overrides_runpath=unknown
  12958. version_type=none
  12959. dynamic_linker="$host_os ld.so"
  12960. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12961. if test "$GCC" = yes; then
  12962. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12963. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  12964. # if the path contains ";" then we assume it to be the separator
  12965. # otherwise default to the standard path separator (i.e. ":") - it is
  12966. # assumed that no part of a normal pathname contains ";" but that should
  12967. # okay in the real world where ";" in dirpaths is itself problematic.
  12968. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12969. else
  12970. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12971. fi
  12972. else
  12973. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  12974. fi
  12975. need_lib_prefix=unknown
  12976. hardcode_into_libs=no
  12977. # when you set need_version to no, make sure it does not cause -set_version
  12978. # flags to be left without arguments
  12979. need_version=unknown
  12980. case $host_os in
  12981. aix3*)
  12982. version_type=linux
  12983. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12984. shlibpath_var=LIBPATH
  12985. # AIX 3 has no versioning support, so we append a major version to the name.
  12986. soname_spec='${libname}${release}${shared_ext}$major'
  12987. ;;
  12988. aix4* | aix5*)
  12989. version_type=linux
  12990. need_lib_prefix=no
  12991. need_version=no
  12992. hardcode_into_libs=yes
  12993. if test "$host_cpu" = ia64; then
  12994. # AIX 5 supports IA64
  12995. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12996. shlibpath_var=LD_LIBRARY_PATH
  12997. else
  12998. # With GCC up to 2.95.x, collect2 would create an import file
  12999. # for dependence libraries. The import file would start with
  13000. # the line `#! .'. This would cause the generated library to
  13001. # depend on `.', always an invalid library. This was fixed in
  13002. # development snapshots of GCC prior to 3.0.
  13003. case $host_os in
  13004. aix4 | aix4.[01] | aix4.[01].*)
  13005. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13006. echo ' yes '
  13007. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13008. :
  13009. else
  13010. can_build_shared=no
  13011. fi
  13012. ;;
  13013. esac
  13014. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13015. # soname into executable. Probably we can add versioning support to
  13016. # collect2, so additional links can be useful in future.
  13017. if test "$aix_use_runtimelinking" = yes; then
  13018. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13019. # instead of lib<name>.a to let people know that these are not
  13020. # typical AIX shared libraries.
  13021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13022. else
  13023. # We preserve .a as extension for shared libraries through AIX4.2
  13024. # and later when we are not doing run time linking.
  13025. library_names_spec='${libname}${release}.a $libname.a'
  13026. soname_spec='${libname}${release}${shared_ext}$major'
  13027. fi
  13028. shlibpath_var=LIBPATH
  13029. fi
  13030. ;;
  13031. amigaos*)
  13032. library_names_spec='$libname.ixlibrary $libname.a'
  13033. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13034. 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'
  13035. ;;
  13036. beos*)
  13037. library_names_spec='${libname}${shared_ext}'
  13038. dynamic_linker="$host_os ld.so"
  13039. shlibpath_var=LIBRARY_PATH
  13040. ;;
  13041. bsdi[45]*)
  13042. version_type=linux
  13043. need_version=no
  13044. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13045. soname_spec='${libname}${release}${shared_ext}$major'
  13046. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13047. shlibpath_var=LD_LIBRARY_PATH
  13048. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13049. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13050. # the default ld.so.conf also contains /usr/contrib/lib and
  13051. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13052. # libtool to hard-code these into programs
  13053. ;;
  13054. cygwin* | mingw* | pw32*)
  13055. version_type=windows
  13056. shrext_cmds=".dll"
  13057. need_version=no
  13058. need_lib_prefix=no
  13059. case $GCC,$host_os in
  13060. yes,cygwin* | yes,mingw* | yes,pw32*)
  13061. library_names_spec='$libname.dll.a'
  13062. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13063. postinstall_cmds='base_file=`basename \${file}`~
  13064. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13065. dldir=$destdir/`dirname \$dlpath`~
  13066. test -d \$dldir || mkdir -p \$dldir~
  13067. $install_prog $dir/$dlname \$dldir/$dlname~
  13068. chmod a+x \$dldir/$dlname'
  13069. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13070. dlpath=$dir/\$dldll~
  13071. $rm \$dlpath'
  13072. shlibpath_overrides_runpath=yes
  13073. case $host_os in
  13074. cygwin*)
  13075. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13076. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13077. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13078. ;;
  13079. mingw*)
  13080. # MinGW DLLs use traditional 'lib' prefix
  13081. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13082. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13083. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13084. # It is most probably a Windows format PATH printed by
  13085. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13086. # path with ; separators, and with drive letters. We can handle the
  13087. # drive letters (cygwin fileutils understands them), so leave them,
  13088. # especially as we might pass files found there to a mingw objdump,
  13089. # which wouldn't understand a cygwinified path. Ahh.
  13090. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13091. else
  13092. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13093. fi
  13094. ;;
  13095. pw32*)
  13096. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13097. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13098. ;;
  13099. esac
  13100. ;;
  13101. *)
  13102. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13103. ;;
  13104. esac
  13105. dynamic_linker='Win32 ld.exe'
  13106. # FIXME: first we should search . and the directory the executable is in
  13107. shlibpath_var=PATH
  13108. ;;
  13109. darwin* | rhapsody*)
  13110. dynamic_linker="$host_os dyld"
  13111. version_type=darwin
  13112. need_lib_prefix=no
  13113. need_version=no
  13114. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13115. soname_spec='${libname}${release}${major}$shared_ext'
  13116. shlibpath_overrides_runpath=yes
  13117. shlibpath_var=DYLD_LIBRARY_PATH
  13118. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13119. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13120. if test "$GCC" = yes; then
  13121. 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"`
  13122. else
  13123. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13124. fi
  13125. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13126. ;;
  13127. dgux*)
  13128. version_type=linux
  13129. need_lib_prefix=no
  13130. need_version=no
  13131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13132. soname_spec='${libname}${release}${shared_ext}$major'
  13133. shlibpath_var=LD_LIBRARY_PATH
  13134. ;;
  13135. freebsd1*)
  13136. dynamic_linker=no
  13137. ;;
  13138. kfreebsd*-gnu)
  13139. version_type=linux
  13140. need_lib_prefix=no
  13141. need_version=no
  13142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13143. soname_spec='${libname}${release}${shared_ext}$major'
  13144. shlibpath_var=LD_LIBRARY_PATH
  13145. shlibpath_overrides_runpath=no
  13146. hardcode_into_libs=yes
  13147. dynamic_linker='GNU ld.so'
  13148. ;;
  13149. freebsd* | dragonfly*)
  13150. # DragonFly does not have aout. When/if they implement a new
  13151. # versioning mechanism, adjust this.
  13152. if test -x /usr/bin/objformat; then
  13153. objformat=`/usr/bin/objformat`
  13154. else
  13155. case $host_os in
  13156. freebsd[123]*) objformat=aout ;;
  13157. *) objformat=elf ;;
  13158. esac
  13159. fi
  13160. version_type=freebsd-$objformat
  13161. case $version_type in
  13162. freebsd-elf*)
  13163. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13164. need_version=no
  13165. need_lib_prefix=no
  13166. ;;
  13167. freebsd-*)
  13168. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13169. need_version=yes
  13170. ;;
  13171. esac
  13172. shlibpath_var=LD_LIBRARY_PATH
  13173. case $host_os in
  13174. freebsd2*)
  13175. shlibpath_overrides_runpath=yes
  13176. ;;
  13177. freebsd3.[01]* | freebsdelf3.[01]*)
  13178. shlibpath_overrides_runpath=yes
  13179. hardcode_into_libs=yes
  13180. ;;
  13181. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13182. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13183. shlibpath_overrides_runpath=no
  13184. hardcode_into_libs=yes
  13185. ;;
  13186. freebsd*) # from 4.6 on
  13187. shlibpath_overrides_runpath=yes
  13188. hardcode_into_libs=yes
  13189. ;;
  13190. esac
  13191. ;;
  13192. gnu*)
  13193. version_type=linux
  13194. need_lib_prefix=no
  13195. need_version=no
  13196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13197. soname_spec='${libname}${release}${shared_ext}$major'
  13198. shlibpath_var=LD_LIBRARY_PATH
  13199. hardcode_into_libs=yes
  13200. ;;
  13201. hpux9* | hpux10* | hpux11*)
  13202. # Give a soname corresponding to the major version so that dld.sl refuses to
  13203. # link against other versions.
  13204. version_type=sunos
  13205. need_lib_prefix=no
  13206. need_version=no
  13207. case $host_cpu in
  13208. ia64*)
  13209. shrext_cmds='.so'
  13210. hardcode_into_libs=yes
  13211. dynamic_linker="$host_os dld.so"
  13212. shlibpath_var=LD_LIBRARY_PATH
  13213. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13215. soname_spec='${libname}${release}${shared_ext}$major'
  13216. if test "X$HPUX_IA64_MODE" = X32; then
  13217. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13218. else
  13219. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13220. fi
  13221. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13222. ;;
  13223. hppa*64*)
  13224. shrext_cmds='.sl'
  13225. hardcode_into_libs=yes
  13226. dynamic_linker="$host_os dld.sl"
  13227. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13228. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13230. soname_spec='${libname}${release}${shared_ext}$major'
  13231. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13232. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13233. ;;
  13234. *)
  13235. shrext_cmds='.sl'
  13236. dynamic_linker="$host_os dld.sl"
  13237. shlibpath_var=SHLIB_PATH
  13238. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13240. soname_spec='${libname}${release}${shared_ext}$major'
  13241. ;;
  13242. esac
  13243. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13244. postinstall_cmds='chmod 555 $lib'
  13245. ;;
  13246. interix3*)
  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. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13253. shlibpath_var=LD_LIBRARY_PATH
  13254. shlibpath_overrides_runpath=no
  13255. hardcode_into_libs=yes
  13256. ;;
  13257. irix5* | irix6* | nonstopux*)
  13258. case $host_os in
  13259. nonstopux*) version_type=nonstopux ;;
  13260. *)
  13261. if test "$lt_cv_prog_gnu_ld" = yes; then
  13262. version_type=linux
  13263. else
  13264. version_type=irix
  13265. fi ;;
  13266. esac
  13267. need_lib_prefix=no
  13268. need_version=no
  13269. soname_spec='${libname}${release}${shared_ext}$major'
  13270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13271. case $host_os in
  13272. irix5* | nonstopux*)
  13273. libsuff= shlibsuff=
  13274. ;;
  13275. *)
  13276. case $LD in # libtool.m4 will add one of these switches to LD
  13277. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13278. libsuff= shlibsuff= libmagic=32-bit;;
  13279. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13280. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13281. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13282. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13283. *) libsuff= shlibsuff= libmagic=never-match;;
  13284. esac
  13285. ;;
  13286. esac
  13287. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13288. shlibpath_overrides_runpath=no
  13289. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13290. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13291. hardcode_into_libs=yes
  13292. ;;
  13293. # No shared lib support for Linux oldld, aout, or coff.
  13294. linux*oldld* | linux*aout* | linux*coff*)
  13295. dynamic_linker=no
  13296. ;;
  13297. # This must be Linux ELF.
  13298. linux*)
  13299. version_type=linux
  13300. need_lib_prefix=no
  13301. need_version=no
  13302. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13303. soname_spec='${libname}${release}${shared_ext}$major'
  13304. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13305. shlibpath_var=LD_LIBRARY_PATH
  13306. shlibpath_overrides_runpath=no
  13307. # This implies no fast_install, which is unacceptable.
  13308. # Some rework will be needed to allow for fast_install
  13309. # before this can be enabled.
  13310. hardcode_into_libs=yes
  13311. # Append ld.so.conf contents to the search path
  13312. if test -f /etc/ld.so.conf; then
  13313. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  13314. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13315. fi
  13316. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13317. # powerpc, because MkLinux only supported shared libraries with the
  13318. # GNU dynamic linker. Since this was broken with cross compilers,
  13319. # most powerpc-linux boxes support dynamic linking these days and
  13320. # people can always --disable-shared, the test was removed, and we
  13321. # assume the GNU/Linux dynamic linker is in use.
  13322. dynamic_linker='GNU/Linux ld.so'
  13323. ;;
  13324. netbsdelf*-gnu)
  13325. version_type=linux
  13326. need_lib_prefix=no
  13327. need_version=no
  13328. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13329. soname_spec='${libname}${release}${shared_ext}$major'
  13330. shlibpath_var=LD_LIBRARY_PATH
  13331. shlibpath_overrides_runpath=no
  13332. hardcode_into_libs=yes
  13333. dynamic_linker='NetBSD ld.elf_so'
  13334. ;;
  13335. knetbsd*-gnu)
  13336. version_type=linux
  13337. need_lib_prefix=no
  13338. need_version=no
  13339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13340. soname_spec='${libname}${release}${shared_ext}$major'
  13341. shlibpath_var=LD_LIBRARY_PATH
  13342. shlibpath_overrides_runpath=no
  13343. hardcode_into_libs=yes
  13344. dynamic_linker='GNU ld.so'
  13345. ;;
  13346. netbsd*)
  13347. version_type=sunos
  13348. need_lib_prefix=no
  13349. need_version=no
  13350. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13351. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13352. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13353. dynamic_linker='NetBSD (a.out) ld.so'
  13354. else
  13355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13356. soname_spec='${libname}${release}${shared_ext}$major'
  13357. dynamic_linker='NetBSD ld.elf_so'
  13358. fi
  13359. shlibpath_var=LD_LIBRARY_PATH
  13360. shlibpath_overrides_runpath=yes
  13361. hardcode_into_libs=yes
  13362. ;;
  13363. newsos6)
  13364. version_type=linux
  13365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13366. shlibpath_var=LD_LIBRARY_PATH
  13367. shlibpath_overrides_runpath=yes
  13368. ;;
  13369. nto-qnx*)
  13370. version_type=linux
  13371. need_lib_prefix=no
  13372. need_version=no
  13373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13374. soname_spec='${libname}${release}${shared_ext}$major'
  13375. shlibpath_var=LD_LIBRARY_PATH
  13376. shlibpath_overrides_runpath=yes
  13377. ;;
  13378. openbsd*)
  13379. version_type=sunos
  13380. sys_lib_dlsearch_path_spec="/usr/lib"
  13381. need_lib_prefix=no
  13382. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13383. case $host_os in
  13384. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13385. *) need_version=no ;;
  13386. esac
  13387. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13388. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13389. shlibpath_var=LD_LIBRARY_PATH
  13390. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13391. case $host_os in
  13392. openbsd2.[89] | openbsd2.[89].*)
  13393. shlibpath_overrides_runpath=no
  13394. ;;
  13395. *)
  13396. shlibpath_overrides_runpath=yes
  13397. ;;
  13398. esac
  13399. else
  13400. shlibpath_overrides_runpath=yes
  13401. fi
  13402. ;;
  13403. os2*)
  13404. libname_spec='$name'
  13405. shrext_cmds=".dll"
  13406. need_lib_prefix=no
  13407. library_names_spec='$libname${shared_ext} $libname.a'
  13408. dynamic_linker='OS/2 ld.exe'
  13409. shlibpath_var=LIBPATH
  13410. ;;
  13411. osf3* | osf4* | osf5*)
  13412. version_type=osf
  13413. need_lib_prefix=no
  13414. need_version=no
  13415. soname_spec='${libname}${release}${shared_ext}$major'
  13416. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13417. shlibpath_var=LD_LIBRARY_PATH
  13418. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13419. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13420. ;;
  13421. solaris*)
  13422. version_type=linux
  13423. need_lib_prefix=no
  13424. need_version=no
  13425. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13426. soname_spec='${libname}${release}${shared_ext}$major'
  13427. shlibpath_var=LD_LIBRARY_PATH
  13428. shlibpath_overrides_runpath=yes
  13429. hardcode_into_libs=yes
  13430. # ldd complains unless libraries are executable
  13431. postinstall_cmds='chmod +x $lib'
  13432. ;;
  13433. sunos4*)
  13434. version_type=sunos
  13435. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13436. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13437. shlibpath_var=LD_LIBRARY_PATH
  13438. shlibpath_overrides_runpath=yes
  13439. if test "$with_gnu_ld" = yes; then
  13440. need_lib_prefix=no
  13441. fi
  13442. need_version=yes
  13443. ;;
  13444. sysv4 | sysv4.3*)
  13445. version_type=linux
  13446. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13447. soname_spec='${libname}${release}${shared_ext}$major'
  13448. shlibpath_var=LD_LIBRARY_PATH
  13449. case $host_vendor in
  13450. sni)
  13451. shlibpath_overrides_runpath=no
  13452. need_lib_prefix=no
  13453. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13454. runpath_var=LD_RUN_PATH
  13455. ;;
  13456. siemens)
  13457. need_lib_prefix=no
  13458. ;;
  13459. motorola)
  13460. need_lib_prefix=no
  13461. need_version=no
  13462. shlibpath_overrides_runpath=no
  13463. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13464. ;;
  13465. esac
  13466. ;;
  13467. sysv4*MP*)
  13468. if test -d /usr/nec ;then
  13469. version_type=linux
  13470. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13471. soname_spec='$libname${shared_ext}.$major'
  13472. shlibpath_var=LD_LIBRARY_PATH
  13473. fi
  13474. ;;
  13475. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13476. version_type=freebsd-elf
  13477. need_lib_prefix=no
  13478. need_version=no
  13479. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13480. soname_spec='${libname}${release}${shared_ext}$major'
  13481. shlibpath_var=LD_LIBRARY_PATH
  13482. hardcode_into_libs=yes
  13483. if test "$with_gnu_ld" = yes; then
  13484. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13485. shlibpath_overrides_runpath=no
  13486. else
  13487. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13488. shlibpath_overrides_runpath=yes
  13489. case $host_os in
  13490. sco3.2v5*)
  13491. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13492. ;;
  13493. esac
  13494. fi
  13495. sys_lib_dlsearch_path_spec='/usr/lib'
  13496. ;;
  13497. uts4*)
  13498. version_type=linux
  13499. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13500. soname_spec='${libname}${release}${shared_ext}$major'
  13501. shlibpath_var=LD_LIBRARY_PATH
  13502. ;;
  13503. *)
  13504. dynamic_linker=no
  13505. ;;
  13506. esac
  13507. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13508. echo "${ECHO_T}$dynamic_linker" >&6
  13509. test "$dynamic_linker" = no && can_build_shared=no
  13510. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13511. if test "$GCC" = yes; then
  13512. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13513. fi
  13514. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13515. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  13516. hardcode_action_F77=
  13517. if test -n "$hardcode_libdir_flag_spec_F77" || \
  13518. test -n "$runpath_var_F77" || \
  13519. test "X$hardcode_automatic_F77" = "Xyes" ; then
  13520. # We can hardcode non-existant directories.
  13521. if test "$hardcode_direct_F77" != no &&
  13522. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13523. # have to relink, otherwise we might link with an installed library
  13524. # when we should be linking with a yet-to-be-installed one
  13525. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  13526. test "$hardcode_minus_L_F77" != no; then
  13527. # Linking always hardcodes the temporary library directory.
  13528. hardcode_action_F77=relink
  13529. else
  13530. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13531. hardcode_action_F77=immediate
  13532. fi
  13533. else
  13534. # We cannot hardcode anything, or else we can only hardcode existing
  13535. # directories.
  13536. hardcode_action_F77=unsupported
  13537. fi
  13538. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  13539. echo "${ECHO_T}$hardcode_action_F77" >&6
  13540. if test "$hardcode_action_F77" = relink; then
  13541. # Fast installation is not supported
  13542. enable_fast_install=no
  13543. elif test "$shlibpath_overrides_runpath" = yes ||
  13544. test "$enable_shared" = no; then
  13545. # Fast installation is not necessary
  13546. enable_fast_install=needless
  13547. fi
  13548. # The else clause should only fire when bootstrapping the
  13549. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13550. # with your package, and you will get complaints that there are
  13551. # no rules to generate ltmain.sh.
  13552. if test -f "$ltmain"; then
  13553. # See if we are running on zsh, and set the options which allow our commands through
  13554. # without removal of \ escapes.
  13555. if test -n "${ZSH_VERSION+set}" ; then
  13556. setopt NO_GLOB_SUBST
  13557. fi
  13558. # Now quote all the things that may contain metacharacters while being
  13559. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13560. # variables and quote the copies for generation of the libtool script.
  13561. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  13562. SED SHELL STRIP \
  13563. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13564. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13565. deplibs_check_method reload_flag reload_cmds need_locks \
  13566. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13567. lt_cv_sys_global_symbol_to_c_name_address \
  13568. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13569. old_postinstall_cmds old_postuninstall_cmds \
  13570. compiler_F77 \
  13571. CC_F77 \
  13572. LD_F77 \
  13573. lt_prog_compiler_wl_F77 \
  13574. lt_prog_compiler_pic_F77 \
  13575. lt_prog_compiler_static_F77 \
  13576. lt_prog_compiler_no_builtin_flag_F77 \
  13577. export_dynamic_flag_spec_F77 \
  13578. th