/configure

http://github.com/dreamcat4/php-fpm · Shell · 24811 lines · 19812 code · 2208 blank · 2791 comment · 1495 complexity · f9b00f14c2e54ebbaa357f26ad85320c MD5 · raw file

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for php-fpm 0.6.
  4. #
  5. # Report bugs to <andrei.nigmatulin@gmail.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='php-fpm'
  373. PACKAGE_TARNAME='php-fpm'
  374. PACKAGE_VERSION='0.6'
  375. PACKAGE_STRING='php-fpm 0.6'
  376. PACKAGE_BUGREPORT='andrei.nigmatulin@gmail.com'
  377. ac_unique_file="fpm/fpm.c"
  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 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PHP_OBJS PHP_SRCDIR PHP_BUILDDIR PHP_VERSION XMLCONFIG FPM_TRACE_USE_PTRACE_TRUE FPM_TRACE_USE_PTRACE_FALSE FPM_TRACE_USE_PREAD_TRUE FPM_TRACE_USE_PREAD_FALSE FPM_TRACE_USE_MACH_TRUE FPM_TRACE_USE_MACH_FALSE LIBEVENT_CFLAGS LIBEVENT_LIBS ENDIF AM_CFLAGS php_fpm_ADD_CFLAGS php_fpm_ADD_LIBS fpm_version php_fpm_bin php_fpm_bin_dir php_fpm_bin_path php_fpm_port php_fpm_conf php_fpm_conf_dir php_fpm_conf_path php_fpm_init php_fpm_init_dir php_fpm_init_path php_fpm_log_dir php_fpm_log_path php_fpm_pid_dir php_fpm_pid_path php_fpm_user php_fpm_group 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 php-fpm 0.6 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 php-fpm 0.6:";;
  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. Optional Packages:
  913. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  914. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  915. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  916. --with-pic try to use only PIC/non-PIC objects [default=use
  917. both]
  918. --with-tags[=TAGS]
  919. include additional configurations [automatic]
  920. --with-fpm-bin=[PATH]
  921. Set the path for php-fpm binary
  922. [/usr/local/bin/php-fpm]
  923. --with-fpm-port=[PORT]
  924. Set the tcp port number to listen for cgi requests
  925. [9000]
  926. --with-fpm-conf=[PATH]
  927. Set the path for php-fpm configuration file
  928. [/etc/php-fpm.conf]
  929. --with-fpm-init=[PATH]
  930. Set the path for php-fpm init file
  931. [/etc/init.d/php-fpm]
  932. --with-fpm-log=[PATH]
  933. Set the path for php-fpm log file
  934. [/var/log/php-fpm.log]
  935. --with-fpm-pid=[PATH]
  936. Set the path for php-fpm pid file
  937. [/var/run/php-fpm.pid]
  938. --with-fpm-user=[USER]
  939. Set the user for php-fpm to run as [nobody]
  940. --with-fpm-group=[GRP]
  941. Set the group for php-fpm to run as [nobody]
  942. --with-php-src=DIR full path to php source dir
  943. --with-php-build=DIR full path to php build dir, only needed if differ
  944. from source dir
  945. --with-xml-config=PATH path to xml-config
  946. --with-libevent[=PATH] Path to the libevent, for fpm SAPI [/usr/local]
  947. Some influential environment variables:
  948. CC C compiler command
  949. CFLAGS C compiler flags
  950. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  951. nonstandard directory <lib dir>
  952. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  953. headers in a nonstandard directory <include dir>
  954. CPP C preprocessor
  955. CXX C++ compiler command
  956. CXXFLAGS C++ compiler flags
  957. CXXCPP C++ preprocessor
  958. F77 Fortran 77 compiler command
  959. FFLAGS Fortran 77 compiler flags
  960. Use these variables to override the choices made by `configure' or to help
  961. it to find libraries and programs with nonstandard names/locations.
  962. Report bugs to <andrei.nigmatulin@gmail.com>.
  963. _ACEOF
  964. fi
  965. if test "$ac_init_help" = "recursive"; then
  966. # If there are subdirs, report their specific --help.
  967. ac_popdir=`pwd`
  968. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  969. test -d $ac_dir || continue
  970. ac_builddir=.
  971. if test "$ac_dir" != .; then
  972. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  973. # A "../" for each directory in $ac_dir_suffix.
  974. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  975. else
  976. ac_dir_suffix= ac_top_builddir=
  977. fi
  978. case $srcdir in
  979. .) # No --srcdir option. We are building in place.
  980. ac_srcdir=.
  981. if test -z "$ac_top_builddir"; then
  982. ac_top_srcdir=.
  983. else
  984. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  985. fi ;;
  986. [\\/]* | ?:[\\/]* ) # Absolute path.
  987. ac_srcdir=$srcdir$ac_dir_suffix;
  988. ac_top_srcdir=$srcdir ;;
  989. *) # Relative path.
  990. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  991. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  992. esac
  993. # Do not use `cd foo && pwd` to compute absolute paths, because
  994. # the directories may not exist.
  995. case `pwd` in
  996. .) ac_abs_builddir="$ac_dir";;
  997. *)
  998. case "$ac_dir" in
  999. .) ac_abs_builddir=`pwd`;;
  1000. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  1001. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  1002. esac;;
  1003. esac
  1004. case $ac_abs_builddir in
  1005. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1006. *)
  1007. case ${ac_top_builddir}. in
  1008. .) ac_abs_top_builddir=$ac_abs_builddir;;
  1009. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1010. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1011. esac;;
  1012. esac
  1013. case $ac_abs_builddir in
  1014. .) ac_abs_srcdir=$ac_srcdir;;
  1015. *)
  1016. case $ac_srcdir in
  1017. .) ac_abs_srcdir=$ac_abs_builddir;;
  1018. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1019. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1020. esac;;
  1021. esac
  1022. case $ac_abs_builddir in
  1023. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1024. *)
  1025. case $ac_top_srcdir in
  1026. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1027. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1028. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1029. esac;;
  1030. esac
  1031. cd $ac_dir
  1032. # Check for guested configure; otherwise get Cygnus style configure.
  1033. if test -f $ac_srcdir/configure.gnu; then
  1034. echo
  1035. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1036. elif test -f $ac_srcdir/configure; then
  1037. echo
  1038. $SHELL $ac_srcdir/configure --help=recursive
  1039. elif test -f $ac_srcdir/configure.ac ||
  1040. test -f $ac_srcdir/configure.in; then
  1041. echo
  1042. $ac_configure --help
  1043. else
  1044. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1045. fi
  1046. cd $ac_popdir
  1047. done
  1048. fi
  1049. test -n "$ac_init_help" && exit 0
  1050. if $ac_init_version; then
  1051. cat <<\_ACEOF
  1052. php-fpm configure 0.6
  1053. generated by GNU Autoconf 2.59
  1054. Copyright (C) 2003 Free Software Foundation, Inc.
  1055. This configure script is free software; the Free Software Foundation
  1056. gives unlimited permission to copy, distribute and modify it.
  1057. _ACEOF
  1058. exit 0
  1059. fi
  1060. exec 5>config.log
  1061. cat >&5 <<_ACEOF
  1062. This file contains any messages produced by compilers while
  1063. running configure, to aid debugging if configure makes a mistake.
  1064. It was created by php-fpm $as_me 0.6, which was
  1065. generated by GNU Autoconf 2.59. Invocation command line was
  1066. $ $0 $@
  1067. _ACEOF
  1068. {
  1069. cat <<_ASUNAME
  1070. ## --------- ##
  1071. ## Platform. ##
  1072. ## --------- ##
  1073. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1074. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1075. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1076. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1077. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1078. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1079. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1080. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1081. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1082. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1083. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1084. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1085. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1086. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1087. _ASUNAME
  1088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1089. for as_dir in $PATH
  1090. do
  1091. IFS=$as_save_IFS
  1092. test -z "$as_dir" && as_dir=.
  1093. echo "PATH: $as_dir"
  1094. done
  1095. } >&5
  1096. cat >&5 <<_ACEOF
  1097. ## ----------- ##
  1098. ## Core tests. ##
  1099. ## ----------- ##
  1100. _ACEOF
  1101. # Keep a trace of the command line.
  1102. # Strip out --no-create and --no-recursion so they do not pile up.
  1103. # Strip out --silent because we don't want to record it for future runs.
  1104. # Also quote any args containing shell meta-characters.
  1105. # Make two passes to allow for proper duplicate-argument suppression.
  1106. ac_configure_args=
  1107. ac_configure_args0=
  1108. ac_configure_args1=
  1109. ac_sep=
  1110. ac_must_keep_next=false
  1111. for ac_pass in 1 2
  1112. do
  1113. for ac_arg
  1114. do
  1115. case $ac_arg in
  1116. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1117. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1118. | -silent | --silent | --silen | --sile | --sil)
  1119. continue ;;
  1120. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1121. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1122. esac
  1123. case $ac_pass in
  1124. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1125. 2)
  1126. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1127. if test $ac_must_keep_next = true; then
  1128. ac_must_keep_next=false # Got value, back to normal.
  1129. else
  1130. case $ac_arg in
  1131. *=* | --config-cache | -C | -disable-* | --disable-* \
  1132. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1133. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1134. | -with-* | --with-* | -without-* | --without-* | --x)
  1135. case "$ac_configure_args0 " in
  1136. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1137. esac
  1138. ;;
  1139. -* ) ac_must_keep_next=true ;;
  1140. esac
  1141. fi
  1142. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1143. # Get rid of the leading space.
  1144. ac_sep=" "
  1145. ;;
  1146. esac
  1147. done
  1148. done
  1149. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1150. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1151. # When interrupted or exit'd, cleanup temporary files, and complete
  1152. # config.log. We remove comments because anyway the quotes in there
  1153. # would cause problems or look ugly.
  1154. # WARNING: Be sure not to use single quotes in there, as some shells,
  1155. # such as our DU 5.0 friend, will then `close' the trap.
  1156. trap 'exit_status=$?
  1157. # Save into config.log some information that might help in debugging.
  1158. {
  1159. echo
  1160. cat <<\_ASBOX
  1161. ## ---------------- ##
  1162. ## Cache variables. ##
  1163. ## ---------------- ##
  1164. _ASBOX
  1165. echo
  1166. # The following way of writing the cache mishandles newlines in values,
  1167. {
  1168. (set) 2>&1 |
  1169. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1170. *ac_space=\ *)
  1171. sed -n \
  1172. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1173. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1174. ;;
  1175. *)
  1176. sed -n \
  1177. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1178. ;;
  1179. esac;
  1180. }
  1181. echo
  1182. cat <<\_ASBOX
  1183. ## ----------------- ##
  1184. ## Output variables. ##
  1185. ## ----------------- ##
  1186. _ASBOX
  1187. echo
  1188. for ac_var in $ac_subst_vars
  1189. do
  1190. eval ac_val=$`echo $ac_var`
  1191. echo "$ac_var='"'"'$ac_val'"'"'"
  1192. done | sort
  1193. echo
  1194. if test -n "$ac_subst_files"; then
  1195. cat <<\_ASBOX
  1196. ## ------------- ##
  1197. ## Output files. ##
  1198. ## ------------- ##
  1199. _ASBOX
  1200. echo
  1201. for ac_var in $ac_subst_files
  1202. do
  1203. eval ac_val=$`echo $ac_var`
  1204. echo "$ac_var='"'"'$ac_val'"'"'"
  1205. done | sort
  1206. echo
  1207. fi
  1208. if test -s confdefs.h; then
  1209. cat <<\_ASBOX
  1210. ## ----------- ##
  1211. ## confdefs.h. ##
  1212. ## ----------- ##
  1213. _ASBOX
  1214. echo
  1215. sed "/^$/d" confdefs.h | sort
  1216. echo
  1217. fi
  1218. test "$ac_signal" != 0 &&
  1219. echo "$as_me: caught signal $ac_signal"
  1220. echo "$as_me: exit $exit_status"
  1221. } >&5
  1222. rm -f core *.core &&
  1223. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1224. exit $exit_status
  1225. ' 0
  1226. for ac_signal in 1 2 13 15; do
  1227. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1228. done
  1229. ac_signal=0
  1230. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1231. rm -rf conftest* confdefs.h
  1232. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1233. echo >confdefs.h
  1234. # Predefined preprocessor variables.
  1235. cat >>confdefs.h <<_ACEOF
  1236. #define PACKAGE_NAME "$PACKAGE_NAME"
  1237. _ACEOF
  1238. cat >>confdefs.h <<_ACEOF
  1239. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1240. _ACEOF
  1241. cat >>confdefs.h <<_ACEOF
  1242. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1243. _ACEOF
  1244. cat >>confdefs.h <<_ACEOF
  1245. #define PACKAGE_STRING "$PACKAGE_STRING"
  1246. _ACEOF
  1247. cat >>confdefs.h <<_ACEOF
  1248. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1249. _ACEOF
  1250. # Let the site file select an alternate cache file if it wants to.
  1251. # Prefer explicitly selected file to automatically selected ones.
  1252. if test -z "$CONFIG_SITE"; then
  1253. if test "x$prefix" != xNONE; then
  1254. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1255. else
  1256. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1257. fi
  1258. fi
  1259. for ac_site_file in $CONFIG_SITE; do
  1260. if test -r "$ac_site_file"; then
  1261. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1262. echo "$as_me: loading site script $ac_site_file" >&6;}
  1263. sed 's/^/| /' "$ac_site_file" >&5
  1264. . "$ac_site_file"
  1265. fi
  1266. done
  1267. if test -r "$cache_file"; then
  1268. # Some versions of bash will fail to source /dev/null (special
  1269. # files actually), so we avoid doing that.
  1270. if test -f "$cache_file"; then
  1271. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1272. echo "$as_me: loading cache $cache_file" >&6;}
  1273. case $cache_file in
  1274. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1275. *) . ./$cache_file;;
  1276. esac
  1277. fi
  1278. else
  1279. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1280. echo "$as_me: creating cache $cache_file" >&6;}
  1281. >$cache_file
  1282. fi
  1283. # Check that the precious variables saved in the cache have kept the same
  1284. # value.
  1285. ac_cache_corrupted=false
  1286. for ac_var in `(set) 2>&1 |
  1287. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1288. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1289. eval ac_new_set=\$ac_env_${ac_var}_set
  1290. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1291. eval ac_new_val="\$ac_env_${ac_var}_value"
  1292. case $ac_old_set,$ac_new_set in
  1293. set,)
  1294. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1295. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1296. ac_cache_corrupted=: ;;
  1297. ,set)
  1298. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1299. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1300. ac_cache_corrupted=: ;;
  1301. ,);;
  1302. *)
  1303. if test "x$ac_old_val" != "x$ac_new_val"; then
  1304. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1305. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1306. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1307. echo "$as_me: former value: $ac_old_val" >&2;}
  1308. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1309. echo "$as_me: current value: $ac_new_val" >&2;}
  1310. ac_cache_corrupted=:
  1311. fi;;
  1312. esac
  1313. # Pass precious variables to config.status.
  1314. if test "$ac_new_set" = set; then
  1315. case $ac_new_val in
  1316. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1317. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1318. *) ac_arg=$ac_var=$ac_new_val ;;
  1319. esac
  1320. case " $ac_configure_args " in
  1321. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1322. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1323. esac
  1324. fi
  1325. done
  1326. if $ac_cache_corrupted; then
  1327. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1328. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1329. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1330. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1331. { (exit 1); exit 1; }; }
  1332. fi
  1333. ac_ext=c
  1334. ac_cpp='$CPP $CPPFLAGS'
  1335. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1336. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1337. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1338. fpm_version="$PACKAGE_VERSION"
  1339. am__api_version="1.9"
  1340. ac_aux_dir=
  1341. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1342. if test -f $ac_dir/install-sh; then
  1343. ac_aux_dir=$ac_dir
  1344. ac_install_sh="$ac_aux_dir/install-sh -c"
  1345. break
  1346. elif test -f $ac_dir/install.sh; then
  1347. ac_aux_dir=$ac_dir
  1348. ac_install_sh="$ac_aux_dir/install.sh -c"
  1349. break
  1350. elif test -f $ac_dir/shtool; then
  1351. ac_aux_dir=$ac_dir
  1352. ac_install_sh="$ac_aux_dir/shtool install -c"
  1353. break
  1354. fi
  1355. done
  1356. if test -z "$ac_aux_dir"; then
  1357. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1358. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1359. { (exit 1); exit 1; }; }
  1360. fi
  1361. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1362. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1363. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1364. # Find a good install program. We prefer a C program (faster),
  1365. # so one script is as good as another. But avoid the broken or
  1366. # incompatible versions:
  1367. # SysV /etc/install, /usr/sbin/install
  1368. # SunOS /usr/etc/install
  1369. # IRIX /sbin/install
  1370. # AIX /bin/install
  1371. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1372. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1373. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1374. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1375. # OS/2's system install, which has a completely different semantic
  1376. # ./install, which can be erroneously created by make from ./install.sh.
  1377. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1378. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1379. if test -z "$INSTALL"; then
  1380. if test "${ac_cv_path_install+set}" = set; then
  1381. echo $ECHO_N "(cached) $ECHO_C" >&6
  1382. else
  1383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1384. for as_dir in $PATH
  1385. do
  1386. IFS=$as_save_IFS
  1387. test -z "$as_dir" && as_dir=.
  1388. # Account for people who put trailing slashes in PATH elements.
  1389. case $as_dir/ in
  1390. ./ | .// | /cC/* | \
  1391. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1392. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1393. /usr/ucb/* ) ;;
  1394. *)
  1395. # OSF1 and SCO ODT 3.0 have their own names for install.
  1396. # Don't use installbsd from OSF since it installs stuff as root
  1397. # by default.
  1398. for ac_prog in ginstall scoinst install; do
  1399. for ac_exec_ext in '' $ac_executable_extensions; do
  1400. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1401. if test $ac_prog = install &&
  1402. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1403. # AIX install. It has an incompatible calling convention.
  1404. :
  1405. elif test $ac_prog = install &&
  1406. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1407. # program-specific install script used by HP pwplus--don't use.
  1408. :
  1409. else
  1410. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1411. break 3
  1412. fi
  1413. fi
  1414. done
  1415. done
  1416. ;;
  1417. esac
  1418. done
  1419. fi
  1420. if test "${ac_cv_path_install+set}" = set; then
  1421. INSTALL=$ac_cv_path_install
  1422. else
  1423. # As a last resort, use the slow shell script. We don't cache a
  1424. # path for INSTALL within a source directory, because that will
  1425. # break other packages using the cache if that directory is
  1426. # removed, or if the path is relative.
  1427. INSTALL=$ac_install_sh
  1428. fi
  1429. fi
  1430. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1431. echo "${ECHO_T}$INSTALL" >&6
  1432. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1433. # It thinks the first close brace ends the variable substitution.
  1434. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1435. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1436. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1437. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1438. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1439. # Just in case
  1440. sleep 1
  1441. echo timestamp > conftest.file
  1442. # Do `set' in a subshell so we don't clobber the current shell's
  1443. # arguments. Must try -L first in case configure is actually a
  1444. # symlink; some systems play weird games with the mod time of symlinks
  1445. # (eg FreeBSD returns the mod time of the symlink's containing
  1446. # directory).
  1447. if (
  1448. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1449. if test "$*" = "X"; then
  1450. # -L didn't work.
  1451. set X `ls -t $srcdir/configure conftest.file`
  1452. fi
  1453. rm -f conftest.file
  1454. if test "$*" != "X $srcdir/configure conftest.file" \
  1455. && test "$*" != "X conftest.file $srcdir/configure"; then
  1456. # If neither matched, then we have a broken ls. This can happen
  1457. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1458. # broken ls alias from the environment. This has actually
  1459. # happened. Such a system could not be considered "sane".
  1460. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1461. alias in your environment" >&5
  1462. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1463. alias in your environment" >&2;}
  1464. { (exit 1); exit 1; }; }
  1465. fi
  1466. test "$2" = conftest.file
  1467. )
  1468. then
  1469. # Ok.
  1470. :
  1471. else
  1472. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1473. Check your system clock" >&5
  1474. echo "$as_me: error: newly created file is older than distributed files!
  1475. Check your system clock" >&2;}
  1476. { (exit 1); exit 1; }; }
  1477. fi
  1478. echo "$as_me:$LINENO: result: yes" >&5
  1479. echo "${ECHO_T}yes" >&6
  1480. test "$program_prefix" != NONE &&
  1481. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1482. # Use a double $ so make ignores it.
  1483. test "$program_suffix" != NONE &&
  1484. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1485. # Double any \ or $. echo might interpret backslashes.
  1486. # By default was `s,x,x', remove it if useless.
  1487. cat <<\_ACEOF >conftest.sed
  1488. s/[\\$]/&&/g;s/;s,x,x,$//
  1489. _ACEOF
  1490. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1491. rm conftest.sed
  1492. # expand $ac_aux_dir to an absolute path
  1493. am_aux_dir=`cd $ac_aux_dir && pwd`
  1494. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1495. # Use eval to expand $SHELL
  1496. if eval "$MISSING --run true"; then
  1497. am_missing_run="$MISSING --run "
  1498. else
  1499. am_missing_run=
  1500. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1501. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1502. fi
  1503. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1504. # We used to keeping the `.' as first argument, in order to
  1505. # allow $(mkdir_p) to be used without argument. As in
  1506. # $(mkdir_p) $(somedir)
  1507. # where $(somedir) is conditionally defined. However this is wrong
  1508. # for two reasons:
  1509. # 1. if the package is installed by a user who cannot write `.'
  1510. # make install will fail,
  1511. # 2. the above comment should most certainly read
  1512. # $(mkdir_p) $(DESTDIR)$(somedir)
  1513. # so it does not work when $(somedir) is undefined and
  1514. # $(DESTDIR) is not.
  1515. # To support the latter case, we have to write
  1516. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1517. # so the `.' trick is pointless.
  1518. mkdir_p='mkdir -p --'
  1519. else
  1520. # On NextStep and OpenStep, the `mkdir' command does not
  1521. # recognize any option. It will interpret all options as
  1522. # directories to create, and then abort because `.' already
  1523. # exists.
  1524. for d in ./-p ./--version;
  1525. do
  1526. test -d $d && rmdir $d
  1527. done
  1528. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1529. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1530. mkdir_p='$(mkinstalldirs)'
  1531. else
  1532. mkdir_p='$(install_sh) -d'
  1533. fi
  1534. fi
  1535. for ac_prog in gawk mawk nawk awk
  1536. do
  1537. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1538. set dummy $ac_prog; ac_word=$2
  1539. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1540. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1541. if test "${ac_cv_prog_AWK+set}" = set; then
  1542. echo $ECHO_N "(cached) $ECHO_C" >&6
  1543. else
  1544. if test -n "$AWK"; then
  1545. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1546. else
  1547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1548. for as_dir in $PATH
  1549. do
  1550. IFS=$as_save_IFS
  1551. test -z "$as_dir" && as_dir=.
  1552. for ac_exec_ext in '' $ac_executable_extensions; do
  1553. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1554. ac_cv_prog_AWK="$ac_prog"
  1555. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1556. break 2
  1557. fi
  1558. done
  1559. done
  1560. fi
  1561. fi
  1562. AWK=$ac_cv_prog_AWK
  1563. if test -n "$AWK"; then
  1564. echo "$as_me:$LINENO: result: $AWK" >&5
  1565. echo "${ECHO_T}$AWK" >&6
  1566. else
  1567. echo "$as_me:$LINENO: result: no" >&5
  1568. echo "${ECHO_T}no" >&6
  1569. fi
  1570. test -n "$AWK" && break
  1571. done
  1572. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1573. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1574. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1575. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1576. echo $ECHO_N "(cached) $ECHO_C" >&6
  1577. else
  1578. cat >conftest.make <<\_ACEOF
  1579. all:
  1580. @echo 'ac_maketemp="$(MAKE)"'
  1581. _ACEOF
  1582. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1583. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1584. if test -n "$ac_maketemp"; then
  1585. eval ac_cv_prog_make_${ac_make}_set=yes
  1586. else
  1587. eval ac_cv_prog_make_${ac_make}_set=no
  1588. fi
  1589. rm -f conftest.make
  1590. fi
  1591. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1592. echo "$as_me:$LINENO: result: yes" >&5
  1593. echo "${ECHO_T}yes" >&6
  1594. SET_MAKE=
  1595. else
  1596. echo "$as_me:$LINENO: result: no" >&5
  1597. echo "${ECHO_T}no" >&6
  1598. SET_MAKE="MAKE=${MAKE-make}"
  1599. fi
  1600. rm -rf .tst 2>/dev/null
  1601. mkdir .tst 2>/dev/null
  1602. if test -d .tst; then
  1603. am__leading_dot=.
  1604. else
  1605. am__leading_dot=_
  1606. fi
  1607. rmdir .tst 2>/dev/null
  1608. # test to see if srcdir already configured
  1609. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1610. test -f $srcdir/config.status; then
  1611. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1612. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1613. { (exit 1); exit 1; }; }
  1614. fi
  1615. # test whether we have cygpath
  1616. if test -z "$CYGPATH_W"; then
  1617. if (cygpath --version) >/dev/null 2>/dev/null; then
  1618. CYGPATH_W='cygpath -w'
  1619. else
  1620. CYGPATH_W=echo
  1621. fi
  1622. fi
  1623. # Define the identity of the package.
  1624. PACKAGE='php-fpm'
  1625. VERSION='0.6'
  1626. cat >>confdefs.h <<_ACEOF
  1627. #define PACKAGE "$PACKAGE"
  1628. _ACEOF
  1629. cat >>confdefs.h <<_ACEOF
  1630. #define VERSION "$VERSION"
  1631. _ACEOF
  1632. # Some tools Automake needs.
  1633. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1634. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1635. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1636. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1637. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1638. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1639. # Installed binaries are usually stripped using `strip' when the user
  1640. # run `make install-strip'. However `strip' might not be the right
  1641. # tool to use in cross-compilation environments, therefore Automake
  1642. # will honor the `STRIP' environment variable to overrule this program.
  1643. if test "$cross_compiling" != no; then
  1644. if test -n "$ac_tool_prefix"; then
  1645. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1646. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1647. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1648. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1649. if test "${ac_cv_prog_STRIP+set}" = set; then
  1650. echo $ECHO_N "(cached) $ECHO_C" >&6
  1651. else
  1652. if test -n "$STRIP"; then
  1653. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1654. else
  1655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1656. for as_dir in $PATH
  1657. do
  1658. IFS=$as_save_IFS
  1659. test -z "$as_dir" && as_dir=.
  1660. for ac_exec_ext in '' $ac_executable_extensions; do
  1661. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1662. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1663. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1664. break 2
  1665. fi
  1666. done
  1667. done
  1668. fi
  1669. fi
  1670. STRIP=$ac_cv_prog_STRIP
  1671. if test -n "$STRIP"; then
  1672. echo "$as_me:$LINENO: result: $STRIP" >&5
  1673. echo "${ECHO_T}$STRIP" >&6
  1674. else
  1675. echo "$as_me:$LINENO: result: no" >&5
  1676. echo "${ECHO_T}no" >&6
  1677. fi
  1678. fi
  1679. if test -z "$ac_cv_prog_STRIP"; then
  1680. ac_ct_STRIP=$STRIP
  1681. # Extract the first word of "strip", so it can be a program name with args.
  1682. set dummy strip; ac_word=$2
  1683. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1684. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1685. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1686. echo $ECHO_N "(cached) $ECHO_C" >&6
  1687. else
  1688. if test -n "$ac_ct_STRIP"; then
  1689. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1690. else
  1691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1692. for as_dir in $PATH
  1693. do
  1694. IFS=$as_save_IFS
  1695. test -z "$as_dir" && as_dir=.
  1696. for ac_exec_ext in '' $ac_executable_extensions; do
  1697. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1698. ac_cv_prog_ac_ct_STRIP="strip"
  1699. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1700. break 2
  1701. fi
  1702. done
  1703. done
  1704. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1705. fi
  1706. fi
  1707. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1708. if test -n "$ac_ct_STRIP"; then
  1709. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1710. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1711. else
  1712. echo "$as_me:$LINENO: result: no" >&5
  1713. echo "${ECHO_T}no" >&6
  1714. fi
  1715. STRIP=$ac_ct_STRIP
  1716. else
  1717. STRIP="$ac_cv_prog_STRIP"
  1718. fi
  1719. fi
  1720. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1721. # We need awk for the "check" target. The system "awk" is bad on
  1722. # some platforms.
  1723. # Always define AMTAR for backward compatibility.
  1724. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1725. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1726. ac_config_headers="$ac_config_headers fpm_autoconfig.h"
  1727. DEPDIR="${am__leading_dot}deps"
  1728. ac_config_commands="$ac_config_commands depfiles"
  1729. am_make=${MAKE-make}
  1730. cat > confinc << 'END'
  1731. am__doit:
  1732. @echo done
  1733. .PHONY: am__doit
  1734. END
  1735. # If we don't find an include directive, just comment out the code.
  1736. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  1737. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  1738. am__include="#"
  1739. am__quote=
  1740. _am_result=none
  1741. # First try GNU make style include.
  1742. echo "include confinc" > confmf
  1743. # We grep out `Entering directory' and `Leaving directory'
  1744. # messages which can occur if `w' ends up in MAKEFLAGS.
  1745. # In particular we don't look at `^make:' because GNU make might
  1746. # be invoked under some other name (usually "gmake"), in which
  1747. # case it prints its new name instead of `make'.
  1748. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  1749. am__include=include
  1750. am__quote=
  1751. _am_result=GNU
  1752. fi
  1753. # Now try BSD make style include.
  1754. if test "$am__include" = "#"; then
  1755. echo '.include "confinc"' > confmf
  1756. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  1757. am__include=.include
  1758. am__quote="\""
  1759. _am_result=BSD
  1760. fi
  1761. fi
  1762. echo "$as_me:$LINENO: result: $_am_result" >&5
  1763. echo "${ECHO_T}$_am_result" >&6
  1764. rm -f confinc confmf
  1765. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  1766. if test "${enable_dependency_tracking+set}" = set; then
  1767. enableval="$enable_dependency_tracking"
  1768. fi;
  1769. if test "x$enable_dependency_tracking" != xno; then
  1770. am_depcomp="$ac_aux_dir/depcomp"
  1771. AMDEPBACKSLASH='\'
  1772. fi
  1773. if test "x$enable_dependency_tracking" != xno; then
  1774. AMDEP_TRUE=
  1775. AMDEP_FALSE='#'
  1776. else
  1777. AMDEP_TRUE='#'
  1778. AMDEP_FALSE=
  1779. fi
  1780. ac_ext=c
  1781. ac_cpp='$CPP $CPPFLAGS'
  1782. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1783. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1784. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1785. if test -n "$ac_tool_prefix"; then
  1786. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1787. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1788. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1789. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1790. if test "${ac_cv_prog_CC+set}" = set; then
  1791. echo $ECHO_N "(cached) $ECHO_C" >&6
  1792. else
  1793. if test -n "$CC"; then
  1794. ac_cv_prog_CC="$CC" # Let the user override the test.
  1795. else
  1796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1797. for as_dir in $PATH
  1798. do
  1799. IFS=$as_save_IFS
  1800. test -z "$as_dir" && as_dir=.
  1801. for ac_exec_ext in '' $ac_executable_extensions; do
  1802. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1803. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1804. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1805. break 2
  1806. fi
  1807. done
  1808. done
  1809. fi
  1810. fi
  1811. CC=$ac_cv_prog_CC
  1812. if test -n "$CC"; then
  1813. echo "$as_me:$LINENO: result: $CC" >&5
  1814. echo "${ECHO_T}$CC" >&6
  1815. else
  1816. echo "$as_me:$LINENO: result: no" >&5
  1817. echo "${ECHO_T}no" >&6
  1818. fi
  1819. fi
  1820. if test -z "$ac_cv_prog_CC"; then
  1821. ac_ct_CC=$CC
  1822. # Extract the first word of "gcc", so it can be a program name with args.
  1823. set dummy gcc; ac_word=$2
  1824. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1825. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1826. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1827. echo $ECHO_N "(cached) $ECHO_C" >&6
  1828. else
  1829. if test -n "$ac_ct_CC"; then
  1830. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1831. else
  1832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1833. for as_dir in $PATH
  1834. do
  1835. IFS=$as_save_IFS
  1836. test -z "$as_dir" && as_dir=.
  1837. for ac_exec_ext in '' $ac_executable_extensions; do
  1838. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1839. ac_cv_prog_ac_ct_CC="gcc"
  1840. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1841. break 2
  1842. fi
  1843. done
  1844. done
  1845. fi
  1846. fi
  1847. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1848. if test -n "$ac_ct_CC"; then
  1849. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1850. echo "${ECHO_T}$ac_ct_CC" >&6
  1851. else
  1852. echo "$as_me:$LINENO: result: no" >&5
  1853. echo "${ECHO_T}no" >&6
  1854. fi
  1855. CC=$ac_ct_CC
  1856. else
  1857. CC="$ac_cv_prog_CC"
  1858. fi
  1859. if test -z "$CC"; then
  1860. if test -n "$ac_tool_prefix"; then
  1861. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1862. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1863. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1864. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1865. if test "${ac_cv_prog_CC+set}" = set; then
  1866. echo $ECHO_N "(cached) $ECHO_C" >&6
  1867. else
  1868. if test -n "$CC"; then
  1869. ac_cv_prog_CC="$CC" # Let the user override the test.
  1870. else
  1871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1872. for as_dir in $PATH
  1873. do
  1874. IFS=$as_save_IFS
  1875. test -z "$as_dir" && as_dir=.
  1876. for ac_exec_ext in '' $ac_executable_extensions; do
  1877. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1878. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1879. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1880. break 2
  1881. fi
  1882. done
  1883. done
  1884. fi
  1885. fi
  1886. CC=$ac_cv_prog_CC
  1887. if test -n "$CC"; then
  1888. echo "$as_me:$LINENO: result: $CC" >&5
  1889. echo "${ECHO_T}$CC" >&6
  1890. else
  1891. echo "$as_me:$LINENO: result: no" >&5
  1892. echo "${ECHO_T}no" >&6
  1893. fi
  1894. fi
  1895. if test -z "$ac_cv_prog_CC"; then
  1896. ac_ct_CC=$CC
  1897. # Extract the first word of "cc", so it can be a program name with args.
  1898. set dummy cc; ac_word=$2
  1899. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1900. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1901. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1902. echo $ECHO_N "(cached) $ECHO_C" >&6
  1903. else
  1904. if test -n "$ac_ct_CC"; then
  1905. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1906. else
  1907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1908. for as_dir in $PATH
  1909. do
  1910. IFS=$as_save_IFS
  1911. test -z "$as_dir" && as_dir=.
  1912. for ac_exec_ext in '' $ac_executable_extensions; do
  1913. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1914. ac_cv_prog_ac_ct_CC="cc"
  1915. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1916. break 2
  1917. fi
  1918. done
  1919. done
  1920. fi
  1921. fi
  1922. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1923. if test -n "$ac_ct_CC"; then
  1924. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1925. echo "${ECHO_T}$ac_ct_CC" >&6
  1926. else
  1927. echo "$as_me:$LINENO: result: no" >&5
  1928. echo "${ECHO_T}no" >&6
  1929. fi
  1930. CC=$ac_ct_CC
  1931. else
  1932. CC="$ac_cv_prog_CC"
  1933. fi
  1934. fi
  1935. if test -z "$CC"; then
  1936. # Extract the first word of "cc", so it can be a program name with args.
  1937. set dummy cc; ac_word=$2
  1938. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1939. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1940. if test "${ac_cv_prog_CC+set}" = set; then
  1941. echo $ECHO_N "(cached) $ECHO_C" >&6
  1942. else
  1943. if test -n "$CC"; then
  1944. ac_cv_prog_CC="$CC" # Let the user override the test.
  1945. else
  1946. ac_prog_rejected=no
  1947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1948. for as_dir in $PATH
  1949. do
  1950. IFS=$as_save_IFS
  1951. test -z "$as_dir" && as_dir=.
  1952. for ac_exec_ext in '' $ac_executable_extensions; do
  1953. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1954. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1955. ac_prog_rejected=yes
  1956. continue
  1957. fi
  1958. ac_cv_prog_CC="cc"
  1959. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1960. break 2
  1961. fi
  1962. done
  1963. done
  1964. if test $ac_prog_rejected = yes; then
  1965. # We found a bogon in the path, so make sure we never use it.
  1966. set dummy $ac_cv_prog_CC
  1967. shift
  1968. if test $# != 0; then
  1969. # We chose a different compiler from the bogus one.
  1970. # However, it has the same basename, so the bogon will be chosen
  1971. # first if we set CC to just the basename; use the full file name.
  1972. shift
  1973. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1974. fi
  1975. fi
  1976. fi
  1977. fi
  1978. CC=$ac_cv_prog_CC
  1979. if test -n "$CC"; then
  1980. echo "$as_me:$LINENO: result: $CC" >&5
  1981. echo "${ECHO_T}$CC" >&6
  1982. else
  1983. echo "$as_me:$LINENO: result: no" >&5
  1984. echo "${ECHO_T}no" >&6
  1985. fi
  1986. fi
  1987. if test -z "$CC"; then
  1988. if test -n "$ac_tool_prefix"; then
  1989. for ac_prog in cl
  1990. do
  1991. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1992. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1993. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1994. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1995. if test "${ac_cv_prog_CC+set}" = set; then
  1996. echo $ECHO_N "(cached) $ECHO_C" >&6
  1997. else
  1998. if test -n "$CC"; then
  1999. ac_cv_prog_CC="$CC" # Let the user override the test.
  2000. else
  2001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2002. for as_dir in $PATH
  2003. do
  2004. IFS=$as_save_IFS
  2005. test -z "$as_dir" && as_dir=.
  2006. for ac_exec_ext in '' $ac_executable_extensions; do
  2007. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2008. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2009. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2010. break 2
  2011. fi
  2012. done
  2013. done
  2014. fi
  2015. fi
  2016. CC=$ac_cv_prog_CC
  2017. if test -n "$CC"; then
  2018. echo "$as_me:$LINENO: result: $CC" >&5
  2019. echo "${ECHO_T}$CC" >&6
  2020. else
  2021. echo "$as_me:$LINENO: result: no" >&5
  2022. echo "${ECHO_T}no" >&6
  2023. fi
  2024. test -n "$CC" && break
  2025. done
  2026. fi
  2027. if test -z "$CC"; then
  2028. ac_ct_CC=$CC
  2029. for ac_prog in cl
  2030. do
  2031. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2032. set dummy $ac_prog; ac_word=$2
  2033. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2034. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2035. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2036. echo $ECHO_N "(cached) $ECHO_C" >&6
  2037. else
  2038. if test -n "$ac_ct_CC"; then
  2039. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2040. else
  2041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2042. for as_dir in $PATH
  2043. do
  2044. IFS=$as_save_IFS
  2045. test -z "$as_dir" && as_dir=.
  2046. for ac_exec_ext in '' $ac_executable_extensions; do
  2047. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2048. ac_cv_prog_ac_ct_CC="$ac_prog"
  2049. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2050. break 2
  2051. fi
  2052. done
  2053. done
  2054. fi
  2055. fi
  2056. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2057. if test -n "$ac_ct_CC"; then
  2058. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2059. echo "${ECHO_T}$ac_ct_CC" >&6
  2060. else
  2061. echo "$as_me:$LINENO: result: no" >&5
  2062. echo "${ECHO_T}no" >&6
  2063. fi
  2064. test -n "$ac_ct_CC" && break
  2065. done
  2066. CC=$ac_ct_CC
  2067. fi
  2068. fi
  2069. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2070. See \`config.log' for more details." >&5
  2071. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2072. See \`config.log' for more details." >&2;}
  2073. { (exit 1); exit 1; }; }
  2074. # Provide some information about the compiler.
  2075. echo "$as_me:$LINENO:" \
  2076. "checking for C compiler version" >&5
  2077. ac_compiler=`set X $ac_compile; echo $2`
  2078. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2079. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2080. ac_status=$?
  2081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2082. (exit $ac_status); }
  2083. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2084. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2085. ac_status=$?
  2086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2087. (exit $ac_status); }
  2088. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2089. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2090. ac_status=$?
  2091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2092. (exit $ac_status); }
  2093. cat >conftest.$ac_ext <<_ACEOF
  2094. /* confdefs.h. */
  2095. _ACEOF
  2096. cat confdefs.h >>conftest.$ac_ext
  2097. cat >>conftest.$ac_ext <<_ACEOF
  2098. /* end confdefs.h. */
  2099. int
  2100. main ()
  2101. {
  2102. ;
  2103. return 0;
  2104. }
  2105. _ACEOF
  2106. ac_clean_files_save=$ac_clean_files
  2107. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2108. # Try to create an executable without -o first, disregard a.out.
  2109. # It will help us diagnose broken compilers, and finding out an intuition
  2110. # of exeext.
  2111. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2112. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  2113. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2114. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2115. (eval $ac_link_default) 2>&5
  2116. ac_status=$?
  2117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2118. (exit $ac_status); }; then
  2119. # Find the output, starting from the most likely. This scheme is
  2120. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2121. # resort.
  2122. # Be careful to initialize this variable, since it used to be cached.
  2123. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2124. ac_cv_exeext=
  2125. # b.out is created by i960 compilers.
  2126. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2127. do
  2128. test -f "$ac_file" || continue
  2129. case $ac_file in
  2130. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2131. ;;
  2132. conftest.$ac_ext )
  2133. # This is the source file.
  2134. ;;
  2135. [ab].out )
  2136. # We found the default executable, but exeext='' is most
  2137. # certainly right.
  2138. break;;
  2139. *.* )
  2140. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2141. # FIXME: I believe we export ac_cv_exeext for Libtool,
  2142. # but it would be cool to find out if it's true. Does anybody
  2143. # maintain Libtool? --akim.
  2144. export ac_cv_exeext
  2145. break;;
  2146. * )
  2147. break;;
  2148. esac
  2149. done
  2150. else
  2151. echo "$as_me: failed program was:" >&5
  2152. sed 's/^/| /' conftest.$ac_ext >&5
  2153. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2154. See \`config.log' for more details." >&5
  2155. echo "$as_me: error: C compiler cannot create executables
  2156. See \`config.log' for more details." >&2;}
  2157. { (exit 77); exit 77; }; }
  2158. fi
  2159. ac_exeext=$ac_cv_exeext
  2160. echo "$as_me:$LINENO: result: $ac_file" >&5
  2161. echo "${ECHO_T}$ac_file" >&6
  2162. # Check the compiler produces executables we can run. If not, either
  2163. # the compiler is broken, or we cross compile.
  2164. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2165. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2166. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2167. # If not cross compiling, check that we can run a simple program.
  2168. if test "$cross_compiling" != yes; then
  2169. if { ac_try='./$ac_file'
  2170. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2171. (eval $ac_try) 2>&5
  2172. ac_status=$?
  2173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2174. (exit $ac_status); }; }; then
  2175. cross_compiling=no
  2176. else
  2177. if test "$cross_compiling" = maybe; then
  2178. cross_compiling=yes
  2179. else
  2180. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2181. If you meant to cross compile, use \`--host'.
  2182. See \`config.log' for more details." >&5
  2183. echo "$as_me: error: cannot run C compiled programs.
  2184. If you meant to cross compile, use \`--host'.
  2185. See \`config.log' for more details." >&2;}
  2186. { (exit 1); exit 1; }; }
  2187. fi
  2188. fi
  2189. fi
  2190. echo "$as_me:$LINENO: result: yes" >&5
  2191. echo "${ECHO_T}yes" >&6
  2192. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2193. ac_clean_files=$ac_clean_files_save
  2194. # Check the compiler produces executables we can run. If not, either
  2195. # the compiler is broken, or we cross compile.
  2196. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2197. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2198. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2199. echo "${ECHO_T}$cross_compiling" >&6
  2200. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2201. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2202. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2203. (eval $ac_link) 2>&5
  2204. ac_status=$?
  2205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2206. (exit $ac_status); }; then
  2207. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2208. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2209. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2210. # `rm'.
  2211. for ac_file in conftest.exe conftest conftest.*; do
  2212. test -f "$ac_file" || continue
  2213. case $ac_file in
  2214. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2215. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2216. export ac_cv_exeext
  2217. break;;
  2218. * ) break;;
  2219. esac
  2220. done
  2221. else
  2222. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2223. See \`config.log' for more details." >&5
  2224. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2225. See \`config.log' for more details." >&2;}
  2226. { (exit 1); exit 1; }; }
  2227. fi
  2228. rm -f conftest$ac_cv_exeext
  2229. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2230. echo "${ECHO_T}$ac_cv_exeext" >&6
  2231. rm -f conftest.$ac_ext
  2232. EXEEXT=$ac_cv_exeext
  2233. ac_exeext=$EXEEXT
  2234. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2235. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2236. if test "${ac_cv_objext+set}" = set; then
  2237. echo $ECHO_N "(cached) $ECHO_C" >&6
  2238. else
  2239. cat >conftest.$ac_ext <<_ACEOF
  2240. /* confdefs.h. */
  2241. _ACEOF
  2242. cat confdefs.h >>conftest.$ac_ext
  2243. cat >>conftest.$ac_ext <<_ACEOF
  2244. /* end confdefs.h. */
  2245. int
  2246. main ()
  2247. {
  2248. ;
  2249. return 0;
  2250. }
  2251. _ACEOF
  2252. rm -f conftest.o conftest.obj
  2253. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2254. (eval $ac_compile) 2>&5
  2255. ac_status=$?
  2256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2257. (exit $ac_status); }; then
  2258. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2259. case $ac_file in
  2260. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2261. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2262. break;;
  2263. esac
  2264. done
  2265. else
  2266. echo "$as_me: failed program was:" >&5
  2267. sed 's/^/| /' conftest.$ac_ext >&5
  2268. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2269. See \`config.log' for more details." >&5
  2270. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2271. See \`config.log' for more details." >&2;}
  2272. { (exit 1); exit 1; }; }
  2273. fi
  2274. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2275. fi
  2276. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2277. echo "${ECHO_T}$ac_cv_objext" >&6
  2278. OBJEXT=$ac_cv_objext
  2279. ac_objext=$OBJEXT
  2280. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2281. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2282. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2283. echo $ECHO_N "(cached) $ECHO_C" >&6
  2284. else
  2285. cat >conftest.$ac_ext <<_ACEOF
  2286. /* confdefs.h. */
  2287. _ACEOF
  2288. cat confdefs.h >>conftest.$ac_ext
  2289. cat >>conftest.$ac_ext <<_ACEOF
  2290. /* end confdefs.h. */
  2291. int
  2292. main ()
  2293. {
  2294. #ifndef __GNUC__
  2295. choke me
  2296. #endif
  2297. ;
  2298. return 0;
  2299. }
  2300. _ACEOF
  2301. rm -f conftest.$ac_objext
  2302. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2303. (eval $ac_compile) 2>conftest.er1
  2304. ac_status=$?
  2305. grep -v '^ *+' conftest.er1 >conftest.err
  2306. rm -f conftest.er1
  2307. cat conftest.err >&5
  2308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2309. (exit $ac_status); } &&
  2310. { ac_try='test -z "$ac_c_werror_flag"
  2311. || test ! -s conftest.err'
  2312. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2313. (eval $ac_try) 2>&5
  2314. ac_status=$?
  2315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2316. (exit $ac_status); }; } &&
  2317. { ac_try='test -s conftest.$ac_objext'
  2318. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2319. (eval $ac_try) 2>&5
  2320. ac_status=$?
  2321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2322. (exit $ac_status); }; }; then
  2323. ac_compiler_gnu=yes
  2324. else
  2325. echo "$as_me: failed program was:" >&5
  2326. sed 's/^/| /' conftest.$ac_ext >&5
  2327. ac_compiler_gnu=no
  2328. fi
  2329. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2330. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2331. fi
  2332. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2333. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2334. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2335. ac_test_CFLAGS=${CFLAGS+set}
  2336. ac_save_CFLAGS=$CFLAGS
  2337. CFLAGS="-g"
  2338. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2339. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2340. if test "${ac_cv_prog_cc_g+set}" = set; then
  2341. echo $ECHO_N "(cached) $ECHO_C" >&6
  2342. else
  2343. cat >conftest.$ac_ext <<_ACEOF
  2344. /* confdefs.h. */
  2345. _ACEOF
  2346. cat confdefs.h >>conftest.$ac_ext
  2347. cat >>conftest.$ac_ext <<_ACEOF
  2348. /* end confdefs.h. */
  2349. int
  2350. main ()
  2351. {
  2352. ;
  2353. return 0;
  2354. }
  2355. _ACEOF
  2356. rm -f conftest.$ac_objext
  2357. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2358. (eval $ac_compile) 2>conftest.er1
  2359. ac_status=$?
  2360. grep -v '^ *+' conftest.er1 >conftest.err
  2361. rm -f conftest.er1
  2362. cat conftest.err >&5
  2363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2364. (exit $ac_status); } &&
  2365. { ac_try='test -z "$ac_c_werror_flag"
  2366. || test ! -s conftest.err'
  2367. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2368. (eval $ac_try) 2>&5
  2369. ac_status=$?
  2370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2371. (exit $ac_status); }; } &&
  2372. { ac_try='test -s conftest.$ac_objext'
  2373. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2374. (eval $ac_try) 2>&5
  2375. ac_status=$?
  2376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2377. (exit $ac_status); }; }; then
  2378. ac_cv_prog_cc_g=yes
  2379. else
  2380. echo "$as_me: failed program was:" >&5
  2381. sed 's/^/| /' conftest.$ac_ext >&5
  2382. ac_cv_prog_cc_g=no
  2383. fi
  2384. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2385. fi
  2386. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2387. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2388. if test "$ac_test_CFLAGS" = set; then
  2389. CFLAGS=$ac_save_CFLAGS
  2390. elif test $ac_cv_prog_cc_g = yes; then
  2391. if test "$GCC" = yes; then
  2392. CFLAGS="-g -O2"
  2393. else
  2394. CFLAGS="-g"
  2395. fi
  2396. else
  2397. if test "$GCC" = yes; then
  2398. CFLAGS="-O2"
  2399. else
  2400. CFLAGS=
  2401. fi
  2402. fi
  2403. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2404. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2405. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2406. echo $ECHO_N "(cached) $ECHO_C" >&6
  2407. else
  2408. ac_cv_prog_cc_stdc=no
  2409. ac_save_CC=$CC
  2410. cat >conftest.$ac_ext <<_ACEOF
  2411. /* confdefs.h. */
  2412. _ACEOF
  2413. cat confdefs.h >>conftest.$ac_ext
  2414. cat >>conftest.$ac_ext <<_ACEOF
  2415. /* end confdefs.h. */
  2416. #include <stdarg.h>
  2417. #include <stdio.h>
  2418. #include <sys/types.h>
  2419. #include <sys/stat.h>
  2420. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2421. struct buf { int x; };
  2422. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2423. static char *e (p, i)
  2424. char **p;
  2425. int i;
  2426. {
  2427. return p[i];
  2428. }
  2429. static char *f (char * (*g) (char **, int), char **p, ...)
  2430. {
  2431. char *s;
  2432. va_list v;
  2433. va_start (v,p);
  2434. s = g (p, va_arg (v,int));
  2435. va_end (v);
  2436. return s;
  2437. }
  2438. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2439. function prototypes and stuff, but not '\xHH' hex character constants.
  2440. These don't provoke an error unfortunately, instead are silently treated
  2441. as 'x'. The following induces an error, until -std1 is added to get
  2442. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2443. array size at least. It's necessary to write '\x00'==0 to get something
  2444. that's true only with -std1. */
  2445. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2446. int test (int i, double x);
  2447. struct s1 {int (*f) (int a);};
  2448. struct s2 {int (*f) (double a);};
  2449. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2450. int argc;
  2451. char **argv;
  2452. int
  2453. main ()
  2454. {
  2455. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2456. ;
  2457. return 0;
  2458. }
  2459. _ACEOF
  2460. # Don't try gcc -ansi; that turns off useful extensions and
  2461. # breaks some systems' header files.
  2462. # AIX -qlanglvl=ansi
  2463. # Ultrix and OSF/1 -std1
  2464. # HP-UX 10.20 and later -Ae
  2465. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2466. # SVR4 -Xc -D__EXTENSIONS__
  2467. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2468. do
  2469. CC="$ac_save_CC $ac_arg"
  2470. rm -f conftest.$ac_objext
  2471. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2472. (eval $ac_compile) 2>conftest.er1
  2473. ac_status=$?
  2474. grep -v '^ *+' conftest.er1 >conftest.err
  2475. rm -f conftest.er1
  2476. cat conftest.err >&5
  2477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2478. (exit $ac_status); } &&
  2479. { ac_try='test -z "$ac_c_werror_flag"
  2480. || test ! -s conftest.err'
  2481. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2482. (eval $ac_try) 2>&5
  2483. ac_status=$?
  2484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2485. (exit $ac_status); }; } &&
  2486. { ac_try='test -s conftest.$ac_objext'
  2487. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2488. (eval $ac_try) 2>&5
  2489. ac_status=$?
  2490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2491. (exit $ac_status); }; }; then
  2492. ac_cv_prog_cc_stdc=$ac_arg
  2493. break
  2494. else
  2495. echo "$as_me: failed program was:" >&5
  2496. sed 's/^/| /' conftest.$ac_ext >&5
  2497. fi
  2498. rm -f conftest.err conftest.$ac_objext
  2499. done
  2500. rm -f conftest.$ac_ext conftest.$ac_objext
  2501. CC=$ac_save_CC
  2502. fi
  2503. case "x$ac_cv_prog_cc_stdc" in
  2504. x|xno)
  2505. echo "$as_me:$LINENO: result: none needed" >&5
  2506. echo "${ECHO_T}none needed" >&6 ;;
  2507. *)
  2508. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2509. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2510. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2511. esac
  2512. # Some people use a C++ compiler to compile C. Since we use `exit',
  2513. # in C++ we need to declare it. In case someone uses the same compiler
  2514. # for both compiling C and C++ we need to have the C++ compiler decide
  2515. # the declaration of exit, since it's the most demanding environment.
  2516. cat >conftest.$ac_ext <<_ACEOF
  2517. #ifndef __cplusplus
  2518. choke me
  2519. #endif
  2520. _ACEOF
  2521. rm -f conftest.$ac_objext
  2522. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2523. (eval $ac_compile) 2>conftest.er1
  2524. ac_status=$?
  2525. grep -v '^ *+' conftest.er1 >conftest.err
  2526. rm -f conftest.er1
  2527. cat conftest.err >&5
  2528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2529. (exit $ac_status); } &&
  2530. { ac_try='test -z "$ac_c_werror_flag"
  2531. || test ! -s conftest.err'
  2532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2533. (eval $ac_try) 2>&5
  2534. ac_status=$?
  2535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2536. (exit $ac_status); }; } &&
  2537. { ac_try='test -s conftest.$ac_objext'
  2538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2539. (eval $ac_try) 2>&5
  2540. ac_status=$?
  2541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2542. (exit $ac_status); }; }; then
  2543. for ac_declaration in \
  2544. '' \
  2545. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2546. 'extern "C" void std::exit (int); using std::exit;' \
  2547. 'extern "C" void exit (int) throw ();' \
  2548. 'extern "C" void exit (int);' \
  2549. 'void exit (int);'
  2550. do
  2551. cat >conftest.$ac_ext <<_ACEOF
  2552. /* confdefs.h. */
  2553. _ACEOF
  2554. cat confdefs.h >>conftest.$ac_ext
  2555. cat >>conftest.$ac_ext <<_ACEOF
  2556. /* end confdefs.h. */
  2557. $ac_declaration
  2558. #include <stdlib.h>
  2559. int
  2560. main ()
  2561. {
  2562. exit (42);
  2563. ;
  2564. return 0;
  2565. }
  2566. _ACEOF
  2567. rm -f conftest.$ac_objext
  2568. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2569. (eval $ac_compile) 2>conftest.er1
  2570. ac_status=$?
  2571. grep -v '^ *+' conftest.er1 >conftest.err
  2572. rm -f conftest.er1
  2573. cat conftest.err >&5
  2574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2575. (exit $ac_status); } &&
  2576. { ac_try='test -z "$ac_c_werror_flag"
  2577. || test ! -s conftest.err'
  2578. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2579. (eval $ac_try) 2>&5
  2580. ac_status=$?
  2581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2582. (exit $ac_status); }; } &&
  2583. { ac_try='test -s conftest.$ac_objext'
  2584. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2585. (eval $ac_try) 2>&5
  2586. ac_status=$?
  2587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2588. (exit $ac_status); }; }; then
  2589. :
  2590. else
  2591. echo "$as_me: failed program was:" >&5
  2592. sed 's/^/| /' conftest.$ac_ext >&5
  2593. continue
  2594. fi
  2595. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2596. cat >conftest.$ac_ext <<_ACEOF
  2597. /* confdefs.h. */
  2598. _ACEOF
  2599. cat confdefs.h >>conftest.$ac_ext
  2600. cat >>conftest.$ac_ext <<_ACEOF
  2601. /* end confdefs.h. */
  2602. $ac_declaration
  2603. int
  2604. main ()
  2605. {
  2606. exit (42);
  2607. ;
  2608. return 0;
  2609. }
  2610. _ACEOF
  2611. rm -f conftest.$ac_objext
  2612. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2613. (eval $ac_compile) 2>conftest.er1
  2614. ac_status=$?
  2615. grep -v '^ *+' conftest.er1 >conftest.err
  2616. rm -f conftest.er1
  2617. cat conftest.err >&5
  2618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2619. (exit $ac_status); } &&
  2620. { ac_try='test -z "$ac_c_werror_flag"
  2621. || test ! -s conftest.err'
  2622. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2623. (eval $ac_try) 2>&5
  2624. ac_status=$?
  2625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2626. (exit $ac_status); }; } &&
  2627. { ac_try='test -s conftest.$ac_objext'
  2628. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2629. (eval $ac_try) 2>&5
  2630. ac_status=$?
  2631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2632. (exit $ac_status); }; }; then
  2633. break
  2634. else
  2635. echo "$as_me: failed program was:" >&5
  2636. sed 's/^/| /' conftest.$ac_ext >&5
  2637. fi
  2638. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2639. done
  2640. rm -f conftest*
  2641. if test -n "$ac_declaration"; then
  2642. echo '#ifdef __cplusplus' >>confdefs.h
  2643. echo $ac_declaration >>confdefs.h
  2644. echo '#endif' >>confdefs.h
  2645. fi
  2646. else
  2647. echo "$as_me: failed program was:" >&5
  2648. sed 's/^/| /' conftest.$ac_ext >&5
  2649. fi
  2650. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2651. ac_ext=c
  2652. ac_cpp='$CPP $CPPFLAGS'
  2653. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2654. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2655. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2656. depcc="$CC" am_compiler_list=
  2657. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2658. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2659. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2660. echo $ECHO_N "(cached) $ECHO_C" >&6
  2661. else
  2662. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2663. # We make a subdir and do the tests there. Otherwise we can end up
  2664. # making bogus files that we don't know about and never remove. For
  2665. # instance it was reported that on HP-UX the gcc test will end up
  2666. # making a dummy file named `D' -- because `-MD' means `put the output
  2667. # in D'.
  2668. mkdir conftest.dir
  2669. # Copy depcomp to subdir because otherwise we won't find it if we're
  2670. # using a relative directory.
  2671. cp "$am_depcomp" conftest.dir
  2672. cd conftest.dir
  2673. # We will build objects and dependencies in a subdirectory because
  2674. # it helps to detect inapplicable dependency modes. For instance
  2675. # both Tru64's cc and ICC support -MD to output dependencies as a
  2676. # side effect of compilation, but ICC will put the dependencies in
  2677. # the current directory while Tru64 will put them in the object
  2678. # directory.
  2679. mkdir sub
  2680. am_cv_CC_dependencies_compiler_type=none
  2681. if test "$am_compiler_list" = ""; then
  2682. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2683. fi
  2684. for depmode in $am_compiler_list; do
  2685. # Setup a source with many dependencies, because some compilers
  2686. # like to wrap large dependency lists on column 80 (with \), and
  2687. # we should not choose a depcomp mode which is confused by this.
  2688. #
  2689. # We need to recreate these files for each test, as the compiler may
  2690. # overwrite some of them when testing with obscure command lines.
  2691. # This happens at least with the AIX C compiler.
  2692. : > sub/conftest.c
  2693. for i in 1 2 3 4 5 6; do
  2694. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2695. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2696. # Solaris 8's {/usr,}/bin/sh.
  2697. touch sub/conftst$i.h
  2698. done
  2699. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2700. case $depmode in
  2701. nosideeffect)
  2702. # after this tag, mechanisms are not by side-effect, so they'll
  2703. # only be used when explicitly requested
  2704. if test "x$enable_dependency_tracking" = xyes; then
  2705. continue
  2706. else
  2707. break
  2708. fi
  2709. ;;
  2710. none) break ;;
  2711. esac
  2712. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2713. # mode. It turns out that the SunPro C++ compiler does not properly
  2714. # handle `-M -o', and we need to detect this.
  2715. if depmode=$depmode \
  2716. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2717. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2718. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2719. >/dev/null 2>conftest.err &&
  2720. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2721. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2722. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2723. # icc doesn't choke on unknown options, it will just issue warnings
  2724. # or remarks (even with -Werror). So we grep stderr for any message
  2725. # that says an option was ignored or not supported.
  2726. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2727. # icc: Command line warning: ignoring option '-M'; no argument required
  2728. # The diagnosis changed in icc 8.0:
  2729. # icc: Command line remark: option '-MP' not supported
  2730. if (grep 'ignoring option' conftest.err ||
  2731. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2732. am_cv_CC_dependencies_compiler_type=$depmode
  2733. break
  2734. fi
  2735. fi
  2736. done
  2737. cd ..
  2738. rm -rf conftest.dir
  2739. else
  2740. am_cv_CC_dependencies_compiler_type=none
  2741. fi
  2742. fi
  2743. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  2744. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  2745. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  2746. if
  2747. test "x$enable_dependency_tracking" != xno \
  2748. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  2749. am__fastdepCC_TRUE=
  2750. am__fastdepCC_FALSE='#'
  2751. else
  2752. am__fastdepCC_TRUE='#'
  2753. am__fastdepCC_FALSE=
  2754. fi
  2755. echo "$as_me:$LINENO: checking for library containing socket" >&5
  2756. echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
  2757. if test "${ac_cv_search_socket+set}" = set; then
  2758. echo $ECHO_N "(cached) $ECHO_C" >&6
  2759. else
  2760. ac_func_search_save_LIBS=$LIBS
  2761. ac_cv_search_socket=no
  2762. cat >conftest.$ac_ext <<_ACEOF
  2763. /* confdefs.h. */
  2764. _ACEOF
  2765. cat confdefs.h >>conftest.$ac_ext
  2766. cat >>conftest.$ac_ext <<_ACEOF
  2767. /* end confdefs.h. */
  2768. /* Override any gcc2 internal prototype to avoid an error. */
  2769. #ifdef __cplusplus
  2770. extern "C"
  2771. #endif
  2772. /* We use char because int might match the return type of a gcc2
  2773. builtin and then its argument prototype would still apply. */
  2774. char socket ();
  2775. int
  2776. main ()
  2777. {
  2778. socket ();
  2779. ;
  2780. return 0;
  2781. }
  2782. _ACEOF
  2783. rm -f conftest.$ac_objext conftest$ac_exeext
  2784. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2785. (eval $ac_link) 2>conftest.er1
  2786. ac_status=$?
  2787. grep -v '^ *+' conftest.er1 >conftest.err
  2788. rm -f conftest.er1
  2789. cat conftest.err >&5
  2790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2791. (exit $ac_status); } &&
  2792. { ac_try='test -z "$ac_c_werror_flag"
  2793. || test ! -s conftest.err'
  2794. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2795. (eval $ac_try) 2>&5
  2796. ac_status=$?
  2797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2798. (exit $ac_status); }; } &&
  2799. { ac_try='test -s conftest$ac_exeext'
  2800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2801. (eval $ac_try) 2>&5
  2802. ac_status=$?
  2803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2804. (exit $ac_status); }; }; then
  2805. ac_cv_search_socket="none required"
  2806. else
  2807. echo "$as_me: failed program was:" >&5
  2808. sed 's/^/| /' conftest.$ac_ext >&5
  2809. fi
  2810. rm -f conftest.err conftest.$ac_objext \
  2811. conftest$ac_exeext conftest.$ac_ext
  2812. if test "$ac_cv_search_socket" = no; then
  2813. for ac_lib in socket; do
  2814. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2815. cat >conftest.$ac_ext <<_ACEOF
  2816. /* confdefs.h. */
  2817. _ACEOF
  2818. cat confdefs.h >>conftest.$ac_ext
  2819. cat >>conftest.$ac_ext <<_ACEOF
  2820. /* end confdefs.h. */
  2821. /* Override any gcc2 internal prototype to avoid an error. */
  2822. #ifdef __cplusplus
  2823. extern "C"
  2824. #endif
  2825. /* We use char because int might match the return type of a gcc2
  2826. builtin and then its argument prototype would still apply. */
  2827. char socket ();
  2828. int
  2829. main ()
  2830. {
  2831. socket ();
  2832. ;
  2833. return 0;
  2834. }
  2835. _ACEOF
  2836. rm -f conftest.$ac_objext conftest$ac_exeext
  2837. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2838. (eval $ac_link) 2>conftest.er1
  2839. ac_status=$?
  2840. grep -v '^ *+' conftest.er1 >conftest.err
  2841. rm -f conftest.er1
  2842. cat conftest.err >&5
  2843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2844. (exit $ac_status); } &&
  2845. { ac_try='test -z "$ac_c_werror_flag"
  2846. || test ! -s conftest.err'
  2847. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2848. (eval $ac_try) 2>&5
  2849. ac_status=$?
  2850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2851. (exit $ac_status); }; } &&
  2852. { ac_try='test -s conftest$ac_exeext'
  2853. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2854. (eval $ac_try) 2>&5
  2855. ac_status=$?
  2856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2857. (exit $ac_status); }; }; then
  2858. ac_cv_search_socket="-l$ac_lib"
  2859. break
  2860. else
  2861. echo "$as_me: failed program was:" >&5
  2862. sed 's/^/| /' conftest.$ac_ext >&5
  2863. fi
  2864. rm -f conftest.err conftest.$ac_objext \
  2865. conftest$ac_exeext conftest.$ac_ext
  2866. done
  2867. fi
  2868. LIBS=$ac_func_search_save_LIBS
  2869. fi
  2870. echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
  2871. echo "${ECHO_T}$ac_cv_search_socket" >&6
  2872. if test "$ac_cv_search_socket" != no; then
  2873. test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
  2874. fi
  2875. echo "$as_me:$LINENO: checking for library containing inet_addr" >&5
  2876. echo $ECHO_N "checking for library containing inet_addr... $ECHO_C" >&6
  2877. if test "${ac_cv_search_inet_addr+set}" = set; then
  2878. echo $ECHO_N "(cached) $ECHO_C" >&6
  2879. else
  2880. ac_func_search_save_LIBS=$LIBS
  2881. ac_cv_search_inet_addr=no
  2882. cat >conftest.$ac_ext <<_ACEOF
  2883. /* confdefs.h. */
  2884. _ACEOF
  2885. cat confdefs.h >>conftest.$ac_ext
  2886. cat >>conftest.$ac_ext <<_ACEOF
  2887. /* end confdefs.h. */
  2888. /* Override any gcc2 internal prototype to avoid an error. */
  2889. #ifdef __cplusplus
  2890. extern "C"
  2891. #endif
  2892. /* We use char because int might match the return type of a gcc2
  2893. builtin and then its argument prototype would still apply. */
  2894. char inet_addr ();
  2895. int
  2896. main ()
  2897. {
  2898. inet_addr ();
  2899. ;
  2900. return 0;
  2901. }
  2902. _ACEOF
  2903. rm -f conftest.$ac_objext conftest$ac_exeext
  2904. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2905. (eval $ac_link) 2>conftest.er1
  2906. ac_status=$?
  2907. grep -v '^ *+' conftest.er1 >conftest.err
  2908. rm -f conftest.er1
  2909. cat conftest.err >&5
  2910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2911. (exit $ac_status); } &&
  2912. { ac_try='test -z "$ac_c_werror_flag"
  2913. || test ! -s conftest.err'
  2914. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2915. (eval $ac_try) 2>&5
  2916. ac_status=$?
  2917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2918. (exit $ac_status); }; } &&
  2919. { ac_try='test -s conftest$ac_exeext'
  2920. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2921. (eval $ac_try) 2>&5
  2922. ac_status=$?
  2923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2924. (exit $ac_status); }; }; then
  2925. ac_cv_search_inet_addr="none required"
  2926. else
  2927. echo "$as_me: failed program was:" >&5
  2928. sed 's/^/| /' conftest.$ac_ext >&5
  2929. fi
  2930. rm -f conftest.err conftest.$ac_objext \
  2931. conftest$ac_exeext conftest.$ac_ext
  2932. if test "$ac_cv_search_inet_addr" = no; then
  2933. for ac_lib in nsl; do
  2934. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2935. cat >conftest.$ac_ext <<_ACEOF
  2936. /* confdefs.h. */
  2937. _ACEOF
  2938. cat confdefs.h >>conftest.$ac_ext
  2939. cat >>conftest.$ac_ext <<_ACEOF
  2940. /* end confdefs.h. */
  2941. /* Override any gcc2 internal prototype to avoid an error. */
  2942. #ifdef __cplusplus
  2943. extern "C"
  2944. #endif
  2945. /* We use char because int might match the return type of a gcc2
  2946. builtin and then its argument prototype would still apply. */
  2947. char inet_addr ();
  2948. int
  2949. main ()
  2950. {
  2951. inet_addr ();
  2952. ;
  2953. return 0;
  2954. }
  2955. _ACEOF
  2956. rm -f conftest.$ac_objext conftest$ac_exeext
  2957. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2958. (eval $ac_link) 2>conftest.er1
  2959. ac_status=$?
  2960. grep -v '^ *+' conftest.er1 >conftest.err
  2961. rm -f conftest.er1
  2962. cat conftest.err >&5
  2963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2964. (exit $ac_status); } &&
  2965. { ac_try='test -z "$ac_c_werror_flag"
  2966. || test ! -s conftest.err'
  2967. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2968. (eval $ac_try) 2>&5
  2969. ac_status=$?
  2970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2971. (exit $ac_status); }; } &&
  2972. { ac_try='test -s conftest$ac_exeext'
  2973. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2974. (eval $ac_try) 2>&5
  2975. ac_status=$?
  2976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2977. (exit $ac_status); }; }; then
  2978. ac_cv_search_inet_addr="-l$ac_lib"
  2979. break
  2980. else
  2981. echo "$as_me: failed program was:" >&5
  2982. sed 's/^/| /' conftest.$ac_ext >&5
  2983. fi
  2984. rm -f conftest.err conftest.$ac_objext \
  2985. conftest$ac_exeext conftest.$ac_ext
  2986. done
  2987. fi
  2988. LIBS=$ac_func_search_save_LIBS
  2989. fi
  2990. echo "$as_me:$LINENO: result: $ac_cv_search_inet_addr" >&5
  2991. echo "${ECHO_T}$ac_cv_search_inet_addr" >&6
  2992. if test "$ac_cv_search_inet_addr" != no; then
  2993. test "$ac_cv_search_inet_addr" = "none required" || LIBS="$ac_cv_search_inet_addr $LIBS"
  2994. fi
  2995. ac_ext=c
  2996. ac_cpp='$CPP $CPPFLAGS'
  2997. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2998. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2999. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3000. if test -n "$ac_tool_prefix"; then
  3001. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3002. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3003. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3004. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3005. if test "${ac_cv_prog_CC+set}" = set; then
  3006. echo $ECHO_N "(cached) $ECHO_C" >&6
  3007. else
  3008. if test -n "$CC"; then
  3009. ac_cv_prog_CC="$CC" # Let the user override the test.
  3010. else
  3011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3012. for as_dir in $PATH
  3013. do
  3014. IFS=$as_save_IFS
  3015. test -z "$as_dir" && as_dir=.
  3016. for ac_exec_ext in '' $ac_executable_extensions; do
  3017. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3018. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3019. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3020. break 2
  3021. fi
  3022. done
  3023. done
  3024. fi
  3025. fi
  3026. CC=$ac_cv_prog_CC
  3027. if test -n "$CC"; then
  3028. echo "$as_me:$LINENO: result: $CC" >&5
  3029. echo "${ECHO_T}$CC" >&6
  3030. else
  3031. echo "$as_me:$LINENO: result: no" >&5
  3032. echo "${ECHO_T}no" >&6
  3033. fi
  3034. fi
  3035. if test -z "$ac_cv_prog_CC"; then
  3036. ac_ct_CC=$CC
  3037. # Extract the first word of "gcc", so it can be a program name with args.
  3038. set dummy gcc; ac_word=$2
  3039. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3040. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3041. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3042. echo $ECHO_N "(cached) $ECHO_C" >&6
  3043. else
  3044. if test -n "$ac_ct_CC"; then
  3045. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3046. else
  3047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3048. for as_dir in $PATH
  3049. do
  3050. IFS=$as_save_IFS
  3051. test -z "$as_dir" && as_dir=.
  3052. for ac_exec_ext in '' $ac_executable_extensions; do
  3053. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3054. ac_cv_prog_ac_ct_CC="gcc"
  3055. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3056. break 2
  3057. fi
  3058. done
  3059. done
  3060. fi
  3061. fi
  3062. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3063. if test -n "$ac_ct_CC"; then
  3064. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3065. echo "${ECHO_T}$ac_ct_CC" >&6
  3066. else
  3067. echo "$as_me:$LINENO: result: no" >&5
  3068. echo "${ECHO_T}no" >&6
  3069. fi
  3070. CC=$ac_ct_CC
  3071. else
  3072. CC="$ac_cv_prog_CC"
  3073. fi
  3074. if test -z "$CC"; then
  3075. if test -n "$ac_tool_prefix"; then
  3076. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3077. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3078. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3079. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3080. if test "${ac_cv_prog_CC+set}" = set; then
  3081. echo $ECHO_N "(cached) $ECHO_C" >&6
  3082. else
  3083. if test -n "$CC"; then
  3084. ac_cv_prog_CC="$CC" # Let the user override the test.
  3085. else
  3086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3087. for as_dir in $PATH
  3088. do
  3089. IFS=$as_save_IFS
  3090. test -z "$as_dir" && as_dir=.
  3091. for ac_exec_ext in '' $ac_executable_extensions; do
  3092. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3093. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3094. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3095. break 2
  3096. fi
  3097. done
  3098. done
  3099. fi
  3100. fi
  3101. CC=$ac_cv_prog_CC
  3102. if test -n "$CC"; then
  3103. echo "$as_me:$LINENO: result: $CC" >&5
  3104. echo "${ECHO_T}$CC" >&6
  3105. else
  3106. echo "$as_me:$LINENO: result: no" >&5
  3107. echo "${ECHO_T}no" >&6
  3108. fi
  3109. fi
  3110. if test -z "$ac_cv_prog_CC"; then
  3111. ac_ct_CC=$CC
  3112. # Extract the first word of "cc", so it can be a program name with args.
  3113. set dummy cc; ac_word=$2
  3114. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3115. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3116. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3117. echo $ECHO_N "(cached) $ECHO_C" >&6
  3118. else
  3119. if test -n "$ac_ct_CC"; then
  3120. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3121. else
  3122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3123. for as_dir in $PATH
  3124. do
  3125. IFS=$as_save_IFS
  3126. test -z "$as_dir" && as_dir=.
  3127. for ac_exec_ext in '' $ac_executable_extensions; do
  3128. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3129. ac_cv_prog_ac_ct_CC="cc"
  3130. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3131. break 2
  3132. fi
  3133. done
  3134. done
  3135. fi
  3136. fi
  3137. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3138. if test -n "$ac_ct_CC"; then
  3139. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3140. echo "${ECHO_T}$ac_ct_CC" >&6
  3141. else
  3142. echo "$as_me:$LINENO: result: no" >&5
  3143. echo "${ECHO_T}no" >&6
  3144. fi
  3145. CC=$ac_ct_CC
  3146. else
  3147. CC="$ac_cv_prog_CC"
  3148. fi
  3149. fi
  3150. if test -z "$CC"; then
  3151. # Extract the first word of "cc", so it can be a program name with args.
  3152. set dummy cc; ac_word=$2
  3153. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3154. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3155. if test "${ac_cv_prog_CC+set}" = set; then
  3156. echo $ECHO_N "(cached) $ECHO_C" >&6
  3157. else
  3158. if test -n "$CC"; then
  3159. ac_cv_prog_CC="$CC" # Let the user override the test.
  3160. else
  3161. ac_prog_rejected=no
  3162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3163. for as_dir in $PATH
  3164. do
  3165. IFS=$as_save_IFS
  3166. test -z "$as_dir" && as_dir=.
  3167. for ac_exec_ext in '' $ac_executable_extensions; do
  3168. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3169. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3170. ac_prog_rejected=yes
  3171. continue
  3172. fi
  3173. ac_cv_prog_CC="cc"
  3174. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3175. break 2
  3176. fi
  3177. done
  3178. done
  3179. if test $ac_prog_rejected = yes; then
  3180. # We found a bogon in the path, so make sure we never use it.
  3181. set dummy $ac_cv_prog_CC
  3182. shift
  3183. if test $# != 0; then
  3184. # We chose a different compiler from the bogus one.
  3185. # However, it has the same basename, so the bogon will be chosen
  3186. # first if we set CC to just the basename; use the full file name.
  3187. shift
  3188. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3189. fi
  3190. fi
  3191. fi
  3192. fi
  3193. CC=$ac_cv_prog_CC
  3194. if test -n "$CC"; then
  3195. echo "$as_me:$LINENO: result: $CC" >&5
  3196. echo "${ECHO_T}$CC" >&6
  3197. else
  3198. echo "$as_me:$LINENO: result: no" >&5
  3199. echo "${ECHO_T}no" >&6
  3200. fi
  3201. fi
  3202. if test -z "$CC"; then
  3203. if test -n "$ac_tool_prefix"; then
  3204. for ac_prog in cl
  3205. do
  3206. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3207. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3208. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3209. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3210. if test "${ac_cv_prog_CC+set}" = set; then
  3211. echo $ECHO_N "(cached) $ECHO_C" >&6
  3212. else
  3213. if test -n "$CC"; then
  3214. ac_cv_prog_CC="$CC" # Let the user override the test.
  3215. else
  3216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3217. for as_dir in $PATH
  3218. do
  3219. IFS=$as_save_IFS
  3220. test -z "$as_dir" && as_dir=.
  3221. for ac_exec_ext in '' $ac_executable_extensions; do
  3222. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3223. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3224. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3225. break 2
  3226. fi
  3227. done
  3228. done
  3229. fi
  3230. fi
  3231. CC=$ac_cv_prog_CC
  3232. if test -n "$CC"; then
  3233. echo "$as_me:$LINENO: result: $CC" >&5
  3234. echo "${ECHO_T}$CC" >&6
  3235. else
  3236. echo "$as_me:$LINENO: result: no" >&5
  3237. echo "${ECHO_T}no" >&6
  3238. fi
  3239. test -n "$CC" && break
  3240. done
  3241. fi
  3242. if test -z "$CC"; then
  3243. ac_ct_CC=$CC
  3244. for ac_prog in cl
  3245. do
  3246. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3247. set dummy $ac_prog; ac_word=$2
  3248. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3249. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3250. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3251. echo $ECHO_N "(cached) $ECHO_C" >&6
  3252. else
  3253. if test -n "$ac_ct_CC"; then
  3254. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3255. else
  3256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3257. for as_dir in $PATH
  3258. do
  3259. IFS=$as_save_IFS
  3260. test -z "$as_dir" && as_dir=.
  3261. for ac_exec_ext in '' $ac_executable_extensions; do
  3262. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3263. ac_cv_prog_ac_ct_CC="$ac_prog"
  3264. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3265. break 2
  3266. fi
  3267. done
  3268. done
  3269. fi
  3270. fi
  3271. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3272. if test -n "$ac_ct_CC"; then
  3273. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3274. echo "${ECHO_T}$ac_ct_CC" >&6
  3275. else
  3276. echo "$as_me:$LINENO: result: no" >&5
  3277. echo "${ECHO_T}no" >&6
  3278. fi
  3279. test -n "$ac_ct_CC" && break
  3280. done
  3281. CC=$ac_ct_CC
  3282. fi
  3283. fi
  3284. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3285. See \`config.log' for more details." >&5
  3286. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3287. See \`config.log' for more details." >&2;}
  3288. { (exit 1); exit 1; }; }
  3289. # Provide some information about the compiler.
  3290. echo "$as_me:$LINENO:" \
  3291. "checking for C compiler version" >&5
  3292. ac_compiler=`set X $ac_compile; echo $2`
  3293. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  3294. (eval $ac_compiler --version </dev/null >&5) 2>&5
  3295. ac_status=$?
  3296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3297. (exit $ac_status); }
  3298. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  3299. (eval $ac_compiler -v </dev/null >&5) 2>&5
  3300. ac_status=$?
  3301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3302. (exit $ac_status); }
  3303. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  3304. (eval $ac_compiler -V </dev/null >&5) 2>&5
  3305. ac_status=$?
  3306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3307. (exit $ac_status); }
  3308. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3309. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  3310. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3311. echo $ECHO_N "(cached) $ECHO_C" >&6
  3312. else
  3313. cat >conftest.$ac_ext <<_ACEOF
  3314. /* confdefs.h. */
  3315. _ACEOF
  3316. cat confdefs.h >>conftest.$ac_ext
  3317. cat >>conftest.$ac_ext <<_ACEOF
  3318. /* end confdefs.h. */
  3319. int
  3320. main ()
  3321. {
  3322. #ifndef __GNUC__
  3323. choke me
  3324. #endif
  3325. ;
  3326. return 0;
  3327. }
  3328. _ACEOF
  3329. rm -f conftest.$ac_objext
  3330. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3331. (eval $ac_compile) 2>conftest.er1
  3332. ac_status=$?
  3333. grep -v '^ *+' conftest.er1 >conftest.err
  3334. rm -f conftest.er1
  3335. cat conftest.err >&5
  3336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3337. (exit $ac_status); } &&
  3338. { ac_try='test -z "$ac_c_werror_flag"
  3339. || test ! -s conftest.err'
  3340. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3341. (eval $ac_try) 2>&5
  3342. ac_status=$?
  3343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3344. (exit $ac_status); }; } &&
  3345. { ac_try='test -s conftest.$ac_objext'
  3346. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3347. (eval $ac_try) 2>&5
  3348. ac_status=$?
  3349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3350. (exit $ac_status); }; }; then
  3351. ac_compiler_gnu=yes
  3352. else
  3353. echo "$as_me: failed program was:" >&5
  3354. sed 's/^/| /' conftest.$ac_ext >&5
  3355. ac_compiler_gnu=no
  3356. fi
  3357. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3358. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3359. fi
  3360. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3361. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  3362. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3363. ac_test_CFLAGS=${CFLAGS+set}
  3364. ac_save_CFLAGS=$CFLAGS
  3365. CFLAGS="-g"
  3366. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3367. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  3368. if test "${ac_cv_prog_cc_g+set}" = set; then
  3369. echo $ECHO_N "(cached) $ECHO_C" >&6
  3370. else
  3371. cat >conftest.$ac_ext <<_ACEOF
  3372. /* confdefs.h. */
  3373. _ACEOF
  3374. cat confdefs.h >>conftest.$ac_ext
  3375. cat >>conftest.$ac_ext <<_ACEOF
  3376. /* end confdefs.h. */
  3377. int
  3378. main ()
  3379. {
  3380. ;
  3381. return 0;
  3382. }
  3383. _ACEOF
  3384. rm -f conftest.$ac_objext
  3385. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3386. (eval $ac_compile) 2>conftest.er1
  3387. ac_status=$?
  3388. grep -v '^ *+' conftest.er1 >conftest.err
  3389. rm -f conftest.er1
  3390. cat conftest.err >&5
  3391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3392. (exit $ac_status); } &&
  3393. { ac_try='test -z "$ac_c_werror_flag"
  3394. || test ! -s conftest.err'
  3395. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3396. (eval $ac_try) 2>&5
  3397. ac_status=$?
  3398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3399. (exit $ac_status); }; } &&
  3400. { ac_try='test -s conftest.$ac_objext'
  3401. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3402. (eval $ac_try) 2>&5
  3403. ac_status=$?
  3404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3405. (exit $ac_status); }; }; then
  3406. ac_cv_prog_cc_g=yes
  3407. else
  3408. echo "$as_me: failed program was:" >&5
  3409. sed 's/^/| /' conftest.$ac_ext >&5
  3410. ac_cv_prog_cc_g=no
  3411. fi
  3412. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3413. fi
  3414. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3415. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  3416. if test "$ac_test_CFLAGS" = set; then
  3417. CFLAGS=$ac_save_CFLAGS
  3418. elif test $ac_cv_prog_cc_g = yes; then
  3419. if test "$GCC" = yes; then
  3420. CFLAGS="-g -O2"
  3421. else
  3422. CFLAGS="-g"
  3423. fi
  3424. else
  3425. if test "$GCC" = yes; then
  3426. CFLAGS="-O2"
  3427. else
  3428. CFLAGS=
  3429. fi
  3430. fi
  3431. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  3432. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  3433. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  3434. echo $ECHO_N "(cached) $ECHO_C" >&6
  3435. else
  3436. ac_cv_prog_cc_stdc=no
  3437. ac_save_CC=$CC
  3438. cat >conftest.$ac_ext <<_ACEOF
  3439. /* confdefs.h. */
  3440. _ACEOF
  3441. cat confdefs.h >>conftest.$ac_ext
  3442. cat >>conftest.$ac_ext <<_ACEOF
  3443. /* end confdefs.h. */
  3444. #include <stdarg.h>
  3445. #include <stdio.h>
  3446. #include <sys/types.h>
  3447. #include <sys/stat.h>
  3448. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3449. struct buf { int x; };
  3450. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3451. static char *e (p, i)
  3452. char **p;
  3453. int i;
  3454. {
  3455. return p[i];
  3456. }
  3457. static char *f (char * (*g) (char **, int), char **p, ...)
  3458. {
  3459. char *s;
  3460. va_list v;
  3461. va_start (v,p);
  3462. s = g (p, va_arg (v,int));
  3463. va_end (v);
  3464. return s;
  3465. }
  3466. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3467. function prototypes and stuff, but not '\xHH' hex character constants.
  3468. These don't provoke an error unfortunately, instead are silently treated
  3469. as 'x'. The following induces an error, until -std1 is added to get
  3470. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3471. array size at least. It's necessary to write '\x00'==0 to get something
  3472. that's true only with -std1. */
  3473. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3474. int test (int i, double x);
  3475. struct s1 {int (*f) (int a);};
  3476. struct s2 {int (*f) (double a);};
  3477. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3478. int argc;
  3479. char **argv;
  3480. int
  3481. main ()
  3482. {
  3483. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3484. ;
  3485. return 0;
  3486. }
  3487. _ACEOF
  3488. # Don't try gcc -ansi; that turns off useful extensions and
  3489. # breaks some systems' header files.
  3490. # AIX -qlanglvl=ansi
  3491. # Ultrix and OSF/1 -std1
  3492. # HP-UX 10.20 and later -Ae
  3493. # HP-UX older versions -Aa -D_HPUX_SOURCE
  3494. # SVR4 -Xc -D__EXTENSIONS__
  3495. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3496. do
  3497. CC="$ac_save_CC $ac_arg"
  3498. rm -f conftest.$ac_objext
  3499. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3500. (eval $ac_compile) 2>conftest.er1
  3501. ac_status=$?
  3502. grep -v '^ *+' conftest.er1 >conftest.err
  3503. rm -f conftest.er1
  3504. cat conftest.err >&5
  3505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3506. (exit $ac_status); } &&
  3507. { ac_try='test -z "$ac_c_werror_flag"
  3508. || test ! -s conftest.err'
  3509. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3510. (eval $ac_try) 2>&5
  3511. ac_status=$?
  3512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3513. (exit $ac_status); }; } &&
  3514. { ac_try='test -s conftest.$ac_objext'
  3515. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3516. (eval $ac_try) 2>&5
  3517. ac_status=$?
  3518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3519. (exit $ac_status); }; }; then
  3520. ac_cv_prog_cc_stdc=$ac_arg
  3521. break
  3522. else
  3523. echo "$as_me: failed program was:" >&5
  3524. sed 's/^/| /' conftest.$ac_ext >&5
  3525. fi
  3526. rm -f conftest.err conftest.$ac_objext
  3527. done
  3528. rm -f conftest.$ac_ext conftest.$ac_objext
  3529. CC=$ac_save_CC
  3530. fi
  3531. case "x$ac_cv_prog_cc_stdc" in
  3532. x|xno)
  3533. echo "$as_me:$LINENO: result: none needed" >&5
  3534. echo "${ECHO_T}none needed" >&6 ;;
  3535. *)
  3536. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3537. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  3538. CC="$CC $ac_cv_prog_cc_stdc" ;;
  3539. esac
  3540. # Some people use a C++ compiler to compile C. Since we use `exit',
  3541. # in C++ we need to declare it. In case someone uses the same compiler
  3542. # for both compiling C and C++ we need to have the C++ compiler decide
  3543. # the declaration of exit, since it's the most demanding environment.
  3544. cat >conftest.$ac_ext <<_ACEOF
  3545. #ifndef __cplusplus
  3546. choke me
  3547. #endif
  3548. _ACEOF
  3549. rm -f conftest.$ac_objext
  3550. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3551. (eval $ac_compile) 2>conftest.er1
  3552. ac_status=$?
  3553. grep -v '^ *+' conftest.er1 >conftest.err
  3554. rm -f conftest.er1
  3555. cat conftest.err >&5
  3556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3557. (exit $ac_status); } &&
  3558. { ac_try='test -z "$ac_c_werror_flag"
  3559. || test ! -s conftest.err'
  3560. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3561. (eval $ac_try) 2>&5
  3562. ac_status=$?
  3563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3564. (exit $ac_status); }; } &&
  3565. { ac_try='test -s conftest.$ac_objext'
  3566. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3567. (eval $ac_try) 2>&5
  3568. ac_status=$?
  3569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3570. (exit $ac_status); }; }; then
  3571. for ac_declaration in \
  3572. '' \
  3573. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3574. 'extern "C" void std::exit (int); using std::exit;' \
  3575. 'extern "C" void exit (int) throw ();' \
  3576. 'extern "C" void exit (int);' \
  3577. 'void exit (int);'
  3578. do
  3579. cat >conftest.$ac_ext <<_ACEOF
  3580. /* confdefs.h. */
  3581. _ACEOF
  3582. cat confdefs.h >>conftest.$ac_ext
  3583. cat >>conftest.$ac_ext <<_ACEOF
  3584. /* end confdefs.h. */
  3585. $ac_declaration
  3586. #include <stdlib.h>
  3587. int
  3588. main ()
  3589. {
  3590. exit (42);
  3591. ;
  3592. return 0;
  3593. }
  3594. _ACEOF
  3595. rm -f conftest.$ac_objext
  3596. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3597. (eval $ac_compile) 2>conftest.er1
  3598. ac_status=$?
  3599. grep -v '^ *+' conftest.er1 >conftest.err
  3600. rm -f conftest.er1
  3601. cat conftest.err >&5
  3602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3603. (exit $ac_status); } &&
  3604. { ac_try='test -z "$ac_c_werror_flag"
  3605. || test ! -s conftest.err'
  3606. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3607. (eval $ac_try) 2>&5
  3608. ac_status=$?
  3609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3610. (exit $ac_status); }; } &&
  3611. { ac_try='test -s conftest.$ac_objext'
  3612. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3613. (eval $ac_try) 2>&5
  3614. ac_status=$?
  3615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3616. (exit $ac_status); }; }; then
  3617. :
  3618. else
  3619. echo "$as_me: failed program was:" >&5
  3620. sed 's/^/| /' conftest.$ac_ext >&5
  3621. continue
  3622. fi
  3623. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3624. cat >conftest.$ac_ext <<_ACEOF
  3625. /* confdefs.h. */
  3626. _ACEOF
  3627. cat confdefs.h >>conftest.$ac_ext
  3628. cat >>conftest.$ac_ext <<_ACEOF
  3629. /* end confdefs.h. */
  3630. $ac_declaration
  3631. int
  3632. main ()
  3633. {
  3634. exit (42);
  3635. ;
  3636. return 0;
  3637. }
  3638. _ACEOF
  3639. rm -f conftest.$ac_objext
  3640. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3641. (eval $ac_compile) 2>conftest.er1
  3642. ac_status=$?
  3643. grep -v '^ *+' conftest.er1 >conftest.err
  3644. rm -f conftest.er1
  3645. cat conftest.err >&5
  3646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3647. (exit $ac_status); } &&
  3648. { ac_try='test -z "$ac_c_werror_flag"
  3649. || test ! -s conftest.err'
  3650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3651. (eval $ac_try) 2>&5
  3652. ac_status=$?
  3653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3654. (exit $ac_status); }; } &&
  3655. { ac_try='test -s conftest.$ac_objext'
  3656. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3657. (eval $ac_try) 2>&5
  3658. ac_status=$?
  3659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3660. (exit $ac_status); }; }; then
  3661. break
  3662. else
  3663. echo "$as_me: failed program was:" >&5
  3664. sed 's/^/| /' conftest.$ac_ext >&5
  3665. fi
  3666. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3667. done
  3668. rm -f conftest*
  3669. if test -n "$ac_declaration"; then
  3670. echo '#ifdef __cplusplus' >>confdefs.h
  3671. echo $ac_declaration >>confdefs.h
  3672. echo '#endif' >>confdefs.h
  3673. fi
  3674. else
  3675. echo "$as_me: failed program was:" >&5
  3676. sed 's/^/| /' conftest.$ac_ext >&5
  3677. fi
  3678. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3679. ac_ext=c
  3680. ac_cpp='$CPP $CPPFLAGS'
  3681. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3682. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3683. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3684. depcc="$CC" am_compiler_list=
  3685. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3686. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3687. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3688. echo $ECHO_N "(cached) $ECHO_C" >&6
  3689. else
  3690. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3691. # We make a subdir and do the tests there. Otherwise we can end up
  3692. # making bogus files that we don't know about and never remove. For
  3693. # instance it was reported that on HP-UX the gcc test will end up
  3694. # making a dummy file named `D' -- because `-MD' means `put the output
  3695. # in D'.
  3696. mkdir conftest.dir
  3697. # Copy depcomp to subdir because otherwise we won't find it if we're
  3698. # using a relative directory.
  3699. cp "$am_depcomp" conftest.dir
  3700. cd conftest.dir
  3701. # We will build objects and dependencies in a subdirectory because
  3702. # it helps to detect inapplicable dependency modes. For instance
  3703. # both Tru64's cc and ICC support -MD to output dependencies as a
  3704. # side effect of compilation, but ICC will put the dependencies in
  3705. # the current directory while Tru64 will put them in the object
  3706. # directory.
  3707. mkdir sub
  3708. am_cv_CC_dependencies_compiler_type=none
  3709. if test "$am_compiler_list" = ""; then
  3710. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3711. fi
  3712. for depmode in $am_compiler_list; do
  3713. # Setup a source with many dependencies, because some compilers
  3714. # like to wrap large dependency lists on column 80 (with \), and
  3715. # we should not choose a depcomp mode which is confused by this.
  3716. #
  3717. # We need to recreate these files for each test, as the compiler may
  3718. # overwrite some of them when testing with obscure command lines.
  3719. # This happens at least with the AIX C compiler.
  3720. : > sub/conftest.c
  3721. for i in 1 2 3 4 5 6; do
  3722. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3723. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3724. # Solaris 8's {/usr,}/bin/sh.
  3725. touch sub/conftst$i.h
  3726. done
  3727. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3728. case $depmode in
  3729. nosideeffect)
  3730. # after this tag, mechanisms are not by side-effect, so they'll
  3731. # only be used when explicitly requested
  3732. if test "x$enable_dependency_tracking" = xyes; then
  3733. continue
  3734. else
  3735. break
  3736. fi
  3737. ;;
  3738. none) break ;;
  3739. esac
  3740. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3741. # mode. It turns out that the SunPro C++ compiler does not properly
  3742. # handle `-M -o', and we need to detect this.
  3743. if depmode=$depmode \
  3744. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3745. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3746. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3747. >/dev/null 2>conftest.err &&
  3748. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3749. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3750. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3751. # icc doesn't choke on unknown options, it will just issue warnings
  3752. # or remarks (even with -Werror). So we grep stderr for any message
  3753. # that says an option was ignored or not supported.
  3754. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3755. # icc: Command line warning: ignoring option '-M'; no argument required
  3756. # The diagnosis changed in icc 8.0:
  3757. # icc: Command line remark: option '-MP' not supported
  3758. if (grep 'ignoring option' conftest.err ||
  3759. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3760. am_cv_CC_dependencies_compiler_type=$depmode
  3761. break
  3762. fi
  3763. fi
  3764. done
  3765. cd ..
  3766. rm -rf conftest.dir
  3767. else
  3768. am_cv_CC_dependencies_compiler_type=none
  3769. fi
  3770. fi
  3771. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3772. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3773. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3774. if
  3775. test "x$enable_dependency_tracking" != xno \
  3776. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3777. am__fastdepCC_TRUE=
  3778. am__fastdepCC_FALSE='#'
  3779. else
  3780. am__fastdepCC_TRUE='#'
  3781. am__fastdepCC_FALSE=
  3782. fi
  3783. ac_ext=c
  3784. ac_cpp='$CPP $CPPFLAGS'
  3785. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3786. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3787. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3788. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3789. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3790. # On Suns, sometimes $CPP names a directory.
  3791. if test -n "$CPP" && test -d "$CPP"; then
  3792. CPP=
  3793. fi
  3794. if test -z "$CPP"; then
  3795. if test "${ac_cv_prog_CPP+set}" = set; then
  3796. echo $ECHO_N "(cached) $ECHO_C" >&6
  3797. else
  3798. # Double quotes because CPP needs to be expanded
  3799. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3800. do
  3801. ac_preproc_ok=false
  3802. for ac_c_preproc_warn_flag in '' yes
  3803. do
  3804. # Use a header file that comes with gcc, so configuring glibc
  3805. # with a fresh cross-compiler works.
  3806. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3807. # <limits.h> exists even on freestanding compilers.
  3808. # On the NeXT, cc -E runs the code through the compiler's parser,
  3809. # not just through cpp. "Syntax error" is here to catch this case.
  3810. cat >conftest.$ac_ext <<_ACEOF
  3811. /* confdefs.h. */
  3812. _ACEOF
  3813. cat confdefs.h >>conftest.$ac_ext
  3814. cat >>conftest.$ac_ext <<_ACEOF
  3815. /* end confdefs.h. */
  3816. #ifdef __STDC__
  3817. # include <limits.h>
  3818. #else
  3819. # include <assert.h>
  3820. #endif
  3821. Syntax error
  3822. _ACEOF
  3823. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3824. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3825. ac_status=$?
  3826. grep -v '^ *+' conftest.er1 >conftest.err
  3827. rm -f conftest.er1
  3828. cat conftest.err >&5
  3829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3830. (exit $ac_status); } >/dev/null; then
  3831. if test -s conftest.err; then
  3832. ac_cpp_err=$ac_c_preproc_warn_flag
  3833. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3834. else
  3835. ac_cpp_err=
  3836. fi
  3837. else
  3838. ac_cpp_err=yes
  3839. fi
  3840. if test -z "$ac_cpp_err"; then
  3841. :
  3842. else
  3843. echo "$as_me: failed program was:" >&5
  3844. sed 's/^/| /' conftest.$ac_ext >&5
  3845. # Broken: fails on valid input.
  3846. continue
  3847. fi
  3848. rm -f conftest.err conftest.$ac_ext
  3849. # OK, works on sane cases. Now check whether non-existent headers
  3850. # can be detected and how.
  3851. cat >conftest.$ac_ext <<_ACEOF
  3852. /* confdefs.h. */
  3853. _ACEOF
  3854. cat confdefs.h >>conftest.$ac_ext
  3855. cat >>conftest.$ac_ext <<_ACEOF
  3856. /* end confdefs.h. */
  3857. #include <ac_nonexistent.h>
  3858. _ACEOF
  3859. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3860. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3861. ac_status=$?
  3862. grep -v '^ *+' conftest.er1 >conftest.err
  3863. rm -f conftest.er1
  3864. cat conftest.err >&5
  3865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3866. (exit $ac_status); } >/dev/null; then
  3867. if test -s conftest.err; then
  3868. ac_cpp_err=$ac_c_preproc_warn_flag
  3869. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3870. else
  3871. ac_cpp_err=
  3872. fi
  3873. else
  3874. ac_cpp_err=yes
  3875. fi
  3876. if test -z "$ac_cpp_err"; then
  3877. # Broken: success on invalid input.
  3878. continue
  3879. else
  3880. echo "$as_me: failed program was:" >&5
  3881. sed 's/^/| /' conftest.$ac_ext >&5
  3882. # Passes both tests.
  3883. ac_preproc_ok=:
  3884. break
  3885. fi
  3886. rm -f conftest.err conftest.$ac_ext
  3887. done
  3888. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3889. rm -f conftest.err conftest.$ac_ext
  3890. if $ac_preproc_ok; then
  3891. break
  3892. fi
  3893. done
  3894. ac_cv_prog_CPP=$CPP
  3895. fi
  3896. CPP=$ac_cv_prog_CPP
  3897. else
  3898. ac_cv_prog_CPP=$CPP
  3899. fi
  3900. echo "$as_me:$LINENO: result: $CPP" >&5
  3901. echo "${ECHO_T}$CPP" >&6
  3902. ac_preproc_ok=false
  3903. for ac_c_preproc_warn_flag in '' yes
  3904. do
  3905. # Use a header file that comes with gcc, so configuring glibc
  3906. # with a fresh cross-compiler works.
  3907. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3908. # <limits.h> exists even on freestanding compilers.
  3909. # On the NeXT, cc -E runs the code through the compiler's parser,
  3910. # not just through cpp. "Syntax error" is here to catch this case.
  3911. cat >conftest.$ac_ext <<_ACEOF
  3912. /* confdefs.h. */
  3913. _ACEOF
  3914. cat confdefs.h >>conftest.$ac_ext
  3915. cat >>conftest.$ac_ext <<_ACEOF
  3916. /* end confdefs.h. */
  3917. #ifdef __STDC__
  3918. # include <limits.h>
  3919. #else
  3920. # include <assert.h>
  3921. #endif
  3922. Syntax error
  3923. _ACEOF
  3924. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3925. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3926. ac_status=$?
  3927. grep -v '^ *+' conftest.er1 >conftest.err
  3928. rm -f conftest.er1
  3929. cat conftest.err >&5
  3930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3931. (exit $ac_status); } >/dev/null; then
  3932. if test -s conftest.err; then
  3933. ac_cpp_err=$ac_c_preproc_warn_flag
  3934. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3935. else
  3936. ac_cpp_err=
  3937. fi
  3938. else
  3939. ac_cpp_err=yes
  3940. fi
  3941. if test -z "$ac_cpp_err"; then
  3942. :
  3943. else
  3944. echo "$as_me: failed program was:" >&5
  3945. sed 's/^/| /' conftest.$ac_ext >&5
  3946. # Broken: fails on valid input.
  3947. continue
  3948. fi
  3949. rm -f conftest.err conftest.$ac_ext
  3950. # OK, works on sane cases. Now check whether non-existent headers
  3951. # can be detected and how.
  3952. cat >conftest.$ac_ext <<_ACEOF
  3953. /* confdefs.h. */
  3954. _ACEOF
  3955. cat confdefs.h >>conftest.$ac_ext
  3956. cat >>conftest.$ac_ext <<_ACEOF
  3957. /* end confdefs.h. */
  3958. #include <ac_nonexistent.h>
  3959. _ACEOF
  3960. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3961. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3962. ac_status=$?
  3963. grep -v '^ *+' conftest.er1 >conftest.err
  3964. rm -f conftest.er1
  3965. cat conftest.err >&5
  3966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3967. (exit $ac_status); } >/dev/null; then
  3968. if test -s conftest.err; then
  3969. ac_cpp_err=$ac_c_preproc_warn_flag
  3970. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3971. else
  3972. ac_cpp_err=
  3973. fi
  3974. else
  3975. ac_cpp_err=yes
  3976. fi
  3977. if test -z "$ac_cpp_err"; then
  3978. # Broken: success on invalid input.
  3979. continue
  3980. else
  3981. echo "$as_me: failed program was:" >&5
  3982. sed 's/^/| /' conftest.$ac_ext >&5
  3983. # Passes both tests.
  3984. ac_preproc_ok=:
  3985. break
  3986. fi
  3987. rm -f conftest.err conftest.$ac_ext
  3988. done
  3989. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3990. rm -f conftest.err conftest.$ac_ext
  3991. if $ac_preproc_ok; then
  3992. :
  3993. else
  3994. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3995. See \`config.log' for more details." >&5
  3996. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3997. See \`config.log' for more details." >&2;}
  3998. { (exit 1); exit 1; }; }
  3999. fi
  4000. ac_ext=c
  4001. ac_cpp='$CPP $CPPFLAGS'
  4002. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4003. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4004. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4005. # Find a good install program. We prefer a C program (faster),
  4006. # so one script is as good as another. But avoid the broken or
  4007. # incompatible versions:
  4008. # SysV /etc/install, /usr/sbin/install
  4009. # SunOS /usr/etc/install
  4010. # IRIX /sbin/install
  4011. # AIX /bin/install
  4012. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4013. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4014. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4015. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4016. # OS/2's system install, which has a completely different semantic
  4017. # ./install, which can be erroneously created by make from ./install.sh.
  4018. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  4019. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  4020. if test -z "$INSTALL"; then
  4021. if test "${ac_cv_path_install+set}" = set; then
  4022. echo $ECHO_N "(cached) $ECHO_C" >&6
  4023. else
  4024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4025. for as_dir in $PATH
  4026. do
  4027. IFS=$as_save_IFS
  4028. test -z "$as_dir" && as_dir=.
  4029. # Account for people who put trailing slashes in PATH elements.
  4030. case $as_dir/ in
  4031. ./ | .// | /cC/* | \
  4032. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4033. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  4034. /usr/ucb/* ) ;;
  4035. *)
  4036. # OSF1 and SCO ODT 3.0 have their own names for install.
  4037. # Don't use installbsd from OSF since it installs stuff as root
  4038. # by default.
  4039. for ac_prog in ginstall scoinst install; do
  4040. for ac_exec_ext in '' $ac_executable_extensions; do
  4041. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  4042. if test $ac_prog = install &&
  4043. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4044. # AIX install. It has an incompatible calling convention.
  4045. :
  4046. elif test $ac_prog = install &&
  4047. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4048. # program-specific install script used by HP pwplus--don't use.
  4049. :
  4050. else
  4051. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4052. break 3
  4053. fi
  4054. fi
  4055. done
  4056. done
  4057. ;;
  4058. esac
  4059. done
  4060. fi
  4061. if test "${ac_cv_path_install+set}" = set; then
  4062. INSTALL=$ac_cv_path_install
  4063. else
  4064. # As a last resort, use the slow shell script. We don't cache a
  4065. # path for INSTALL within a source directory, because that will
  4066. # break other packages using the cache if that directory is
  4067. # removed, or if the path is relative.
  4068. INSTALL=$ac_install_sh
  4069. fi
  4070. fi
  4071. echo "$as_me:$LINENO: result: $INSTALL" >&5
  4072. echo "${ECHO_T}$INSTALL" >&6
  4073. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4074. # It thinks the first close brace ends the variable substitution.
  4075. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4076. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4077. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4078. # Check whether --enable-shared or --disable-shared was given.
  4079. if test "${enable_shared+set}" = set; then
  4080. enableval="$enable_shared"
  4081. p=${PACKAGE-default}
  4082. case $enableval in
  4083. yes) enable_shared=yes ;;
  4084. no) enable_shared=no ;;
  4085. *)
  4086. enable_shared=no
  4087. # Look at the argument we got. We use all the common list separators.
  4088. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4089. for pkg in $enableval; do
  4090. IFS="$lt_save_ifs"
  4091. if test "X$pkg" = "X$p"; then
  4092. enable_shared=yes
  4093. fi
  4094. done
  4095. IFS="$lt_save_ifs"
  4096. ;;
  4097. esac
  4098. else
  4099. enable_shared=yes
  4100. fi;
  4101. # Check whether --enable-static or --disable-static was given.
  4102. if test "${enable_static+set}" = set; then
  4103. enableval="$enable_static"
  4104. p=${PACKAGE-default}
  4105. case $enableval in
  4106. yes) enable_static=yes ;;
  4107. no) enable_static=no ;;
  4108. *)
  4109. enable_static=no
  4110. # Look at the argument we got. We use all the common list separators.
  4111. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4112. for pkg in $enableval; do
  4113. IFS="$lt_save_ifs"
  4114. if test "X$pkg" = "X$p"; then
  4115. enable_static=yes
  4116. fi
  4117. done
  4118. IFS="$lt_save_ifs"
  4119. ;;
  4120. esac
  4121. else
  4122. enable_static=yes
  4123. fi;
  4124. # Check whether --enable-fast-install or --disable-fast-install was given.
  4125. if test "${enable_fast_install+set}" = set; then
  4126. enableval="$enable_fast_install"
  4127. p=${PACKAGE-default}
  4128. case $enableval in
  4129. yes) enable_fast_install=yes ;;
  4130. no) enable_fast_install=no ;;
  4131. *)
  4132. enable_fast_install=no
  4133. # Look at the argument we got. We use all the common list separators.
  4134. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4135. for pkg in $enableval; do
  4136. IFS="$lt_save_ifs"
  4137. if test "X$pkg" = "X$p"; then
  4138. enable_fast_install=yes
  4139. fi
  4140. done
  4141. IFS="$lt_save_ifs"
  4142. ;;
  4143. esac
  4144. else
  4145. enable_fast_install=yes
  4146. fi;
  4147. # Make sure we can run config.sub.
  4148. $ac_config_sub sun4 >/dev/null 2>&1 ||
  4149. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  4150. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  4151. { (exit 1); exit 1; }; }
  4152. echo "$as_me:$LINENO: checking build system type" >&5
  4153. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  4154. if test "${ac_cv_build+set}" = set; then
  4155. echo $ECHO_N "(cached) $ECHO_C" >&6
  4156. else
  4157. ac_cv_build_alias=$build_alias
  4158. test -z "$ac_cv_build_alias" &&
  4159. ac_cv_build_alias=`$ac_config_guess`
  4160. test -z "$ac_cv_build_alias" &&
  4161. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  4162. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  4163. { (exit 1); exit 1; }; }
  4164. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  4165. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  4166. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  4167. { (exit 1); exit 1; }; }
  4168. fi
  4169. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  4170. echo "${ECHO_T}$ac_cv_build" >&6
  4171. build=$ac_cv_build
  4172. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  4173. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  4174. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  4175. echo "$as_me:$LINENO: checking host system type" >&5
  4176. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  4177. if test "${ac_cv_host+set}" = set; then
  4178. echo $ECHO_N "(cached) $ECHO_C" >&6
  4179. else
  4180. ac_cv_host_alias=$host_alias
  4181. test -z "$ac_cv_host_alias" &&
  4182. ac_cv_host_alias=$ac_cv_build_alias
  4183. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  4184. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  4185. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  4186. { (exit 1); exit 1; }; }
  4187. fi
  4188. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  4189. echo "${ECHO_T}$ac_cv_host" >&6
  4190. host=$ac_cv_host
  4191. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  4192. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  4193. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  4194. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  4195. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  4196. if test "${lt_cv_path_SED+set}" = set; then
  4197. echo $ECHO_N "(cached) $ECHO_C" >&6
  4198. else
  4199. # Loop through the user's path and test for sed and gsed.
  4200. # Then use that list of sed's as ones to test for truncation.
  4201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4202. for as_dir in $PATH
  4203. do
  4204. IFS=$as_save_IFS
  4205. test -z "$as_dir" && as_dir=.
  4206. for lt_ac_prog in sed gsed; do
  4207. for ac_exec_ext in '' $ac_executable_extensions; do
  4208. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  4209. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  4210. fi
  4211. done
  4212. done
  4213. done
  4214. lt_ac_max=0
  4215. lt_ac_count=0
  4216. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  4217. # along with /bin/sed that truncates output.
  4218. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  4219. test ! -f $lt_ac_sed && continue
  4220. cat /dev/null > conftest.in
  4221. lt_ac_count=0
  4222. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  4223. # Check for GNU sed and select it if it is found.
  4224. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  4225. lt_cv_path_SED=$lt_ac_sed
  4226. break
  4227. fi
  4228. while true; do
  4229. cat conftest.in conftest.in >conftest.tmp
  4230. mv conftest.tmp conftest.in
  4231. cp conftest.in conftest.nl
  4232. echo >>conftest.nl
  4233. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  4234. cmp -s conftest.out conftest.nl || break
  4235. # 10000 chars as input seems more than enough
  4236. test $lt_ac_count -gt 10 && break
  4237. lt_ac_count=`expr $lt_ac_count + 1`
  4238. if test $lt_ac_count -gt $lt_ac_max; then
  4239. lt_ac_max=$lt_ac_count
  4240. lt_cv_path_SED=$lt_ac_sed
  4241. fi
  4242. done
  4243. done
  4244. fi
  4245. SED=$lt_cv_path_SED
  4246. echo "$as_me:$LINENO: result: $SED" >&5
  4247. echo "${ECHO_T}$SED" >&6
  4248. echo "$as_me:$LINENO: checking for egrep" >&5
  4249. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  4250. if test "${ac_cv_prog_egrep+set}" = set; then
  4251. echo $ECHO_N "(cached) $ECHO_C" >&6
  4252. else
  4253. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  4254. then ac_cv_prog_egrep='grep -E'
  4255. else ac_cv_prog_egrep='egrep'
  4256. fi
  4257. fi
  4258. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  4259. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  4260. EGREP=$ac_cv_prog_egrep
  4261. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  4262. if test "${with_gnu_ld+set}" = set; then
  4263. withval="$with_gnu_ld"
  4264. test "$withval" = no || with_gnu_ld=yes
  4265. else
  4266. with_gnu_ld=no
  4267. fi;
  4268. ac_prog=ld
  4269. if test "$GCC" = yes; then
  4270. # Check if gcc -print-prog-name=ld gives a path.
  4271. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  4272. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  4273. case $host in
  4274. *-*-mingw*)
  4275. # gcc leaves a trailing carriage return which upsets mingw
  4276. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4277. *)
  4278. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4279. esac
  4280. case $ac_prog in
  4281. # Accept absolute paths.
  4282. [\\/]* | ?:[\\/]*)
  4283. re_direlt='/[^/][^/]*/\.\./'
  4284. # Canonicalize the pathname of ld
  4285. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  4286. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  4287. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  4288. done
  4289. test -z "$LD" && LD="$ac_prog"
  4290. ;;
  4291. "")
  4292. # If it fails, then pretend we aren't using GCC.
  4293. ac_prog=ld
  4294. ;;
  4295. *)
  4296. # If it is relative, then search for the first ld in PATH.
  4297. with_gnu_ld=unknown
  4298. ;;
  4299. esac
  4300. elif test "$with_gnu_ld" = yes; then
  4301. echo "$as_me:$LINENO: checking for GNU ld" >&5
  4302. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  4303. else
  4304. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4305. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  4306. fi
  4307. if test "${lt_cv_path_LD+set}" = set; then
  4308. echo $ECHO_N "(cached) $ECHO_C" >&6
  4309. else
  4310. if test -z "$LD"; then
  4311. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4312. for ac_dir in $PATH; do
  4313. IFS="$lt_save_ifs"
  4314. test -z "$ac_dir" && ac_dir=.
  4315. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4316. lt_cv_path_LD="$ac_dir/$ac_prog"
  4317. # Check to see if the program is GNU ld. I'd rather use --version,
  4318. # but apparently some GNU ld's only accept -v.
  4319. # Break only if it was the GNU/non-GNU ld that we prefer.
  4320. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4321. *GNU* | *'with BFD'*)
  4322. test "$with_gnu_ld" != no && break
  4323. ;;
  4324. *)
  4325. test "$with_gnu_ld" != yes && break
  4326. ;;
  4327. esac
  4328. fi
  4329. done
  4330. IFS="$lt_save_ifs"
  4331. else
  4332. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4333. fi
  4334. fi
  4335. LD="$lt_cv_path_LD"
  4336. if test -n "$LD"; then
  4337. echo "$as_me:$LINENO: result: $LD" >&5
  4338. echo "${ECHO_T}$LD" >&6
  4339. else
  4340. echo "$as_me:$LINENO: result: no" >&5
  4341. echo "${ECHO_T}no" >&6
  4342. fi
  4343. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4344. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4345. { (exit 1); exit 1; }; }
  4346. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4347. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  4348. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4349. echo $ECHO_N "(cached) $ECHO_C" >&6
  4350. else
  4351. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  4352. case `$LD -v 2>&1 </dev/null` in
  4353. *GNU* | *'with BFD'*)
  4354. lt_cv_prog_gnu_ld=yes
  4355. ;;
  4356. *)
  4357. lt_cv_prog_gnu_ld=no
  4358. ;;
  4359. esac
  4360. fi
  4361. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4362. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  4363. with_gnu_ld=$lt_cv_prog_gnu_ld
  4364. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4365. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  4366. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4367. echo $ECHO_N "(cached) $ECHO_C" >&6
  4368. else
  4369. lt_cv_ld_reload_flag='-r'
  4370. fi
  4371. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4372. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  4373. reload_flag=$lt_cv_ld_reload_flag
  4374. case $reload_flag in
  4375. "" | " "*) ;;
  4376. *) reload_flag=" $reload_flag" ;;
  4377. esac
  4378. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4379. case $host_os in
  4380. darwin*)
  4381. if test "$GCC" = yes; then
  4382. reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  4383. else
  4384. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4385. fi
  4386. ;;
  4387. esac
  4388. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  4389. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  4390. if test "${lt_cv_path_NM+set}" = set; then
  4391. echo $ECHO_N "(cached) $ECHO_C" >&6
  4392. else
  4393. if test -n "$NM"; then
  4394. # Let the user override the test.
  4395. lt_cv_path_NM="$NM"
  4396. else
  4397. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4398. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  4399. IFS="$lt_save_ifs"
  4400. test -z "$ac_dir" && ac_dir=.
  4401. tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  4402. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4403. # Check to see if the nm accepts a BSD-compat flag.
  4404. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4405. # nm: unknown option "B" ignored
  4406. # Tru64's nm complains that /dev/null is an invalid object file
  4407. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4408. */dev/null* | *'Invalid file or object type'*)
  4409. lt_cv_path_NM="$tmp_nm -B"
  4410. break
  4411. ;;
  4412. *)
  4413. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4414. */dev/null*)
  4415. lt_cv_path_NM="$tmp_nm -p"
  4416. break
  4417. ;;
  4418. *)
  4419. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4420. continue # so that we can try to find one that supports BSD flags
  4421. ;;
  4422. esac
  4423. esac
  4424. fi
  4425. done
  4426. IFS="$lt_save_ifs"
  4427. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4428. fi
  4429. fi
  4430. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4431. echo "${ECHO_T}$lt_cv_path_NM" >&6
  4432. NM="$lt_cv_path_NM"
  4433. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4434. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  4435. LN_S=$as_ln_s
  4436. if test "$LN_S" = "ln -s"; then
  4437. echo "$as_me:$LINENO: result: yes" >&5
  4438. echo "${ECHO_T}yes" >&6
  4439. else
  4440. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4441. echo "${ECHO_T}no, using $LN_S" >&6
  4442. fi
  4443. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  4444. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  4445. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4446. echo $ECHO_N "(cached) $ECHO_C" >&6
  4447. else
  4448. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4449. lt_cv_file_magic_test_file=
  4450. lt_cv_deplibs_check_method='unknown'
  4451. # Need to set the preceding variable on all platforms that support
  4452. # interlibrary dependencies.
  4453. # 'none' -- dependencies not supported.
  4454. # `unknown' -- same as none, but documents that we really don't know.
  4455. # 'pass_all' -- all dependencies passed with no checks.
  4456. # 'test_compile' -- check by making test program.
  4457. # 'file_magic [[regex]]' -- check by looking for files in library path
  4458. # which responds to the $file_magic_cmd with a given extended regex.
  4459. # If you have `file' or equivalent on your system and you're not sure
  4460. # whether `pass_all' will *always* work, you probably want this one.
  4461. case $host_os in
  4462. aix4* | aix5*)
  4463. lt_cv_deplibs_check_method=pass_all
  4464. ;;
  4465. beos*)
  4466. lt_cv_deplibs_check_method=pass_all
  4467. ;;
  4468. bsdi[45]*)
  4469. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4470. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4471. lt_cv_file_magic_test_file=/shlib/libc.so
  4472. ;;
  4473. cygwin*)
  4474. # func_win32_libid is a shell function defined in ltmain.sh
  4475. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4476. lt_cv_file_magic_cmd='func_win32_libid'
  4477. ;;
  4478. mingw* | pw32*)
  4479. # Base MSYS/MinGW do not provide the 'file' command needed by
  4480. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  4481. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4482. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4483. ;;
  4484. darwin* | rhapsody*)
  4485. lt_cv_deplibs_check_method=pass_all
  4486. ;;
  4487. freebsd* | kfreebsd*-gnu | dragonfly*)
  4488. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4489. case $host_cpu in
  4490. i*86 )
  4491. # Not sure whether the presence of OpenBSD here was a mistake.
  4492. # Let's accept both of them until this is cleared up.
  4493. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4494. lt_cv_file_magic_cmd=/usr/bin/file
  4495. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4496. ;;
  4497. esac
  4498. else
  4499. lt_cv_deplibs_check_method=pass_all
  4500. fi
  4501. ;;
  4502. gnu*)
  4503. lt_cv_deplibs_check_method=pass_all
  4504. ;;
  4505. hpux10.20* | hpux11*)
  4506. lt_cv_file_magic_cmd=/usr/bin/file
  4507. case "$host_cpu" in
  4508. ia64*)
  4509. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4510. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4511. ;;
  4512. hppa*64*)
  4513. 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]'
  4514. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4515. ;;
  4516. *)
  4517. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4518. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4519. ;;
  4520. esac
  4521. ;;
  4522. irix5* | irix6* | nonstopux*)
  4523. case $LD in
  4524. *-32|*"-32 ") libmagic=32-bit;;
  4525. *-n32|*"-n32 ") libmagic=N32;;
  4526. *-64|*"-64 ") libmagic=64-bit;;
  4527. *) libmagic=never-match;;
  4528. esac
  4529. lt_cv_deplibs_check_method=pass_all
  4530. ;;
  4531. # This must be Linux ELF.
  4532. linux*)
  4533. lt_cv_deplibs_check_method=pass_all
  4534. ;;
  4535. netbsd*)
  4536. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4537. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4538. else
  4539. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4540. fi
  4541. ;;
  4542. newos6*)
  4543. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4544. lt_cv_file_magic_cmd=/usr/bin/file
  4545. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4546. ;;
  4547. nto-qnx*)
  4548. lt_cv_deplibs_check_method=unknown
  4549. ;;
  4550. openbsd*)
  4551. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4552. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4553. else
  4554. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4555. fi
  4556. ;;
  4557. osf3* | osf4* | osf5*)
  4558. lt_cv_deplibs_check_method=pass_all
  4559. ;;
  4560. sco3.2v5*)
  4561. lt_cv_deplibs_check_method=pass_all
  4562. ;;
  4563. solaris*)
  4564. lt_cv_deplibs_check_method=pass_all
  4565. ;;
  4566. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4567. case $host_vendor in
  4568. motorola)
  4569. 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]'
  4570. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4571. ;;
  4572. ncr)
  4573. lt_cv_deplibs_check_method=pass_all
  4574. ;;
  4575. sequent)
  4576. lt_cv_file_magic_cmd='/bin/file'
  4577. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4578. ;;
  4579. sni)
  4580. lt_cv_file_magic_cmd='/bin/file'
  4581. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4582. lt_cv_file_magic_test_file=/lib/libc.so
  4583. ;;
  4584. siemens)
  4585. lt_cv_deplibs_check_method=pass_all
  4586. ;;
  4587. esac
  4588. ;;
  4589. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  4590. lt_cv_deplibs_check_method=pass_all
  4591. ;;
  4592. esac
  4593. fi
  4594. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4595. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  4596. file_magic_cmd=$lt_cv_file_magic_cmd
  4597. deplibs_check_method=$lt_cv_deplibs_check_method
  4598. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4599. # If no C compiler was specified, use CC.
  4600. LTCC=${LTCC-"$CC"}
  4601. # Allow CC to be a program name with arguments.
  4602. compiler=$CC
  4603. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  4604. if test "${enable_libtool_lock+set}" = set; then
  4605. enableval="$enable_libtool_lock"
  4606. fi;
  4607. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4608. # Some flags need to be propagated to the compiler or linker for good
  4609. # libtool support.
  4610. case $host in
  4611. ia64-*-hpux*)
  4612. # Find out which ABI we are using.
  4613. echo 'int i;' > conftest.$ac_ext
  4614. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4615. (eval $ac_compile) 2>&5
  4616. ac_status=$?
  4617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4618. (exit $ac_status); }; then
  4619. case `/usr/bin/file conftest.$ac_objext` in
  4620. *ELF-32*)
  4621. HPUX_IA64_MODE="32"
  4622. ;;
  4623. *ELF-64*)
  4624. HPUX_IA64_MODE="64"
  4625. ;;
  4626. esac
  4627. fi
  4628. rm -rf conftest*
  4629. ;;
  4630. *-*-irix6*)
  4631. # Find out which ABI we are using.
  4632. echo '#line 5096 "configure"' > conftest.$ac_ext
  4633. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4634. (eval $ac_compile) 2>&5
  4635. ac_status=$?
  4636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4637. (exit $ac_status); }; then
  4638. if test "$lt_cv_prog_gnu_ld" = yes; then
  4639. case `/usr/bin/file conftest.$ac_objext` in
  4640. *32-bit*)
  4641. LD="${LD-ld} -melf32bsmip"
  4642. ;;
  4643. *N32*)
  4644. LD="${LD-ld} -melf32bmipn32"
  4645. ;;
  4646. *64-bit*)
  4647. LD="${LD-ld} -melf64bmip"
  4648. ;;
  4649. esac
  4650. else
  4651. case `/usr/bin/file conftest.$ac_objext` in
  4652. *32-bit*)
  4653. LD="${LD-ld} -32"
  4654. ;;
  4655. *N32*)
  4656. LD="${LD-ld} -n32"
  4657. ;;
  4658. *64-bit*)
  4659. LD="${LD-ld} -64"
  4660. ;;
  4661. esac
  4662. fi
  4663. fi
  4664. rm -rf conftest*
  4665. ;;
  4666. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  4667. # Find out which ABI we are using.
  4668. echo 'int i;' > conftest.$ac_ext
  4669. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4670. (eval $ac_compile) 2>&5
  4671. ac_status=$?
  4672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4673. (exit $ac_status); }; then
  4674. case "`/usr/bin/file conftest.o`" in
  4675. *32-bit*)
  4676. case $host in
  4677. x86_64-*linux*)
  4678. LD="${LD-ld} -m elf_i386"
  4679. ;;
  4680. ppc64-*linux*|powerpc64-*linux*)
  4681. LD="${LD-ld} -m elf32ppclinux"
  4682. ;;
  4683. s390x-*linux*)
  4684. LD="${LD-ld} -m elf_s390"
  4685. ;;
  4686. sparc64-*linux*)
  4687. LD="${LD-ld} -m elf32_sparc"
  4688. ;;
  4689. esac
  4690. ;;
  4691. *64-bit*)
  4692. case $host in
  4693. x86_64-*linux*)
  4694. LD="${LD-ld} -m elf_x86_64"
  4695. ;;
  4696. ppc*-*linux*|powerpc*-*linux*)
  4697. LD="${LD-ld} -m elf64ppc"
  4698. ;;
  4699. s390*-*linux*)
  4700. LD="${LD-ld} -m elf64_s390"
  4701. ;;
  4702. sparc*-*linux*)
  4703. LD="${LD-ld} -m elf64_sparc"
  4704. ;;
  4705. esac
  4706. ;;
  4707. esac
  4708. fi
  4709. rm -rf conftest*
  4710. ;;
  4711. *-*-sco3.2v5*)
  4712. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4713. SAVE_CFLAGS="$CFLAGS"
  4714. CFLAGS="$CFLAGS -belf"
  4715. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4716. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  4717. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4718. echo $ECHO_N "(cached) $ECHO_C" >&6
  4719. else
  4720. ac_ext=c
  4721. ac_cpp='$CPP $CPPFLAGS'
  4722. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4723. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4724. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4725. cat >conftest.$ac_ext <<_ACEOF
  4726. /* confdefs.h. */
  4727. _ACEOF
  4728. cat confdefs.h >>conftest.$ac_ext
  4729. cat >>conftest.$ac_ext <<_ACEOF
  4730. /* end confdefs.h. */
  4731. int
  4732. main ()
  4733. {
  4734. ;
  4735. return 0;
  4736. }
  4737. _ACEOF
  4738. rm -f conftest.$ac_objext conftest$ac_exeext
  4739. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4740. (eval $ac_link) 2>conftest.er1
  4741. ac_status=$?
  4742. grep -v '^ *+' conftest.er1 >conftest.err
  4743. rm -f conftest.er1
  4744. cat conftest.err >&5
  4745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4746. (exit $ac_status); } &&
  4747. { ac_try='test -z "$ac_c_werror_flag"
  4748. || test ! -s conftest.err'
  4749. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4750. (eval $ac_try) 2>&5
  4751. ac_status=$?
  4752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4753. (exit $ac_status); }; } &&
  4754. { ac_try='test -s conftest$ac_exeext'
  4755. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4756. (eval $ac_try) 2>&5
  4757. ac_status=$?
  4758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4759. (exit $ac_status); }; }; then
  4760. lt_cv_cc_needs_belf=yes
  4761. else
  4762. echo "$as_me: failed program was:" >&5
  4763. sed 's/^/| /' conftest.$ac_ext >&5
  4764. lt_cv_cc_needs_belf=no
  4765. fi
  4766. rm -f conftest.err conftest.$ac_objext \
  4767. conftest$ac_exeext conftest.$ac_ext
  4768. ac_ext=c
  4769. ac_cpp='$CPP $CPPFLAGS'
  4770. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4771. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4772. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4773. fi
  4774. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4775. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  4776. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4777. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4778. CFLAGS="$SAVE_CFLAGS"
  4779. fi
  4780. ;;
  4781. esac
  4782. need_locks="$enable_libtool_lock"
  4783. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4784. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4785. if test "${ac_cv_header_stdc+set}" = set; then
  4786. echo $ECHO_N "(cached) $ECHO_C" >&6
  4787. else
  4788. cat >conftest.$ac_ext <<_ACEOF
  4789. /* confdefs.h. */
  4790. _ACEOF
  4791. cat confdefs.h >>conftest.$ac_ext
  4792. cat >>conftest.$ac_ext <<_ACEOF
  4793. /* end confdefs.h. */
  4794. #include <stdlib.h>
  4795. #include <stdarg.h>
  4796. #include <string.h>
  4797. #include <float.h>
  4798. int
  4799. main ()
  4800. {
  4801. ;
  4802. return 0;
  4803. }
  4804. _ACEOF
  4805. rm -f conftest.$ac_objext
  4806. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4807. (eval $ac_compile) 2>conftest.er1
  4808. ac_status=$?
  4809. grep -v '^ *+' conftest.er1 >conftest.err
  4810. rm -f conftest.er1
  4811. cat conftest.err >&5
  4812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4813. (exit $ac_status); } &&
  4814. { ac_try='test -z "$ac_c_werror_flag"
  4815. || test ! -s conftest.err'
  4816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4817. (eval $ac_try) 2>&5
  4818. ac_status=$?
  4819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4820. (exit $ac_status); }; } &&
  4821. { ac_try='test -s conftest.$ac_objext'
  4822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4823. (eval $ac_try) 2>&5
  4824. ac_status=$?
  4825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4826. (exit $ac_status); }; }; then
  4827. ac_cv_header_stdc=yes
  4828. else
  4829. echo "$as_me: failed program was:" >&5
  4830. sed 's/^/| /' conftest.$ac_ext >&5
  4831. ac_cv_header_stdc=no
  4832. fi
  4833. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4834. if test $ac_cv_header_stdc = yes; then
  4835. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4836. cat >conftest.$ac_ext <<_ACEOF
  4837. /* confdefs.h. */
  4838. _ACEOF
  4839. cat confdefs.h >>conftest.$ac_ext
  4840. cat >>conftest.$ac_ext <<_ACEOF
  4841. /* end confdefs.h. */
  4842. #include <string.h>
  4843. _ACEOF
  4844. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4845. $EGREP "memchr" >/dev/null 2>&1; then
  4846. :
  4847. else
  4848. ac_cv_header_stdc=no
  4849. fi
  4850. rm -f conftest*
  4851. fi
  4852. if test $ac_cv_header_stdc = yes; then
  4853. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4854. cat >conftest.$ac_ext <<_ACEOF
  4855. /* confdefs.h. */
  4856. _ACEOF
  4857. cat confdefs.h >>conftest.$ac_ext
  4858. cat >>conftest.$ac_ext <<_ACEOF
  4859. /* end confdefs.h. */
  4860. #include <stdlib.h>
  4861. _ACEOF
  4862. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4863. $EGREP "free" >/dev/null 2>&1; then
  4864. :
  4865. else
  4866. ac_cv_header_stdc=no
  4867. fi
  4868. rm -f conftest*
  4869. fi
  4870. if test $ac_cv_header_stdc = yes; then
  4871. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4872. if test "$cross_compiling" = yes; then
  4873. :
  4874. else
  4875. cat >conftest.$ac_ext <<_ACEOF
  4876. /* confdefs.h. */
  4877. _ACEOF
  4878. cat confdefs.h >>conftest.$ac_ext
  4879. cat >>conftest.$ac_ext <<_ACEOF
  4880. /* end confdefs.h. */
  4881. #include <ctype.h>
  4882. #if ((' ' & 0x0FF) == 0x020)
  4883. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4884. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4885. #else
  4886. # define ISLOWER(c) \
  4887. (('a' <= (c) && (c) <= 'i') \
  4888. || ('j' <= (c) && (c) <= 'r') \
  4889. || ('s' <= (c) && (c) <= 'z'))
  4890. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4891. #endif
  4892. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4893. int
  4894. main ()
  4895. {
  4896. int i;
  4897. for (i = 0; i < 256; i++)
  4898. if (XOR (islower (i), ISLOWER (i))
  4899. || toupper (i) != TOUPPER (i))
  4900. exit(2);
  4901. exit (0);
  4902. }
  4903. _ACEOF
  4904. rm -f conftest$ac_exeext
  4905. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4906. (eval $ac_link) 2>&5
  4907. ac_status=$?
  4908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4909. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4911. (eval $ac_try) 2>&5
  4912. ac_status=$?
  4913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4914. (exit $ac_status); }; }; then
  4915. :
  4916. else
  4917. echo "$as_me: program exited with status $ac_status" >&5
  4918. echo "$as_me: failed program was:" >&5
  4919. sed 's/^/| /' conftest.$ac_ext >&5
  4920. ( exit $ac_status )
  4921. ac_cv_header_stdc=no
  4922. fi
  4923. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4924. fi
  4925. fi
  4926. fi
  4927. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4928. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4929. if test $ac_cv_header_stdc = yes; then
  4930. cat >>confdefs.h <<\_ACEOF
  4931. #define STDC_HEADERS 1
  4932. _ACEOF
  4933. fi
  4934. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4935. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4936. inttypes.h stdint.h unistd.h
  4937. do
  4938. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4939. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4940. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4941. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4942. echo $ECHO_N "(cached) $ECHO_C" >&6
  4943. else
  4944. cat >conftest.$ac_ext <<_ACEOF
  4945. /* confdefs.h. */
  4946. _ACEOF
  4947. cat confdefs.h >>conftest.$ac_ext
  4948. cat >>conftest.$ac_ext <<_ACEOF
  4949. /* end confdefs.h. */
  4950. $ac_includes_default
  4951. #include <$ac_header>
  4952. _ACEOF
  4953. rm -f conftest.$ac_objext
  4954. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4955. (eval $ac_compile) 2>conftest.er1
  4956. ac_status=$?
  4957. grep -v '^ *+' conftest.er1 >conftest.err
  4958. rm -f conftest.er1
  4959. cat conftest.err >&5
  4960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4961. (exit $ac_status); } &&
  4962. { ac_try='test -z "$ac_c_werror_flag"
  4963. || test ! -s conftest.err'
  4964. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4965. (eval $ac_try) 2>&5
  4966. ac_status=$?
  4967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4968. (exit $ac_status); }; } &&
  4969. { ac_try='test -s conftest.$ac_objext'
  4970. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4971. (eval $ac_try) 2>&5
  4972. ac_status=$?
  4973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4974. (exit $ac_status); }; }; then
  4975. eval "$as_ac_Header=yes"
  4976. else
  4977. echo "$as_me: failed program was:" >&5
  4978. sed 's/^/| /' conftest.$ac_ext >&5
  4979. eval "$as_ac_Header=no"
  4980. fi
  4981. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4982. fi
  4983. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4984. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4985. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4986. cat >>confdefs.h <<_ACEOF
  4987. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4988. _ACEOF
  4989. fi
  4990. done
  4991. for ac_header in dlfcn.h
  4992. do
  4993. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4994. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4995. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4996. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4997. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4998. echo $ECHO_N "(cached) $ECHO_C" >&6
  4999. fi
  5000. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5001. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5002. else
  5003. # Is the header compilable?
  5004. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5005. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5006. cat >conftest.$ac_ext <<_ACEOF
  5007. /* confdefs.h. */
  5008. _ACEOF
  5009. cat confdefs.h >>conftest.$ac_ext
  5010. cat >>conftest.$ac_ext <<_ACEOF
  5011. /* end confdefs.h. */
  5012. $ac_includes_default
  5013. #include <$ac_header>
  5014. _ACEOF
  5015. rm -f conftest.$ac_objext
  5016. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5017. (eval $ac_compile) 2>conftest.er1
  5018. ac_status=$?
  5019. grep -v '^ *+' conftest.er1 >conftest.err
  5020. rm -f conftest.er1
  5021. cat conftest.err >&5
  5022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5023. (exit $ac_status); } &&
  5024. { ac_try='test -z "$ac_c_werror_flag"
  5025. || test ! -s conftest.err'
  5026. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5027. (eval $ac_try) 2>&5
  5028. ac_status=$?
  5029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5030. (exit $ac_status); }; } &&
  5031. { ac_try='test -s conftest.$ac_objext'
  5032. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5033. (eval $ac_try) 2>&5
  5034. ac_status=$?
  5035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5036. (exit $ac_status); }; }; then
  5037. ac_header_compiler=yes
  5038. else
  5039. echo "$as_me: failed program was:" >&5
  5040. sed 's/^/| /' conftest.$ac_ext >&5
  5041. ac_header_compiler=no
  5042. fi
  5043. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5044. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5045. echo "${ECHO_T}$ac_header_compiler" >&6
  5046. # Is the header present?
  5047. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5048. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5049. cat >conftest.$ac_ext <<_ACEOF
  5050. /* confdefs.h. */
  5051. _ACEOF
  5052. cat confdefs.h >>conftest.$ac_ext
  5053. cat >>conftest.$ac_ext <<_ACEOF
  5054. /* end confdefs.h. */
  5055. #include <$ac_header>
  5056. _ACEOF
  5057. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5058. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5059. ac_status=$?
  5060. grep -v '^ *+' conftest.er1 >conftest.err
  5061. rm -f conftest.er1
  5062. cat conftest.err >&5
  5063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5064. (exit $ac_status); } >/dev/null; then
  5065. if test -s conftest.err; then
  5066. ac_cpp_err=$ac_c_preproc_warn_flag
  5067. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5068. else
  5069. ac_cpp_err=
  5070. fi
  5071. else
  5072. ac_cpp_err=yes
  5073. fi
  5074. if test -z "$ac_cpp_err"; then
  5075. ac_header_preproc=yes
  5076. else
  5077. echo "$as_me: failed program was:" >&5
  5078. sed 's/^/| /' conftest.$ac_ext >&5
  5079. ac_header_preproc=no
  5080. fi
  5081. rm -f conftest.err conftest.$ac_ext
  5082. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5083. echo "${ECHO_T}$ac_header_preproc" >&6
  5084. # So? What about this header?
  5085. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5086. yes:no: )
  5087. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5088. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5089. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5090. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5091. ac_header_preproc=yes
  5092. ;;
  5093. no:yes:* )
  5094. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5095. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5096. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5097. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5098. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5099. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5100. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5101. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5102. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5103. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5104. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5105. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5106. (
  5107. cat <<\_ASBOX
  5108. ## ------------------------------------------ ##
  5109. ## Report this to andrei.nigmatulin@gmail.com ##
  5110. ## ------------------------------------------ ##
  5111. _ASBOX
  5112. ) |
  5113. sed "s/^/$as_me: WARNING: /" >&2
  5114. ;;
  5115. esac
  5116. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5117. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5118. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5119. echo $ECHO_N "(cached) $ECHO_C" >&6
  5120. else
  5121. eval "$as_ac_Header=\$ac_header_preproc"
  5122. fi
  5123. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5124. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5125. fi
  5126. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5127. cat >>confdefs.h <<_ACEOF
  5128. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5129. _ACEOF
  5130. fi
  5131. done
  5132. ac_ext=cc
  5133. ac_cpp='$CXXCPP $CPPFLAGS'
  5134. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5135. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5136. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5137. if test -n "$ac_tool_prefix"; then
  5138. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  5139. do
  5140. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5141. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5142. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5143. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5144. if test "${ac_cv_prog_CXX+set}" = set; then
  5145. echo $ECHO_N "(cached) $ECHO_C" >&6
  5146. else
  5147. if test -n "$CXX"; then
  5148. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  5149. else
  5150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5151. for as_dir in $PATH
  5152. do
  5153. IFS=$as_save_IFS
  5154. test -z "$as_dir" && as_dir=.
  5155. for ac_exec_ext in '' $ac_executable_extensions; do
  5156. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5157. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  5158. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5159. break 2
  5160. fi
  5161. done
  5162. done
  5163. fi
  5164. fi
  5165. CXX=$ac_cv_prog_CXX
  5166. if test -n "$CXX"; then
  5167. echo "$as_me:$LINENO: result: $CXX" >&5
  5168. echo "${ECHO_T}$CXX" >&6
  5169. else
  5170. echo "$as_me:$LINENO: result: no" >&5
  5171. echo "${ECHO_T}no" >&6
  5172. fi
  5173. test -n "$CXX" && break
  5174. done
  5175. fi
  5176. if test -z "$CXX"; then
  5177. ac_ct_CXX=$CXX
  5178. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  5179. do
  5180. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5181. set dummy $ac_prog; ac_word=$2
  5182. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5183. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5184. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  5185. echo $ECHO_N "(cached) $ECHO_C" >&6
  5186. else
  5187. if test -n "$ac_ct_CXX"; then
  5188. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  5189. else
  5190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5191. for as_dir in $PATH
  5192. do
  5193. IFS=$as_save_IFS
  5194. test -z "$as_dir" && as_dir=.
  5195. for ac_exec_ext in '' $ac_executable_extensions; do
  5196. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5197. ac_cv_prog_ac_ct_CXX="$ac_prog"
  5198. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5199. break 2
  5200. fi
  5201. done
  5202. done
  5203. fi
  5204. fi
  5205. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5206. if test -n "$ac_ct_CXX"; then
  5207. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  5208. echo "${ECHO_T}$ac_ct_CXX" >&6
  5209. else
  5210. echo "$as_me:$LINENO: result: no" >&5
  5211. echo "${ECHO_T}no" >&6
  5212. fi
  5213. test -n "$ac_ct_CXX" && break
  5214. done
  5215. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  5216. CXX=$ac_ct_CXX
  5217. fi
  5218. # Provide some information about the compiler.
  5219. echo "$as_me:$LINENO:" \
  5220. "checking for C++ compiler version" >&5
  5221. ac_compiler=`set X $ac_compile; echo $2`
  5222. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  5223. (eval $ac_compiler --version </dev/null >&5) 2>&5
  5224. ac_status=$?
  5225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5226. (exit $ac_status); }
  5227. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  5228. (eval $ac_compiler -v </dev/null >&5) 2>&5
  5229. ac_status=$?
  5230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5231. (exit $ac_status); }
  5232. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  5233. (eval $ac_compiler -V </dev/null >&5) 2>&5
  5234. ac_status=$?
  5235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5236. (exit $ac_status); }
  5237. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  5238. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  5239. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  5240. echo $ECHO_N "(cached) $ECHO_C" >&6
  5241. else
  5242. cat >conftest.$ac_ext <<_ACEOF
  5243. /* confdefs.h. */
  5244. _ACEOF
  5245. cat confdefs.h >>conftest.$ac_ext
  5246. cat >>conftest.$ac_ext <<_ACEOF
  5247. /* end confdefs.h. */
  5248. int
  5249. main ()
  5250. {
  5251. #ifndef __GNUC__
  5252. choke me
  5253. #endif
  5254. ;
  5255. return 0;
  5256. }
  5257. _ACEOF
  5258. rm -f conftest.$ac_objext
  5259. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5260. (eval $ac_compile) 2>conftest.er1
  5261. ac_status=$?
  5262. grep -v '^ *+' conftest.er1 >conftest.err
  5263. rm -f conftest.er1
  5264. cat conftest.err >&5
  5265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5266. (exit $ac_status); } &&
  5267. { ac_try='test -z "$ac_cxx_werror_flag"
  5268. || test ! -s conftest.err'
  5269. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5270. (eval $ac_try) 2>&5
  5271. ac_status=$?
  5272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5273. (exit $ac_status); }; } &&
  5274. { ac_try='test -s conftest.$ac_objext'
  5275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5276. (eval $ac_try) 2>&5
  5277. ac_status=$?
  5278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5279. (exit $ac_status); }; }; then
  5280. ac_compiler_gnu=yes
  5281. else
  5282. echo "$as_me: failed program was:" >&5
  5283. sed 's/^/| /' conftest.$ac_ext >&5
  5284. ac_compiler_gnu=no
  5285. fi
  5286. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5287. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5288. fi
  5289. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  5290. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  5291. GXX=`test $ac_compiler_gnu = yes && echo yes`
  5292. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5293. ac_save_CXXFLAGS=$CXXFLAGS
  5294. CXXFLAGS="-g"
  5295. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  5296. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  5297. if test "${ac_cv_prog_cxx_g+set}" = set; then
  5298. echo $ECHO_N "(cached) $ECHO_C" >&6
  5299. else
  5300. cat >conftest.$ac_ext <<_ACEOF
  5301. /* confdefs.h. */
  5302. _ACEOF
  5303. cat confdefs.h >>conftest.$ac_ext
  5304. cat >>conftest.$ac_ext <<_ACEOF
  5305. /* end confdefs.h. */
  5306. int
  5307. main ()
  5308. {
  5309. ;
  5310. return 0;
  5311. }
  5312. _ACEOF
  5313. rm -f conftest.$ac_objext
  5314. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5315. (eval $ac_compile) 2>conftest.er1
  5316. ac_status=$?
  5317. grep -v '^ *+' conftest.er1 >conftest.err
  5318. rm -f conftest.er1
  5319. cat conftest.err >&5
  5320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5321. (exit $ac_status); } &&
  5322. { ac_try='test -z "$ac_cxx_werror_flag"
  5323. || test ! -s conftest.err'
  5324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5325. (eval $ac_try) 2>&5
  5326. ac_status=$?
  5327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5328. (exit $ac_status); }; } &&
  5329. { ac_try='test -s conftest.$ac_objext'
  5330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5331. (eval $ac_try) 2>&5
  5332. ac_status=$?
  5333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5334. (exit $ac_status); }; }; then
  5335. ac_cv_prog_cxx_g=yes
  5336. else
  5337. echo "$as_me: failed program was:" >&5
  5338. sed 's/^/| /' conftest.$ac_ext >&5
  5339. ac_cv_prog_cxx_g=no
  5340. fi
  5341. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5342. fi
  5343. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  5344. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  5345. if test "$ac_test_CXXFLAGS" = set; then
  5346. CXXFLAGS=$ac_save_CXXFLAGS
  5347. elif test $ac_cv_prog_cxx_g = yes; then
  5348. if test "$GXX" = yes; then
  5349. CXXFLAGS="-g -O2"
  5350. else
  5351. CXXFLAGS="-g"
  5352. fi
  5353. else
  5354. if test "$GXX" = yes; then
  5355. CXXFLAGS="-O2"
  5356. else
  5357. CXXFLAGS=
  5358. fi
  5359. fi
  5360. for ac_declaration in \
  5361. '' \
  5362. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  5363. 'extern "C" void std::exit (int); using std::exit;' \
  5364. 'extern "C" void exit (int) throw ();' \
  5365. 'extern "C" void exit (int);' \
  5366. 'void exit (int);'
  5367. do
  5368. cat >conftest.$ac_ext <<_ACEOF
  5369. /* confdefs.h. */
  5370. _ACEOF
  5371. cat confdefs.h >>conftest.$ac_ext
  5372. cat >>conftest.$ac_ext <<_ACEOF
  5373. /* end confdefs.h. */
  5374. $ac_declaration
  5375. #include <stdlib.h>
  5376. int
  5377. main ()
  5378. {
  5379. exit (42);
  5380. ;
  5381. return 0;
  5382. }
  5383. _ACEOF
  5384. rm -f conftest.$ac_objext
  5385. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5386. (eval $ac_compile) 2>conftest.er1
  5387. ac_status=$?
  5388. grep -v '^ *+' conftest.er1 >conftest.err
  5389. rm -f conftest.er1
  5390. cat conftest.err >&5
  5391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5392. (exit $ac_status); } &&
  5393. { ac_try='test -z "$ac_cxx_werror_flag"
  5394. || test ! -s conftest.err'
  5395. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5396. (eval $ac_try) 2>&5
  5397. ac_status=$?
  5398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5399. (exit $ac_status); }; } &&
  5400. { ac_try='test -s conftest.$ac_objext'
  5401. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5402. (eval $ac_try) 2>&5
  5403. ac_status=$?
  5404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5405. (exit $ac_status); }; }; then
  5406. :
  5407. else
  5408. echo "$as_me: failed program was:" >&5
  5409. sed 's/^/| /' conftest.$ac_ext >&5
  5410. continue
  5411. fi
  5412. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5413. cat >conftest.$ac_ext <<_ACEOF
  5414. /* confdefs.h. */
  5415. _ACEOF
  5416. cat confdefs.h >>conftest.$ac_ext
  5417. cat >>conftest.$ac_ext <<_ACEOF
  5418. /* end confdefs.h. */
  5419. $ac_declaration
  5420. int
  5421. main ()
  5422. {
  5423. exit (42);
  5424. ;
  5425. return 0;
  5426. }
  5427. _ACEOF
  5428. rm -f conftest.$ac_objext
  5429. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5430. (eval $ac_compile) 2>conftest.er1
  5431. ac_status=$?
  5432. grep -v '^ *+' conftest.er1 >conftest.err
  5433. rm -f conftest.er1
  5434. cat conftest.err >&5
  5435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5436. (exit $ac_status); } &&
  5437. { ac_try='test -z "$ac_cxx_werror_flag"
  5438. || test ! -s conftest.err'
  5439. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5440. (eval $ac_try) 2>&5
  5441. ac_status=$?
  5442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5443. (exit $ac_status); }; } &&
  5444. { ac_try='test -s conftest.$ac_objext'
  5445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5446. (eval $ac_try) 2>&5
  5447. ac_status=$?
  5448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5449. (exit $ac_status); }; }; then
  5450. break
  5451. else
  5452. echo "$as_me: failed program was:" >&5
  5453. sed 's/^/| /' conftest.$ac_ext >&5
  5454. fi
  5455. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5456. done
  5457. rm -f conftest*
  5458. if test -n "$ac_declaration"; then
  5459. echo '#ifdef __cplusplus' >>confdefs.h
  5460. echo $ac_declaration >>confdefs.h
  5461. echo '#endif' >>confdefs.h
  5462. fi
  5463. ac_ext=cc
  5464. ac_cpp='$CXXCPP $CPPFLAGS'
  5465. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5466. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5467. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5468. depcc="$CXX" am_compiler_list=
  5469. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5470. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  5471. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  5472. echo $ECHO_N "(cached) $ECHO_C" >&6
  5473. else
  5474. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5475. # We make a subdir and do the tests there. Otherwise we can end up
  5476. # making bogus files that we don't know about and never remove. For
  5477. # instance it was reported that on HP-UX the gcc test will end up
  5478. # making a dummy file named `D' -- because `-MD' means `put the output
  5479. # in D'.
  5480. mkdir conftest.dir
  5481. # Copy depcomp to subdir because otherwise we won't find it if we're
  5482. # using a relative directory.
  5483. cp "$am_depcomp" conftest.dir
  5484. cd conftest.dir
  5485. # We will build objects and dependencies in a subdirectory because
  5486. # it helps to detect inapplicable dependency modes. For instance
  5487. # both Tru64's cc and ICC support -MD to output dependencies as a
  5488. # side effect of compilation, but ICC will put the dependencies in
  5489. # the current directory while Tru64 will put them in the object
  5490. # directory.
  5491. mkdir sub
  5492. am_cv_CXX_dependencies_compiler_type=none
  5493. if test "$am_compiler_list" = ""; then
  5494. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5495. fi
  5496. for depmode in $am_compiler_list; do
  5497. # Setup a source with many dependencies, because some compilers
  5498. # like to wrap large dependency lists on column 80 (with \), and
  5499. # we should not choose a depcomp mode which is confused by this.
  5500. #
  5501. # We need to recreate these files for each test, as the compiler may
  5502. # overwrite some of them when testing with obscure command lines.
  5503. # This happens at least with the AIX C compiler.
  5504. : > sub/conftest.c
  5505. for i in 1 2 3 4 5 6; do
  5506. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5507. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5508. # Solaris 8's {/usr,}/bin/sh.
  5509. touch sub/conftst$i.h
  5510. done
  5511. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5512. case $depmode in
  5513. nosideeffect)
  5514. # after this tag, mechanisms are not by side-effect, so they'll
  5515. # only be used when explicitly requested
  5516. if test "x$enable_dependency_tracking" = xyes; then
  5517. continue
  5518. else
  5519. break
  5520. fi
  5521. ;;
  5522. none) break ;;
  5523. esac
  5524. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5525. # mode. It turns out that the SunPro C++ compiler does not properly
  5526. # handle `-M -o', and we need to detect this.
  5527. if depmode=$depmode \
  5528. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5529. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5530. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5531. >/dev/null 2>conftest.err &&
  5532. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5533. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5534. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5535. # icc doesn't choke on unknown options, it will just issue warnings
  5536. # or remarks (even with -Werror). So we grep stderr for any message
  5537. # that says an option was ignored or not supported.
  5538. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5539. # icc: Command line warning: ignoring option '-M'; no argument required
  5540. # The diagnosis changed in icc 8.0:
  5541. # icc: Command line remark: option '-MP' not supported
  5542. if (grep 'ignoring option' conftest.err ||
  5543. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5544. am_cv_CXX_dependencies_compiler_type=$depmode
  5545. break
  5546. fi
  5547. fi
  5548. done
  5549. cd ..
  5550. rm -rf conftest.dir
  5551. else
  5552. am_cv_CXX_dependencies_compiler_type=none
  5553. fi
  5554. fi
  5555. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5556. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  5557. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5558. if
  5559. test "x$enable_dependency_tracking" != xno \
  5560. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5561. am__fastdepCXX_TRUE=
  5562. am__fastdepCXX_FALSE='#'
  5563. else
  5564. am__fastdepCXX_TRUE='#'
  5565. am__fastdepCXX_FALSE=
  5566. fi
  5567. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5568. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5569. (test "X$CXX" != "Xg++"))) ; then
  5570. ac_ext=cc
  5571. ac_cpp='$CXXCPP $CPPFLAGS'
  5572. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5573. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5574. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5575. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5576. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  5577. if test -z "$CXXCPP"; then
  5578. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5579. echo $ECHO_N "(cached) $ECHO_C" >&6
  5580. else
  5581. # Double quotes because CXXCPP needs to be expanded
  5582. for CXXCPP in "$CXX -E" "/lib/cpp"
  5583. do
  5584. ac_preproc_ok=false
  5585. for ac_cxx_preproc_warn_flag in '' yes
  5586. do
  5587. # Use a header file that comes with gcc, so configuring glibc
  5588. # with a fresh cross-compiler works.
  5589. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5590. # <limits.h> exists even on freestanding compilers.
  5591. # On the NeXT, cc -E runs the code through the compiler's parser,
  5592. # not just through cpp. "Syntax error" is here to catch this case.
  5593. cat >conftest.$ac_ext <<_ACEOF
  5594. /* confdefs.h. */
  5595. _ACEOF
  5596. cat confdefs.h >>conftest.$ac_ext
  5597. cat >>conftest.$ac_ext <<_ACEOF
  5598. /* end confdefs.h. */
  5599. #ifdef __STDC__
  5600. # include <limits.h>
  5601. #else
  5602. # include <assert.h>
  5603. #endif
  5604. Syntax error
  5605. _ACEOF
  5606. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5607. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5608. ac_status=$?
  5609. grep -v '^ *+' conftest.er1 >conftest.err
  5610. rm -f conftest.er1
  5611. cat conftest.err >&5
  5612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5613. (exit $ac_status); } >/dev/null; then
  5614. if test -s conftest.err; then
  5615. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5616. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5617. else
  5618. ac_cpp_err=
  5619. fi
  5620. else
  5621. ac_cpp_err=yes
  5622. fi
  5623. if test -z "$ac_cpp_err"; then
  5624. :
  5625. else
  5626. echo "$as_me: failed program was:" >&5
  5627. sed 's/^/| /' conftest.$ac_ext >&5
  5628. # Broken: fails on valid input.
  5629. continue
  5630. fi
  5631. rm -f conftest.err conftest.$ac_ext
  5632. # OK, works on sane cases. Now check whether non-existent headers
  5633. # can be detected and how.
  5634. cat >conftest.$ac_ext <<_ACEOF
  5635. /* confdefs.h. */
  5636. _ACEOF
  5637. cat confdefs.h >>conftest.$ac_ext
  5638. cat >>conftest.$ac_ext <<_ACEOF
  5639. /* end confdefs.h. */
  5640. #include <ac_nonexistent.h>
  5641. _ACEOF
  5642. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5643. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5644. ac_status=$?
  5645. grep -v '^ *+' conftest.er1 >conftest.err
  5646. rm -f conftest.er1
  5647. cat conftest.err >&5
  5648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5649. (exit $ac_status); } >/dev/null; then
  5650. if test -s conftest.err; then
  5651. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5652. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5653. else
  5654. ac_cpp_err=
  5655. fi
  5656. else
  5657. ac_cpp_err=yes
  5658. fi
  5659. if test -z "$ac_cpp_err"; then
  5660. # Broken: success on invalid input.
  5661. continue
  5662. else
  5663. echo "$as_me: failed program was:" >&5
  5664. sed 's/^/| /' conftest.$ac_ext >&5
  5665. # Passes both tests.
  5666. ac_preproc_ok=:
  5667. break
  5668. fi
  5669. rm -f conftest.err conftest.$ac_ext
  5670. done
  5671. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5672. rm -f conftest.err conftest.$ac_ext
  5673. if $ac_preproc_ok; then
  5674. break
  5675. fi
  5676. done
  5677. ac_cv_prog_CXXCPP=$CXXCPP
  5678. fi
  5679. CXXCPP=$ac_cv_prog_CXXCPP
  5680. else
  5681. ac_cv_prog_CXXCPP=$CXXCPP
  5682. fi
  5683. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5684. echo "${ECHO_T}$CXXCPP" >&6
  5685. ac_preproc_ok=false
  5686. for ac_cxx_preproc_warn_flag in '' yes
  5687. do
  5688. # Use a header file that comes with gcc, so configuring glibc
  5689. # with a fresh cross-compiler works.
  5690. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5691. # <limits.h> exists even on freestanding compilers.
  5692. # On the NeXT, cc -E runs the code through the compiler's parser,
  5693. # not just through cpp. "Syntax error" is here to catch this case.
  5694. cat >conftest.$ac_ext <<_ACEOF
  5695. /* confdefs.h. */
  5696. _ACEOF
  5697. cat confdefs.h >>conftest.$ac_ext
  5698. cat >>conftest.$ac_ext <<_ACEOF
  5699. /* end confdefs.h. */
  5700. #ifdef __STDC__
  5701. # include <limits.h>
  5702. #else
  5703. # include <assert.h>
  5704. #endif
  5705. Syntax error
  5706. _ACEOF
  5707. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5708. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5709. ac_status=$?
  5710. grep -v '^ *+' conftest.er1 >conftest.err
  5711. rm -f conftest.er1
  5712. cat conftest.err >&5
  5713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5714. (exit $ac_status); } >/dev/null; then
  5715. if test -s conftest.err; then
  5716. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5717. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5718. else
  5719. ac_cpp_err=
  5720. fi
  5721. else
  5722. ac_cpp_err=yes
  5723. fi
  5724. if test -z "$ac_cpp_err"; then
  5725. :
  5726. else
  5727. echo "$as_me: failed program was:" >&5
  5728. sed 's/^/| /' conftest.$ac_ext >&5
  5729. # Broken: fails on valid input.
  5730. continue
  5731. fi
  5732. rm -f conftest.err conftest.$ac_ext
  5733. # OK, works on sane cases. Now check whether non-existent headers
  5734. # can be detected and how.
  5735. cat >conftest.$ac_ext <<_ACEOF
  5736. /* confdefs.h. */
  5737. _ACEOF
  5738. cat confdefs.h >>conftest.$ac_ext
  5739. cat >>conftest.$ac_ext <<_ACEOF
  5740. /* end confdefs.h. */
  5741. #include <ac_nonexistent.h>
  5742. _ACEOF
  5743. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5744. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5745. ac_status=$?
  5746. grep -v '^ *+' conftest.er1 >conftest.err
  5747. rm -f conftest.er1
  5748. cat conftest.err >&5
  5749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5750. (exit $ac_status); } >/dev/null; then
  5751. if test -s conftest.err; then
  5752. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5753. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5754. else
  5755. ac_cpp_err=
  5756. fi
  5757. else
  5758. ac_cpp_err=yes
  5759. fi
  5760. if test -z "$ac_cpp_err"; then
  5761. # Broken: success on invalid input.
  5762. continue
  5763. else
  5764. echo "$as_me: failed program was:" >&5
  5765. sed 's/^/| /' conftest.$ac_ext >&5
  5766. # Passes both tests.
  5767. ac_preproc_ok=:
  5768. break
  5769. fi
  5770. rm -f conftest.err conftest.$ac_ext
  5771. done
  5772. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5773. rm -f conftest.err conftest.$ac_ext
  5774. if $ac_preproc_ok; then
  5775. :
  5776. else
  5777. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5778. See \`config.log' for more details." >&5
  5779. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5780. See \`config.log' for more details." >&2;}
  5781. { (exit 1); exit 1; }; }
  5782. fi
  5783. ac_ext=cc
  5784. ac_cpp='$CXXCPP $CPPFLAGS'
  5785. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5786. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5787. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5788. fi
  5789. ac_ext=f
  5790. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5791. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5792. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5793. if test -n "$ac_tool_prefix"; then
  5794. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  5795. do
  5796. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5797. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5798. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5799. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5800. if test "${ac_cv_prog_F77+set}" = set; then
  5801. echo $ECHO_N "(cached) $ECHO_C" >&6
  5802. else
  5803. if test -n "$F77"; then
  5804. ac_cv_prog_F77="$F77" # Let the user override the test.
  5805. else
  5806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5807. for as_dir in $PATH
  5808. do
  5809. IFS=$as_save_IFS
  5810. test -z "$as_dir" && as_dir=.
  5811. for ac_exec_ext in '' $ac_executable_extensions; do
  5812. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5813. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5814. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5815. break 2
  5816. fi
  5817. done
  5818. done
  5819. fi
  5820. fi
  5821. F77=$ac_cv_prog_F77
  5822. if test -n "$F77"; then
  5823. echo "$as_me:$LINENO: result: $F77" >&5
  5824. echo "${ECHO_T}$F77" >&6
  5825. else
  5826. echo "$as_me:$LINENO: result: no" >&5
  5827. echo "${ECHO_T}no" >&6
  5828. fi
  5829. test -n "$F77" && break
  5830. done
  5831. fi
  5832. if test -z "$F77"; then
  5833. ac_ct_F77=$F77
  5834. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  5835. do
  5836. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5837. set dummy $ac_prog; ac_word=$2
  5838. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5839. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5840. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5841. echo $ECHO_N "(cached) $ECHO_C" >&6
  5842. else
  5843. if test -n "$ac_ct_F77"; then
  5844. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5845. else
  5846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5847. for as_dir in $PATH
  5848. do
  5849. IFS=$as_save_IFS
  5850. test -z "$as_dir" && as_dir=.
  5851. for ac_exec_ext in '' $ac_executable_extensions; do
  5852. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5853. ac_cv_prog_ac_ct_F77="$ac_prog"
  5854. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5855. break 2
  5856. fi
  5857. done
  5858. done
  5859. fi
  5860. fi
  5861. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5862. if test -n "$ac_ct_F77"; then
  5863. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5864. echo "${ECHO_T}$ac_ct_F77" >&6
  5865. else
  5866. echo "$as_me:$LINENO: result: no" >&5
  5867. echo "${ECHO_T}no" >&6
  5868. fi
  5869. test -n "$ac_ct_F77" && break
  5870. done
  5871. F77=$ac_ct_F77
  5872. fi
  5873. # Provide some information about the compiler.
  5874. echo "$as_me:6441:" \
  5875. "checking for Fortran 77 compiler version" >&5
  5876. ac_compiler=`set X $ac_compile; echo $2`
  5877. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  5878. (eval $ac_compiler --version </dev/null >&5) 2>&5
  5879. ac_status=$?
  5880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5881. (exit $ac_status); }
  5882. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  5883. (eval $ac_compiler -v </dev/null >&5) 2>&5
  5884. ac_status=$?
  5885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5886. (exit $ac_status); }
  5887. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  5888. (eval $ac_compiler -V </dev/null >&5) 2>&5
  5889. ac_status=$?
  5890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5891. (exit $ac_status); }
  5892. rm -f a.out
  5893. # If we don't use `.F' as extension, the preprocessor is not run on the
  5894. # input file. (Note that this only needs to work for GNU compilers.)
  5895. ac_save_ext=$ac_ext
  5896. ac_ext=F
  5897. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5898. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  5899. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5900. echo $ECHO_N "(cached) $ECHO_C" >&6
  5901. else
  5902. cat >conftest.$ac_ext <<_ACEOF
  5903. program main
  5904. #ifndef __GNUC__
  5905. choke me
  5906. #endif
  5907. end
  5908. _ACEOF
  5909. rm -f conftest.$ac_objext
  5910. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5911. (eval $ac_compile) 2>conftest.er1
  5912. ac_status=$?
  5913. grep -v '^ *+' conftest.er1 >conftest.err
  5914. rm -f conftest.er1
  5915. cat conftest.err >&5
  5916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5917. (exit $ac_status); } &&
  5918. { ac_try='test -z "$ac_f77_werror_flag"
  5919. || test ! -s conftest.err'
  5920. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5921. (eval $ac_try) 2>&5
  5922. ac_status=$?
  5923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5924. (exit $ac_status); }; } &&
  5925. { ac_try='test -s conftest.$ac_objext'
  5926. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5927. (eval $ac_try) 2>&5
  5928. ac_status=$?
  5929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5930. (exit $ac_status); }; }; then
  5931. ac_compiler_gnu=yes
  5932. else
  5933. echo "$as_me: failed program was:" >&5
  5934. sed 's/^/| /' conftest.$ac_ext >&5
  5935. ac_compiler_gnu=no
  5936. fi
  5937. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5938. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5939. fi
  5940. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5941. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  5942. ac_ext=$ac_save_ext
  5943. ac_test_FFLAGS=${FFLAGS+set}
  5944. ac_save_FFLAGS=$FFLAGS
  5945. FFLAGS=
  5946. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5947. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  5948. if test "${ac_cv_prog_f77_g+set}" = set; then
  5949. echo $ECHO_N "(cached) $ECHO_C" >&6
  5950. else
  5951. FFLAGS=-g
  5952. cat >conftest.$ac_ext <<_ACEOF
  5953. program main
  5954. end
  5955. _ACEOF
  5956. rm -f conftest.$ac_objext
  5957. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5958. (eval $ac_compile) 2>conftest.er1
  5959. ac_status=$?
  5960. grep -v '^ *+' conftest.er1 >conftest.err
  5961. rm -f conftest.er1
  5962. cat conftest.err >&5
  5963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5964. (exit $ac_status); } &&
  5965. { ac_try='test -z "$ac_f77_werror_flag"
  5966. || test ! -s conftest.err'
  5967. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5968. (eval $ac_try) 2>&5
  5969. ac_status=$?
  5970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5971. (exit $ac_status); }; } &&
  5972. { ac_try='test -s conftest.$ac_objext'
  5973. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5974. (eval $ac_try) 2>&5
  5975. ac_status=$?
  5976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5977. (exit $ac_status); }; }; then
  5978. ac_cv_prog_f77_g=yes
  5979. else
  5980. echo "$as_me: failed program was:" >&5
  5981. sed 's/^/| /' conftest.$ac_ext >&5
  5982. ac_cv_prog_f77_g=no
  5983. fi
  5984. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5985. fi
  5986. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5987. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  5988. if test "$ac_test_FFLAGS" = set; then
  5989. FFLAGS=$ac_save_FFLAGS
  5990. elif test $ac_cv_prog_f77_g = yes; then
  5991. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5992. FFLAGS="-g -O2"
  5993. else
  5994. FFLAGS="-g"
  5995. fi
  5996. else
  5997. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5998. FFLAGS="-O2"
  5999. else
  6000. FFLAGS=
  6001. fi
  6002. fi
  6003. G77=`test $ac_compiler_gnu = yes && echo yes`
  6004. ac_ext=c
  6005. ac_cpp='$CPP $CPPFLAGS'
  6006. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6007. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6008. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6009. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  6010. # find the maximum length of command line arguments
  6011. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  6012. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  6013. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  6014. echo $ECHO_N "(cached) $ECHO_C" >&6
  6015. else
  6016. i=0
  6017. teststring="ABCD"
  6018. case $build_os in
  6019. msdosdjgpp*)
  6020. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6021. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6022. # during glob expansion). Even if it were fixed, the result of this
  6023. # check would be larger than it should be.
  6024. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6025. ;;
  6026. gnu*)
  6027. # Under GNU Hurd, this test is not required because there is
  6028. # no limit to the length of command line arguments.
  6029. # Libtool will interpret -1 as no limit whatsoever
  6030. lt_cv_sys_max_cmd_len=-1;
  6031. ;;
  6032. cygwin* | mingw*)
  6033. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6034. # about 5 minutes as the teststring grows exponentially.
  6035. # Worse, since 9x/ME are not pre-emptively multitasking,
  6036. # you end up with a "frozen" computer, even though with patience
  6037. # the test eventually succeeds (with a max line length of 256k).
  6038. # Instead, let's just punt: use the minimum linelength reported by
  6039. # all of the supported platforms: 8192 (on NT/2K/XP).
  6040. lt_cv_sys_max_cmd_len=8192;
  6041. ;;
  6042. amigaos*)
  6043. # On AmigaOS with pdksh, this test takes hours, literally.
  6044. # So we just punt and use a minimum line length of 8192.
  6045. lt_cv_sys_max_cmd_len=8192;
  6046. ;;
  6047. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  6048. # This has been around since 386BSD, at least. Likely further.
  6049. if test -x /sbin/sysctl; then
  6050. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6051. elif test -x /usr/sbin/sysctl; then
  6052. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6053. else
  6054. lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  6055. fi
  6056. # And add a safety zone
  6057. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6058. ;;
  6059. osf*)
  6060. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6061. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6062. # nice to cause kernel panics so lets avoid the loop below.
  6063. # First set a reasonable default.
  6064. lt_cv_sys_max_cmd_len=16384
  6065. #
  6066. if test -x /sbin/sysconfig; then
  6067. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6068. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6069. esac
  6070. fi
  6071. ;;
  6072. *)
  6073. # If test is not a shell built-in, we'll probably end up computing a
  6074. # maximum length that is only half of the actual maximum length, but
  6075. # we can't tell.
  6076. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6077. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  6078. = "XX$teststring") >/dev/null 2>&1 &&
  6079. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  6080. lt_cv_sys_max_cmd_len=$new_result &&
  6081. test $i != 17 # 1/2 MB should be enough
  6082. do
  6083. i=`expr $i + 1`
  6084. teststring=$teststring$teststring
  6085. done
  6086. teststring=
  6087. # Add a significant safety factor because C++ compilers can tack on massive
  6088. # amounts of additional arguments before passing them to the linker.
  6089. # It appears as though 1/2 is a usable value.
  6090. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6091. ;;
  6092. esac
  6093. fi
  6094. if test -n $lt_cv_sys_max_cmd_len ; then
  6095. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  6096. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  6097. else
  6098. echo "$as_me:$LINENO: result: none" >&5
  6099. echo "${ECHO_T}none" >&6
  6100. fi
  6101. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6102. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  6103. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  6104. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  6105. echo $ECHO_N "(cached) $ECHO_C" >&6
  6106. else
  6107. # These are sane defaults that work on at least a few old systems.
  6108. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6109. # Character class describing NM global symbol codes.
  6110. symcode='[BCDEGRST]'
  6111. # Regexp to match symbols that can be accessed directly from C.
  6112. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6113. # Transform an extracted symbol line into a proper C declaration
  6114. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  6115. # Transform an extracted symbol line into symbol name and symbol address
  6116. 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'"
  6117. # Define system-specific variables.
  6118. case $host_os in
  6119. aix*)
  6120. symcode='[BCDT]'
  6121. ;;
  6122. cygwin* | mingw* | pw32*)
  6123. symcode='[ABCDGISTW]'
  6124. ;;
  6125. hpux*) # Its linker distinguishes data from code symbols
  6126. if test "$host_cpu" = ia64; then
  6127. symcode='[ABCDEGRST]'
  6128. fi
  6129. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6130. 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'"
  6131. ;;
  6132. linux*)
  6133. if test "$host_cpu" = ia64; then
  6134. symcode='[ABCDGIRSTW]'
  6135. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6136. 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'"
  6137. fi
  6138. ;;
  6139. irix* | nonstopux*)
  6140. symcode='[BCDEGRST]'
  6141. ;;
  6142. osf*)
  6143. symcode='[BCDEGQRST]'
  6144. ;;
  6145. solaris* | sysv5*)
  6146. symcode='[BDRT]'
  6147. ;;
  6148. sysv4)
  6149. symcode='[DFNSTU]'
  6150. ;;
  6151. esac
  6152. # Handle CRLF in mingw tool chain
  6153. opt_cr=
  6154. case $build_os in
  6155. mingw*)
  6156. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6157. ;;
  6158. esac
  6159. # If we're using GNU nm, then use its standard symbol codes.
  6160. case `$NM -V 2>&1` in
  6161. *GNU* | *'with BFD'*)
  6162. symcode='[ABCDGIRSTW]' ;;
  6163. esac
  6164. # Try without a prefix undercore, then with it.
  6165. for ac_symprfx in "" "_"; do
  6166. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6167. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6168. # Write the raw and C identifiers.
  6169. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6170. # Check to see that the pipe works correctly.
  6171. pipe_works=no
  6172. rm -f conftest*
  6173. cat > conftest.$ac_ext <<EOF
  6174. #ifdef __cplusplus
  6175. extern "C" {
  6176. #endif
  6177. char nm_test_var;
  6178. void nm_test_func(){}
  6179. #ifdef __cplusplus
  6180. }
  6181. #endif
  6182. int main(){nm_test_var='a';nm_test_func();return(0);}
  6183. EOF
  6184. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6185. (eval $ac_compile) 2>&5
  6186. ac_status=$?
  6187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6188. (exit $ac_status); }; then
  6189. # Now try to grab the symbols.
  6190. nlist=conftest.nm
  6191. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  6192. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6193. ac_status=$?
  6194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6195. (exit $ac_status); } && test -s "$nlist"; then
  6196. # Try sorting and uniquifying the output.
  6197. if sort "$nlist" | uniq > "$nlist"T; then
  6198. mv -f "$nlist"T "$nlist"
  6199. else
  6200. rm -f "$nlist"T
  6201. fi
  6202. # Make sure that we snagged all the symbols we need.
  6203. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  6204. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  6205. cat <<EOF > conftest.$ac_ext
  6206. #ifdef __cplusplus
  6207. extern "C" {
  6208. #endif
  6209. EOF
  6210. # Now generate the symbol file.
  6211. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  6212. cat <<EOF >> conftest.$ac_ext
  6213. #if defined (__STDC__) && __STDC__
  6214. # define lt_ptr_t void *
  6215. #else
  6216. # define lt_ptr_t char *
  6217. # define const
  6218. #endif
  6219. /* The mapping between symbol names and symbols. */
  6220. const struct {
  6221. const char *name;
  6222. lt_ptr_t address;
  6223. }
  6224. lt_preloaded_symbols[] =
  6225. {
  6226. EOF
  6227. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  6228. cat <<\EOF >> conftest.$ac_ext
  6229. {0, (lt_ptr_t) 0}
  6230. };
  6231. #ifdef __cplusplus
  6232. }
  6233. #endif
  6234. EOF
  6235. # Now try linking the two files.
  6236. mv conftest.$ac_objext conftstm.$ac_objext
  6237. lt_save_LIBS="$LIBS"
  6238. lt_save_CFLAGS="$CFLAGS"
  6239. LIBS="conftstm.$ac_objext"
  6240. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6241. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6242. (eval $ac_link) 2>&5
  6243. ac_status=$?
  6244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6245. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  6246. pipe_works=yes
  6247. fi
  6248. LIBS="$lt_save_LIBS"
  6249. CFLAGS="$lt_save_CFLAGS"
  6250. else
  6251. echo "cannot find nm_test_func in $nlist" >&5
  6252. fi
  6253. else
  6254. echo "cannot find nm_test_var in $nlist" >&5
  6255. fi
  6256. else
  6257. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6258. fi
  6259. else
  6260. echo "$progname: failed program was:" >&5
  6261. cat conftest.$ac_ext >&5
  6262. fi
  6263. rm -f conftest* conftst*
  6264. # Do not use the global_symbol_pipe unless it works.
  6265. if test "$pipe_works" = yes; then
  6266. break
  6267. else
  6268. lt_cv_sys_global_symbol_pipe=
  6269. fi
  6270. done
  6271. fi
  6272. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6273. lt_cv_sys_global_symbol_to_cdecl=
  6274. fi
  6275. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6276. echo "$as_me:$LINENO: result: failed" >&5
  6277. echo "${ECHO_T}failed" >&6
  6278. else
  6279. echo "$as_me:$LINENO: result: ok" >&5
  6280. echo "${ECHO_T}ok" >&6
  6281. fi
  6282. echo "$as_me:$LINENO: checking for objdir" >&5
  6283. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  6284. if test "${lt_cv_objdir+set}" = set; then
  6285. echo $ECHO_N "(cached) $ECHO_C" >&6
  6286. else
  6287. rm -f .libs 2>/dev/null
  6288. mkdir .libs 2>/dev/null
  6289. if test -d .libs; then
  6290. lt_cv_objdir=.libs
  6291. else
  6292. # MS-DOS does not allow filenames that begin with a dot.
  6293. lt_cv_objdir=_libs
  6294. fi
  6295. rmdir .libs 2>/dev/null
  6296. fi
  6297. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6298. echo "${ECHO_T}$lt_cv_objdir" >&6
  6299. objdir=$lt_cv_objdir
  6300. case $host_os in
  6301. aix3*)
  6302. # AIX sometimes has problems with the GCC collect2 program. For some
  6303. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6304. # vanish in a puff of smoke.
  6305. if test "X${COLLECT_NAMES+set}" != Xset; then
  6306. COLLECT_NAMES=
  6307. export COLLECT_NAMES
  6308. fi
  6309. ;;
  6310. esac
  6311. # Sed substitution that helps us do robust quoting. It backslashifies
  6312. # metacharacters that are still active within double-quoted strings.
  6313. Xsed='sed -e s/^X//'
  6314. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6315. # Same as above, but do not quote variable references.
  6316. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6317. # Sed substitution to delay expansion of an escaped shell variable in a
  6318. # double_quote_subst'ed string.
  6319. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6320. # Sed substitution to avoid accidental globbing in evaled expressions
  6321. no_glob_subst='s/\*/\\\*/g'
  6322. # Constants:
  6323. rm="rm -f"
  6324. # Global variables:
  6325. default_ofile=libtool
  6326. can_build_shared=yes
  6327. # All known linkers require a `.a' archive for static linking (except M$VC,
  6328. # which needs '.lib').
  6329. libext=a
  6330. ltmain="$ac_aux_dir/ltmain.sh"
  6331. ofile="$default_ofile"
  6332. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6333. if test -n "$ac_tool_prefix"; then
  6334. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6335. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6336. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6337. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6338. if test "${ac_cv_prog_AR+set}" = set; then
  6339. echo $ECHO_N "(cached) $ECHO_C" >&6
  6340. else
  6341. if test -n "$AR"; then
  6342. ac_cv_prog_AR="$AR" # Let the user override the test.
  6343. else
  6344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6345. for as_dir in $PATH
  6346. do
  6347. IFS=$as_save_IFS
  6348. test -z "$as_dir" && as_dir=.
  6349. for ac_exec_ext in '' $ac_executable_extensions; do
  6350. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6351. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6352. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6353. break 2
  6354. fi
  6355. done
  6356. done
  6357. fi
  6358. fi
  6359. AR=$ac_cv_prog_AR
  6360. if test -n "$AR"; then
  6361. echo "$as_me:$LINENO: result: $AR" >&5
  6362. echo "${ECHO_T}$AR" >&6
  6363. else
  6364. echo "$as_me:$LINENO: result: no" >&5
  6365. echo "${ECHO_T}no" >&6
  6366. fi
  6367. fi
  6368. if test -z "$ac_cv_prog_AR"; then
  6369. ac_ct_AR=$AR
  6370. # Extract the first word of "ar", so it can be a program name with args.
  6371. set dummy ar; ac_word=$2
  6372. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6373. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6374. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6375. echo $ECHO_N "(cached) $ECHO_C" >&6
  6376. else
  6377. if test -n "$ac_ct_AR"; then
  6378. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6379. else
  6380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6381. for as_dir in $PATH
  6382. do
  6383. IFS=$as_save_IFS
  6384. test -z "$as_dir" && as_dir=.
  6385. for ac_exec_ext in '' $ac_executable_extensions; do
  6386. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6387. ac_cv_prog_ac_ct_AR="ar"
  6388. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6389. break 2
  6390. fi
  6391. done
  6392. done
  6393. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  6394. fi
  6395. fi
  6396. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6397. if test -n "$ac_ct_AR"; then
  6398. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6399. echo "${ECHO_T}$ac_ct_AR" >&6
  6400. else
  6401. echo "$as_me:$LINENO: result: no" >&5
  6402. echo "${ECHO_T}no" >&6
  6403. fi
  6404. AR=$ac_ct_AR
  6405. else
  6406. AR="$ac_cv_prog_AR"
  6407. fi
  6408. if test -n "$ac_tool_prefix"; then
  6409. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6410. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6411. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6412. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6413. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6414. echo $ECHO_N "(cached) $ECHO_C" >&6
  6415. else
  6416. if test -n "$RANLIB"; then
  6417. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6418. else
  6419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6420. for as_dir in $PATH
  6421. do
  6422. IFS=$as_save_IFS
  6423. test -z "$as_dir" && as_dir=.
  6424. for ac_exec_ext in '' $ac_executable_extensions; do
  6425. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6426. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6427. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6428. break 2
  6429. fi
  6430. done
  6431. done
  6432. fi
  6433. fi
  6434. RANLIB=$ac_cv_prog_RANLIB
  6435. if test -n "$RANLIB"; then
  6436. echo "$as_me:$LINENO: result: $RANLIB" >&5
  6437. echo "${ECHO_T}$RANLIB" >&6
  6438. else
  6439. echo "$as_me:$LINENO: result: no" >&5
  6440. echo "${ECHO_T}no" >&6
  6441. fi
  6442. fi
  6443. if test -z "$ac_cv_prog_RANLIB"; then
  6444. ac_ct_RANLIB=$RANLIB
  6445. # Extract the first word of "ranlib", so it can be a program name with args.
  6446. set dummy ranlib; ac_word=$2
  6447. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6448. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6449. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6450. echo $ECHO_N "(cached) $ECHO_C" >&6
  6451. else
  6452. if test -n "$ac_ct_RANLIB"; then
  6453. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6454. else
  6455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6456. for as_dir in $PATH
  6457. do
  6458. IFS=$as_save_IFS
  6459. test -z "$as_dir" && as_dir=.
  6460. for ac_exec_ext in '' $ac_executable_extensions; do
  6461. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6462. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6463. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6464. break 2
  6465. fi
  6466. done
  6467. done
  6468. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  6469. fi
  6470. fi
  6471. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6472. if test -n "$ac_ct_RANLIB"; then
  6473. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6474. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  6475. else
  6476. echo "$as_me:$LINENO: result: no" >&5
  6477. echo "${ECHO_T}no" >&6
  6478. fi
  6479. RANLIB=$ac_ct_RANLIB
  6480. else
  6481. RANLIB="$ac_cv_prog_RANLIB"
  6482. fi
  6483. if test -n "$ac_tool_prefix"; then
  6484. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6485. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6486. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6487. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6488. if test "${ac_cv_prog_STRIP+set}" = set; then
  6489. echo $ECHO_N "(cached) $ECHO_C" >&6
  6490. else
  6491. if test -n "$STRIP"; then
  6492. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6493. else
  6494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6495. for as_dir in $PATH
  6496. do
  6497. IFS=$as_save_IFS
  6498. test -z "$as_dir" && as_dir=.
  6499. for ac_exec_ext in '' $ac_executable_extensions; do
  6500. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6501. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6502. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6503. break 2
  6504. fi
  6505. done
  6506. done
  6507. fi
  6508. fi
  6509. STRIP=$ac_cv_prog_STRIP
  6510. if test -n "$STRIP"; then
  6511. echo "$as_me:$LINENO: result: $STRIP" >&5
  6512. echo "${ECHO_T}$STRIP" >&6
  6513. else
  6514. echo "$as_me:$LINENO: result: no" >&5
  6515. echo "${ECHO_T}no" >&6
  6516. fi
  6517. fi
  6518. if test -z "$ac_cv_prog_STRIP"; then
  6519. ac_ct_STRIP=$STRIP
  6520. # Extract the first word of "strip", so it can be a program name with args.
  6521. set dummy strip; ac_word=$2
  6522. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6523. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6524. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6525. echo $ECHO_N "(cached) $ECHO_C" >&6
  6526. else
  6527. if test -n "$ac_ct_STRIP"; then
  6528. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6529. else
  6530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6531. for as_dir in $PATH
  6532. do
  6533. IFS=$as_save_IFS
  6534. test -z "$as_dir" && as_dir=.
  6535. for ac_exec_ext in '' $ac_executable_extensions; do
  6536. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6537. ac_cv_prog_ac_ct_STRIP="strip"
  6538. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6539. break 2
  6540. fi
  6541. done
  6542. done
  6543. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  6544. fi
  6545. fi
  6546. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6547. if test -n "$ac_ct_STRIP"; then
  6548. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6549. echo "${ECHO_T}$ac_ct_STRIP" >&6
  6550. else
  6551. echo "$as_me:$LINENO: result: no" >&5
  6552. echo "${ECHO_T}no" >&6
  6553. fi
  6554. STRIP=$ac_ct_STRIP
  6555. else
  6556. STRIP="$ac_cv_prog_STRIP"
  6557. fi
  6558. old_CC="$CC"
  6559. old_CFLAGS="$CFLAGS"
  6560. # Set sane defaults for various variables
  6561. test -z "$AR" && AR=ar
  6562. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6563. test -z "$AS" && AS=as
  6564. test -z "$CC" && CC=cc
  6565. test -z "$LTCC" && LTCC=$CC
  6566. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6567. test -z "$LD" && LD=ld
  6568. test -z "$LN_S" && LN_S="ln -s"
  6569. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6570. test -z "$NM" && NM=nm
  6571. test -z "$SED" && SED=sed
  6572. test -z "$OBJDUMP" && OBJDUMP=objdump
  6573. test -z "$RANLIB" && RANLIB=:
  6574. test -z "$STRIP" && STRIP=:
  6575. test -z "$ac_objext" && ac_objext=o
  6576. # Determine commands to create old-style static archives.
  6577. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  6578. old_postinstall_cmds='chmod 644 $oldlib'
  6579. old_postuninstall_cmds=
  6580. if test -n "$RANLIB"; then
  6581. case $host_os in
  6582. openbsd*)
  6583. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  6584. ;;
  6585. *)
  6586. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  6587. ;;
  6588. esac
  6589. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6590. fi
  6591. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  6592. # Only perform the check for file, if the check method requires it
  6593. case $deplibs_check_method in
  6594. file_magic*)
  6595. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6596. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6597. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  6598. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6599. echo $ECHO_N "(cached) $ECHO_C" >&6
  6600. else
  6601. case $MAGIC_CMD in
  6602. [\\/*] | ?:[\\/]*)
  6603. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6604. ;;
  6605. *)
  6606. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6607. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6608. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6609. for ac_dir in $ac_dummy; do
  6610. IFS="$lt_save_ifs"
  6611. test -z "$ac_dir" && ac_dir=.
  6612. if test -f $ac_dir/${ac_tool_prefix}file; then
  6613. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6614. if test -n "$file_magic_test_file"; then
  6615. case $deplibs_check_method in
  6616. "file_magic "*)
  6617. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  6618. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6619. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6620. $EGREP "$file_magic_regex" > /dev/null; then
  6621. :
  6622. else
  6623. cat <<EOF 1>&2
  6624. *** Warning: the command libtool uses to detect shared libraries,
  6625. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6626. *** The result is that libtool may fail to recognize shared libraries
  6627. *** as such. This will affect the creation of libtool libraries that
  6628. *** depend on shared libraries, but programs linked with such libtool
  6629. *** libraries will work regardless of this problem. Nevertheless, you
  6630. *** may want to report the problem to your system manager and/or to
  6631. *** bug-libtool@gnu.org
  6632. EOF
  6633. fi ;;
  6634. esac
  6635. fi
  6636. break
  6637. fi
  6638. done
  6639. IFS="$lt_save_ifs"
  6640. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6641. ;;
  6642. esac
  6643. fi
  6644. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6645. if test -n "$MAGIC_CMD"; then
  6646. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6647. echo "${ECHO_T}$MAGIC_CMD" >&6
  6648. else
  6649. echo "$as_me:$LINENO: result: no" >&5
  6650. echo "${ECHO_T}no" >&6
  6651. fi
  6652. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6653. if test -n "$ac_tool_prefix"; then
  6654. echo "$as_me:$LINENO: checking for file" >&5
  6655. echo $ECHO_N "checking for file... $ECHO_C" >&6
  6656. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6657. echo $ECHO_N "(cached) $ECHO_C" >&6
  6658. else
  6659. case $MAGIC_CMD in
  6660. [\\/*] | ?:[\\/]*)
  6661. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6662. ;;
  6663. *)
  6664. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6665. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6666. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6667. for ac_dir in $ac_dummy; do
  6668. IFS="$lt_save_ifs"
  6669. test -z "$ac_dir" && ac_dir=.
  6670. if test -f $ac_dir/file; then
  6671. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6672. if test -n "$file_magic_test_file"; then
  6673. case $deplibs_check_method in
  6674. "file_magic "*)
  6675. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  6676. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6677. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6678. $EGREP "$file_magic_regex" > /dev/null; then
  6679. :
  6680. else
  6681. cat <<EOF 1>&2
  6682. *** Warning: the command libtool uses to detect shared libraries,
  6683. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6684. *** The result is that libtool may fail to recognize shared libraries
  6685. *** as such. This will affect the creation of libtool libraries that
  6686. *** depend on shared libraries, but programs linked with such libtool
  6687. *** libraries will work regardless of this problem. Nevertheless, you
  6688. *** may want to report the problem to your system manager and/or to
  6689. *** bug-libtool@gnu.org
  6690. EOF
  6691. fi ;;
  6692. esac
  6693. fi
  6694. break
  6695. fi
  6696. done
  6697. IFS="$lt_save_ifs"
  6698. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6699. ;;
  6700. esac
  6701. fi
  6702. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6703. if test -n "$MAGIC_CMD"; then
  6704. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6705. echo "${ECHO_T}$MAGIC_CMD" >&6
  6706. else
  6707. echo "$as_me:$LINENO: result: no" >&5
  6708. echo "${ECHO_T}no" >&6
  6709. fi
  6710. else
  6711. MAGIC_CMD=:
  6712. fi
  6713. fi
  6714. fi
  6715. ;;
  6716. esac
  6717. enable_dlopen=no
  6718. enable_win32_dll=no
  6719. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  6720. if test "${enable_libtool_lock+set}" = set; then
  6721. enableval="$enable_libtool_lock"
  6722. fi;
  6723. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6724. # Check whether --with-pic or --without-pic was given.
  6725. if test "${with_pic+set}" = set; then
  6726. withval="$with_pic"
  6727. pic_mode="$withval"
  6728. else
  6729. pic_mode=default
  6730. fi;
  6731. test -z "$pic_mode" && pic_mode=default
  6732. # Use C for the default configuration in the libtool script
  6733. tagname=
  6734. lt_save_CC="$CC"
  6735. ac_ext=c
  6736. ac_cpp='$CPP $CPPFLAGS'
  6737. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6738. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6739. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6740. # Source file extension for C test sources.
  6741. ac_ext=c
  6742. # Object file extension for compiled C test sources.
  6743. objext=o
  6744. objext=$objext
  6745. # Code to be used in simple compile tests
  6746. lt_simple_compile_test_code="int some_variable = 0;\n"
  6747. # Code to be used in simple link tests
  6748. lt_simple_link_test_code='int main(){return(0);}\n'
  6749. # If no C compiler was specified, use CC.
  6750. LTCC=${LTCC-"$CC"}
  6751. # Allow CC to be a program name with arguments.
  6752. compiler=$CC
  6753. #
  6754. # Check for any special shared library compilation flags.
  6755. #
  6756. lt_prog_cc_shlib=
  6757. if test "$GCC" = no; then
  6758. case $host_os in
  6759. sco3.2v5*)
  6760. lt_prog_cc_shlib='-belf'
  6761. ;;
  6762. esac
  6763. fi
  6764. if test -n "$lt_prog_cc_shlib"; then
  6765. { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  6766. echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  6767. if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  6768. else
  6769. { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  6770. echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  6771. lt_cv_prog_cc_can_build_shared=no
  6772. fi
  6773. fi
  6774. #
  6775. # Check to make sure the static flag actually works.
  6776. #
  6777. echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  6778. echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
  6779. if test "${lt_prog_compiler_static_works+set}" = set; then
  6780. echo $ECHO_N "(cached) $ECHO_C" >&6
  6781. else
  6782. lt_prog_compiler_static_works=no
  6783. save_LDFLAGS="$LDFLAGS"
  6784. LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  6785. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6786. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6787. # The compiler can only warn and ignore the option if not recognized
  6788. # So say no if there are warnings
  6789. if test -s conftest.err; then
  6790. # Append any errors to the config.log.
  6791. cat conftest.err 1>&5
  6792. else
  6793. lt_prog_compiler_static_works=yes
  6794. fi
  6795. fi
  6796. $rm conftest*
  6797. LDFLAGS="$save_LDFLAGS"
  6798. fi
  6799. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6800. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  6801. if test x"$lt_prog_compiler_static_works" = xyes; then
  6802. :
  6803. else
  6804. lt_prog_compiler_static=
  6805. fi
  6806. lt_prog_compiler_no_builtin_flag=
  6807. if test "$GCC" = yes; then
  6808. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6809. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6810. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  6811. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6812. echo $ECHO_N "(cached) $ECHO_C" >&6
  6813. else
  6814. lt_cv_prog_compiler_rtti_exceptions=no
  6815. ac_outfile=conftest.$ac_objext
  6816. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6817. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6818. # Insert the option either (1) after the last *FLAGS variable, or
  6819. # (2) before a word containing "conftest.", or (3) at the end.
  6820. # Note that $ac_compile itself does not contain backslashes and begins
  6821. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6822. # The option is referenced via a variable to avoid confusing sed.
  6823. lt_compile=`echo "$ac_compile" | $SED \
  6824. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6825. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6826. -e 's:$: $lt_compiler_flag:'`
  6827. (eval echo "\"\$as_me:7510: $lt_compile\"" >&5)
  6828. (eval "$lt_compile" 2>conftest.err)
  6829. ac_status=$?
  6830. cat conftest.err >&5
  6831. echo "$as_me:7514: \$? = $ac_status" >&5
  6832. if (exit $ac_status) && test -s "$ac_outfile"; then
  6833. # The compiler can only warn and ignore the option if not recognized
  6834. # So say no if there are warnings
  6835. if test ! -s conftest.err; then
  6836. lt_cv_prog_compiler_rtti_exceptions=yes
  6837. fi
  6838. fi
  6839. $rm conftest*
  6840. fi
  6841. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6842. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  6843. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6844. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6845. else
  6846. :
  6847. fi
  6848. fi
  6849. lt_prog_compiler_wl=
  6850. lt_prog_compiler_pic=
  6851. lt_prog_compiler_static=
  6852. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6853. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  6854. if test "$GCC" = yes; then
  6855. lt_prog_compiler_wl='-Wl,'
  6856. lt_prog_compiler_static='-static'
  6857. case $host_os in
  6858. aix*)
  6859. # All AIX code is PIC.
  6860. if test "$host_cpu" = ia64; then
  6861. # AIX 5 now supports IA64 processor
  6862. lt_prog_compiler_static='-Bstatic'
  6863. fi
  6864. ;;
  6865. amigaos*)
  6866. # FIXME: we need at least 68020 code to build shared libraries, but
  6867. # adding the `-m68020' flag to GCC prevents building anything better,
  6868. # like `-m68040'.
  6869. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6870. ;;
  6871. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6872. # PIC is the default for these OSes.
  6873. ;;
  6874. mingw* | pw32* | os2*)
  6875. # This hack is so that the source file can tell whether it is being
  6876. # built for inclusion in a dll (and should export symbols for example).
  6877. lt_prog_compiler_pic='-DDLL_EXPORT'
  6878. ;;
  6879. darwin* | rhapsody*)
  6880. # PIC is the default on this platform
  6881. # Common symbols not allowed in MH_DYLIB files
  6882. lt_prog_compiler_pic='-fno-common'
  6883. ;;
  6884. msdosdjgpp*)
  6885. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6886. # on systems that don't support them.
  6887. lt_prog_compiler_can_build_shared=no
  6888. enable_shared=no
  6889. ;;
  6890. sysv4*MP*)
  6891. if test -d /usr/nec; then
  6892. lt_prog_compiler_pic=-Kconform_pic
  6893. fi
  6894. ;;
  6895. hpux*)
  6896. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6897. # not for PA HP-UX.
  6898. case "$host_cpu" in
  6899. hppa*64*|ia64*)
  6900. # +Z the default
  6901. ;;
  6902. *)
  6903. lt_prog_compiler_pic='-fPIC'
  6904. ;;
  6905. esac
  6906. ;;
  6907. *)
  6908. lt_prog_compiler_pic='-fPIC'
  6909. ;;
  6910. esac
  6911. else
  6912. # PORTME Check for flag to pass linker flags through the system compiler.
  6913. case $host_os in
  6914. aix*)
  6915. lt_prog_compiler_wl='-Wl,'
  6916. if test "$host_cpu" = ia64; then
  6917. # AIX 5 now supports IA64 processor
  6918. lt_prog_compiler_static='-Bstatic'
  6919. else
  6920. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6921. fi
  6922. ;;
  6923. darwin*)
  6924. # PIC is the default on this platform
  6925. # Common symbols not allowed in MH_DYLIB files
  6926. case "$cc_basename" in
  6927. xlc*)
  6928. lt_prog_compiler_pic='-qnocommon'
  6929. lt_prog_compiler_wl='-Wl,'
  6930. ;;
  6931. esac
  6932. ;;
  6933. mingw* | pw32* | os2*)
  6934. # This hack is so that the source file can tell whether it is being
  6935. # built for inclusion in a dll (and should export symbols for example).
  6936. lt_prog_compiler_pic='-DDLL_EXPORT'
  6937. ;;
  6938. hpux9* | hpux10* | hpux11*)
  6939. lt_prog_compiler_wl='-Wl,'
  6940. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6941. # not for PA HP-UX.
  6942. case "$host_cpu" in
  6943. hppa*64*|ia64*)
  6944. # +Z the default
  6945. ;;
  6946. *)
  6947. lt_prog_compiler_pic='+Z'
  6948. ;;
  6949. esac
  6950. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6951. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6952. ;;
  6953. irix5* | irix6* | nonstopux*)
  6954. lt_prog_compiler_wl='-Wl,'
  6955. # PIC (with -KPIC) is the default.
  6956. lt_prog_compiler_static='-non_shared'
  6957. ;;
  6958. newsos6)
  6959. lt_prog_compiler_pic='-KPIC'
  6960. lt_prog_compiler_static='-Bstatic'
  6961. ;;
  6962. linux*)
  6963. case $cc_basename in
  6964. icc* | ecc*)
  6965. lt_prog_compiler_wl='-Wl,'
  6966. lt_prog_compiler_pic='-KPIC'
  6967. lt_prog_compiler_static='-static'
  6968. ;;
  6969. pgcc | pgf77 | pgf90)
  6970. # Portland Group compilers (*not* the Pentium gcc compiler,
  6971. # which looks to be a dead project)
  6972. lt_prog_compiler_wl='-Wl,'
  6973. lt_prog_compiler_pic='-fpic'
  6974. lt_prog_compiler_static='-static'
  6975. ;;
  6976. ccc*)
  6977. lt_prog_compiler_wl='-Wl,'
  6978. # All Alpha code is PIC.
  6979. lt_prog_compiler_static='-non_shared'
  6980. ;;
  6981. esac
  6982. ;;
  6983. osf3* | osf4* | osf5*)
  6984. lt_prog_compiler_wl='-Wl,'
  6985. # All OSF/1 code is PIC.
  6986. lt_prog_compiler_static='-non_shared'
  6987. ;;
  6988. sco3.2v5*)
  6989. lt_prog_compiler_pic='-Kpic'
  6990. lt_prog_compiler_static='-dn'
  6991. ;;
  6992. solaris*)
  6993. lt_prog_compiler_wl='-Wl,'
  6994. lt_prog_compiler_pic='-KPIC'
  6995. lt_prog_compiler_static='-Bstatic'
  6996. ;;
  6997. sunos4*)
  6998. lt_prog_compiler_wl='-Qoption ld '
  6999. lt_prog_compiler_pic='-PIC'
  7000. lt_prog_compiler_static='-Bstatic'
  7001. ;;
  7002. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7003. lt_prog_compiler_wl='-Wl,'
  7004. lt_prog_compiler_pic='-KPIC'
  7005. lt_prog_compiler_static='-Bstatic'
  7006. ;;
  7007. sysv4*MP*)
  7008. if test -d /usr/nec ;then
  7009. lt_prog_compiler_pic='-Kconform_pic'
  7010. lt_prog_compiler_static='-Bstatic'
  7011. fi
  7012. ;;
  7013. unicos*)
  7014. lt_prog_compiler_wl='-Wl,'
  7015. lt_prog_compiler_can_build_shared=no
  7016. ;;
  7017. uts4*)
  7018. lt_prog_compiler_pic='-pic'
  7019. lt_prog_compiler_static='-Bstatic'
  7020. ;;
  7021. *)
  7022. lt_prog_compiler_can_build_shared=no
  7023. ;;
  7024. esac
  7025. fi
  7026. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  7027. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  7028. #
  7029. # Check to make sure the PIC flag actually works.
  7030. #
  7031. if test -n "$lt_prog_compiler_pic"; then
  7032. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7033. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  7034. if test "${lt_prog_compiler_pic_works+set}" = set; then
  7035. echo $ECHO_N "(cached) $ECHO_C" >&6
  7036. else
  7037. lt_prog_compiler_pic_works=no
  7038. ac_outfile=conftest.$ac_objext
  7039. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7040. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7041. # Insert the option either (1) after the last *FLAGS variable, or
  7042. # (2) before a word containing "conftest.", or (3) at the end.
  7043. # Note that $ac_compile itself does not contain backslashes and begins
  7044. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7045. # The option is referenced via a variable to avoid confusing sed.
  7046. lt_compile=`echo "$ac_compile" | $SED \
  7047. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  7048. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7049. -e 's:$: $lt_compiler_flag:'`
  7050. (eval echo "\"\$as_me:7765: $lt_compile\"" >&5)
  7051. (eval "$lt_compile" 2>conftest.err)
  7052. ac_status=$?
  7053. cat conftest.err >&5
  7054. echo "$as_me:7769: \$? = $ac_status" >&5
  7055. if (exit $ac_status) && test -s "$ac_outfile"; then
  7056. # The compiler can only warn and ignore the option if not recognized
  7057. # So say no if there are warnings
  7058. if test ! -s conftest.err; then
  7059. lt_prog_compiler_pic_works=yes
  7060. fi
  7061. fi
  7062. $rm conftest*
  7063. fi
  7064. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  7065. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  7066. if test x"$lt_prog_compiler_pic_works" = xyes; then
  7067. case $lt_prog_compiler_pic in
  7068. "" | " "*) ;;
  7069. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7070. esac
  7071. else
  7072. lt_prog_compiler_pic=
  7073. lt_prog_compiler_can_build_shared=no
  7074. fi
  7075. fi
  7076. case "$host_os" in
  7077. # For platforms which do not support PIC, -DPIC is meaningless:
  7078. *djgpp*)
  7079. lt_prog_compiler_pic=
  7080. ;;
  7081. *)
  7082. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7083. ;;
  7084. esac
  7085. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7086. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  7087. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7088. echo $ECHO_N "(cached) $ECHO_C" >&6
  7089. else
  7090. lt_cv_prog_compiler_c_o=no
  7091. $rm -r conftest 2>/dev/null
  7092. mkdir conftest
  7093. cd conftest
  7094. mkdir out
  7095. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7096. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7097. # Insert the option either (1) after the last *FLAGS variable, or
  7098. # (2) before a word containing "conftest.", or (3) at the end.
  7099. # Note that $ac_compile itself does not contain backslashes and begins
  7100. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7101. lt_compile=`echo "$ac_compile" | $SED \
  7102. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  7103. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7104. -e 's:$: $lt_compiler_flag:'`
  7105. (eval echo "\"\$as_me:7825: $lt_compile\"" >&5)
  7106. (eval "$lt_compile" 2>out/conftest.err)
  7107. ac_status=$?
  7108. cat out/conftest.err >&5
  7109. echo "$as_me:7829: \$? = $ac_status" >&5
  7110. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7111. then
  7112. # The compiler can only warn and ignore the option if not recognized
  7113. # So say no if there are warnings
  7114. if test ! -s out/conftest.err; then
  7115. lt_cv_prog_compiler_c_o=yes
  7116. fi
  7117. fi
  7118. chmod u+w .
  7119. $rm conftest*
  7120. # SGI C++ compiler will create directory out/ii_files/ for
  7121. # template instantiation
  7122. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  7123. $rm out/* && rmdir out
  7124. cd ..
  7125. rmdir conftest
  7126. $rm conftest*
  7127. fi
  7128. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7129. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  7130. hard_links="nottested"
  7131. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7132. # do not overwrite the value of need_locks provided by the user
  7133. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7134. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  7135. hard_links=yes
  7136. $rm conftest*
  7137. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7138. touch conftest.a
  7139. ln conftest.a conftest.b 2>&5 || hard_links=no
  7140. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7141. echo "$as_me:$LINENO: result: $hard_links" >&5
  7142. echo "${ECHO_T}$hard_links" >&6
  7143. if test "$hard_links" = no; then
  7144. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7145. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7146. need_locks=warn
  7147. fi
  7148. else
  7149. need_locks=no
  7150. fi
  7151. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7152. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  7153. runpath_var=
  7154. allow_undefined_flag=
  7155. enable_shared_with_static_runtimes=no
  7156. archive_cmds=
  7157. archive_expsym_cmds=
  7158. old_archive_From_new_cmds=
  7159. old_archive_from_expsyms_cmds=
  7160. export_dynamic_flag_spec=
  7161. whole_archive_flag_spec=
  7162. thread_safe_flag_spec=
  7163. hardcode_libdir_flag_spec=
  7164. hardcode_libdir_flag_spec_ld=
  7165. hardcode_libdir_separator=
  7166. hardcode_direct=no
  7167. hardcode_minus_L=no
  7168. hardcode_shlibpath_var=unsupported
  7169. link_all_deplibs=unknown
  7170. hardcode_automatic=no
  7171. module_cmds=
  7172. module_expsym_cmds=
  7173. always_export_symbols=no
  7174. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7175. # include_expsyms should be a list of space-separated symbols to be *always*
  7176. # included in the symbol list
  7177. include_expsyms=
  7178. # exclude_expsyms can be an extended regexp of symbols to exclude
  7179. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7180. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7181. # as well as any symbol that contains `d'.
  7182. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  7183. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7184. # platforms (ab)use it in PIC code, but their linkers get confused if
  7185. # the symbol is explicitly referenced. Since portable code cannot
  7186. # rely on this symbol name, it's probably fine to never include it in
  7187. # preloaded symbol tables.
  7188. extract_expsyms_cmds=
  7189. case $host_os in
  7190. cygwin* | mingw* | pw32*)
  7191. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7192. # When not using gcc, we currently assume that we are using
  7193. # Microsoft Visual C++.
  7194. if test "$GCC" != yes; then
  7195. with_gnu_ld=no
  7196. fi
  7197. ;;
  7198. openbsd*)
  7199. with_gnu_ld=no
  7200. ;;
  7201. esac
  7202. ld_shlibs=yes
  7203. if test "$with_gnu_ld" = yes; then
  7204. # If archive_cmds runs LD, not CC, wlarc should be empty
  7205. wlarc='${wl}'
  7206. # See if GNU ld supports shared libraries.
  7207. case $host_os in
  7208. aix3* | aix4* | aix5*)
  7209. # On AIX/PPC, the GNU linker is very broken
  7210. if test "$host_cpu" != ia64; then
  7211. ld_shlibs=no
  7212. cat <<EOF 1>&2
  7213. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7214. *** to be unable to reliably create shared libraries on AIX.
  7215. *** Therefore, libtool is disabling shared libraries support. If you
  7216. *** really care for shared libraries, you may want to modify your PATH
  7217. *** so that a non-GNU linker is found, and then restart.
  7218. EOF
  7219. fi
  7220. ;;
  7221. amigaos*)
  7222. 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)'
  7223. hardcode_libdir_flag_spec='-L$libdir'
  7224. hardcode_minus_L=yes
  7225. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7226. # that the semantics of dynamic libraries on AmigaOS, at least up
  7227. # to version 4, is to share data among multiple programs linked
  7228. # with the same dynamic library. Since this doesn't match the
  7229. # behavior of shared libraries on other platforms, we can't use
  7230. # them.
  7231. ld_shlibs=no
  7232. ;;
  7233. beos*)
  7234. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7235. allow_undefined_flag=unsupported
  7236. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7237. # support --undefined. This deserves some investigation. FIXME
  7238. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7239. else
  7240. ld_shlibs=no
  7241. fi
  7242. ;;
  7243. cygwin* | mingw* | pw32*)
  7244. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7245. # as there is no search path for DLLs.
  7246. hardcode_libdir_flag_spec='-L$libdir'
  7247. allow_undefined_flag=unsupported
  7248. always_export_symbols=no
  7249. enable_shared_with_static_runtimes=yes
  7250. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  7251. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7252. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  7253. # If the export-symbols file already is a .def file (1st line
  7254. # is EXPORTS), use it as is; otherwise, prepend...
  7255. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7256. cp $export_symbols $output_objdir/$soname.def;
  7257. else
  7258. echo EXPORTS > $output_objdir/$soname.def;
  7259. cat $export_symbols >> $output_objdir/$soname.def;
  7260. fi~
  7261. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  7262. else
  7263. ld_shlibs=no
  7264. fi
  7265. ;;
  7266. netbsd*)
  7267. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7268. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7269. wlarc=
  7270. else
  7271. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7272. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7273. fi
  7274. ;;
  7275. solaris* | sysv5*)
  7276. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7277. ld_shlibs=no
  7278. cat <<EOF 1>&2
  7279. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7280. *** create shared libraries on Solaris systems. Therefore, libtool
  7281. *** is disabling shared libraries support. We urge you to upgrade GNU
  7282. *** binutils to release 2.9.1 or newer. Another option is to modify
  7283. *** your PATH or compiler configuration so that the native linker is
  7284. *** used, and then restart.
  7285. EOF
  7286. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7287. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7288. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7289. else
  7290. ld_shlibs=no
  7291. fi
  7292. ;;
  7293. sunos4*)
  7294. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7295. wlarc=
  7296. hardcode_direct=yes
  7297. hardcode_shlibpath_var=no
  7298. ;;
  7299. linux*)
  7300. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7301. tmp_addflag=
  7302. case $CC,$host_cpu in
  7303. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  7304. tmp_addflag=' -fpic' ;;
  7305. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7306. tmp_addflag=' -i_dynamic' ;;
  7307. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7308. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7309. ifc* | ifort*) # Intel Fortran compiler
  7310. tmp_addflag=' -nofor_main' ;;
  7311. esac
  7312. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7313. supports_anon_versioning=no
  7314. case `$LD -v 2>/dev/null` in
  7315. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7316. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7317. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7318. *\ 2.11.*) ;; # other 2.11 versions
  7319. *) supports_anon_versioning=yes ;;
  7320. esac
  7321. if test $supports_anon_versioning = yes; then
  7322. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7323. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7324. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7325. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7326. else
  7327. archive_expsym_cmds=$archive_cmds
  7328. fi
  7329. else
  7330. ld_shlibs=no
  7331. fi
  7332. ;;
  7333. *)
  7334. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7335. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7336. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7337. else
  7338. ld_shlibs=no
  7339. fi
  7340. ;;
  7341. esac
  7342. if test "$ld_shlibs" = yes; then
  7343. runpath_var=LD_RUN_PATH
  7344. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  7345. export_dynamic_flag_spec='${wl}--export-dynamic'
  7346. # ancient GNU ld didn't support --whole-archive et. al.
  7347. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  7348. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7349. else
  7350. whole_archive_flag_spec=
  7351. fi
  7352. fi
  7353. else
  7354. # PORTME fill in a description of your system's linker (not GNU ld)
  7355. case $host_os in
  7356. aix3*)
  7357. allow_undefined_flag=unsupported
  7358. always_export_symbols=yes
  7359. 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'
  7360. # Note: this linker hardcodes the directories in LIBPATH if there
  7361. # are no directories specified by -L.
  7362. hardcode_minus_L=yes
  7363. if test "$GCC" = yes && test -z "$link_static_flag"; then
  7364. # Neither direct hardcoding nor static linking is supported with a
  7365. # broken collect2.
  7366. hardcode_direct=unsupported
  7367. fi
  7368. ;;
  7369. aix4* | aix5*)
  7370. if test "$host_cpu" = ia64; then
  7371. # On IA64, the linker does run time linking by default, so we don't
  7372. # have to do anything special.
  7373. aix_use_runtimelinking=no
  7374. exp_sym_flag='-Bexport'
  7375. no_entry_flag=""
  7376. else
  7377. # If we're using GNU nm, then we don't want the "-C" option.
  7378. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7379. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7380. 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'
  7381. else
  7382. 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'
  7383. fi
  7384. aix_use_runtimelinking=no
  7385. # Test if we are trying to use run time linking or normal
  7386. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7387. # need to do runtime linking.
  7388. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7389. for ld_flag in $LDFLAGS; do
  7390. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7391. aix_use_runtimelinking=yes
  7392. break
  7393. fi
  7394. done
  7395. esac
  7396. exp_sym_flag='-bexport'
  7397. no_entry_flag='-bnoentry'
  7398. fi
  7399. # When large executables or shared objects are built, AIX ld can
  7400. # have problems creating the table of contents. If linking a library
  7401. # or program results in "error TOC overflow" add -mminimal-toc to
  7402. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7403. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7404. archive_cmds=''
  7405. hardcode_direct=yes
  7406. hardcode_libdir_separator=':'
  7407. link_all_deplibs=yes
  7408. if test "$GCC" = yes; then
  7409. case $host_os in aix4.[012]|aix4.[012].*)
  7410. # We only want to do this on AIX 4.2 and lower, the check
  7411. # below for broken collect2 doesn't work under 4.3+
  7412. collect2name=`${CC} -print-prog-name=collect2`
  7413. if test -f "$collect2name" && \
  7414. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7415. then
  7416. # We have reworked collect2
  7417. hardcode_direct=yes
  7418. else
  7419. # We have old collect2
  7420. hardcode_direct=unsupported
  7421. # It fails to find uninstalled libraries when the uninstalled
  7422. # path is not listed in the libpath. Setting hardcode_minus_L
  7423. # to unsupported forces relinking
  7424. hardcode_minus_L=yes
  7425. hardcode_libdir_flag_spec='-L$libdir'
  7426. hardcode_libdir_separator=
  7427. fi
  7428. esac
  7429. shared_flag='-shared'
  7430. if test "$aix_use_runtimelinking" = yes; then
  7431. shared_flag="$shared_flag "'${wl}-G'
  7432. fi
  7433. else
  7434. # not using gcc
  7435. if test "$host_cpu" = ia64; then
  7436. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7437. # chokes on -Wl,-G. The following line is correct:
  7438. shared_flag='-G'
  7439. else
  7440. if test "$aix_use_runtimelinking" = yes; then
  7441. shared_flag='${wl}-G'
  7442. else
  7443. shared_flag='${wl}-bM:SRE'
  7444. fi
  7445. fi
  7446. fi
  7447. # It seems that -bexpall does not export symbols beginning with
  7448. # underscore (_), so it is better to generate a list of symbols to export.
  7449. always_export_symbols=yes
  7450. if test "$aix_use_runtimelinking" = yes; then
  7451. # Warning - without using the other runtime loading flags (-brtl),
  7452. # -berok will link without error, but may produce a broken library.
  7453. allow_undefined_flag='-berok'
  7454. # Determine the default libpath from the value encoded in an empty executable.
  7455. cat >conftest.$ac_ext <<_ACEOF
  7456. /* confdefs.h. */
  7457. _ACEOF
  7458. cat confdefs.h >>conftest.$ac_ext
  7459. cat >>conftest.$ac_ext <<_ACEOF
  7460. /* end confdefs.h. */
  7461. int
  7462. main ()
  7463. {
  7464. ;
  7465. return 0;
  7466. }
  7467. _ACEOF
  7468. rm -f conftest.$ac_objext conftest$ac_exeext
  7469. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7470. (eval $ac_link) 2>conftest.er1
  7471. ac_status=$?
  7472. grep -v '^ *+' conftest.er1 >conftest.err
  7473. rm -f conftest.er1
  7474. cat conftest.err >&5
  7475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7476. (exit $ac_status); } &&
  7477. { ac_try='test -z "$ac_c_werror_flag"
  7478. || test ! -s conftest.err'
  7479. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7480. (eval $ac_try) 2>&5
  7481. ac_status=$?
  7482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7483. (exit $ac_status); }; } &&
  7484. { ac_try='test -s conftest$ac_exeext'
  7485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7486. (eval $ac_try) 2>&5
  7487. ac_status=$?
  7488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7489. (exit $ac_status); }; }; then
  7490. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7491. }'`
  7492. # Check for a 64-bit object if we didn't find anything.
  7493. 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; }
  7494. }'`; fi
  7495. else
  7496. echo "$as_me: failed program was:" >&5
  7497. sed 's/^/| /' conftest.$ac_ext >&5
  7498. fi
  7499. rm -f conftest.err conftest.$ac_objext \
  7500. conftest$ac_exeext conftest.$ac_ext
  7501. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7502. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7503. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7504. else
  7505. if test "$host_cpu" = ia64; then
  7506. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7507. allow_undefined_flag="-z nodefs"
  7508. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  7509. else
  7510. # Determine the default libpath from the value encoded in an empty executable.
  7511. cat >conftest.$ac_ext <<_ACEOF
  7512. /* confdefs.h. */
  7513. _ACEOF
  7514. cat confdefs.h >>conftest.$ac_ext
  7515. cat >>conftest.$ac_ext <<_ACEOF
  7516. /* end confdefs.h. */
  7517. int
  7518. main ()
  7519. {
  7520. ;
  7521. return 0;
  7522. }
  7523. _ACEOF
  7524. rm -f conftest.$ac_objext conftest$ac_exeext
  7525. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7526. (eval $ac_link) 2>conftest.er1
  7527. ac_status=$?
  7528. grep -v '^ *+' conftest.er1 >conftest.err
  7529. rm -f conftest.er1
  7530. cat conftest.err >&5
  7531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7532. (exit $ac_status); } &&
  7533. { ac_try='test -z "$ac_c_werror_flag"
  7534. || test ! -s conftest.err'
  7535. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7536. (eval $ac_try) 2>&5
  7537. ac_status=$?
  7538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7539. (exit $ac_status); }; } &&
  7540. { ac_try='test -s conftest$ac_exeext'
  7541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7542. (eval $ac_try) 2>&5
  7543. ac_status=$?
  7544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7545. (exit $ac_status); }; }; then
  7546. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7547. }'`
  7548. # Check for a 64-bit object if we didn't find anything.
  7549. 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; }
  7550. }'`; fi
  7551. else
  7552. echo "$as_me: failed program was:" >&5
  7553. sed 's/^/| /' conftest.$ac_ext >&5
  7554. fi
  7555. rm -f conftest.err conftest.$ac_objext \
  7556. conftest$ac_exeext conftest.$ac_ext
  7557. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7558. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7559. # Warning - without using the other run time loading flags,
  7560. # -berok will link without error, but may produce a broken library.
  7561. no_undefined_flag=' ${wl}-bernotok'
  7562. allow_undefined_flag=' ${wl}-berok'
  7563. # -bexpall does not export symbols beginning with underscore (_)
  7564. always_export_symbols=yes
  7565. # Exported symbols can be pulled into shared objects from archives
  7566. whole_archive_flag_spec=' '
  7567. archive_cmds_need_lc=yes
  7568. # This is similar to how AIX traditionally builds it's shared libraries.
  7569. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7570. fi
  7571. fi
  7572. ;;
  7573. amigaos*)
  7574. 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)'
  7575. hardcode_libdir_flag_spec='-L$libdir'
  7576. hardcode_minus_L=yes
  7577. # see comment about different semantics on the GNU ld section
  7578. ld_shlibs=no
  7579. ;;
  7580. bsdi[45]*)
  7581. export_dynamic_flag_spec=-rdynamic
  7582. ;;
  7583. cygwin* | mingw* | pw32*)
  7584. # When not using gcc, we currently assume that we are using
  7585. # Microsoft Visual C++.
  7586. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7587. # no search path for DLLs.
  7588. hardcode_libdir_flag_spec=' '
  7589. allow_undefined_flag=unsupported
  7590. # Tell ltmain to make .lib files, not .a files.
  7591. libext=lib
  7592. # Tell ltmain to make .dll files, not .so files.
  7593. shrext_cmds=".dll"
  7594. # FIXME: Setting linknames here is a bad hack.
  7595. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7596. # The linker will automatically build a .lib file if we build a DLL.
  7597. old_archive_From_new_cmds='true'
  7598. # FIXME: Should let the user specify the lib program.
  7599. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  7600. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7601. enable_shared_with_static_runtimes=yes
  7602. ;;
  7603. darwin* | rhapsody*)
  7604. case "$host_os" in
  7605. rhapsody* | darwin1.[012])
  7606. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7607. ;;
  7608. *) # Darwin 1.3 on
  7609. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7610. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7611. else
  7612. case ${MACOSX_DEPLOYMENT_TARGET} in
  7613. 10.[012])
  7614. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7615. ;;
  7616. 10.*)
  7617. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7618. ;;
  7619. esac
  7620. fi
  7621. ;;
  7622. esac
  7623. archive_cmds_need_lc=no
  7624. hardcode_direct=no
  7625. hardcode_automatic=yes
  7626. hardcode_shlibpath_var=unsupported
  7627. whole_archive_flag_spec=''
  7628. link_all_deplibs=yes
  7629. if test "$GCC" = yes ; then
  7630. output_verbose_link_cmd='echo'
  7631. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7632. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7633. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  7634. 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}'
  7635. 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}'
  7636. else
  7637. case "$cc_basename" in
  7638. xlc*)
  7639. output_verbose_link_cmd='echo'
  7640. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  7641. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7642. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  7643. 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}'
  7644. 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}'
  7645. ;;
  7646. *)
  7647. ld_shlibs=no
  7648. ;;
  7649. esac
  7650. fi
  7651. ;;
  7652. dgux*)
  7653. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7654. hardcode_libdir_flag_spec='-L$libdir'
  7655. hardcode_shlibpath_var=no
  7656. ;;
  7657. freebsd1*)
  7658. ld_shlibs=no
  7659. ;;
  7660. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7661. # support. Future versions do this automatically, but an explicit c++rt0.o
  7662. # does not break anything, and helps significantly (at the cost of a little
  7663. # extra space).
  7664. freebsd2.2*)
  7665. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7666. hardcode_libdir_flag_spec='-R$libdir'
  7667. hardcode_direct=yes
  7668. hardcode_shlibpath_var=no
  7669. ;;
  7670. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7671. freebsd2*)
  7672. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7673. hardcode_direct=yes
  7674. hardcode_minus_L=yes
  7675. hardcode_shlibpath_var=no
  7676. ;;
  7677. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7678. freebsd* | kfreebsd*-gnu | dragonfly*)
  7679. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7680. hardcode_libdir_flag_spec='-R$libdir'
  7681. hardcode_direct=yes
  7682. hardcode_shlibpath_var=no
  7683. ;;
  7684. hpux9*)
  7685. if test "$GCC" = yes; then
  7686. 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'
  7687. else
  7688. 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'
  7689. fi
  7690. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7691. hardcode_libdir_separator=:
  7692. hardcode_direct=yes
  7693. # hardcode_minus_L: Not really in the search PATH,
  7694. # but as the default location of the library.
  7695. hardcode_minus_L=yes
  7696. export_dynamic_flag_spec='${wl}-E'
  7697. ;;
  7698. hpux10* | hpux11*)
  7699. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7700. case "$host_cpu" in
  7701. hppa*64*|ia64*)
  7702. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7703. ;;
  7704. *)
  7705. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7706. ;;
  7707. esac
  7708. else
  7709. case "$host_cpu" in
  7710. hppa*64*|ia64*)
  7711. archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  7712. ;;
  7713. *)
  7714. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7715. ;;
  7716. esac
  7717. fi
  7718. if test "$with_gnu_ld" = no; then
  7719. case "$host_cpu" in
  7720. hppa*64*)
  7721. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7722. hardcode_libdir_flag_spec_ld='+b $libdir'
  7723. hardcode_libdir_separator=:
  7724. hardcode_direct=no
  7725. hardcode_shlibpath_var=no
  7726. ;;
  7727. ia64*)
  7728. hardcode_libdir_flag_spec='-L$libdir'
  7729. hardcode_direct=no
  7730. hardcode_shlibpath_var=no
  7731. # hardcode_minus_L: Not really in the search PATH,
  7732. # but as the default location of the library.
  7733. hardcode_minus_L=yes
  7734. ;;
  7735. *)
  7736. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7737. hardcode_libdir_separator=:
  7738. hardcode_direct=yes
  7739. export_dynamic_flag_spec='${wl}-E'
  7740. # hardcode_minus_L: Not really in the search PATH,
  7741. # but as the default location of the library.
  7742. hardcode_minus_L=yes
  7743. ;;
  7744. esac
  7745. fi
  7746. ;;
  7747. irix5* | irix6* | nonstopux*)
  7748. if test "$GCC" = yes; then
  7749. 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'
  7750. else
  7751. 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'
  7752. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7753. fi
  7754. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7755. hardcode_libdir_separator=:
  7756. link_all_deplibs=yes
  7757. ;;
  7758. netbsd*)
  7759. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7760. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7761. else
  7762. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7763. fi
  7764. hardcode_libdir_flag_spec='-R$libdir'
  7765. hardcode_direct=yes
  7766. hardcode_shlibpath_var=no
  7767. ;;
  7768. newsos6)
  7769. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7770. hardcode_direct=yes
  7771. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7772. hardcode_libdir_separator=:
  7773. hardcode_shlibpath_var=no
  7774. ;;
  7775. openbsd*)
  7776. hardcode_direct=yes
  7777. hardcode_shlibpath_var=no
  7778. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7779. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7780. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7781. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7782. export_dynamic_flag_spec='${wl}-E'
  7783. else
  7784. case $host_os in
  7785. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7786. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7787. hardcode_libdir_flag_spec='-R$libdir'
  7788. ;;
  7789. *)
  7790. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7791. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7792. ;;
  7793. esac
  7794. fi
  7795. ;;
  7796. os2*)
  7797. hardcode_libdir_flag_spec='-L$libdir'
  7798. hardcode_minus_L=yes
  7799. allow_undefined_flag=unsupported
  7800. 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'
  7801. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7802. ;;
  7803. osf3*)
  7804. if test "$GCC" = yes; then
  7805. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7806. 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'
  7807. else
  7808. allow_undefined_flag=' -expect_unresolved \*'
  7809. 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'
  7810. fi
  7811. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7812. hardcode_libdir_separator=:
  7813. ;;
  7814. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7815. if test "$GCC" = yes; then
  7816. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7817. 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'
  7818. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7819. else
  7820. allow_undefined_flag=' -expect_unresolved \*'
  7821. 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'
  7822. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7823. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  7824. # Both c and cxx compiler support -rpath directly
  7825. hardcode_libdir_flag_spec='-rpath $libdir'
  7826. fi
  7827. hardcode_libdir_separator=:
  7828. ;;
  7829. sco3.2v5*)
  7830. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7831. hardcode_shlibpath_var=no
  7832. export_dynamic_flag_spec='${wl}-Bexport'
  7833. runpath_var=LD_RUN_PATH
  7834. hardcode_runpath_var=yes
  7835. ;;
  7836. solaris*)
  7837. no_undefined_flag=' -z text'
  7838. if test "$GCC" = yes; then
  7839. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7840. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7841. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7842. else
  7843. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7844. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7845. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7846. fi
  7847. hardcode_libdir_flag_spec='-R$libdir'
  7848. hardcode_shlibpath_var=no
  7849. case $host_os in
  7850. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7851. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  7852. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
  7853. esac
  7854. link_all_deplibs=yes
  7855. ;;
  7856. sunos4*)
  7857. if test "x$host_vendor" = xsequent; then
  7858. # Use $CC to link under sequent, because it throws in some extra .o
  7859. # files that make .init and .fini sections work.
  7860. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7861. else
  7862. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7863. fi
  7864. hardcode_libdir_flag_spec='-L$libdir'
  7865. hardcode_direct=yes
  7866. hardcode_minus_L=yes
  7867. hardcode_shlibpath_var=no
  7868. ;;
  7869. sysv4)
  7870. case $host_vendor in
  7871. sni)
  7872. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7873. hardcode_direct=yes # is this really true???
  7874. ;;
  7875. siemens)
  7876. ## LD is ld it makes a PLAMLIB
  7877. ## CC just makes a GrossModule.
  7878. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7879. reload_cmds='$CC -r -o $output$reload_objs'
  7880. hardcode_direct=no
  7881. ;;
  7882. motorola)
  7883. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7884. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7885. ;;
  7886. esac
  7887. runpath_var='LD_RUN_PATH'
  7888. hardcode_shlibpath_var=no
  7889. ;;
  7890. sysv4.3*)
  7891. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7892. hardcode_shlibpath_var=no
  7893. export_dynamic_flag_spec='-Bexport'
  7894. ;;
  7895. sysv4*MP*)
  7896. if test -d /usr/nec; then
  7897. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7898. hardcode_shlibpath_var=no
  7899. runpath_var=LD_RUN_PATH
  7900. hardcode_runpath_var=yes
  7901. ld_shlibs=yes
  7902. fi
  7903. ;;
  7904. sysv4.2uw2*)
  7905. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7906. hardcode_direct=yes
  7907. hardcode_minus_L=no
  7908. hardcode_shlibpath_var=no
  7909. hardcode_runpath_var=yes
  7910. runpath_var=LD_RUN_PATH
  7911. ;;
  7912. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  7913. no_undefined_flag='${wl}-z ${wl}text'
  7914. if test "$GCC" = yes; then
  7915. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7916. else
  7917. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7918. fi
  7919. runpath_var='LD_RUN_PATH'
  7920. hardcode_shlibpath_var=no
  7921. ;;
  7922. sysv5*)
  7923. no_undefined_flag=' -z text'
  7924. # $CC -shared without GNU ld will not create a library from C++
  7925. # object files and a static libstdc++, better avoid it by now
  7926. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7927. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7928. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7929. hardcode_libdir_flag_spec=
  7930. hardcode_shlibpath_var=no
  7931. runpath_var='LD_RUN_PATH'
  7932. ;;
  7933. uts4*)
  7934. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7935. hardcode_libdir_flag_spec='-L$libdir'
  7936. hardcode_shlibpath_var=no
  7937. ;;
  7938. *)
  7939. ld_shlibs=no
  7940. ;;
  7941. esac
  7942. fi
  7943. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7944. echo "${ECHO_T}$ld_shlibs" >&6
  7945. test "$ld_shlibs" = no && can_build_shared=no
  7946. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7947. if test "$GCC" = yes; then
  7948. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7949. fi
  7950. #
  7951. # Do we need to explicitly link libc?
  7952. #
  7953. case "x$archive_cmds_need_lc" in
  7954. x|xyes)
  7955. # Assume -lc should be added
  7956. archive_cmds_need_lc=yes
  7957. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7958. case $archive_cmds in
  7959. *'~'*)
  7960. # FIXME: we may have to deal with multi-command sequences.
  7961. ;;
  7962. '$CC '*)
  7963. # Test whether the compiler implicitly links with -lc since on some
  7964. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7965. # to ld, don't add -lc before -lgcc.
  7966. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7967. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  7968. $rm conftest*
  7969. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7970. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7971. (eval $ac_compile) 2>&5
  7972. ac_status=$?
  7973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7974. (exit $ac_status); } 2>conftest.err; then
  7975. soname=conftest
  7976. lib=conftest
  7977. libobjs=conftest.$ac_objext
  7978. deplibs=
  7979. wl=$lt_prog_compiler_wl
  7980. compiler_flags=-v
  7981. linker_flags=-v
  7982. verstring=
  7983. output_objdir=.
  7984. libname=conftest
  7985. lt_save_allow_undefined_flag=$allow_undefined_flag
  7986. allow_undefined_flag=
  7987. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7988. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7989. ac_status=$?
  7990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7991. (exit $ac_status); }
  7992. then
  7993. archive_cmds_need_lc=no
  7994. else
  7995. archive_cmds_need_lc=yes
  7996. fi
  7997. allow_undefined_flag=$lt_save_allow_undefined_flag
  7998. else
  7999. cat conftest.err 1>&5
  8000. fi
  8001. $rm conftest*
  8002. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8003. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  8004. ;;
  8005. esac
  8006. fi
  8007. ;;
  8008. esac
  8009. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8010. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  8011. library_names_spec=
  8012. libname_spec='lib$name'
  8013. soname_spec=
  8014. shrext_cmds=".so"
  8015. postinstall_cmds=
  8016. postuninstall_cmds=
  8017. finish_cmds=
  8018. finish_eval=
  8019. shlibpath_var=
  8020. shlibpath_overrides_runpath=unknown
  8021. version_type=none
  8022. dynamic_linker="$host_os ld.so"
  8023. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8024. if test "$GCC" = yes; then
  8025. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8026. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  8027. # if the path contains ";" then we assume it to be the separator
  8028. # otherwise default to the standard path separator (i.e. ":") - it is
  8029. # assumed that no part of a normal pathname contains ";" but that should
  8030. # okay in the real world where ";" in dirpaths is itself problematic.
  8031. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8032. else
  8033. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8034. fi
  8035. else
  8036. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8037. fi
  8038. need_lib_prefix=unknown
  8039. hardcode_into_libs=no
  8040. # when you set need_version to no, make sure it does not cause -set_version
  8041. # flags to be left without arguments
  8042. need_version=unknown
  8043. case $host_os in
  8044. aix3*)
  8045. version_type=linux
  8046. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8047. shlibpath_var=LIBPATH
  8048. # AIX 3 has no versioning support, so we append a major version to the name.
  8049. soname_spec='${libname}${release}${shared_ext}$major'
  8050. ;;
  8051. aix4* | aix5*)
  8052. version_type=linux
  8053. need_lib_prefix=no
  8054. need_version=no
  8055. hardcode_into_libs=yes
  8056. if test "$host_cpu" = ia64; then
  8057. # AIX 5 supports IA64
  8058. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8059. shlibpath_var=LD_LIBRARY_PATH
  8060. else
  8061. # With GCC up to 2.95.x, collect2 would create an import file
  8062. # for dependence libraries. The import file would start with
  8063. # the line `#! .'. This would cause the generated library to
  8064. # depend on `.', always an invalid library. This was fixed in
  8065. # development snapshots of GCC prior to 3.0.
  8066. case $host_os in
  8067. aix4 | aix4.[01] | aix4.[01].*)
  8068. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8069. echo ' yes '
  8070. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  8071. :
  8072. else
  8073. can_build_shared=no
  8074. fi
  8075. ;;
  8076. esac
  8077. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8078. # soname into executable. Probably we can add versioning support to
  8079. # collect2, so additional links can be useful in future.
  8080. if test "$aix_use_runtimelinking" = yes; then
  8081. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8082. # instead of lib<name>.a to let people know that these are not
  8083. # typical AIX shared libraries.
  8084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8085. else
  8086. # We preserve .a as extension for shared libraries through AIX4.2
  8087. # and later when we are not doing run time linking.
  8088. library_names_spec='${libname}${release}.a $libname.a'
  8089. soname_spec='${libname}${release}${shared_ext}$major'
  8090. fi
  8091. shlibpath_var=LIBPATH
  8092. fi
  8093. ;;
  8094. amigaos*)
  8095. library_names_spec='$libname.ixlibrary $libname.a'
  8096. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8097. 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'
  8098. ;;
  8099. beos*)
  8100. library_names_spec='${libname}${shared_ext}'
  8101. dynamic_linker="$host_os ld.so"
  8102. shlibpath_var=LIBRARY_PATH
  8103. ;;
  8104. bsdi[45]*)
  8105. version_type=linux
  8106. need_version=no
  8107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8108. soname_spec='${libname}${release}${shared_ext}$major'
  8109. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8110. shlibpath_var=LD_LIBRARY_PATH
  8111. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8112. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8113. # the default ld.so.conf also contains /usr/contrib/lib and
  8114. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8115. # libtool to hard-code these into programs
  8116. ;;
  8117. cygwin* | mingw* | pw32*)
  8118. version_type=windows
  8119. shrext_cmds=".dll"
  8120. need_version=no
  8121. need_lib_prefix=no
  8122. case $GCC,$host_os in
  8123. yes,cygwin* | yes,mingw* | yes,pw32*)
  8124. library_names_spec='$libname.dll.a'
  8125. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8126. postinstall_cmds='base_file=`basename \${file}`~
  8127. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  8128. dldir=$destdir/`dirname \$dlpath`~
  8129. test -d \$dldir || mkdir -p \$dldir~
  8130. $install_prog $dir/$dlname \$dldir/$dlname'
  8131. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8132. dlpath=$dir/\$dldll~
  8133. $rm \$dlpath'
  8134. shlibpath_overrides_runpath=yes
  8135. case $host_os in
  8136. cygwin*)
  8137. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8138. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8139. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8140. ;;
  8141. mingw*)
  8142. # MinGW DLLs use traditional 'lib' prefix
  8143. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8144. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8145. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  8146. # It is most probably a Windows format PATH printed by
  8147. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8148. # path with ; separators, and with drive letters. We can handle the
  8149. # drive letters (cygwin fileutils understands them), so leave them,
  8150. # especially as we might pass files found there to a mingw objdump,
  8151. # which wouldn't understand a cygwinified path. Ahh.
  8152. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8153. else
  8154. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8155. fi
  8156. ;;
  8157. pw32*)
  8158. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8159. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8160. ;;
  8161. esac
  8162. ;;
  8163. *)
  8164. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8165. ;;
  8166. esac
  8167. dynamic_linker='Win32 ld.exe'
  8168. # FIXME: first we should search . and the directory the executable is in
  8169. shlibpath_var=PATH
  8170. ;;
  8171. darwin* | rhapsody*)
  8172. dynamic_linker="$host_os dyld"
  8173. version_type=darwin
  8174. need_lib_prefix=no
  8175. need_version=no
  8176. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8177. soname_spec='${libname}${release}${major}$shared_ext'
  8178. shlibpath_overrides_runpath=yes
  8179. shlibpath_var=DYLD_LIBRARY_PATH
  8180. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  8181. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  8182. if test "$GCC" = yes; then
  8183. 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"`
  8184. else
  8185. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  8186. fi
  8187. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8188. ;;
  8189. dgux*)
  8190. version_type=linux
  8191. need_lib_prefix=no
  8192. need_version=no
  8193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8194. soname_spec='${libname}${release}${shared_ext}$major'
  8195. shlibpath_var=LD_LIBRARY_PATH
  8196. ;;
  8197. freebsd1*)
  8198. dynamic_linker=no
  8199. ;;
  8200. kfreebsd*-gnu)
  8201. version_type=linux
  8202. need_lib_prefix=no
  8203. need_version=no
  8204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8205. soname_spec='${libname}${release}${shared_ext}$major'
  8206. shlibpath_var=LD_LIBRARY_PATH
  8207. shlibpath_overrides_runpath=no
  8208. hardcode_into_libs=yes
  8209. dynamic_linker='GNU ld.so'
  8210. ;;
  8211. freebsd* | dragonfly*)
  8212. # DragonFly does not have aout. When/if they implement a new
  8213. # versioning mechanism, adjust this.
  8214. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  8215. version_type=freebsd-$objformat
  8216. case $version_type in
  8217. freebsd-elf*)
  8218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8219. need_version=no
  8220. need_lib_prefix=no
  8221. ;;
  8222. freebsd-*)
  8223. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8224. need_version=yes
  8225. ;;
  8226. esac
  8227. shlibpath_var=LD_LIBRARY_PATH
  8228. case $host_os in
  8229. freebsd2*)
  8230. shlibpath_overrides_runpath=yes
  8231. ;;
  8232. freebsd3.[01]* | freebsdelf3.[01]*)
  8233. shlibpath_overrides_runpath=yes
  8234. hardcode_into_libs=yes
  8235. ;;
  8236. *) # from 3.2 on
  8237. shlibpath_overrides_runpath=no
  8238. hardcode_into_libs=yes
  8239. ;;
  8240. esac
  8241. ;;
  8242. gnu*)
  8243. version_type=linux
  8244. need_lib_prefix=no
  8245. need_version=no
  8246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8247. soname_spec='${libname}${release}${shared_ext}$major'
  8248. shlibpath_var=LD_LIBRARY_PATH
  8249. hardcode_into_libs=yes
  8250. ;;
  8251. hpux9* | hpux10* | hpux11*)
  8252. # Give a soname corresponding to the major version so that dld.sl refuses to
  8253. # link against other versions.
  8254. version_type=sunos
  8255. need_lib_prefix=no
  8256. need_version=no
  8257. case "$host_cpu" in
  8258. ia64*)
  8259. shrext_cmds='.so'
  8260. hardcode_into_libs=yes
  8261. dynamic_linker="$host_os dld.so"
  8262. shlibpath_var=LD_LIBRARY_PATH
  8263. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8264. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8265. soname_spec='${libname}${release}${shared_ext}$major'
  8266. if test "X$HPUX_IA64_MODE" = X32; then
  8267. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8268. else
  8269. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8270. fi
  8271. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8272. ;;
  8273. hppa*64*)
  8274. shrext_cmds='.sl'
  8275. hardcode_into_libs=yes
  8276. dynamic_linker="$host_os dld.sl"
  8277. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8278. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8279. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8280. soname_spec='${libname}${release}${shared_ext}$major'
  8281. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8282. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8283. ;;
  8284. *)
  8285. shrext_cmds='.sl'
  8286. dynamic_linker="$host_os dld.sl"
  8287. shlibpath_var=SHLIB_PATH
  8288. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8290. soname_spec='${libname}${release}${shared_ext}$major'
  8291. ;;
  8292. esac
  8293. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8294. postinstall_cmds='chmod 555 $lib'
  8295. ;;
  8296. irix5* | irix6* | nonstopux*)
  8297. case $host_os in
  8298. nonstopux*) version_type=nonstopux ;;
  8299. *)
  8300. if test "$lt_cv_prog_gnu_ld" = yes; then
  8301. version_type=linux
  8302. else
  8303. version_type=irix
  8304. fi ;;
  8305. esac
  8306. need_lib_prefix=no
  8307. need_version=no
  8308. soname_spec='${libname}${release}${shared_ext}$major'
  8309. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8310. case $host_os in
  8311. irix5* | nonstopux*)
  8312. libsuff= shlibsuff=
  8313. ;;
  8314. *)
  8315. case $LD in # libtool.m4 will add one of these switches to LD
  8316. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8317. libsuff= shlibsuff= libmagic=32-bit;;
  8318. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8319. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8320. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8321. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8322. *) libsuff= shlibsuff= libmagic=never-match;;
  8323. esac
  8324. ;;
  8325. esac
  8326. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8327. shlibpath_overrides_runpath=no
  8328. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8329. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8330. hardcode_into_libs=yes
  8331. ;;
  8332. # No shared lib support for Linux oldld, aout, or coff.
  8333. linux*oldld* | linux*aout* | linux*coff*)
  8334. dynamic_linker=no
  8335. ;;
  8336. # This must be Linux ELF.
  8337. linux*)
  8338. version_type=linux
  8339. need_lib_prefix=no
  8340. need_version=no
  8341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8342. soname_spec='${libname}${release}${shared_ext}$major'
  8343. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8344. shlibpath_var=LD_LIBRARY_PATH
  8345. shlibpath_overrides_runpath=no
  8346. # This implies no fast_install, which is unacceptable.
  8347. # Some rework will be needed to allow for fast_install
  8348. # before this can be enabled.
  8349. hardcode_into_libs=yes
  8350. # Append ld.so.conf contents to the search path
  8351. if test -f /etc/ld.so.conf; then
  8352. 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8353. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8354. fi
  8355. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8356. # powerpc, because MkLinux only supported shared libraries with the
  8357. # GNU dynamic linker. Since this was broken with cross compilers,
  8358. # most powerpc-linux boxes support dynamic linking these days and
  8359. # people can always --disable-shared, the test was removed, and we
  8360. # assume the GNU/Linux dynamic linker is in use.
  8361. dynamic_linker='GNU/Linux ld.so'
  8362. ;;
  8363. knetbsd*-gnu)
  8364. version_type=linux
  8365. need_lib_prefix=no
  8366. need_version=no
  8367. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8368. soname_spec='${libname}${release}${shared_ext}$major'
  8369. shlibpath_var=LD_LIBRARY_PATH
  8370. shlibpath_overrides_runpath=no
  8371. hardcode_into_libs=yes
  8372. dynamic_linker='GNU ld.so'
  8373. ;;
  8374. netbsd*)
  8375. version_type=sunos
  8376. need_lib_prefix=no
  8377. need_version=no
  8378. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8380. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8381. dynamic_linker='NetBSD (a.out) ld.so'
  8382. else
  8383. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8384. soname_spec='${libname}${release}${shared_ext}$major'
  8385. dynamic_linker='NetBSD ld.elf_so'
  8386. fi
  8387. shlibpath_var=LD_LIBRARY_PATH
  8388. shlibpath_overrides_runpath=yes
  8389. hardcode_into_libs=yes
  8390. ;;
  8391. newsos6)
  8392. version_type=linux
  8393. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8394. shlibpath_var=LD_LIBRARY_PATH
  8395. shlibpath_overrides_runpath=yes
  8396. ;;
  8397. nto-qnx*)
  8398. version_type=linux
  8399. need_lib_prefix=no
  8400. need_version=no
  8401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8402. soname_spec='${libname}${release}${shared_ext}$major'
  8403. shlibpath_var=LD_LIBRARY_PATH
  8404. shlibpath_overrides_runpath=yes
  8405. ;;
  8406. openbsd*)
  8407. version_type=sunos
  8408. need_lib_prefix=no
  8409. need_version=no
  8410. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8411. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8412. shlibpath_var=LD_LIBRARY_PATH
  8413. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8414. case $host_os in
  8415. openbsd2.[89] | openbsd2.[89].*)
  8416. shlibpath_overrides_runpath=no
  8417. ;;
  8418. *)
  8419. shlibpath_overrides_runpath=yes
  8420. ;;
  8421. esac
  8422. else
  8423. shlibpath_overrides_runpath=yes
  8424. fi
  8425. ;;
  8426. os2*)
  8427. libname_spec='$name'
  8428. shrext_cmds=".dll"
  8429. need_lib_prefix=no
  8430. library_names_spec='$libname${shared_ext} $libname.a'
  8431. dynamic_linker='OS/2 ld.exe'
  8432. shlibpath_var=LIBPATH
  8433. ;;
  8434. osf3* | osf4* | osf5*)
  8435. version_type=osf
  8436. need_lib_prefix=no
  8437. need_version=no
  8438. soname_spec='${libname}${release}${shared_ext}$major'
  8439. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8440. shlibpath_var=LD_LIBRARY_PATH
  8441. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8442. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8443. ;;
  8444. sco3.2v5*)
  8445. version_type=osf
  8446. soname_spec='${libname}${release}${shared_ext}$major'
  8447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8448. shlibpath_var=LD_LIBRARY_PATH
  8449. ;;
  8450. solaris*)
  8451. version_type=linux
  8452. need_lib_prefix=no
  8453. need_version=no
  8454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8455. soname_spec='${libname}${release}${shared_ext}$major'
  8456. shlibpath_var=LD_LIBRARY_PATH
  8457. shlibpath_overrides_runpath=yes
  8458. hardcode_into_libs=yes
  8459. # ldd complains unless libraries are executable
  8460. postinstall_cmds='chmod +x $lib'
  8461. ;;
  8462. sunos4*)
  8463. version_type=sunos
  8464. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8465. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8466. shlibpath_var=LD_LIBRARY_PATH
  8467. shlibpath_overrides_runpath=yes
  8468. if test "$with_gnu_ld" = yes; then
  8469. need_lib_prefix=no
  8470. fi
  8471. need_version=yes
  8472. ;;
  8473. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8474. version_type=linux
  8475. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8476. soname_spec='${libname}${release}${shared_ext}$major'
  8477. shlibpath_var=LD_LIBRARY_PATH
  8478. case $host_vendor in
  8479. sni)
  8480. shlibpath_overrides_runpath=no
  8481. need_lib_prefix=no
  8482. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8483. runpath_var=LD_RUN_PATH
  8484. ;;
  8485. siemens)
  8486. need_lib_prefix=no
  8487. ;;
  8488. motorola)
  8489. need_lib_prefix=no
  8490. need_version=no
  8491. shlibpath_overrides_runpath=no
  8492. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8493. ;;
  8494. esac
  8495. ;;
  8496. sysv4*MP*)
  8497. if test -d /usr/nec ;then
  8498. version_type=linux
  8499. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8500. soname_spec='$libname${shared_ext}.$major'
  8501. shlibpath_var=LD_LIBRARY_PATH
  8502. fi
  8503. ;;
  8504. uts4*)
  8505. version_type=linux
  8506. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8507. soname_spec='${libname}${release}${shared_ext}$major'
  8508. shlibpath_var=LD_LIBRARY_PATH
  8509. ;;
  8510. *)
  8511. dynamic_linker=no
  8512. ;;
  8513. esac
  8514. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8515. echo "${ECHO_T}$dynamic_linker" >&6
  8516. test "$dynamic_linker" = no && can_build_shared=no
  8517. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8518. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  8519. hardcode_action=
  8520. if test -n "$hardcode_libdir_flag_spec" || \
  8521. test -n "$runpath_var" || \
  8522. test "X$hardcode_automatic" = "Xyes" ; then
  8523. # We can hardcode non-existant directories.
  8524. if test "$hardcode_direct" != no &&
  8525. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8526. # have to relink, otherwise we might link with an installed library
  8527. # when we should be linking with a yet-to-be-installed one
  8528. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8529. test "$hardcode_minus_L" != no; then
  8530. # Linking always hardcodes the temporary library directory.
  8531. hardcode_action=relink
  8532. else
  8533. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8534. hardcode_action=immediate
  8535. fi
  8536. else
  8537. # We cannot hardcode anything, or else we can only hardcode existing
  8538. # directories.
  8539. hardcode_action=unsupported
  8540. fi
  8541. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8542. echo "${ECHO_T}$hardcode_action" >&6
  8543. if test "$hardcode_action" = relink; then
  8544. # Fast installation is not supported
  8545. enable_fast_install=no
  8546. elif test "$shlibpath_overrides_runpath" = yes ||
  8547. test "$enable_shared" = no; then
  8548. # Fast installation is not necessary
  8549. enable_fast_install=needless
  8550. fi
  8551. striplib=
  8552. old_striplib=
  8553. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8554. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  8555. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8556. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8557. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8558. echo "$as_me:$LINENO: result: yes" >&5
  8559. echo "${ECHO_T}yes" >&6
  8560. else
  8561. # FIXME - insert some real tests, host_os isn't really good enough
  8562. case $host_os in
  8563. darwin*)
  8564. if test -n "$STRIP" ; then
  8565. striplib="$STRIP -x"
  8566. echo "$as_me:$LINENO: result: yes" >&5
  8567. echo "${ECHO_T}yes" >&6
  8568. else
  8569. echo "$as_me:$LINENO: result: no" >&5
  8570. echo "${ECHO_T}no" >&6
  8571. fi
  8572. ;;
  8573. *)
  8574. echo "$as_me:$LINENO: result: no" >&5
  8575. echo "${ECHO_T}no" >&6
  8576. ;;
  8577. esac
  8578. fi
  8579. if test "x$enable_dlopen" != xyes; then
  8580. enable_dlopen=unknown
  8581. enable_dlopen_self=unknown
  8582. enable_dlopen_self_static=unknown
  8583. else
  8584. lt_cv_dlopen=no
  8585. lt_cv_dlopen_libs=
  8586. case $host_os in
  8587. beos*)
  8588. lt_cv_dlopen="load_add_on"
  8589. lt_cv_dlopen_libs=
  8590. lt_cv_dlopen_self=yes
  8591. ;;
  8592. mingw* | pw32*)
  8593. lt_cv_dlopen="LoadLibrary"
  8594. lt_cv_dlopen_libs=
  8595. ;;
  8596. cygwin*)
  8597. lt_cv_dlopen="dlopen"
  8598. lt_cv_dlopen_libs=
  8599. ;;
  8600. darwin*)
  8601. # if libdl is installed we need to link against it
  8602. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8603. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8604. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8605. echo $ECHO_N "(cached) $ECHO_C" >&6
  8606. else
  8607. ac_check_lib_save_LIBS=$LIBS
  8608. LIBS="-ldl $LIBS"
  8609. cat >conftest.$ac_ext <<_ACEOF
  8610. /* confdefs.h. */
  8611. _ACEOF
  8612. cat confdefs.h >>conftest.$ac_ext
  8613. cat >>conftest.$ac_ext <<_ACEOF
  8614. /* end confdefs.h. */
  8615. /* Override any gcc2 internal prototype to avoid an error. */
  8616. #ifdef __cplusplus
  8617. extern "C"
  8618. #endif
  8619. /* We use char because int might match the return type of a gcc2
  8620. builtin and then its argument prototype would still apply. */
  8621. char dlopen ();
  8622. int
  8623. main ()
  8624. {
  8625. dlopen ();
  8626. ;
  8627. return 0;
  8628. }
  8629. _ACEOF
  8630. rm -f conftest.$ac_objext conftest$ac_exeext
  8631. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8632. (eval $ac_link) 2>conftest.er1
  8633. ac_status=$?
  8634. grep -v '^ *+' conftest.er1 >conftest.err
  8635. rm -f conftest.er1
  8636. cat conftest.err >&5
  8637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8638. (exit $ac_status); } &&
  8639. { ac_try='test -z "$ac_c_werror_flag"
  8640. || test ! -s conftest.err'
  8641. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8642. (eval $ac_try) 2>&5
  8643. ac_status=$?
  8644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8645. (exit $ac_status); }; } &&
  8646. { ac_try='test -s conftest$ac_exeext'
  8647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8648. (eval $ac_try) 2>&5
  8649. ac_status=$?
  8650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8651. (exit $ac_status); }; }; then
  8652. ac_cv_lib_dl_dlopen=yes
  8653. else
  8654. echo "$as_me: failed program was:" >&5
  8655. sed 's/^/| /' conftest.$ac_ext >&5
  8656. ac_cv_lib_dl_dlopen=no
  8657. fi
  8658. rm -f conftest.err conftest.$ac_objext \
  8659. conftest$ac_exeext conftest.$ac_ext
  8660. LIBS=$ac_check_lib_save_LIBS
  8661. fi
  8662. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8663. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8664. if test $ac_cv_lib_dl_dlopen = yes; then
  8665. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8666. else
  8667. lt_cv_dlopen="dyld"
  8668. lt_cv_dlopen_libs=
  8669. lt_cv_dlopen_self=yes
  8670. fi
  8671. ;;
  8672. *)
  8673. echo "$as_me:$LINENO: checking for shl_load" >&5
  8674. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  8675. if test "${ac_cv_func_shl_load+set}" = set; then
  8676. echo $ECHO_N "(cached) $ECHO_C" >&6
  8677. else
  8678. cat >conftest.$ac_ext <<_ACEOF
  8679. /* confdefs.h. */
  8680. _ACEOF
  8681. cat confdefs.h >>conftest.$ac_ext
  8682. cat >>conftest.$ac_ext <<_ACEOF
  8683. /* end confdefs.h. */
  8684. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8685. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8686. #define shl_load innocuous_shl_load
  8687. /* System header to define __stub macros and hopefully few prototypes,
  8688. which can conflict with char shl_load (); below.
  8689. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8690. <limits.h> exists even on freestanding compilers. */
  8691. #ifdef __STDC__
  8692. # include <limits.h>
  8693. #else
  8694. # include <assert.h>
  8695. #endif
  8696. #undef shl_load
  8697. /* Override any gcc2 internal prototype to avoid an error. */
  8698. #ifdef __cplusplus
  8699. extern "C"
  8700. {
  8701. #endif
  8702. /* We use char because int might match the return type of a gcc2
  8703. builtin and then its argument prototype would still apply. */
  8704. char shl_load ();
  8705. /* The GNU C library defines this for functions which it implements
  8706. to always fail with ENOSYS. Some functions are actually named
  8707. something starting with __ and the normal name is an alias. */
  8708. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  8709. choke me
  8710. #else
  8711. char (*f) () = shl_load;
  8712. #endif
  8713. #ifdef __cplusplus
  8714. }
  8715. #endif
  8716. int
  8717. main ()
  8718. {
  8719. return f != shl_load;
  8720. ;
  8721. return 0;
  8722. }
  8723. _ACEOF
  8724. rm -f conftest.$ac_objext conftest$ac_exeext
  8725. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8726. (eval $ac_link) 2>conftest.er1
  8727. ac_status=$?
  8728. grep -v '^ *+' conftest.er1 >conftest.err
  8729. rm -f conftest.er1
  8730. cat conftest.err >&5
  8731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8732. (exit $ac_status); } &&
  8733. { ac_try='test -z "$ac_c_werror_flag"
  8734. || test ! -s conftest.err'
  8735. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8736. (eval $ac_try) 2>&5
  8737. ac_status=$?
  8738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8739. (exit $ac_status); }; } &&
  8740. { ac_try='test -s conftest$ac_exeext'
  8741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8742. (eval $ac_try) 2>&5
  8743. ac_status=$?
  8744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8745. (exit $ac_status); }; }; then
  8746. ac_cv_func_shl_load=yes
  8747. else
  8748. echo "$as_me: failed program was:" >&5
  8749. sed 's/^/| /' conftest.$ac_ext >&5
  8750. ac_cv_func_shl_load=no
  8751. fi
  8752. rm -f conftest.err conftest.$ac_objext \
  8753. conftest$ac_exeext conftest.$ac_ext
  8754. fi
  8755. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8756. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  8757. if test $ac_cv_func_shl_load = yes; then
  8758. lt_cv_dlopen="shl_load"
  8759. else
  8760. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8761. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  8762. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8763. echo $ECHO_N "(cached) $ECHO_C" >&6
  8764. else
  8765. ac_check_lib_save_LIBS=$LIBS
  8766. LIBS="-ldld $LIBS"
  8767. cat >conftest.$ac_ext <<_ACEOF
  8768. /* confdefs.h. */
  8769. _ACEOF
  8770. cat confdefs.h >>conftest.$ac_ext
  8771. cat >>conftest.$ac_ext <<_ACEOF
  8772. /* end confdefs.h. */
  8773. /* Override any gcc2 internal prototype to avoid an error. */
  8774. #ifdef __cplusplus
  8775. extern "C"
  8776. #endif
  8777. /* We use char because int might match the return type of a gcc2
  8778. builtin and then its argument prototype would still apply. */
  8779. char shl_load ();
  8780. int
  8781. main ()
  8782. {
  8783. shl_load ();
  8784. ;
  8785. return 0;
  8786. }
  8787. _ACEOF
  8788. rm -f conftest.$ac_objext conftest$ac_exeext
  8789. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8790. (eval $ac_link) 2>conftest.er1
  8791. ac_status=$?
  8792. grep -v '^ *+' conftest.er1 >conftest.err
  8793. rm -f conftest.er1
  8794. cat conftest.err >&5
  8795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8796. (exit $ac_status); } &&
  8797. { ac_try='test -z "$ac_c_werror_flag"
  8798. || test ! -s conftest.err'
  8799. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8800. (eval $ac_try) 2>&5
  8801. ac_status=$?
  8802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8803. (exit $ac_status); }; } &&
  8804. { ac_try='test -s conftest$ac_exeext'
  8805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8806. (eval $ac_try) 2>&5
  8807. ac_status=$?
  8808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8809. (exit $ac_status); }; }; then
  8810. ac_cv_lib_dld_shl_load=yes
  8811. else
  8812. echo "$as_me: failed program was:" >&5
  8813. sed 's/^/| /' conftest.$ac_ext >&5
  8814. ac_cv_lib_dld_shl_load=no
  8815. fi
  8816. rm -f conftest.err conftest.$ac_objext \
  8817. conftest$ac_exeext conftest.$ac_ext
  8818. LIBS=$ac_check_lib_save_LIBS
  8819. fi
  8820. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8821. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  8822. if test $ac_cv_lib_dld_shl_load = yes; then
  8823. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8824. else
  8825. echo "$as_me:$LINENO: checking for dlopen" >&5
  8826. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  8827. if test "${ac_cv_func_dlopen+set}" = set; then
  8828. echo $ECHO_N "(cached) $ECHO_C" >&6
  8829. else
  8830. cat >conftest.$ac_ext <<_ACEOF
  8831. /* confdefs.h. */
  8832. _ACEOF
  8833. cat confdefs.h >>conftest.$ac_ext
  8834. cat >>conftest.$ac_ext <<_ACEOF
  8835. /* end confdefs.h. */
  8836. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8837. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8838. #define dlopen innocuous_dlopen
  8839. /* System header to define __stub macros and hopefully few prototypes,
  8840. which can conflict with char dlopen (); below.
  8841. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8842. <limits.h> exists even on freestanding compilers. */
  8843. #ifdef __STDC__
  8844. # include <limits.h>
  8845. #else
  8846. # include <assert.h>
  8847. #endif
  8848. #undef dlopen
  8849. /* Override any gcc2 internal prototype to avoid an error. */
  8850. #ifdef __cplusplus
  8851. extern "C"
  8852. {
  8853. #endif
  8854. /* We use char because int might match the return type of a gcc2
  8855. builtin and then its argument prototype would still apply. */
  8856. char dlopen ();
  8857. /* The GNU C library defines this for functions which it implements
  8858. to always fail with ENOSYS. Some functions are actually named
  8859. something starting with __ and the normal name is an alias. */
  8860. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  8861. choke me
  8862. #else
  8863. char (*f) () = dlopen;
  8864. #endif
  8865. #ifdef __cplusplus
  8866. }
  8867. #endif
  8868. int
  8869. main ()
  8870. {
  8871. return f != dlopen;
  8872. ;
  8873. return 0;
  8874. }
  8875. _ACEOF
  8876. rm -f conftest.$ac_objext conftest$ac_exeext
  8877. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8878. (eval $ac_link) 2>conftest.er1
  8879. ac_status=$?
  8880. grep -v '^ *+' conftest.er1 >conftest.err
  8881. rm -f conftest.er1
  8882. cat conftest.err >&5
  8883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8884. (exit $ac_status); } &&
  8885. { ac_try='test -z "$ac_c_werror_flag"
  8886. || test ! -s conftest.err'
  8887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8888. (eval $ac_try) 2>&5
  8889. ac_status=$?
  8890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8891. (exit $ac_status); }; } &&
  8892. { ac_try='test -s conftest$ac_exeext'
  8893. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8894. (eval $ac_try) 2>&5
  8895. ac_status=$?
  8896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8897. (exit $ac_status); }; }; then
  8898. ac_cv_func_dlopen=yes
  8899. else
  8900. echo "$as_me: failed program was:" >&5
  8901. sed 's/^/| /' conftest.$ac_ext >&5
  8902. ac_cv_func_dlopen=no
  8903. fi
  8904. rm -f conftest.err conftest.$ac_objext \
  8905. conftest$ac_exeext conftest.$ac_ext
  8906. fi
  8907. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8908. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  8909. if test $ac_cv_func_dlopen = yes; then
  8910. lt_cv_dlopen="dlopen"
  8911. else
  8912. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8913. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8914. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8915. echo $ECHO_N "(cached) $ECHO_C" >&6
  8916. else
  8917. ac_check_lib_save_LIBS=$LIBS
  8918. LIBS="-ldl $LIBS"
  8919. cat >conftest.$ac_ext <<_ACEOF
  8920. /* confdefs.h. */
  8921. _ACEOF
  8922. cat confdefs.h >>conftest.$ac_ext
  8923. cat >>conftest.$ac_ext <<_ACEOF
  8924. /* end confdefs.h. */
  8925. /* Override any gcc2 internal prototype to avoid an error. */
  8926. #ifdef __cplusplus
  8927. extern "C"
  8928. #endif
  8929. /* We use char because int might match the return type of a gcc2
  8930. builtin and then its argument prototype would still apply. */
  8931. char dlopen ();
  8932. int
  8933. main ()
  8934. {
  8935. dlopen ();
  8936. ;
  8937. return 0;
  8938. }
  8939. _ACEOF
  8940. rm -f conftest.$ac_objext conftest$ac_exeext
  8941. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8942. (eval $ac_link) 2>conftest.er1
  8943. ac_status=$?
  8944. grep -v '^ *+' conftest.er1 >conftest.err
  8945. rm -f conftest.er1
  8946. cat conftest.err >&5
  8947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8948. (exit $ac_status); } &&
  8949. { ac_try='test -z "$ac_c_werror_flag"
  8950. || test ! -s conftest.err'
  8951. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8952. (eval $ac_try) 2>&5
  8953. ac_status=$?
  8954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8955. (exit $ac_status); }; } &&
  8956. { ac_try='test -s conftest$ac_exeext'
  8957. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8958. (eval $ac_try) 2>&5
  8959. ac_status=$?
  8960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8961. (exit $ac_status); }; }; then
  8962. ac_cv_lib_dl_dlopen=yes
  8963. else
  8964. echo "$as_me: failed program was:" >&5
  8965. sed 's/^/| /' conftest.$ac_ext >&5
  8966. ac_cv_lib_dl_dlopen=no
  8967. fi
  8968. rm -f conftest.err conftest.$ac_objext \
  8969. conftest$ac_exeext conftest.$ac_ext
  8970. LIBS=$ac_check_lib_save_LIBS
  8971. fi
  8972. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8973. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8974. if test $ac_cv_lib_dl_dlopen = yes; then
  8975. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8976. else
  8977. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8978. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  8979. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8980. echo $ECHO_N "(cached) $ECHO_C" >&6
  8981. else
  8982. ac_check_lib_save_LIBS=$LIBS
  8983. LIBS="-lsvld $LIBS"
  8984. cat >conftest.$ac_ext <<_ACEOF
  8985. /* confdefs.h. */
  8986. _ACEOF
  8987. cat confdefs.h >>conftest.$ac_ext
  8988. cat >>conftest.$ac_ext <<_ACEOF
  8989. /* end confdefs.h. */
  8990. /* Override any gcc2 internal prototype to avoid an error. */
  8991. #ifdef __cplusplus
  8992. extern "C"
  8993. #endif
  8994. /* We use char because int might match the return type of a gcc2
  8995. builtin and then its argument prototype would still apply. */
  8996. char dlopen ();
  8997. int
  8998. main ()
  8999. {
  9000. dlopen ();
  9001. ;
  9002. return 0;
  9003. }
  9004. _ACEOF
  9005. rm -f conftest.$ac_objext conftest$ac_exeext
  9006. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9007. (eval $ac_link) 2>conftest.er1
  9008. ac_status=$?
  9009. grep -v '^ *+' conftest.er1 >conftest.err
  9010. rm -f conftest.er1
  9011. cat conftest.err >&5
  9012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9013. (exit $ac_status); } &&
  9014. { ac_try='test -z "$ac_c_werror_flag"
  9015. || test ! -s conftest.err'
  9016. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9017. (eval $ac_try) 2>&5
  9018. ac_status=$?
  9019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9020. (exit $ac_status); }; } &&
  9021. { ac_try='test -s conftest$ac_exeext'
  9022. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9023. (eval $ac_try) 2>&5
  9024. ac_status=$?
  9025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9026. (exit $ac_status); }; }; then
  9027. ac_cv_lib_svld_dlopen=yes
  9028. else
  9029. echo "$as_me: failed program was:" >&5
  9030. sed 's/^/| /' conftest.$ac_ext >&5
  9031. ac_cv_lib_svld_dlopen=no
  9032. fi
  9033. rm -f conftest.err conftest.$ac_objext \
  9034. conftest$ac_exeext conftest.$ac_ext
  9035. LIBS=$ac_check_lib_save_LIBS
  9036. fi
  9037. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9038. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  9039. if test $ac_cv_lib_svld_dlopen = yes; then
  9040. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9041. else
  9042. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9043. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  9044. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9045. echo $ECHO_N "(cached) $ECHO_C" >&6
  9046. else
  9047. ac_check_lib_save_LIBS=$LIBS
  9048. LIBS="-ldld $LIBS"
  9049. cat >conftest.$ac_ext <<_ACEOF
  9050. /* confdefs.h. */
  9051. _ACEOF
  9052. cat confdefs.h >>conftest.$ac_ext
  9053. cat >>conftest.$ac_ext <<_ACEOF
  9054. /* end confdefs.h. */
  9055. /* Override any gcc2 internal prototype to avoid an error. */
  9056. #ifdef __cplusplus
  9057. extern "C"
  9058. #endif
  9059. /* We use char because int might match the return type of a gcc2
  9060. builtin and then its argument prototype would still apply. */
  9061. char dld_link ();
  9062. int
  9063. main ()
  9064. {
  9065. dld_link ();
  9066. ;
  9067. return 0;
  9068. }
  9069. _ACEOF
  9070. rm -f conftest.$ac_objext conftest$ac_exeext
  9071. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9072. (eval $ac_link) 2>conftest.er1
  9073. ac_status=$?
  9074. grep -v '^ *+' conftest.er1 >conftest.err
  9075. rm -f conftest.er1
  9076. cat conftest.err >&5
  9077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9078. (exit $ac_status); } &&
  9079. { ac_try='test -z "$ac_c_werror_flag"
  9080. || test ! -s conftest.err'
  9081. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9082. (eval $ac_try) 2>&5
  9083. ac_status=$?
  9084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9085. (exit $ac_status); }; } &&
  9086. { ac_try='test -s conftest$ac_exeext'
  9087. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9088. (eval $ac_try) 2>&5
  9089. ac_status=$?
  9090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9091. (exit $ac_status); }; }; then
  9092. ac_cv_lib_dld_dld_link=yes
  9093. else
  9094. echo "$as_me: failed program was:" >&5
  9095. sed 's/^/| /' conftest.$ac_ext >&5
  9096. ac_cv_lib_dld_dld_link=no
  9097. fi
  9098. rm -f conftest.err conftest.$ac_objext \
  9099. conftest$ac_exeext conftest.$ac_ext
  9100. LIBS=$ac_check_lib_save_LIBS
  9101. fi
  9102. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9103. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  9104. if test $ac_cv_lib_dld_dld_link = yes; then
  9105. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  9106. fi
  9107. fi
  9108. fi
  9109. fi
  9110. fi
  9111. fi
  9112. ;;
  9113. esac
  9114. if test "x$lt_cv_dlopen" != xno; then
  9115. enable_dlopen=yes
  9116. else
  9117. enable_dlopen=no
  9118. fi
  9119. case $lt_cv_dlopen in
  9120. dlopen)
  9121. save_CPPFLAGS="$CPPFLAGS"
  9122. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9123. save_LDFLAGS="$LDFLAGS"
  9124. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9125. save_LIBS="$LIBS"
  9126. LIBS="$lt_cv_dlopen_libs $LIBS"
  9127. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9128. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  9129. if test "${lt_cv_dlopen_self+set}" = set; then
  9130. echo $ECHO_N "(cached) $ECHO_C" >&6
  9131. else
  9132. if test "$cross_compiling" = yes; then :
  9133. lt_cv_dlopen_self=cross
  9134. else
  9135. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9136. lt_status=$lt_dlunknown
  9137. cat > conftest.$ac_ext <<EOF
  9138. #line 10025 "configure"
  9139. #include "confdefs.h"
  9140. #if HAVE_DLFCN_H
  9141. #include <dlfcn.h>
  9142. #endif
  9143. #include <stdio.h>
  9144. #ifdef RTLD_GLOBAL
  9145. # define LT_DLGLOBAL RTLD_GLOBAL
  9146. #else
  9147. # ifdef DL_GLOBAL
  9148. # define LT_DLGLOBAL DL_GLOBAL
  9149. # else
  9150. # define LT_DLGLOBAL 0
  9151. # endif
  9152. #endif
  9153. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9154. find out it does not work in some platform. */
  9155. #ifndef LT_DLLAZY_OR_NOW
  9156. # ifdef RTLD_LAZY
  9157. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9158. # else
  9159. # ifdef DL_LAZY
  9160. # define LT_DLLAZY_OR_NOW DL_LAZY
  9161. # else
  9162. # ifdef RTLD_NOW
  9163. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9164. # else
  9165. # ifdef DL_NOW
  9166. # define LT_DLLAZY_OR_NOW DL_NOW
  9167. # else
  9168. # define LT_DLLAZY_OR_NOW 0
  9169. # endif
  9170. # endif
  9171. # endif
  9172. # endif
  9173. #endif
  9174. #ifdef __cplusplus
  9175. extern "C" void exit (int);
  9176. #endif
  9177. void fnord() { int i=42;}
  9178. int main ()
  9179. {
  9180. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9181. int status = $lt_dlunknown;
  9182. if (self)
  9183. {
  9184. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9185. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9186. /* dlclose (self); */
  9187. }
  9188. exit (status);
  9189. }
  9190. EOF
  9191. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9192. (eval $ac_link) 2>&5
  9193. ac_status=$?
  9194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9195. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9196. (./conftest; exit; ) 2>/dev/null
  9197. lt_status=$?
  9198. case x$lt_status in
  9199. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9200. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9201. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  9202. esac
  9203. else :
  9204. # compilation failed
  9205. lt_cv_dlopen_self=no
  9206. fi
  9207. fi
  9208. rm -fr conftest*
  9209. fi
  9210. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9211. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  9212. if test "x$lt_cv_dlopen_self" = xyes; then
  9213. LDFLAGS="$LDFLAGS $link_static_flag"
  9214. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9215. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  9216. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9217. echo $ECHO_N "(cached) $ECHO_C" >&6
  9218. else
  9219. if test "$cross_compiling" = yes; then :
  9220. lt_cv_dlopen_self_static=cross
  9221. else
  9222. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9223. lt_status=$lt_dlunknown
  9224. cat > conftest.$ac_ext <<EOF
  9225. #line 10123 "configure"
  9226. #include "confdefs.h"
  9227. #if HAVE_DLFCN_H
  9228. #include <dlfcn.h>
  9229. #endif
  9230. #include <stdio.h>
  9231. #ifdef RTLD_GLOBAL
  9232. # define LT_DLGLOBAL RTLD_GLOBAL
  9233. #else
  9234. # ifdef DL_GLOBAL
  9235. # define LT_DLGLOBAL DL_GLOBAL
  9236. # else
  9237. # define LT_DLGLOBAL 0
  9238. # endif
  9239. #endif
  9240. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9241. find out it does not work in some platform. */
  9242. #ifndef LT_DLLAZY_OR_NOW
  9243. # ifdef RTLD_LAZY
  9244. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9245. # else
  9246. # ifdef DL_LAZY
  9247. # define LT_DLLAZY_OR_NOW DL_LAZY
  9248. # else
  9249. # ifdef RTLD_NOW
  9250. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9251. # else
  9252. # ifdef DL_NOW
  9253. # define LT_DLLAZY_OR_NOW DL_NOW
  9254. # else
  9255. # define LT_DLLAZY_OR_NOW 0
  9256. # endif
  9257. # endif
  9258. # endif
  9259. # endif
  9260. #endif
  9261. #ifdef __cplusplus
  9262. extern "C" void exit (int);
  9263. #endif
  9264. void fnord() { int i=42;}
  9265. int main ()
  9266. {
  9267. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9268. int status = $lt_dlunknown;
  9269. if (self)
  9270. {
  9271. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9272. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9273. /* dlclose (self); */
  9274. }
  9275. exit (status);
  9276. }
  9277. EOF
  9278. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9279. (eval $ac_link) 2>&5
  9280. ac_status=$?
  9281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9282. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9283. (./conftest; exit; ) 2>/dev/null
  9284. lt_status=$?
  9285. case x$lt_status in
  9286. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9287. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9288. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  9289. esac
  9290. else :
  9291. # compilation failed
  9292. lt_cv_dlopen_self_static=no
  9293. fi
  9294. fi
  9295. rm -fr conftest*
  9296. fi
  9297. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9298. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  9299. fi
  9300. CPPFLAGS="$save_CPPFLAGS"
  9301. LDFLAGS="$save_LDFLAGS"
  9302. LIBS="$save_LIBS"
  9303. ;;
  9304. esac
  9305. case $lt_cv_dlopen_self in
  9306. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9307. *) enable_dlopen_self=unknown ;;
  9308. esac
  9309. case $lt_cv_dlopen_self_static in
  9310. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9311. *) enable_dlopen_self_static=unknown ;;
  9312. esac
  9313. fi
  9314. # Report which librarie types wil actually be built
  9315. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9316. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  9317. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9318. echo "${ECHO_T}$can_build_shared" >&6
  9319. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9320. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  9321. test "$can_build_shared" = "no" && enable_shared=no
  9322. # On AIX, shared libraries and static libraries use the same namespace, and
  9323. # are all built from PIC.
  9324. case "$host_os" in
  9325. aix3*)
  9326. test "$enable_shared" = yes && enable_static=no
  9327. if test -n "$RANLIB"; then
  9328. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9329. postinstall_cmds='$RANLIB $lib'
  9330. fi
  9331. ;;
  9332. aix4* | aix5*)
  9333. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9334. test "$enable_shared" = yes && enable_static=no
  9335. fi
  9336. ;;
  9337. esac
  9338. echo "$as_me:$LINENO: result: $enable_shared" >&5
  9339. echo "${ECHO_T}$enable_shared" >&6
  9340. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9341. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  9342. # Make sure either enable_shared or enable_static is yes.
  9343. test "$enable_shared" = yes || enable_static=yes
  9344. echo "$as_me:$LINENO: result: $enable_static" >&5
  9345. echo "${ECHO_T}$enable_static" >&6
  9346. # The else clause should only fire when bootstrapping the
  9347. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9348. # with your package, and you will get complaints that there are
  9349. # no rules to generate ltmain.sh.
  9350. if test -f "$ltmain"; then
  9351. # See if we are running on zsh, and set the options which allow our commands through
  9352. # without removal of \ escapes.
  9353. if test -n "${ZSH_VERSION+set}" ; then
  9354. setopt NO_GLOB_SUBST
  9355. fi
  9356. # Now quote all the things that may contain metacharacters while being
  9357. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9358. # variables and quote the copies for generation of the libtool script.
  9359. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  9360. SED SHELL STRIP \
  9361. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9362. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9363. deplibs_check_method reload_flag reload_cmds need_locks \
  9364. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9365. lt_cv_sys_global_symbol_to_c_name_address \
  9366. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9367. old_postinstall_cmds old_postuninstall_cmds \
  9368. compiler \
  9369. CC \
  9370. LD \
  9371. lt_prog_compiler_wl \
  9372. lt_prog_compiler_pic \
  9373. lt_prog_compiler_static \
  9374. lt_prog_compiler_no_builtin_flag \
  9375. export_dynamic_flag_spec \
  9376. thread_safe_flag_spec \
  9377. whole_archive_flag_spec \
  9378. enable_shared_with_static_runtimes \
  9379. old_archive_cmds \
  9380. old_archive_from_new_cmds \
  9381. predep_objects \
  9382. postdep_objects \
  9383. predeps \
  9384. postdeps \
  9385. compiler_lib_search_path \
  9386. archive_cmds \
  9387. archive_expsym_cmds \
  9388. postinstall_cmds \
  9389. postuninstall_cmds \
  9390. old_archive_from_expsyms_cmds \
  9391. allow_undefined_flag \
  9392. no_undefined_flag \
  9393. export_symbols_cmds \
  9394. hardcode_libdir_flag_spec \
  9395. hardcode_libdir_flag_spec_ld \
  9396. hardcode_libdir_separator \
  9397. hardcode_automatic \
  9398. module_cmds \
  9399. module_expsym_cmds \
  9400. lt_cv_prog_compiler_c_o \
  9401. exclude_expsyms \
  9402. include_expsyms; do
  9403. case $var in
  9404. old_archive_cmds | \
  9405. old_archive_from_new_cmds | \
  9406. archive_cmds | \
  9407. archive_expsym_cmds | \
  9408. module_cmds | \
  9409. module_expsym_cmds | \
  9410. old_archive_from_expsyms_cmds | \
  9411. export_symbols_cmds | \
  9412. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9413. postinstall_cmds | postuninstall_cmds | \
  9414. old_postinstall_cmds | old_postuninstall_cmds | \
  9415. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9416. # Double-quote double-evaled strings.
  9417. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9418. ;;
  9419. *)
  9420. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9421. ;;
  9422. esac
  9423. done
  9424. case $lt_echo in
  9425. *'\$0 --fallback-echo"')
  9426. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9427. ;;
  9428. esac
  9429. cfgfile="${ofile}T"
  9430. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9431. $rm -f "$cfgfile"
  9432. { echo "$as_me:$LINENO: creating $ofile" >&5
  9433. echo "$as_me: creating $ofile" >&6;}
  9434. cat <<__EOF__ >> "$cfgfile"
  9435. #! $SHELL
  9436. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9437. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9438. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9439. #
  9440. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  9441. # Free Software Foundation, Inc.
  9442. #
  9443. # This file is part of GNU Libtool:
  9444. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9445. #
  9446. # This program is free software; you can redistribute it and/or modify
  9447. # it under the terms of the GNU General Public License as published by
  9448. # the Free Software Foundation; either version 2 of the License, or
  9449. # (at your option) any later version.
  9450. #
  9451. # This program is distributed in the hope that it will be useful, but
  9452. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9453. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9454. # General Public License for more details.
  9455. #
  9456. # You should have received a copy of the GNU General Public License
  9457. # along with this program; if not, write to the Free Software
  9458. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  9459. #
  9460. # As a special exception to the GNU General Public License, if you
  9461. # distribute this file as part of a program that contains a
  9462. # configuration script generated by Autoconf, you may include it under
  9463. # the same distribution terms that you use for the rest of that program.
  9464. # A sed program that does not truncate output.
  9465. SED=$lt_SED
  9466. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9467. Xsed="$SED -e s/^X//"
  9468. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9469. # if CDPATH is set.
  9470. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9471. # The names of the tagged configurations supported by this script.
  9472. available_tags=
  9473. # ### BEGIN LIBTOOL CONFIG
  9474. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9475. # Shell to use when invoking shell scripts.
  9476. SHELL=$lt_SHELL
  9477. # Whether or not to build shared libraries.
  9478. build_libtool_libs=$enable_shared
  9479. # Whether or not to build static libraries.
  9480. build_old_libs=$enable_static
  9481. # Whether or not to add -lc for building shared libraries.
  9482. build_libtool_need_lc=$archive_cmds_need_lc
  9483. # Whether or not to disallow shared libs when runtime libs are static
  9484. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9485. # Whether or not to optimize for fast installation.
  9486. fast_install=$enable_fast_install
  9487. # The host system.
  9488. host_alias=$host_alias
  9489. host=$host
  9490. host_os=$host_os
  9491. # The build system.
  9492. build_alias=$build_alias
  9493. build=$build
  9494. build_os=$build_os
  9495. # An echo program that does not interpret backslashes.
  9496. echo=$lt_echo
  9497. # The archiver.
  9498. AR=$lt_AR
  9499. AR_FLAGS=$lt_AR_FLAGS
  9500. # A C compiler.
  9501. LTCC=$lt_LTCC
  9502. # A language-specific compiler.
  9503. CC=$lt_compiler
  9504. # Is the compiler the GNU C compiler?
  9505. with_gcc=$GCC
  9506. # An ERE matcher.
  9507. EGREP=$lt_EGREP
  9508. # The linker used to build libraries.
  9509. LD=$lt_LD
  9510. # Whether we need hard or soft links.
  9511. LN_S=$lt_LN_S
  9512. # A BSD-compatible nm program.
  9513. NM=$lt_NM
  9514. # A symbol stripping program
  9515. STRIP=$lt_STRIP
  9516. # Used to examine libraries when file_magic_cmd begins "file"
  9517. MAGIC_CMD=$MAGIC_CMD
  9518. # Used on cygwin: DLL creation program.
  9519. DLLTOOL="$DLLTOOL"
  9520. # Used on cygwin: object dumper.
  9521. OBJDUMP="$OBJDUMP"
  9522. # Used on cygwin: assembler.
  9523. AS="$AS"
  9524. # The name of the directory that contains temporary libtool files.
  9525. objdir=$objdir
  9526. # How to create reloadable object files.
  9527. reload_flag=$lt_reload_flag
  9528. reload_cmds=$lt_reload_cmds
  9529. # How to pass a linker flag through the compiler.
  9530. wl=$lt_lt_prog_compiler_wl
  9531. # Object file suffix (normally "o").
  9532. objext="$ac_objext"
  9533. # Old archive suffix (normally "a").
  9534. libext="$libext"
  9535. # Shared library suffix (normally ".so").
  9536. shrext_cmds='$shrext_cmds'
  9537. # Executable file suffix (normally "").
  9538. exeext="$exeext"
  9539. # Additional compiler flags for building library objects.
  9540. pic_flag=$lt_lt_prog_compiler_pic
  9541. pic_mode=$pic_mode
  9542. # What is the maximum length of a command?
  9543. max_cmd_len=$lt_cv_sys_max_cmd_len
  9544. # Does compiler simultaneously support -c and -o options?
  9545. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9546. # Must we lock files when doing compilation ?
  9547. need_locks=$lt_need_locks
  9548. # Do we need the lib prefix for modules?
  9549. need_lib_prefix=$need_lib_prefix
  9550. # Do we need a version for libraries?
  9551. need_version=$need_version
  9552. # Whether dlopen is supported.
  9553. dlopen_support=$enable_dlopen
  9554. # Whether dlopen of programs is supported.
  9555. dlopen_self=$enable_dlopen_self
  9556. # Whether dlopen of statically linked programs is supported.
  9557. dlopen_self_static=$enable_dlopen_self_static
  9558. # Compiler flag to prevent dynamic linking.
  9559. link_static_flag=$lt_lt_prog_compiler_static
  9560. # Compiler flag to turn off builtin functions.
  9561. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9562. # Compiler flag to allow reflexive dlopens.
  9563. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9564. # Compiler flag to generate shared objects directly from archives.
  9565. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9566. # Compiler flag to generate thread-safe objects.
  9567. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9568. # Library versioning type.
  9569. version_type=$version_type
  9570. # Format of library name prefix.
  9571. libname_spec=$lt_libname_spec
  9572. # List of archive names. First name is the real one, the rest are links.
  9573. # The last name is the one that the linker finds with -lNAME.
  9574. library_names_spec=$lt_library_names_spec
  9575. # The coded name of the library, if different from the real name.
  9576. soname_spec=$lt_soname_spec
  9577. # Commands used to build and install an old-style archive.
  9578. RANLIB=$lt_RANLIB
  9579. old_archive_cmds=$lt_old_archive_cmds
  9580. old_postinstall_cmds=$lt_old_postinstall_cmds
  9581. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9582. # Create an old-style archive from a shared archive.
  9583. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9584. # Create a temporary old-style archive to link instead of a shared archive.
  9585. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9586. # Commands used to build and install a shared archive.
  9587. archive_cmds=$lt_archive_cmds
  9588. archive_expsym_cmds=$lt_archive_expsym_cmds
  9589. postinstall_cmds=$lt_postinstall_cmds
  9590. postuninstall_cmds=$lt_postuninstall_cmds
  9591. # Commands used to build a loadable module (assumed same as above if empty)
  9592. module_cmds=$lt_module_cmds
  9593. module_expsym_cmds=$lt_module_expsym_cmds
  9594. # Commands to strip libraries.
  9595. old_striplib=$lt_old_striplib
  9596. striplib=$lt_striplib
  9597. # Dependencies to place before the objects being linked to create a
  9598. # shared library.
  9599. predep_objects=$lt_predep_objects
  9600. # Dependencies to place after the objects being linked to create a
  9601. # shared library.
  9602. postdep_objects=$lt_postdep_objects
  9603. # Dependencies to place before the objects being linked to create a
  9604. # shared library.
  9605. predeps=$lt_predeps
  9606. # Dependencies to place after the objects being linked to create a
  9607. # shared library.
  9608. postdeps=$lt_postdeps
  9609. # The library search path used internally by the compiler when linking
  9610. # a shared library.
  9611. compiler_lib_search_path=$lt_compiler_lib_search_path
  9612. # Method to check whether dependent libraries are shared objects.
  9613. deplibs_check_method=$lt_deplibs_check_method
  9614. # Command to use when deplibs_check_method == file_magic.
  9615. file_magic_cmd=$lt_file_magic_cmd
  9616. # Flag that allows shared libraries with undefined symbols to be built.
  9617. allow_undefined_flag=$lt_allow_undefined_flag
  9618. # Flag that forces no undefined symbols.
  9619. no_undefined_flag=$lt_no_undefined_flag
  9620. # Commands used to finish a libtool library installation in a directory.
  9621. finish_cmds=$lt_finish_cmds
  9622. # Same as above, but a single script fragment to be evaled but not shown.
  9623. finish_eval=$lt_finish_eval
  9624. # Take the output of nm and produce a listing of raw symbols and C names.
  9625. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9626. # Transform the output of nm in a proper C declaration
  9627. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9628. # Transform the output of nm in a C name address pair
  9629. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9630. # This is the shared library runtime path variable.
  9631. runpath_var=$runpath_var
  9632. # This is the shared library path variable.
  9633. shlibpath_var=$shlibpath_var
  9634. # Is shlibpath searched before the hard-coded library search path?
  9635. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9636. # How to hardcode a shared library path into an executable.
  9637. hardcode_action=$hardcode_action
  9638. # Whether we should hardcode library paths into libraries.
  9639. hardcode_into_libs=$hardcode_into_libs
  9640. # Flag to hardcode \$libdir into a binary during linking.
  9641. # This must work even if \$libdir does not exist.
  9642. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9643. # If ld is used when linking, flag to hardcode \$libdir into
  9644. # a binary during linking. This must work even if \$libdir does
  9645. # not exist.
  9646. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9647. # Whether we need a single -rpath flag with a separated argument.
  9648. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9649. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9650. # resulting binary.
  9651. hardcode_direct=$hardcode_direct
  9652. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9653. # resulting binary.
  9654. hardcode_minus_L=$hardcode_minus_L
  9655. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9656. # the resulting binary.
  9657. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9658. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9659. # and all subsequent libraries and executables linked against it.
  9660. hardcode_automatic=$hardcode_automatic
  9661. # Variables whose values should be saved in libtool wrapper scripts and
  9662. # restored at relink time.
  9663. variables_saved_for_relink="$variables_saved_for_relink"
  9664. # Whether libtool must link a program against all its dependency libraries.
  9665. link_all_deplibs=$link_all_deplibs
  9666. # Compile-time system search path for libraries
  9667. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9668. # Run-time system search path for libraries
  9669. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9670. # Fix the shell variable \$srcfile for the compiler.
  9671. fix_srcfile_path="$fix_srcfile_path"
  9672. # Set to yes if exported symbols are required.
  9673. always_export_symbols=$always_export_symbols
  9674. # The commands to list exported symbols.
  9675. export_symbols_cmds=$lt_export_symbols_cmds
  9676. # The commands to extract the exported symbol list from a shared archive.
  9677. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9678. # Symbols that should not be listed in the preloaded symbols.
  9679. exclude_expsyms=$lt_exclude_expsyms
  9680. # Symbols that must always be exported.
  9681. include_expsyms=$lt_include_expsyms
  9682. # ### END LIBTOOL CONFIG
  9683. __EOF__
  9684. case $host_os in
  9685. aix3*)
  9686. cat <<\EOF >> "$cfgfile"
  9687. # AIX sometimes has problems with the GCC collect2 program. For some
  9688. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9689. # vanish in a puff of smoke.
  9690. if test "X${COLLECT_NAMES+set}" != Xset; then
  9691. COLLECT_NAMES=
  9692. export COLLECT_NAMES
  9693. fi
  9694. EOF
  9695. ;;
  9696. esac
  9697. # We use sed instead of cat because bash on DJGPP gets confused if
  9698. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9699. # text mode, it properly converts lines to CR/LF. This bash problem
  9700. # is reportedly fixed, but why not run on old versions too?
  9701. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9702. mv -f "$cfgfile" "$ofile" || \
  9703. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9704. chmod +x "$ofile"
  9705. else
  9706. # If there is no Makefile yet, we rely on a make rule to execute
  9707. # `config.status --recheck' to rerun these tests and create the
  9708. # libtool script then.
  9709. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9710. if test -f "$ltmain_in"; then
  9711. test -f Makefile && make "$ltmain"
  9712. fi
  9713. fi
  9714. ac_ext=c
  9715. ac_cpp='$CPP $CPPFLAGS'
  9716. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9717. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9718. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9719. CC="$lt_save_CC"
  9720. # Check whether --with-tags or --without-tags was given.
  9721. if test "${with_tags+set}" = set; then
  9722. withval="$with_tags"
  9723. tagnames="$withval"
  9724. fi;
  9725. if test -f "$ltmain" && test -n "$tagnames"; then
  9726. if test ! -f "${ofile}"; then
  9727. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9728. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9729. fi
  9730. if test -z "$LTCC"; then
  9731. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9732. if test -z "$LTCC"; then
  9733. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9734. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9735. else
  9736. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9737. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9738. fi
  9739. fi
  9740. # Extract list of available tagged configurations in $ofile.
  9741. # Note that this assumes the entire list is on one line.
  9742. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9743. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9744. for tagname in $tagnames; do
  9745. IFS="$lt_save_ifs"
  9746. # Check whether tagname contains only valid characters
  9747. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9748. "") ;;
  9749. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9750. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9751. { (exit 1); exit 1; }; }
  9752. ;;
  9753. esac
  9754. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9755. then
  9756. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9757. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9758. { (exit 1); exit 1; }; }
  9759. fi
  9760. # Update the list of available tags.
  9761. if test -n "$tagname"; then
  9762. echo appending configuration tag \"$tagname\" to $ofile
  9763. case $tagname in
  9764. CXX)
  9765. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9766. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9767. (test "X$CXX" != "Xg++"))) ; then
  9768. ac_ext=cc
  9769. ac_cpp='$CXXCPP $CPPFLAGS'
  9770. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9771. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9772. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9773. archive_cmds_need_lc_CXX=no
  9774. allow_undefined_flag_CXX=
  9775. always_export_symbols_CXX=no
  9776. archive_expsym_cmds_CXX=
  9777. export_dynamic_flag_spec_CXX=
  9778. hardcode_direct_CXX=no
  9779. hardcode_libdir_flag_spec_CXX=
  9780. hardcode_libdir_flag_spec_ld_CXX=
  9781. hardcode_libdir_separator_CXX=
  9782. hardcode_minus_L_CXX=no
  9783. hardcode_automatic_CXX=no
  9784. module_cmds_CXX=
  9785. module_expsym_cmds_CXX=
  9786. link_all_deplibs_CXX=unknown
  9787. old_archive_cmds_CXX=$old_archive_cmds
  9788. no_undefined_flag_CXX=
  9789. whole_archive_flag_spec_CXX=
  9790. enable_shared_with_static_runtimes_CXX=no
  9791. # Dependencies to place before and after the object being linked:
  9792. predep_objects_CXX=
  9793. postdep_objects_CXX=
  9794. predeps_CXX=
  9795. postdeps_CXX=
  9796. compiler_lib_search_path_CXX=
  9797. # Source file extension for C++ test sources.
  9798. ac_ext=cc
  9799. # Object file extension for compiled C++ test sources.
  9800. objext=o
  9801. objext_CXX=$objext
  9802. # Code to be used in simple compile tests
  9803. lt_simple_compile_test_code="int some_variable = 0;\n"
  9804. # Code to be used in simple link tests
  9805. lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  9806. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9807. # If no C compiler was specified, use CC.
  9808. LTCC=${LTCC-"$CC"}
  9809. # Allow CC to be a program name with arguments.
  9810. compiler=$CC
  9811. # Allow CC to be a program name with arguments.
  9812. lt_save_CC=$CC
  9813. lt_save_LD=$LD
  9814. lt_save_GCC=$GCC
  9815. GCC=$GXX
  9816. lt_save_with_gnu_ld=$with_gnu_ld
  9817. lt_save_path_LD=$lt_cv_path_LD
  9818. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9819. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9820. else
  9821. unset lt_cv_prog_gnu_ld
  9822. fi
  9823. if test -n "${lt_cv_path_LDCXX+set}"; then
  9824. lt_cv_path_LD=$lt_cv_path_LDCXX
  9825. else
  9826. unset lt_cv_path_LD
  9827. fi
  9828. test -z "${LDCXX+set}" || LD=$LDCXX
  9829. CC=${CXX-"c++"}
  9830. compiler=$CC
  9831. compiler_CXX=$CC
  9832. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  9833. # We don't want -fno-exception wen compiling C++ code, so set the
  9834. # no_builtin_flag separately
  9835. if test "$GXX" = yes; then
  9836. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9837. else
  9838. lt_prog_compiler_no_builtin_flag_CXX=
  9839. fi
  9840. if test "$GXX" = yes; then
  9841. # Set up default GNU C++ configuration
  9842. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  9843. if test "${with_gnu_ld+set}" = set; then
  9844. withval="$with_gnu_ld"
  9845. test "$withval" = no || with_gnu_ld=yes
  9846. else
  9847. with_gnu_ld=no
  9848. fi;
  9849. ac_prog=ld
  9850. if test "$GCC" = yes; then
  9851. # Check if gcc -print-prog-name=ld gives a path.
  9852. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9853. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  9854. case $host in
  9855. *-*-mingw*)
  9856. # gcc leaves a trailing carriage return which upsets mingw
  9857. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9858. *)
  9859. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9860. esac
  9861. case $ac_prog in
  9862. # Accept absolute paths.
  9863. [\\/]* | ?:[\\/]*)
  9864. re_direlt='/[^/][^/]*/\.\./'
  9865. # Canonicalize the pathname of ld
  9866. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9867. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9868. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9869. done
  9870. test -z "$LD" && LD="$ac_prog"
  9871. ;;
  9872. "")
  9873. # If it fails, then pretend we aren't using GCC.
  9874. ac_prog=ld
  9875. ;;
  9876. *)
  9877. # If it is relative, then search for the first ld in PATH.
  9878. with_gnu_ld=unknown
  9879. ;;
  9880. esac
  9881. elif test "$with_gnu_ld" = yes; then
  9882. echo "$as_me:$LINENO: checking for GNU ld" >&5
  9883. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  9884. else
  9885. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9886. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  9887. fi
  9888. if test "${lt_cv_path_LD+set}" = set; then
  9889. echo $ECHO_N "(cached) $ECHO_C" >&6
  9890. else
  9891. if test -z "$LD"; then
  9892. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9893. for ac_dir in $PATH; do
  9894. IFS="$lt_save_ifs"
  9895. test -z "$ac_dir" && ac_dir=.
  9896. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9897. lt_cv_path_LD="$ac_dir/$ac_prog"
  9898. # Check to see if the program is GNU ld. I'd rather use --version,
  9899. # but apparently some GNU ld's only accept -v.
  9900. # Break only if it was the GNU/non-GNU ld that we prefer.
  9901. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9902. *GNU* | *'with BFD'*)
  9903. test "$with_gnu_ld" != no && break
  9904. ;;
  9905. *)
  9906. test "$with_gnu_ld" != yes && break
  9907. ;;
  9908. esac
  9909. fi
  9910. done
  9911. IFS="$lt_save_ifs"
  9912. else
  9913. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9914. fi
  9915. fi
  9916. LD="$lt_cv_path_LD"
  9917. if test -n "$LD"; then
  9918. echo "$as_me:$LINENO: result: $LD" >&5
  9919. echo "${ECHO_T}$LD" >&6
  9920. else
  9921. echo "$as_me:$LINENO: result: no" >&5
  9922. echo "${ECHO_T}no" >&6
  9923. fi
  9924. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9925. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9926. { (exit 1); exit 1; }; }
  9927. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9928. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  9929. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9930. echo $ECHO_N "(cached) $ECHO_C" >&6
  9931. else
  9932. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  9933. case `$LD -v 2>&1 </dev/null` in
  9934. *GNU* | *'with BFD'*)
  9935. lt_cv_prog_gnu_ld=yes
  9936. ;;
  9937. *)
  9938. lt_cv_prog_gnu_ld=no
  9939. ;;
  9940. esac
  9941. fi
  9942. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9943. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  9944. with_gnu_ld=$lt_cv_prog_gnu_ld
  9945. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9946. # archiving commands below assume that GNU ld is being used.
  9947. if test "$with_gnu_ld" = yes; then
  9948. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9949. 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'
  9950. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9951. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9952. # If archive_cmds runs LD, not CC, wlarc should be empty
  9953. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9954. # investigate it a little bit more. (MM)
  9955. wlarc='${wl}'
  9956. # ancient GNU ld didn't support --whole-archive et. al.
  9957. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9958. grep 'no-whole-archive' > /dev/null; then
  9959. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9960. else
  9961. whole_archive_flag_spec_CXX=
  9962. fi
  9963. else
  9964. with_gnu_ld=no
  9965. wlarc=
  9966. # A generic and very simple default shared library creation
  9967. # command for GNU C++ for the case where it uses the native
  9968. # linker, instead of GNU ld. If possible, this setting should
  9969. # overridden to take advantage of the native linker features on
  9970. # the platform it is being used on.
  9971. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9972. fi
  9973. # Commands to make compiler produce verbose output that lists
  9974. # what "hidden" libraries, object files and flags are used when
  9975. # linking a shared library.
  9976. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9977. else
  9978. GXX=no
  9979. with_gnu_ld=no
  9980. wlarc=
  9981. fi
  9982. # PORTME: fill in a description of your system's C++ link characteristics
  9983. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9984. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  9985. ld_shlibs_CXX=yes
  9986. case $host_os in
  9987. aix3*)
  9988. # FIXME: insert proper C++ library support
  9989. ld_shlibs_CXX=no
  9990. ;;
  9991. aix4* | aix5*)
  9992. if test "$host_cpu" = ia64; then
  9993. # On IA64, the linker does run time linking by default, so we don't
  9994. # have to do anything special.
  9995. aix_use_runtimelinking=no
  9996. exp_sym_flag='-Bexport'
  9997. no_entry_flag=""
  9998. else
  9999. aix_use_runtimelinking=no
  10000. # Test if we are trying to use run time linking or normal
  10001. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10002. # need to do runtime linking.
  10003. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  10004. for ld_flag in $LDFLAGS; do
  10005. case $ld_flag in
  10006. *-brtl*)
  10007. aix_use_runtimelinking=yes
  10008. break
  10009. ;;
  10010. esac
  10011. done
  10012. esac
  10013. exp_sym_flag='-bexport'
  10014. no_entry_flag='-bnoentry'
  10015. fi
  10016. # When large executables or shared objects are built, AIX ld can
  10017. # have problems creating the table of contents. If linking a library
  10018. # or program results in "error TOC overflow" add -mminimal-toc to
  10019. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10020. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10021. archive_cmds_CXX=''
  10022. hardcode_direct_CXX=yes
  10023. hardcode_libdir_separator_CXX=':'
  10024. link_all_deplibs_CXX=yes
  10025. if test "$GXX" = yes; then
  10026. case $host_os in aix4.[012]|aix4.[012].*)
  10027. # We only want to do this on AIX 4.2 and lower, the check
  10028. # below for broken collect2 doesn't work under 4.3+
  10029. collect2name=`${CC} -print-prog-name=collect2`
  10030. if test -f "$collect2name" && \
  10031. strings "$collect2name" | grep resolve_lib_name >/dev/null
  10032. then
  10033. # We have reworked collect2
  10034. hardcode_direct_CXX=yes
  10035. else
  10036. # We have old collect2
  10037. hardcode_direct_CXX=unsupported
  10038. # It fails to find uninstalled libraries when the uninstalled
  10039. # path is not listed in the libpath. Setting hardcode_minus_L
  10040. # to unsupported forces relinking
  10041. hardcode_minus_L_CXX=yes
  10042. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10043. hardcode_libdir_separator_CXX=
  10044. fi
  10045. esac
  10046. shared_flag='-shared'
  10047. if test "$aix_use_runtimelinking" = yes; then
  10048. shared_flag="$shared_flag "'${wl}-G'
  10049. fi
  10050. else
  10051. # not using gcc
  10052. if test "$host_cpu" = ia64; then
  10053. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10054. # chokes on -Wl,-G. The following line is correct:
  10055. shared_flag='-G'
  10056. else
  10057. if test "$aix_use_runtimelinking" = yes; then
  10058. shared_flag='${wl}-G'
  10059. else
  10060. shared_flag='${wl}-bM:SRE'
  10061. fi
  10062. fi
  10063. fi
  10064. # It seems that -bexpall does not export symbols beginning with
  10065. # underscore (_), so it is better to generate a list of symbols to export.
  10066. always_export_symbols_CXX=yes
  10067. if test "$aix_use_runtimelinking" = yes; then
  10068. # Warning - without using the other runtime loading flags (-brtl),
  10069. # -berok will link without error, but may produce a broken library.
  10070. allow_undefined_flag_CXX='-berok'
  10071. # Determine the default libpath from the value encoded in an empty executable.
  10072. cat >conftest.$ac_ext <<_ACEOF
  10073. /* confdefs.h. */
  10074. _ACEOF
  10075. cat confdefs.h >>conftest.$ac_ext
  10076. cat >>conftest.$ac_ext <<_ACEOF
  10077. /* end confdefs.h. */
  10078. int
  10079. main ()
  10080. {
  10081. ;
  10082. return 0;
  10083. }
  10084. _ACEOF
  10085. rm -f conftest.$ac_objext conftest$ac_exeext
  10086. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10087. (eval $ac_link) 2>conftest.er1
  10088. ac_status=$?
  10089. grep -v '^ *+' conftest.er1 >conftest.err
  10090. rm -f conftest.er1
  10091. cat conftest.err >&5
  10092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10093. (exit $ac_status); } &&
  10094. { ac_try='test -z "$ac_cxx_werror_flag"
  10095. || test ! -s conftest.err'
  10096. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10097. (eval $ac_try) 2>&5
  10098. ac_status=$?
  10099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10100. (exit $ac_status); }; } &&
  10101. { ac_try='test -s conftest$ac_exeext'
  10102. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10103. (eval $ac_try) 2>&5
  10104. ac_status=$?
  10105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10106. (exit $ac_status); }; }; then
  10107. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10108. }'`
  10109. # Check for a 64-bit object if we didn't find anything.
  10110. 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; }
  10111. }'`; fi
  10112. else
  10113. echo "$as_me: failed program was:" >&5
  10114. sed 's/^/| /' conftest.$ac_ext >&5
  10115. fi
  10116. rm -f conftest.err conftest.$ac_objext \
  10117. conftest$ac_exeext conftest.$ac_ext
  10118. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10119. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10120. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10121. else
  10122. if test "$host_cpu" = ia64; then
  10123. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10124. allow_undefined_flag_CXX="-z nodefs"
  10125. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  10126. else
  10127. # Determine the default libpath from the value encoded in an empty executable.
  10128. cat >conftest.$ac_ext <<_ACEOF
  10129. /* confdefs.h. */
  10130. _ACEOF
  10131. cat confdefs.h >>conftest.$ac_ext
  10132. cat >>conftest.$ac_ext <<_ACEOF
  10133. /* end confdefs.h. */
  10134. int
  10135. main ()
  10136. {
  10137. ;
  10138. return 0;
  10139. }
  10140. _ACEOF
  10141. rm -f conftest.$ac_objext conftest$ac_exeext
  10142. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10143. (eval $ac_link) 2>conftest.er1
  10144. ac_status=$?
  10145. grep -v '^ *+' conftest.er1 >conftest.err
  10146. rm -f conftest.er1
  10147. cat conftest.err >&5
  10148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10149. (exit $ac_status); } &&
  10150. { ac_try='test -z "$ac_cxx_werror_flag"
  10151. || test ! -s conftest.err'
  10152. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10153. (eval $ac_try) 2>&5
  10154. ac_status=$?
  10155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10156. (exit $ac_status); }; } &&
  10157. { ac_try='test -s conftest$ac_exeext'
  10158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10159. (eval $ac_try) 2>&5
  10160. ac_status=$?
  10161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10162. (exit $ac_status); }; }; then
  10163. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10164. }'`
  10165. # Check for a 64-bit object if we didn't find anything.
  10166. 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; }
  10167. }'`; fi
  10168. else
  10169. echo "$as_me: failed program was:" >&5
  10170. sed 's/^/| /' conftest.$ac_ext >&5
  10171. fi
  10172. rm -f conftest.err conftest.$ac_objext \
  10173. conftest$ac_exeext conftest.$ac_ext
  10174. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10175. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10176. # Warning - without using the other run time loading flags,
  10177. # -berok will link without error, but may produce a broken library.
  10178. no_undefined_flag_CXX=' ${wl}-bernotok'
  10179. allow_undefined_flag_CXX=' ${wl}-berok'
  10180. # -bexpall does not export symbols beginning with underscore (_)
  10181. always_export_symbols_CXX=yes
  10182. # Exported symbols can be pulled into shared objects from archives
  10183. whole_archive_flag_spec_CXX=' '
  10184. archive_cmds_need_lc_CXX=yes
  10185. # This is similar to how AIX traditionally builds it's shared libraries.
  10186. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10187. fi
  10188. fi
  10189. ;;
  10190. chorus*)
  10191. case $cc_basename in
  10192. *)
  10193. # FIXME: insert proper C++ library support
  10194. ld_shlibs_CXX=no
  10195. ;;
  10196. esac
  10197. ;;
  10198. cygwin* | mingw* | pw32*)
  10199. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10200. # as there is no search path for DLLs.
  10201. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10202. allow_undefined_flag_CXX=unsupported
  10203. always_export_symbols_CXX=no
  10204. enable_shared_with_static_runtimes_CXX=yes
  10205. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  10206. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  10207. # If the export-symbols file already is a .def file (1st line
  10208. # is EXPORTS), use it as is; otherwise, prepend...
  10209. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10210. cp $export_symbols $output_objdir/$soname.def;
  10211. else
  10212. echo EXPORTS > $output_objdir/$soname.def;
  10213. cat $export_symbols >> $output_objdir/$soname.def;
  10214. fi~
  10215. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  10216. else
  10217. ld_shlibs_CXX=no
  10218. fi
  10219. ;;
  10220. darwin* | rhapsody*)
  10221. case "$host_os" in
  10222. rhapsody* | darwin1.[012])
  10223. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  10224. ;;
  10225. *) # Darwin 1.3 on
  10226. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10227. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10228. else
  10229. case ${MACOSX_DEPLOYMENT_TARGET} in
  10230. 10.[012])
  10231. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10232. ;;
  10233. 10.*)
  10234. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  10235. ;;
  10236. esac
  10237. fi
  10238. ;;
  10239. esac
  10240. archive_cmds_need_lc_CXX=no
  10241. hardcode_direct_CXX=no
  10242. hardcode_automatic_CXX=yes
  10243. hardcode_shlibpath_var_CXX=unsupported
  10244. whole_archive_flag_spec_CXX=''
  10245. link_all_deplibs_CXX=yes
  10246. if test "$GXX" = yes ; then
  10247. lt_int_apple_cc_single_mod=no
  10248. output_verbose_link_cmd='echo'
  10249. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  10250. lt_int_apple_cc_single_mod=yes
  10251. fi
  10252. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10253. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10254. else
  10255. 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'
  10256. fi
  10257. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10258. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  10259. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10260. 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}'
  10261. else
  10262. 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}'
  10263. fi
  10264. 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}'
  10265. else
  10266. case "$cc_basename" in
  10267. xlc*)
  10268. output_verbose_link_cmd='echo'
  10269. 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'
  10270. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10271. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  10272. 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}'
  10273. 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}'
  10274. ;;
  10275. *)
  10276. ld_shlibs_CXX=no
  10277. ;;
  10278. esac
  10279. fi
  10280. ;;
  10281. dgux*)
  10282. case $cc_basename in
  10283. ec++)
  10284. # FIXME: insert proper C++ library support
  10285. ld_shlibs_CXX=no
  10286. ;;
  10287. ghcx)
  10288. # Green Hills C++ Compiler
  10289. # FIXME: insert proper C++ library support
  10290. ld_shlibs_CXX=no
  10291. ;;
  10292. *)
  10293. # FIXME: insert proper C++ library support
  10294. ld_shlibs_CXX=no
  10295. ;;
  10296. esac
  10297. ;;
  10298. freebsd[12]*)
  10299. # C++ shared libraries reported to be fairly broken before switch to ELF
  10300. ld_shlibs_CXX=no
  10301. ;;
  10302. freebsd-elf*)
  10303. archive_cmds_need_lc_CXX=no
  10304. ;;
  10305. freebsd* | kfreebsd*-gnu | dragonfly*)
  10306. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10307. # conventions
  10308. ld_shlibs_CXX=yes
  10309. ;;
  10310. gnu*)
  10311. ;;
  10312. hpux9*)
  10313. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10314. hardcode_libdir_separator_CXX=:
  10315. export_dynamic_flag_spec_CXX='${wl}-E'
  10316. hardcode_direct_CXX=yes
  10317. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10318. # but as the default
  10319. # location of the library.
  10320. case $cc_basename in
  10321. CC)
  10322. # FIXME: insert proper C++ library support
  10323. ld_shlibs_CXX=no
  10324. ;;
  10325. aCC)
  10326. 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'
  10327. # Commands to make compiler produce verbose output that lists
  10328. # what "hidden" libraries, object files and flags are used when
  10329. # linking a shared library.
  10330. #
  10331. # There doesn't appear to be a way to prevent this compiler from
  10332. # explicitly linking system object files so we need to strip them
  10333. # from the output so that they don't get included in the library
  10334. # dependencies.
  10335. 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'
  10336. ;;
  10337. *)
  10338. if test "$GXX" = yes; then
  10339. 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'
  10340. else
  10341. # FIXME: insert proper C++ library support
  10342. ld_shlibs_CXX=no
  10343. fi
  10344. ;;
  10345. esac
  10346. ;;
  10347. hpux10*|hpux11*)
  10348. if test $with_gnu_ld = no; then
  10349. case "$host_cpu" in
  10350. hppa*64*)
  10351. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10352. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  10353. hardcode_libdir_separator_CXX=:
  10354. ;;
  10355. ia64*)
  10356. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10357. ;;
  10358. *)
  10359. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10360. hardcode_libdir_separator_CXX=:
  10361. export_dynamic_flag_spec_CXX='${wl}-E'
  10362. ;;
  10363. esac
  10364. fi
  10365. case "$host_cpu" in
  10366. hppa*64*)
  10367. hardcode_direct_CXX=no
  10368. hardcode_shlibpath_var_CXX=no
  10369. ;;
  10370. ia64*)
  10371. hardcode_direct_CXX=no
  10372. hardcode_shlibpath_var_CXX=no
  10373. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10374. # but as the default
  10375. # location of the library.
  10376. ;;
  10377. *)
  10378. hardcode_direct_CXX=yes
  10379. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10380. # but as the default
  10381. # location of the library.
  10382. ;;
  10383. esac
  10384. case $cc_basename in
  10385. CC)
  10386. # FIXME: insert proper C++ library support
  10387. ld_shlibs_CXX=no
  10388. ;;
  10389. aCC)
  10390. case "$host_cpu" in
  10391. hppa*64*|ia64*)
  10392. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  10393. ;;
  10394. *)
  10395. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10396. ;;
  10397. esac
  10398. # Commands to make compiler produce verbose output that lists
  10399. # what "hidden" libraries, object files and flags are used when
  10400. # linking a shared library.
  10401. #
  10402. # There doesn't appear to be a way to prevent this compiler from
  10403. # explicitly linking system object files so we need to strip them
  10404. # from the output so that they don't get included in the library
  10405. # dependencies.
  10406. 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'
  10407. ;;
  10408. *)
  10409. if test "$GXX" = yes; then
  10410. if test $with_gnu_ld = no; then
  10411. case "$host_cpu" in
  10412. ia64*|hppa*64*)
  10413. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  10414. ;;
  10415. *)
  10416. 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'
  10417. ;;
  10418. esac
  10419. fi
  10420. else
  10421. # FIXME: insert proper C++ library support
  10422. ld_shlibs_CXX=no
  10423. fi
  10424. ;;
  10425. esac
  10426. ;;
  10427. irix5* | irix6*)
  10428. case $cc_basename in
  10429. CC)
  10430. # SGI C++
  10431. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  10432. # Archives containing C++ object files must be created using
  10433. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10434. # necessary to make sure instantiated templates are included
  10435. # in the archive.
  10436. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10437. ;;
  10438. *)
  10439. if test "$GXX" = yes; then
  10440. if test "$with_gnu_ld" = no; then
  10441. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  10442. else
  10443. 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'
  10444. fi
  10445. fi
  10446. link_all_deplibs_CXX=yes
  10447. ;;
  10448. esac
  10449. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10450. hardcode_libdir_separator_CXX=:
  10451. ;;
  10452. linux*)
  10453. case $cc_basename in
  10454. KCC)
  10455. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10456. # KCC will only create a shared library if the output file
  10457. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10458. # to its proper name (with version) after linking.
  10459. 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'
  10460. 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'
  10461. # Commands to make compiler produce verbose output that lists
  10462. # what "hidden" libraries, object files and flags are used when
  10463. # linking a shared library.
  10464. #
  10465. # There doesn't appear to be a way to prevent this compiler from
  10466. # explicitly linking system object files so we need to strip them
  10467. # from the output so that they don't get included in the library
  10468. # dependencies.
  10469. 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'
  10470. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10471. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10472. # Archives containing C++ object files must be created using
  10473. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10474. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10475. ;;
  10476. icpc)
  10477. # Intel C++
  10478. with_gnu_ld=yes
  10479. # version 8.0 and above of icpc choke on multiply defined symbols
  10480. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10481. # earlier do not add the objects themselves.
  10482. case `$CC -V 2>&1` in
  10483. *"Version 7."*)
  10484. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10485. 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'
  10486. ;;
  10487. *) # Version 8.0 or newer
  10488. tmp_idyn=
  10489. case $host_cpu in
  10490. ia64*) tmp_idyn=' -i_dynamic';;
  10491. esac
  10492. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10493. 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'
  10494. ;;
  10495. esac
  10496. archive_cmds_need_lc_CXX=no
  10497. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10498. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10499. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10500. ;;
  10501. pgCC)
  10502. # Portland Group C++ compiler
  10503. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10504. 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'
  10505. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10506. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10507. ;;
  10508. cxx)
  10509. # Compaq C++
  10510. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10511. 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'
  10512. runpath_var=LD_RUN_PATH
  10513. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10514. hardcode_libdir_separator_CXX=:
  10515. # Commands to make compiler produce verbose output that lists
  10516. # what "hidden" libraries, object files and flags are used when
  10517. # linking a shared library.
  10518. #
  10519. # There doesn't appear to be a way to prevent this compiler from
  10520. # explicitly linking system object files so we need to strip them
  10521. # from the output so that they don't get included in the library
  10522. # dependencies.
  10523. 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'
  10524. ;;
  10525. esac
  10526. ;;
  10527. lynxos*)
  10528. # FIXME: insert proper C++ library support
  10529. ld_shlibs_CXX=no
  10530. ;;
  10531. m88k*)
  10532. # FIXME: insert proper C++ library support
  10533. ld_shlibs_CXX=no
  10534. ;;
  10535. mvs*)
  10536. case $cc_basename in
  10537. cxx)
  10538. # FIXME: insert proper C++ library support
  10539. ld_shlibs_CXX=no
  10540. ;;
  10541. *)
  10542. # FIXME: insert proper C++ library support
  10543. ld_shlibs_CXX=no
  10544. ;;
  10545. esac
  10546. ;;
  10547. netbsd*)
  10548. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10549. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10550. wlarc=
  10551. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10552. hardcode_direct_CXX=yes
  10553. hardcode_shlibpath_var_CXX=no
  10554. fi
  10555. # Workaround some broken pre-1.5 toolchains
  10556. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10557. ;;
  10558. openbsd2*)
  10559. # C++ shared libraries are fairly broken
  10560. ld_shlibs_CXX=no
  10561. ;;
  10562. openbsd*)
  10563. hardcode_direct_CXX=yes
  10564. hardcode_shlibpath_var_CXX=no
  10565. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10566. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10567. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10568. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10569. export_dynamic_flag_spec_CXX='${wl}-E'
  10570. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10571. fi
  10572. output_verbose_link_cmd='echo'
  10573. ;;
  10574. osf3*)
  10575. case $cc_basename in
  10576. KCC)
  10577. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10578. # KCC will only create a shared library if the output file
  10579. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10580. # to its proper name (with version) after linking.
  10581. 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'
  10582. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10583. hardcode_libdir_separator_CXX=:
  10584. # Archives containing C++ object files must be created using
  10585. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10586. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10587. ;;
  10588. RCC)
  10589. # Rational C++ 2.4.1
  10590. # FIXME: insert proper C++ library support
  10591. ld_shlibs_CXX=no
  10592. ;;
  10593. cxx)
  10594. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10595. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  10596. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10597. hardcode_libdir_separator_CXX=:
  10598. # Commands to make compiler produce verbose output that lists
  10599. # what "hidden" libraries, object files and flags are used when
  10600. # linking a shared library.
  10601. #
  10602. # There doesn't appear to be a way to prevent this compiler from
  10603. # explicitly linking system object files so we need to strip them
  10604. # from the output so that they don't get included in the library
  10605. # dependencies.
  10606. 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'
  10607. ;;
  10608. *)
  10609. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10610. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10611. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  10612. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10613. hardcode_libdir_separator_CXX=:
  10614. # Commands to make compiler produce verbose output that lists
  10615. # what "hidden" libraries, object files and flags are used when
  10616. # linking a shared library.
  10617. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10618. else
  10619. # FIXME: insert proper C++ library support
  10620. ld_shlibs_CXX=no
  10621. fi
  10622. ;;
  10623. esac
  10624. ;;
  10625. osf4* | osf5*)
  10626. case $cc_basename in
  10627. KCC)
  10628. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10629. # KCC will only create a shared library if the output file
  10630. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10631. # to its proper name (with version) after linking.
  10632. 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'
  10633. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10634. hardcode_libdir_separator_CXX=:
  10635. # Archives containing C++ object files must be created using
  10636. # the KAI C++ compiler.
  10637. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10638. ;;
  10639. RCC)
  10640. # Rational C++ 2.4.1
  10641. # FIXME: insert proper C++ library support
  10642. ld_shlibs_CXX=no
  10643. ;;
  10644. cxx)
  10645. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10646. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  10647. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10648. echo "-hidden">> $lib.exp~
  10649. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
  10650. $rm $lib.exp'
  10651. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10652. hardcode_libdir_separator_CXX=:
  10653. # Commands to make compiler produce verbose output that lists
  10654. # what "hidden" libraries, object files and flags are used when
  10655. # linking a shared library.
  10656. #
  10657. # There doesn't appear to be a way to prevent this compiler from
  10658. # explicitly linking system object files so we need to strip them
  10659. # from the output so that they don't get included in the library
  10660. # dependencies.
  10661. 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'
  10662. ;;
  10663. *)
  10664. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10665. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10666. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  10667. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10668. hardcode_libdir_separator_CXX=:
  10669. # Commands to make compiler produce verbose output that lists
  10670. # what "hidden" libraries, object files and flags are used when
  10671. # linking a shared library.
  10672. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10673. else
  10674. # FIXME: insert proper C++ library support
  10675. ld_shlibs_CXX=no
  10676. fi
  10677. ;;
  10678. esac
  10679. ;;
  10680. psos*)
  10681. # FIXME: insert proper C++ library support
  10682. ld_shlibs_CXX=no
  10683. ;;
  10684. sco*)
  10685. archive_cmds_need_lc_CXX=no
  10686. case $cc_basename in
  10687. CC)
  10688. # FIXME: insert proper C++ library support
  10689. ld_shlibs_CXX=no
  10690. ;;
  10691. *)
  10692. # FIXME: insert proper C++ library support
  10693. ld_shlibs_CXX=no
  10694. ;;
  10695. esac
  10696. ;;
  10697. sunos4*)
  10698. case $cc_basename in
  10699. CC)
  10700. # Sun C++ 4.x
  10701. # FIXME: insert proper C++ library support
  10702. ld_shlibs_CXX=no
  10703. ;;
  10704. lcc)
  10705. # Lucid
  10706. # FIXME: insert proper C++ library support
  10707. ld_shlibs_CXX=no
  10708. ;;
  10709. *)
  10710. # FIXME: insert proper C++ library support
  10711. ld_shlibs_CXX=no
  10712. ;;
  10713. esac
  10714. ;;
  10715. solaris*)
  10716. case $cc_basename in
  10717. CC)
  10718. # Sun C++ 4.2, 5.x and Centerline C++
  10719. no_undefined_flag_CXX=' -zdefs'
  10720. archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10721. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10722. $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10723. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10724. hardcode_shlibpath_var_CXX=no
  10725. case $host_os in
  10726. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10727. *)
  10728. # The C++ compiler is used as linker so we must use $wl
  10729. # flag to pass the commands to the underlying system
  10730. # linker.
  10731. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10732. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10733. ;;
  10734. esac
  10735. link_all_deplibs_CXX=yes
  10736. # Commands to make compiler produce verbose output that lists
  10737. # what "hidden" libraries, object files and flags are used when
  10738. # linking a shared library.
  10739. #
  10740. # There doesn't appear to be a way to prevent this compiler from
  10741. # explicitly linking system object files so we need to strip them
  10742. # from the output so that they don't get included in the library
  10743. # dependencies.
  10744. output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10745. # Archives containing C++ object files must be created using
  10746. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10747. # necessary to make sure instantiated templates are included
  10748. # in the archive.
  10749. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10750. ;;
  10751. gcx)
  10752. # Green Hills C++ Compiler
  10753. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10754. # The C++ compiler must be used to create the archive.
  10755. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10756. ;;
  10757. *)
  10758. # GNU C++ compiler with Solaris linker
  10759. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10760. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10761. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10762. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10763. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10764. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10765. # Commands to make compiler produce verbose output that lists
  10766. # what "hidden" libraries, object files and flags are used when
  10767. # linking a shared library.
  10768. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10769. else
  10770. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10771. # platform.
  10772. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10773. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10774. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10775. # Commands to make compiler produce verbose output that lists
  10776. # what "hidden" libraries, object files and flags are used when
  10777. # linking a shared library.
  10778. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10779. fi
  10780. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10781. fi
  10782. ;;
  10783. esac
  10784. ;;
  10785. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  10786. archive_cmds_need_lc_CXX=no
  10787. ;;
  10788. tandem*)
  10789. case $cc_basename in
  10790. NCC)
  10791. # NonStop-UX NCC 3.20
  10792. # FIXME: insert proper C++ library support
  10793. ld_shlibs_CXX=no
  10794. ;;
  10795. *)
  10796. # FIXME: insert proper C++ library support
  10797. ld_shlibs_CXX=no
  10798. ;;
  10799. esac
  10800. ;;
  10801. vxworks*)
  10802. # FIXME: insert proper C++ library support
  10803. ld_shlibs_CXX=no
  10804. ;;
  10805. *)
  10806. # FIXME: insert proper C++ library support
  10807. ld_shlibs_CXX=no
  10808. ;;
  10809. esac
  10810. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10811. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10812. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10813. GCC_CXX="$GXX"
  10814. LD_CXX="$LD"
  10815. cat > conftest.$ac_ext <<EOF
  10816. class Foo
  10817. {
  10818. public:
  10819. Foo (void) { a = 0; }
  10820. private:
  10821. int a;
  10822. };
  10823. EOF
  10824. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10825. (eval $ac_compile) 2>&5
  10826. ac_status=$?
  10827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10828. (exit $ac_status); }; then
  10829. # Parse the compiler output and extract the necessary
  10830. # objects, libraries and library flags.
  10831. # Sentinel used to keep track of whether or not we are before
  10832. # the conftest object file.
  10833. pre_test_object_deps_done=no
  10834. # The `*' in the case matches for architectures that use `case' in
  10835. # $output_verbose_cmd can trigger glob expansion during the loop
  10836. # eval without this substitution.
  10837. output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  10838. for p in `eval $output_verbose_link_cmd`; do
  10839. case $p in
  10840. -L* | -R* | -l*)
  10841. # Some compilers place space between "-{L,R}" and the path.
  10842. # Remove the space.
  10843. if test $p = "-L" \
  10844. || test $p = "-R"; then
  10845. prev=$p
  10846. continue
  10847. else
  10848. prev=
  10849. fi
  10850. if test "$pre_test_object_deps_done" = no; then
  10851. case $p in
  10852. -L* | -R*)
  10853. # Internal compiler library paths should come after those
  10854. # provided the user. The postdeps already come after the
  10855. # user supplied libs so there is no need to process them.
  10856. if test -z "$compiler_lib_search_path_CXX"; then
  10857. compiler_lib_search_path_CXX="${prev}${p}"
  10858. else
  10859. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10860. fi
  10861. ;;
  10862. # The "-l" case would never come before the object being
  10863. # linked, so don't bother handling this case.
  10864. esac
  10865. else
  10866. if test -z "$postdeps_CXX"; then
  10867. postdeps_CXX="${prev}${p}"
  10868. else
  10869. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10870. fi
  10871. fi
  10872. ;;
  10873. *.$objext)
  10874. # This assumes that the test object file only shows up
  10875. # once in the compiler output.
  10876. if test "$p" = "conftest.$objext"; then
  10877. pre_test_object_deps_done=yes
  10878. continue
  10879. fi
  10880. if test "$pre_test_object_deps_done" = no; then
  10881. if test -z "$predep_objects_CXX"; then
  10882. predep_objects_CXX="$p"
  10883. else
  10884. predep_objects_CXX="$predep_objects_CXX $p"
  10885. fi
  10886. else
  10887. if test -z "$postdep_objects_CXX"; then
  10888. postdep_objects_CXX="$p"
  10889. else
  10890. postdep_objects_CXX="$postdep_objects_CXX $p"
  10891. fi
  10892. fi
  10893. ;;
  10894. *) ;; # Ignore the rest.
  10895. esac
  10896. done
  10897. # Clean up.
  10898. rm -f a.out a.exe
  10899. else
  10900. echo "libtool.m4: error: problem compiling CXX test program"
  10901. fi
  10902. $rm -f confest.$objext
  10903. case " $postdeps_CXX " in
  10904. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10905. esac
  10906. lt_prog_compiler_wl_CXX=
  10907. lt_prog_compiler_pic_CXX=
  10908. lt_prog_compiler_static_CXX=
  10909. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10910. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  10911. # C++ specific cases for pic, static, wl, etc.
  10912. if test "$GXX" = yes; then
  10913. lt_prog_compiler_wl_CXX='-Wl,'
  10914. lt_prog_compiler_static_CXX='-static'
  10915. case $host_os in
  10916. aix*)
  10917. # All AIX code is PIC.
  10918. if test "$host_cpu" = ia64; then
  10919. # AIX 5 now supports IA64 processor
  10920. lt_prog_compiler_static_CXX='-Bstatic'
  10921. fi
  10922. ;;
  10923. amigaos*)
  10924. # FIXME: we need at least 68020 code to build shared libraries, but
  10925. # adding the `-m68020' flag to GCC prevents building anything better,
  10926. # like `-m68040'.
  10927. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10928. ;;
  10929. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10930. # PIC is the default for these OSes.
  10931. ;;
  10932. mingw* | os2* | pw32*)
  10933. # This hack is so that the source file can tell whether it is being
  10934. # built for inclusion in a dll (and should export symbols for example).
  10935. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10936. ;;
  10937. darwin* | rhapsody*)
  10938. # PIC is the default on this platform
  10939. # Common symbols not allowed in MH_DYLIB files
  10940. lt_prog_compiler_pic_CXX='-fno-common'
  10941. ;;
  10942. *djgpp*)
  10943. # DJGPP does not support shared libraries at all
  10944. lt_prog_compiler_pic_CXX=
  10945. ;;
  10946. sysv4*MP*)
  10947. if test -d /usr/nec; then
  10948. lt_prog_compiler_pic_CXX=-Kconform_pic
  10949. fi
  10950. ;;
  10951. hpux*)
  10952. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10953. # not for PA HP-UX.
  10954. case "$host_cpu" in
  10955. hppa*64*|ia64*)
  10956. ;;
  10957. *)
  10958. lt_prog_compiler_pic_CXX='-fPIC'
  10959. ;;
  10960. esac
  10961. ;;
  10962. *)
  10963. lt_prog_compiler_pic_CXX='-fPIC'
  10964. ;;
  10965. esac
  10966. else
  10967. case $host_os in
  10968. aix4* | aix5*)
  10969. # All AIX code is PIC.
  10970. if test "$host_cpu" = ia64; then
  10971. # AIX 5 now supports IA64 processor
  10972. lt_prog_compiler_static_CXX='-Bstatic'
  10973. else
  10974. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10975. fi
  10976. ;;
  10977. chorus*)
  10978. case $cc_basename in
  10979. cxch68)
  10980. # Green Hills C++ Compiler
  10981. # _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"
  10982. ;;
  10983. esac
  10984. ;;
  10985. darwin*)
  10986. # PIC is the default on this platform
  10987. # Common symbols not allowed in MH_DYLIB files
  10988. case "$cc_basename" in
  10989. xlc*)
  10990. lt_prog_compiler_pic_CXX='-qnocommon'
  10991. lt_prog_compiler_wl_CXX='-Wl,'
  10992. ;;
  10993. esac
  10994. ;;
  10995. dgux*)
  10996. case $cc_basename in
  10997. ec++)
  10998. lt_prog_compiler_pic_CXX='-KPIC'
  10999. ;;
  11000. ghcx)
  11001. # Green Hills C++ Compiler
  11002. lt_prog_compiler_pic_CXX='-pic'
  11003. ;;
  11004. *)
  11005. ;;
  11006. esac
  11007. ;;
  11008. freebsd* | kfreebsd*-gnu | dragonfly*)
  11009. # FreeBSD uses GNU C++
  11010. ;;
  11011. hpux9* | hpux10* | hpux11*)
  11012. case $cc_basename in
  11013. CC)
  11014. lt_prog_compiler_wl_CXX='-Wl,'
  11015. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  11016. if test "$host_cpu" != ia64; then
  11017. lt_prog_compiler_pic_CXX='+Z'
  11018. fi
  11019. ;;
  11020. aCC)
  11021. lt_prog_compiler_wl_CXX='-Wl,'
  11022. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  11023. case "$host_cpu" in
  11024. hppa*64*|ia64*)
  11025. # +Z the default
  11026. ;;
  11027. *)
  11028. lt_prog_compiler_pic_CXX='+Z'
  11029. ;;
  11030. esac
  11031. ;;
  11032. *)
  11033. ;;
  11034. esac
  11035. ;;
  11036. irix5* | irix6* | nonstopux*)
  11037. case $cc_basename in
  11038. CC)
  11039. lt_prog_compiler_wl_CXX='-Wl,'
  11040. lt_prog_compiler_static_CXX='-non_shared'
  11041. # CC pic flag -KPIC is the default.
  11042. ;;
  11043. *)
  11044. ;;
  11045. esac
  11046. ;;
  11047. linux*)
  11048. case $cc_basename in
  11049. KCC)
  11050. # KAI C++ Compiler
  11051. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11052. lt_prog_compiler_pic_CXX='-fPIC'
  11053. ;;
  11054. icpc* | ecpc*)
  11055. # Intel C++
  11056. lt_prog_compiler_wl_CXX='-Wl,'
  11057. lt_prog_compiler_pic_CXX='-KPIC'
  11058. lt_prog_compiler_static_CXX='-static'
  11059. ;;
  11060. pgCC)
  11061. # Portland Group C++ compiler.
  11062. lt_prog_compiler_wl_CXX='-Wl,'
  11063. lt_prog_compiler_pic_CXX='-fpic'
  11064. lt_prog_compiler_static_CXX='-static'
  11065. ;;
  11066. cxx)
  11067. # Compaq C++
  11068. # Make sure the PIC flag is empty. It appears that all Alpha
  11069. # Linux and Compaq Tru64 Unix objects are PIC.
  11070. lt_prog_compiler_pic_CXX=
  11071. lt_prog_compiler_static_CXX='-non_shared'
  11072. ;;
  11073. *)
  11074. ;;
  11075. esac
  11076. ;;
  11077. lynxos*)
  11078. ;;
  11079. m88k*)
  11080. ;;
  11081. mvs*)
  11082. case $cc_basename in
  11083. cxx)
  11084. lt_prog_compiler_pic_CXX='-W c,exportall'
  11085. ;;
  11086. *)
  11087. ;;
  11088. esac
  11089. ;;
  11090. netbsd*)
  11091. ;;
  11092. osf3* | osf4* | osf5*)
  11093. case $cc_basename in
  11094. KCC)
  11095. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11096. ;;
  11097. RCC)
  11098. # Rational C++ 2.4.1
  11099. lt_prog_compiler_pic_CXX='-pic'
  11100. ;;
  11101. cxx)
  11102. # Digital/Compaq C++
  11103. lt_prog_compiler_wl_CXX='-Wl,'
  11104. # Make sure the PIC flag is empty. It appears that all Alpha
  11105. # Linux and Compaq Tru64 Unix objects are PIC.
  11106. lt_prog_compiler_pic_CXX=
  11107. lt_prog_compiler_static_CXX='-non_shared'
  11108. ;;
  11109. *)
  11110. ;;
  11111. esac
  11112. ;;
  11113. psos*)
  11114. ;;
  11115. sco*)
  11116. case $cc_basename in
  11117. CC)
  11118. lt_prog_compiler_pic_CXX='-fPIC'
  11119. ;;
  11120. *)
  11121. ;;
  11122. esac
  11123. ;;
  11124. solaris*)
  11125. case $cc_basename in
  11126. CC)
  11127. # Sun C++ 4.2, 5.x and Centerline C++
  11128. lt_prog_compiler_pic_CXX='-KPIC'
  11129. lt_prog_compiler_static_CXX='-Bstatic'
  11130. lt_prog_compiler_wl_CXX='-Qoption ld '
  11131. ;;
  11132. gcx)
  11133. # Green Hills C++ Compiler
  11134. lt_prog_compiler_pic_CXX='-PIC'
  11135. ;;
  11136. *)
  11137. ;;
  11138. esac
  11139. ;;
  11140. sunos4*)
  11141. case $cc_basename in
  11142. CC)
  11143. # Sun C++ 4.x
  11144. lt_prog_compiler_pic_CXX='-pic'
  11145. lt_prog_compiler_static_CXX='-Bstatic'
  11146. ;;
  11147. lcc)
  11148. # Lucid
  11149. lt_prog_compiler_pic_CXX='-pic'
  11150. ;;
  11151. *)
  11152. ;;
  11153. esac
  11154. ;;
  11155. tandem*)
  11156. case $cc_basename in
  11157. NCC)
  11158. # NonStop-UX NCC 3.20
  11159. lt_prog_compiler_pic_CXX='-KPIC'
  11160. ;;
  11161. *)
  11162. ;;
  11163. esac
  11164. ;;
  11165. unixware*)
  11166. ;;
  11167. vxworks*)
  11168. ;;
  11169. *)
  11170. lt_prog_compiler_can_build_shared_CXX=no
  11171. ;;
  11172. esac
  11173. fi
  11174. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11175. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  11176. #
  11177. # Check to make sure the PIC flag actually works.
  11178. #
  11179. if test -n "$lt_prog_compiler_pic_CXX"; then
  11180. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11181. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  11182. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  11183. echo $ECHO_N "(cached) $ECHO_C" >&6
  11184. else
  11185. lt_prog_compiler_pic_works_CXX=no
  11186. ac_outfile=conftest.$ac_objext
  11187. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11188. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11189. # Insert the option either (1) after the last *FLAGS variable, or
  11190. # (2) before a word containing "conftest.", or (3) at the end.
  11191. # Note that $ac_compile itself does not contain backslashes and begins
  11192. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11193. # The option is referenced via a variable to avoid confusing sed.
  11194. lt_compile=`echo "$ac_compile" | $SED \
  11195. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  11196. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11197. -e 's:$: $lt_compiler_flag:'`
  11198. (eval echo "\"\$as_me:12343: $lt_compile\"" >&5)
  11199. (eval "$lt_compile" 2>conftest.err)
  11200. ac_status=$?
  11201. cat conftest.err >&5
  11202. echo "$as_me:12347: \$? = $ac_status" >&5
  11203. if (exit $ac_status) && test -s "$ac_outfile"; then
  11204. # The compiler can only warn and ignore the option if not recognized
  11205. # So say no if there are warnings
  11206. if test ! -s conftest.err; then
  11207. lt_prog_compiler_pic_works_CXX=yes
  11208. fi
  11209. fi
  11210. $rm conftest*
  11211. fi
  11212. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  11213. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  11214. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  11215. case $lt_prog_compiler_pic_CXX in
  11216. "" | " "*) ;;
  11217. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11218. esac
  11219. else
  11220. lt_prog_compiler_pic_CXX=
  11221. lt_prog_compiler_can_build_shared_CXX=no
  11222. fi
  11223. fi
  11224. case "$host_os" in
  11225. # For platforms which do not support PIC, -DPIC is meaningless:
  11226. *djgpp*)
  11227. lt_prog_compiler_pic_CXX=
  11228. ;;
  11229. *)
  11230. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11231. ;;
  11232. esac
  11233. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11234. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  11235. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11236. echo $ECHO_N "(cached) $ECHO_C" >&6
  11237. else
  11238. lt_cv_prog_compiler_c_o_CXX=no
  11239. $rm -r conftest 2>/dev/null
  11240. mkdir conftest
  11241. cd conftest
  11242. mkdir out
  11243. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11244. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11245. # Insert the option either (1) after the last *FLAGS variable, or
  11246. # (2) before a word containing "conftest.", or (3) at the end.
  11247. # Note that $ac_compile itself does not contain backslashes and begins
  11248. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11249. lt_compile=`echo "$ac_compile" | $SED \
  11250. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  11251. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11252. -e 's:$: $lt_compiler_flag:'`
  11253. (eval echo "\"\$as_me:12403: $lt_compile\"" >&5)
  11254. (eval "$lt_compile" 2>out/conftest.err)
  11255. ac_status=$?
  11256. cat out/conftest.err >&5
  11257. echo "$as_me:12407: \$? = $ac_status" >&5
  11258. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11259. then
  11260. # The compiler can only warn and ignore the option if not recognized
  11261. # So say no if there are warnings
  11262. if test ! -s out/conftest.err; then
  11263. lt_cv_prog_compiler_c_o_CXX=yes
  11264. fi
  11265. fi
  11266. chmod u+w .
  11267. $rm conftest*
  11268. # SGI C++ compiler will create directory out/ii_files/ for
  11269. # template instantiation
  11270. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11271. $rm out/* && rmdir out
  11272. cd ..
  11273. rmdir conftest
  11274. $rm conftest*
  11275. fi
  11276. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11277. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  11278. hard_links="nottested"
  11279. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11280. # do not overwrite the value of need_locks provided by the user
  11281. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11282. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  11283. hard_links=yes
  11284. $rm conftest*
  11285. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11286. touch conftest.a
  11287. ln conftest.a conftest.b 2>&5 || hard_links=no
  11288. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11289. echo "$as_me:$LINENO: result: $hard_links" >&5
  11290. echo "${ECHO_T}$hard_links" >&6
  11291. if test "$hard_links" = no; then
  11292. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11293. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11294. need_locks=warn
  11295. fi
  11296. else
  11297. need_locks=no
  11298. fi
  11299. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11300. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  11301. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11302. case $host_os in
  11303. aix4* | aix5*)
  11304. # If we're using GNU nm, then we don't want the "-C" option.
  11305. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11306. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11307. 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'
  11308. else
  11309. 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'
  11310. fi
  11311. ;;
  11312. pw32*)
  11313. export_symbols_cmds_CXX="$ltdll_cmds"
  11314. ;;
  11315. cygwin* | mingw*)
  11316. 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'
  11317. ;;
  11318. *)
  11319. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11320. ;;
  11321. esac
  11322. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11323. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  11324. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11325. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11326. if test "$GCC" = yes; then
  11327. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11328. fi
  11329. #
  11330. # Do we need to explicitly link libc?
  11331. #
  11332. case "x$archive_cmds_need_lc_CXX" in
  11333. x|xyes)
  11334. # Assume -lc should be added
  11335. archive_cmds_need_lc_CXX=yes
  11336. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11337. case $archive_cmds_CXX in
  11338. *'~'*)
  11339. # FIXME: we may have to deal with multi-command sequences.
  11340. ;;
  11341. '$CC '*)
  11342. # Test whether the compiler implicitly links with -lc since on some
  11343. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11344. # to ld, don't add -lc before -lgcc.
  11345. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11346. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  11347. $rm conftest*
  11348. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11349. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11350. (eval $ac_compile) 2>&5
  11351. ac_status=$?
  11352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11353. (exit $ac_status); } 2>conftest.err; then
  11354. soname=conftest
  11355. lib=conftest
  11356. libobjs=conftest.$ac_objext
  11357. deplibs=
  11358. wl=$lt_prog_compiler_wl_CXX
  11359. compiler_flags=-v
  11360. linker_flags=-v
  11361. verstring=
  11362. output_objdir=.
  11363. libname=conftest
  11364. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11365. allow_undefined_flag_CXX=
  11366. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11367. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11368. ac_status=$?
  11369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11370. (exit $ac_status); }
  11371. then
  11372. archive_cmds_need_lc_CXX=no
  11373. else
  11374. archive_cmds_need_lc_CXX=yes
  11375. fi
  11376. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11377. else
  11378. cat conftest.err 1>&5
  11379. fi
  11380. $rm conftest*
  11381. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11382. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  11383. ;;
  11384. esac
  11385. fi
  11386. ;;
  11387. esac
  11388. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11389. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  11390. library_names_spec=
  11391. libname_spec='lib$name'
  11392. soname_spec=
  11393. shrext_cmds=".so"
  11394. postinstall_cmds=
  11395. postuninstall_cmds=
  11396. finish_cmds=
  11397. finish_eval=
  11398. shlibpath_var=
  11399. shlibpath_overrides_runpath=unknown
  11400. version_type=none
  11401. dynamic_linker="$host_os ld.so"
  11402. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11403. if test "$GCC" = yes; then
  11404. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11405. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  11406. # if the path contains ";" then we assume it to be the separator
  11407. # otherwise default to the standard path separator (i.e. ":") - it is
  11408. # assumed that no part of a normal pathname contains ";" but that should
  11409. # okay in the real world where ";" in dirpaths is itself problematic.
  11410. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11411. else
  11412. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11413. fi
  11414. else
  11415. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11416. fi
  11417. need_lib_prefix=unknown
  11418. hardcode_into_libs=no
  11419. # when you set need_version to no, make sure it does not cause -set_version
  11420. # flags to be left without arguments
  11421. need_version=unknown
  11422. case $host_os in
  11423. aix3*)
  11424. version_type=linux
  11425. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11426. shlibpath_var=LIBPATH
  11427. # AIX 3 has no versioning support, so we append a major version to the name.
  11428. soname_spec='${libname}${release}${shared_ext}$major'
  11429. ;;
  11430. aix4* | aix5*)
  11431. version_type=linux
  11432. need_lib_prefix=no
  11433. need_version=no
  11434. hardcode_into_libs=yes
  11435. if test "$host_cpu" = ia64; then
  11436. # AIX 5 supports IA64
  11437. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11438. shlibpath_var=LD_LIBRARY_PATH
  11439. else
  11440. # With GCC up to 2.95.x, collect2 would create an import file
  11441. # for dependence libraries. The import file would start with
  11442. # the line `#! .'. This would cause the generated library to
  11443. # depend on `.', always an invalid library. This was fixed in
  11444. # development snapshots of GCC prior to 3.0.
  11445. case $host_os in
  11446. aix4 | aix4.[01] | aix4.[01].*)
  11447. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11448. echo ' yes '
  11449. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11450. :
  11451. else
  11452. can_build_shared=no
  11453. fi
  11454. ;;
  11455. esac
  11456. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11457. # soname into executable. Probably we can add versioning support to
  11458. # collect2, so additional links can be useful in future.
  11459. if test "$aix_use_runtimelinking" = yes; then
  11460. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11461. # instead of lib<name>.a to let people know that these are not
  11462. # typical AIX shared libraries.
  11463. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11464. else
  11465. # We preserve .a as extension for shared libraries through AIX4.2
  11466. # and later when we are not doing run time linking.
  11467. library_names_spec='${libname}${release}.a $libname.a'
  11468. soname_spec='${libname}${release}${shared_ext}$major'
  11469. fi
  11470. shlibpath_var=LIBPATH
  11471. fi
  11472. ;;
  11473. amigaos*)
  11474. library_names_spec='$libname.ixlibrary $libname.a'
  11475. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11476. 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'
  11477. ;;
  11478. beos*)
  11479. library_names_spec='${libname}${shared_ext}'
  11480. dynamic_linker="$host_os ld.so"
  11481. shlibpath_var=LIBRARY_PATH
  11482. ;;
  11483. bsdi[45]*)
  11484. version_type=linux
  11485. need_version=no
  11486. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11487. soname_spec='${libname}${release}${shared_ext}$major'
  11488. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11489. shlibpath_var=LD_LIBRARY_PATH
  11490. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11491. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11492. # the default ld.so.conf also contains /usr/contrib/lib and
  11493. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11494. # libtool to hard-code these into programs
  11495. ;;
  11496. cygwin* | mingw* | pw32*)
  11497. version_type=windows
  11498. shrext_cmds=".dll"
  11499. need_version=no
  11500. need_lib_prefix=no
  11501. case $GCC,$host_os in
  11502. yes,cygwin* | yes,mingw* | yes,pw32*)
  11503. library_names_spec='$libname.dll.a'
  11504. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11505. postinstall_cmds='base_file=`basename \${file}`~
  11506. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11507. dldir=$destdir/`dirname \$dlpath`~
  11508. test -d \$dldir || mkdir -p \$dldir~
  11509. $install_prog $dir/$dlname \$dldir/$dlname'
  11510. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11511. dlpath=$dir/\$dldll~
  11512. $rm \$dlpath'
  11513. shlibpath_overrides_runpath=yes
  11514. case $host_os in
  11515. cygwin*)
  11516. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11517. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11518. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11519. ;;
  11520. mingw*)
  11521. # MinGW DLLs use traditional 'lib' prefix
  11522. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11523. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11524. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11525. # It is most probably a Windows format PATH printed by
  11526. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11527. # path with ; separators, and with drive letters. We can handle the
  11528. # drive letters (cygwin fileutils understands them), so leave them,
  11529. # especially as we might pass files found there to a mingw objdump,
  11530. # which wouldn't understand a cygwinified path. Ahh.
  11531. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11532. else
  11533. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11534. fi
  11535. ;;
  11536. pw32*)
  11537. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11538. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11539. ;;
  11540. esac
  11541. ;;
  11542. *)
  11543. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11544. ;;
  11545. esac
  11546. dynamic_linker='Win32 ld.exe'
  11547. # FIXME: first we should search . and the directory the executable is in
  11548. shlibpath_var=PATH
  11549. ;;
  11550. darwin* | rhapsody*)
  11551. dynamic_linker="$host_os dyld"
  11552. version_type=darwin
  11553. need_lib_prefix=no
  11554. need_version=no
  11555. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11556. soname_spec='${libname}${release}${major}$shared_ext'
  11557. shlibpath_overrides_runpath=yes
  11558. shlibpath_var=DYLD_LIBRARY_PATH
  11559. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  11560. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  11561. if test "$GCC" = yes; then
  11562. 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"`
  11563. else
  11564. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  11565. fi
  11566. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11567. ;;
  11568. dgux*)
  11569. version_type=linux
  11570. need_lib_prefix=no
  11571. need_version=no
  11572. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11573. soname_spec='${libname}${release}${shared_ext}$major'
  11574. shlibpath_var=LD_LIBRARY_PATH
  11575. ;;
  11576. freebsd1*)
  11577. dynamic_linker=no
  11578. ;;
  11579. kfreebsd*-gnu)
  11580. version_type=linux
  11581. need_lib_prefix=no
  11582. need_version=no
  11583. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11584. soname_spec='${libname}${release}${shared_ext}$major'
  11585. shlibpath_var=LD_LIBRARY_PATH
  11586. shlibpath_overrides_runpath=no
  11587. hardcode_into_libs=yes
  11588. dynamic_linker='GNU ld.so'
  11589. ;;
  11590. freebsd* | dragonfly*)
  11591. # DragonFly does not have aout. When/if they implement a new
  11592. # versioning mechanism, adjust this.
  11593. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  11594. version_type=freebsd-$objformat
  11595. case $version_type in
  11596. freebsd-elf*)
  11597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11598. need_version=no
  11599. need_lib_prefix=no
  11600. ;;
  11601. freebsd-*)
  11602. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11603. need_version=yes
  11604. ;;
  11605. esac
  11606. shlibpath_var=LD_LIBRARY_PATH
  11607. case $host_os in
  11608. freebsd2*)
  11609. shlibpath_overrides_runpath=yes
  11610. ;;
  11611. freebsd3.[01]* | freebsdelf3.[01]*)
  11612. shlibpath_overrides_runpath=yes
  11613. hardcode_into_libs=yes
  11614. ;;
  11615. *) # from 3.2 on
  11616. shlibpath_overrides_runpath=no
  11617. hardcode_into_libs=yes
  11618. ;;
  11619. esac
  11620. ;;
  11621. gnu*)
  11622. version_type=linux
  11623. need_lib_prefix=no
  11624. need_version=no
  11625. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11626. soname_spec='${libname}${release}${shared_ext}$major'
  11627. shlibpath_var=LD_LIBRARY_PATH
  11628. hardcode_into_libs=yes
  11629. ;;
  11630. hpux9* | hpux10* | hpux11*)
  11631. # Give a soname corresponding to the major version so that dld.sl refuses to
  11632. # link against other versions.
  11633. version_type=sunos
  11634. need_lib_prefix=no
  11635. need_version=no
  11636. case "$host_cpu" in
  11637. ia64*)
  11638. shrext_cmds='.so'
  11639. hardcode_into_libs=yes
  11640. dynamic_linker="$host_os dld.so"
  11641. shlibpath_var=LD_LIBRARY_PATH
  11642. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11643. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11644. soname_spec='${libname}${release}${shared_ext}$major'
  11645. if test "X$HPUX_IA64_MODE" = X32; then
  11646. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11647. else
  11648. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11649. fi
  11650. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11651. ;;
  11652. hppa*64*)
  11653. shrext_cmds='.sl'
  11654. hardcode_into_libs=yes
  11655. dynamic_linker="$host_os dld.sl"
  11656. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11657. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11658. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11659. soname_spec='${libname}${release}${shared_ext}$major'
  11660. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11661. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11662. ;;
  11663. *)
  11664. shrext_cmds='.sl'
  11665. dynamic_linker="$host_os dld.sl"
  11666. shlibpath_var=SHLIB_PATH
  11667. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11668. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11669. soname_spec='${libname}${release}${shared_ext}$major'
  11670. ;;
  11671. esac
  11672. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11673. postinstall_cmds='chmod 555 $lib'
  11674. ;;
  11675. irix5* | irix6* | nonstopux*)
  11676. case $host_os in
  11677. nonstopux*) version_type=nonstopux ;;
  11678. *)
  11679. if test "$lt_cv_prog_gnu_ld" = yes; then
  11680. version_type=linux
  11681. else
  11682. version_type=irix
  11683. fi ;;
  11684. esac
  11685. need_lib_prefix=no
  11686. need_version=no
  11687. soname_spec='${libname}${release}${shared_ext}$major'
  11688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11689. case $host_os in
  11690. irix5* | nonstopux*)
  11691. libsuff= shlibsuff=
  11692. ;;
  11693. *)
  11694. case $LD in # libtool.m4 will add one of these switches to LD
  11695. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11696. libsuff= shlibsuff= libmagic=32-bit;;
  11697. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11698. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11699. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11700. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11701. *) libsuff= shlibsuff= libmagic=never-match;;
  11702. esac
  11703. ;;
  11704. esac
  11705. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11706. shlibpath_overrides_runpath=no
  11707. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11708. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11709. hardcode_into_libs=yes
  11710. ;;
  11711. # No shared lib support for Linux oldld, aout, or coff.
  11712. linux*oldld* | linux*aout* | linux*coff*)
  11713. dynamic_linker=no
  11714. ;;
  11715. # This must be Linux ELF.
  11716. linux*)
  11717. version_type=linux
  11718. need_lib_prefix=no
  11719. need_version=no
  11720. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11721. soname_spec='${libname}${release}${shared_ext}$major'
  11722. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11723. shlibpath_var=LD_LIBRARY_PATH
  11724. shlibpath_overrides_runpath=no
  11725. # This implies no fast_install, which is unacceptable.
  11726. # Some rework will be needed to allow for fast_install
  11727. # before this can be enabled.
  11728. hardcode_into_libs=yes
  11729. # Append ld.so.conf contents to the search path
  11730. if test -f /etc/ld.so.conf; then
  11731. 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  11732. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11733. fi
  11734. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11735. # powerpc, because MkLinux only supported shared libraries with the
  11736. # GNU dynamic linker. Since this was broken with cross compilers,
  11737. # most powerpc-linux boxes support dynamic linking these days and
  11738. # people can always --disable-shared, the test was removed, and we
  11739. # assume the GNU/Linux dynamic linker is in use.
  11740. dynamic_linker='GNU/Linux ld.so'
  11741. ;;
  11742. knetbsd*-gnu)
  11743. version_type=linux
  11744. need_lib_prefix=no
  11745. need_version=no
  11746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11747. soname_spec='${libname}${release}${shared_ext}$major'
  11748. shlibpath_var=LD_LIBRARY_PATH
  11749. shlibpath_overrides_runpath=no
  11750. hardcode_into_libs=yes
  11751. dynamic_linker='GNU ld.so'
  11752. ;;
  11753. netbsd*)
  11754. version_type=sunos
  11755. need_lib_prefix=no
  11756. need_version=no
  11757. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11758. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11759. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11760. dynamic_linker='NetBSD (a.out) ld.so'
  11761. else
  11762. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11763. soname_spec='${libname}${release}${shared_ext}$major'
  11764. dynamic_linker='NetBSD ld.elf_so'
  11765. fi
  11766. shlibpath_var=LD_LIBRARY_PATH
  11767. shlibpath_overrides_runpath=yes
  11768. hardcode_into_libs=yes
  11769. ;;
  11770. newsos6)
  11771. version_type=linux
  11772. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11773. shlibpath_var=LD_LIBRARY_PATH
  11774. shlibpath_overrides_runpath=yes
  11775. ;;
  11776. nto-qnx*)
  11777. version_type=linux
  11778. need_lib_prefix=no
  11779. need_version=no
  11780. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11781. soname_spec='${libname}${release}${shared_ext}$major'
  11782. shlibpath_var=LD_LIBRARY_PATH
  11783. shlibpath_overrides_runpath=yes
  11784. ;;
  11785. openbsd*)
  11786. version_type=sunos
  11787. need_lib_prefix=no
  11788. need_version=no
  11789. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11790. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11791. shlibpath_var=LD_LIBRARY_PATH
  11792. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11793. case $host_os in
  11794. openbsd2.[89] | openbsd2.[89].*)
  11795. shlibpath_overrides_runpath=no
  11796. ;;
  11797. *)
  11798. shlibpath_overrides_runpath=yes
  11799. ;;
  11800. esac
  11801. else
  11802. shlibpath_overrides_runpath=yes
  11803. fi
  11804. ;;
  11805. os2*)
  11806. libname_spec='$name'
  11807. shrext_cmds=".dll"
  11808. need_lib_prefix=no
  11809. library_names_spec='$libname${shared_ext} $libname.a'
  11810. dynamic_linker='OS/2 ld.exe'
  11811. shlibpath_var=LIBPATH
  11812. ;;
  11813. osf3* | osf4* | osf5*)
  11814. version_type=osf
  11815. need_lib_prefix=no
  11816. need_version=no
  11817. soname_spec='${libname}${release}${shared_ext}$major'
  11818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11819. shlibpath_var=LD_LIBRARY_PATH
  11820. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11821. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11822. ;;
  11823. sco3.2v5*)
  11824. version_type=osf
  11825. soname_spec='${libname}${release}${shared_ext}$major'
  11826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11827. shlibpath_var=LD_LIBRARY_PATH
  11828. ;;
  11829. solaris*)
  11830. version_type=linux
  11831. need_lib_prefix=no
  11832. need_version=no
  11833. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11834. soname_spec='${libname}${release}${shared_ext}$major'
  11835. shlibpath_var=LD_LIBRARY_PATH
  11836. shlibpath_overrides_runpath=yes
  11837. hardcode_into_libs=yes
  11838. # ldd complains unless libraries are executable
  11839. postinstall_cmds='chmod +x $lib'
  11840. ;;
  11841. sunos4*)
  11842. version_type=sunos
  11843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11844. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11845. shlibpath_var=LD_LIBRARY_PATH
  11846. shlibpath_overrides_runpath=yes
  11847. if test "$with_gnu_ld" = yes; then
  11848. need_lib_prefix=no
  11849. fi
  11850. need_version=yes
  11851. ;;
  11852. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11853. version_type=linux
  11854. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11855. soname_spec='${libname}${release}${shared_ext}$major'
  11856. shlibpath_var=LD_LIBRARY_PATH
  11857. case $host_vendor in
  11858. sni)
  11859. shlibpath_overrides_runpath=no
  11860. need_lib_prefix=no
  11861. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11862. runpath_var=LD_RUN_PATH
  11863. ;;
  11864. siemens)
  11865. need_lib_prefix=no
  11866. ;;
  11867. motorola)
  11868. need_lib_prefix=no
  11869. need_version=no
  11870. shlibpath_overrides_runpath=no
  11871. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11872. ;;
  11873. esac
  11874. ;;
  11875. sysv4*MP*)
  11876. if test -d /usr/nec ;then
  11877. version_type=linux
  11878. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11879. soname_spec='$libname${shared_ext}.$major'
  11880. shlibpath_var=LD_LIBRARY_PATH
  11881. fi
  11882. ;;
  11883. uts4*)
  11884. version_type=linux
  11885. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11886. soname_spec='${libname}${release}${shared_ext}$major'
  11887. shlibpath_var=LD_LIBRARY_PATH
  11888. ;;
  11889. *)
  11890. dynamic_linker=no
  11891. ;;
  11892. esac
  11893. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11894. echo "${ECHO_T}$dynamic_linker" >&6
  11895. test "$dynamic_linker" = no && can_build_shared=no
  11896. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11897. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  11898. hardcode_action_CXX=
  11899. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11900. test -n "$runpath_var_CXX" || \
  11901. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11902. # We can hardcode non-existant directories.
  11903. if test "$hardcode_direct_CXX" != no &&
  11904. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11905. # have to relink, otherwise we might link with an installed library
  11906. # when we should be linking with a yet-to-be-installed one
  11907. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11908. test "$hardcode_minus_L_CXX" != no; then
  11909. # Linking always hardcodes the temporary library directory.
  11910. hardcode_action_CXX=relink
  11911. else
  11912. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11913. hardcode_action_CXX=immediate
  11914. fi
  11915. else
  11916. # We cannot hardcode anything, or else we can only hardcode existing
  11917. # directories.
  11918. hardcode_action_CXX=unsupported
  11919. fi
  11920. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11921. echo "${ECHO_T}$hardcode_action_CXX" >&6
  11922. if test "$hardcode_action_CXX" = relink; then
  11923. # Fast installation is not supported
  11924. enable_fast_install=no
  11925. elif test "$shlibpath_overrides_runpath" = yes ||
  11926. test "$enable_shared" = no; then
  11927. # Fast installation is not necessary
  11928. enable_fast_install=needless
  11929. fi
  11930. striplib=
  11931. old_striplib=
  11932. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  11933. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  11934. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  11935. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11936. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11937. echo "$as_me:$LINENO: result: yes" >&5
  11938. echo "${ECHO_T}yes" >&6
  11939. else
  11940. # FIXME - insert some real tests, host_os isn't really good enough
  11941. case $host_os in
  11942. darwin*)
  11943. if test -n "$STRIP" ; then
  11944. striplib="$STRIP -x"
  11945. echo "$as_me:$LINENO: result: yes" >&5
  11946. echo "${ECHO_T}yes" >&6
  11947. else
  11948. echo "$as_me:$LINENO: result: no" >&5
  11949. echo "${ECHO_T}no" >&6
  11950. fi
  11951. ;;
  11952. *)
  11953. echo "$as_me:$LINENO: result: no" >&5
  11954. echo "${ECHO_T}no" >&6
  11955. ;;
  11956. esac
  11957. fi
  11958. if test "x$enable_dlopen" != xyes; then
  11959. enable_dlopen=unknown
  11960. enable_dlopen_self=unknown
  11961. enable_dlopen_self_static=unknown
  11962. else
  11963. lt_cv_dlopen=no
  11964. lt_cv_dlopen_libs=
  11965. case $host_os in
  11966. beos*)
  11967. lt_cv_dlopen="load_add_on"
  11968. lt_cv_dlopen_libs=
  11969. lt_cv_dlopen_self=yes
  11970. ;;
  11971. mingw* | pw32*)
  11972. lt_cv_dlopen="LoadLibrary"
  11973. lt_cv_dlopen_libs=
  11974. ;;
  11975. cygwin*)
  11976. lt_cv_dlopen="dlopen"
  11977. lt_cv_dlopen_libs=
  11978. ;;
  11979. darwin*)
  11980. # if libdl is installed we need to link against it
  11981. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  11982. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  11983. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  11984. echo $ECHO_N "(cached) $ECHO_C" >&6
  11985. else
  11986. ac_check_lib_save_LIBS=$LIBS
  11987. LIBS="-ldl $LIBS"
  11988. cat >conftest.$ac_ext <<_ACEOF
  11989. /* confdefs.h. */
  11990. _ACEOF
  11991. cat confdefs.h >>conftest.$ac_ext
  11992. cat >>conftest.$ac_ext <<_ACEOF
  11993. /* end confdefs.h. */
  11994. /* Override any gcc2 internal prototype to avoid an error. */
  11995. #ifdef __cplusplus
  11996. extern "C"
  11997. #endif
  11998. /* We use char because int might match the return type of a gcc2
  11999. builtin and then its argument prototype would still apply. */
  12000. char dlopen ();
  12001. int
  12002. main ()
  12003. {
  12004. dlopen ();
  12005. ;
  12006. return 0;
  12007. }
  12008. _ACEOF
  12009. rm -f conftest.$ac_objext conftest$ac_exeext
  12010. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12011. (eval $ac_link) 2>conftest.er1
  12012. ac_status=$?
  12013. grep -v '^ *+' conftest.er1 >conftest.err
  12014. rm -f conftest.er1
  12015. cat conftest.err >&5
  12016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12017. (exit $ac_status); } &&
  12018. { ac_try='test -z "$ac_cxx_werror_flag"
  12019. || test ! -s conftest.err'
  12020. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12021. (eval $ac_try) 2>&5
  12022. ac_status=$?
  12023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12024. (exit $ac_status); }; } &&
  12025. { ac_try='test -s conftest$ac_exeext'
  12026. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12027. (eval $ac_try) 2>&5
  12028. ac_status=$?
  12029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12030. (exit $ac_status); }; }; then
  12031. ac_cv_lib_dl_dlopen=yes
  12032. else
  12033. echo "$as_me: failed program was:" >&5
  12034. sed 's/^/| /' conftest.$ac_ext >&5
  12035. ac_cv_lib_dl_dlopen=no
  12036. fi
  12037. rm -f conftest.err conftest.$ac_objext \
  12038. conftest$ac_exeext conftest.$ac_ext
  12039. LIBS=$ac_check_lib_save_LIBS
  12040. fi
  12041. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  12042. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  12043. if test $ac_cv_lib_dl_dlopen = yes; then
  12044. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12045. else
  12046. lt_cv_dlopen="dyld"
  12047. lt_cv_dlopen_libs=
  12048. lt_cv_dlopen_self=yes
  12049. fi
  12050. ;;
  12051. *)
  12052. echo "$as_me:$LINENO: checking for shl_load" >&5
  12053. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  12054. if test "${ac_cv_func_shl_load+set}" = set; then
  12055. echo $ECHO_N "(cached) $ECHO_C" >&6
  12056. else
  12057. cat >conftest.$ac_ext <<_ACEOF
  12058. /* confdefs.h. */
  12059. _ACEOF
  12060. cat confdefs.h >>conftest.$ac_ext
  12061. cat >>conftest.$ac_ext <<_ACEOF
  12062. /* end confdefs.h. */
  12063. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  12064. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12065. #define shl_load innocuous_shl_load
  12066. /* System header to define __stub macros and hopefully few prototypes,
  12067. which can conflict with char shl_load (); below.
  12068. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12069. <limits.h> exists even on freestanding compilers. */
  12070. #ifdef __STDC__
  12071. # include <limits.h>
  12072. #else
  12073. # include <assert.h>
  12074. #endif
  12075. #undef shl_load
  12076. /* Override any gcc2 internal prototype to avoid an error. */
  12077. #ifdef __cplusplus
  12078. extern "C"
  12079. {
  12080. #endif
  12081. /* We use char because int might match the return type of a gcc2
  12082. builtin and then its argument prototype would still apply. */
  12083. char shl_load ();
  12084. /* The GNU C library defines this for functions which it implements
  12085. to always fail with ENOSYS. Some functions are actually named
  12086. something starting with __ and the normal name is an alias. */
  12087. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  12088. choke me
  12089. #else
  12090. char (*f) () = shl_load;
  12091. #endif
  12092. #ifdef __cplusplus
  12093. }
  12094. #endif
  12095. int
  12096. main ()
  12097. {
  12098. return f != shl_load;
  12099. ;
  12100. return 0;
  12101. }
  12102. _ACEOF
  12103. rm -f conftest.$ac_objext conftest$ac_exeext
  12104. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12105. (eval $ac_link) 2>conftest.er1
  12106. ac_status=$?
  12107. grep -v '^ *+' conftest.er1 >conftest.err
  12108. rm -f conftest.er1
  12109. cat conftest.err >&5
  12110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12111. (exit $ac_status); } &&
  12112. { ac_try='test -z "$ac_cxx_werror_flag"
  12113. || test ! -s conftest.err'
  12114. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12115. (eval $ac_try) 2>&5
  12116. ac_status=$?
  12117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12118. (exit $ac_status); }; } &&
  12119. { ac_try='test -s conftest$ac_exeext'
  12120. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12121. (eval $ac_try) 2>&5
  12122. ac_status=$?
  12123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12124. (exit $ac_status); }; }; then
  12125. ac_cv_func_shl_load=yes
  12126. else
  12127. echo "$as_me: failed program was:" >&5
  12128. sed 's/^/| /' conftest.$ac_ext >&5
  12129. ac_cv_func_shl_load=no
  12130. fi
  12131. rm -f conftest.err conftest.$ac_objext \
  12132. conftest$ac_exeext conftest.$ac_ext
  12133. fi
  12134. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  12135. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  12136. if test $ac_cv_func_shl_load = yes; then
  12137. lt_cv_dlopen="shl_load"
  12138. else
  12139. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  12140. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  12141. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  12142. echo $ECHO_N "(cached) $ECHO_C" >&6
  12143. else
  12144. ac_check_lib_save_LIBS=$LIBS
  12145. LIBS="-ldld $LIBS"
  12146. cat >conftest.$ac_ext <<_ACEOF
  12147. /* confdefs.h. */
  12148. _ACEOF
  12149. cat confdefs.h >>conftest.$ac_ext
  12150. cat >>conftest.$ac_ext <<_ACEOF
  12151. /* end confdefs.h. */
  12152. /* Override any gcc2 internal prototype to avoid an error. */
  12153. #ifdef __cplusplus
  12154. extern "C"
  12155. #endif
  12156. /* We use char because int might match the return type of a gcc2
  12157. builtin and then its argument prototype would still apply. */
  12158. char shl_load ();
  12159. int
  12160. main ()
  12161. {
  12162. shl_load ();
  12163. ;
  12164. return 0;
  12165. }
  12166. _ACEOF
  12167. rm -f conftest.$ac_objext conftest$ac_exeext
  12168. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12169. (eval $ac_link) 2>conftest.er1
  12170. ac_status=$?
  12171. grep -v '^ *+' conftest.er1 >conftest.err
  12172. rm -f conftest.er1
  12173. cat conftest.err >&5
  12174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12175. (exit $ac_status); } &&
  12176. { ac_try='test -z "$ac_cxx_werror_flag"
  12177. || test ! -s conftest.err'
  12178. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12179. (eval $ac_try) 2>&5
  12180. ac_status=$?
  12181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12182. (exit $ac_status); }; } &&
  12183. { ac_try='test -s conftest$ac_exeext'
  12184. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12185. (eval $ac_try) 2>&5
  12186. ac_status=$?
  12187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12188. (exit $ac_status); }; }; then
  12189. ac_cv_lib_dld_shl_load=yes
  12190. else
  12191. echo "$as_me: failed program was:" >&5
  12192. sed 's/^/| /' conftest.$ac_ext >&5
  12193. ac_cv_lib_dld_shl_load=no
  12194. fi
  12195. rm -f conftest.err conftest.$ac_objext \
  12196. conftest$ac_exeext conftest.$ac_ext
  12197. LIBS=$ac_check_lib_save_LIBS
  12198. fi
  12199. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  12200. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  12201. if test $ac_cv_lib_dld_shl_load = yes; then
  12202. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  12203. else
  12204. echo "$as_me:$LINENO: checking for dlopen" >&5
  12205. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  12206. if test "${ac_cv_func_dlopen+set}" = set; then
  12207. echo $ECHO_N "(cached) $ECHO_C" >&6
  12208. else
  12209. cat >conftest.$ac_ext <<_ACEOF
  12210. /* confdefs.h. */
  12211. _ACEOF
  12212. cat confdefs.h >>conftest.$ac_ext
  12213. cat >>conftest.$ac_ext <<_ACEOF
  12214. /* end confdefs.h. */
  12215. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  12216. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12217. #define dlopen innocuous_dlopen
  12218. /* System header to define __stub macros and hopefully few prototypes,
  12219. which can conflict with char dlopen (); below.
  12220. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12221. <limits.h> exists even on freestanding compilers. */
  12222. #ifdef __STDC__
  12223. # include <limits.h>
  12224. #else
  12225. # include <assert.h>
  12226. #endif
  12227. #undef dlopen
  12228. /* Override any gcc2 internal prototype to avoid an error. */
  12229. #ifdef __cplusplus
  12230. extern "C"
  12231. {
  12232. #endif
  12233. /* We use char because int might match the return type of a gcc2
  12234. builtin and then its argument prototype would still apply. */
  12235. char dlopen ();
  12236. /* The GNU C library defines this for functions which it implements
  12237. to always fail with ENOSYS. Some functions are actually named
  12238. something starting with __ and the normal name is an alias. */
  12239. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  12240. choke me
  12241. #else
  12242. char (*f) () = dlopen;
  12243. #endif
  12244. #ifdef __cplusplus
  12245. }
  12246. #endif
  12247. int
  12248. main ()
  12249. {
  12250. return f != dlopen;
  12251. ;
  12252. return 0;
  12253. }
  12254. _ACEOF
  12255. rm -f conftest.$ac_objext conftest$ac_exeext
  12256. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12257. (eval $ac_link) 2>conftest.er1
  12258. ac_status=$?
  12259. grep -v '^ *+' conftest.er1 >conftest.err
  12260. rm -f conftest.er1
  12261. cat conftest.err >&5
  12262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12263. (exit $ac_status); } &&
  12264. { ac_try='test -z "$ac_cxx_werror_flag"
  12265. || test ! -s conftest.err'
  12266. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12267. (eval $ac_try) 2>&5
  12268. ac_status=$?
  12269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12270. (exit $ac_status); }; } &&
  12271. { ac_try='test -s conftest$ac_exeext'
  12272. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12273. (eval $ac_try) 2>&5
  12274. ac_status=$?
  12275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12276. (exit $ac_status); }; }; then
  12277. ac_cv_func_dlopen=yes
  12278. else
  12279. echo "$as_me: failed program was:" >&5
  12280. sed 's/^/| /' conftest.$ac_ext >&5
  12281. ac_cv_func_dlopen=no
  12282. fi
  12283. rm -f conftest.err conftest.$ac_objext \
  12284. conftest$ac_exeext conftest.$ac_ext
  12285. fi
  12286. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  12287. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  12288. if test $ac_cv_func_dlopen = yes; then
  12289. lt_cv_dlopen="dlopen"
  12290. else
  12291. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  12292. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  12293. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  12294. echo $ECHO_N "(cached) $ECHO_C" >&6
  12295. else
  12296. ac_check_lib_save_LIBS=$LIBS
  12297. LIBS="-ldl $LIBS"
  12298. cat >conftest.$ac_ext <<_ACEOF
  12299. /* confdefs.h. */
  12300. _ACEOF
  12301. cat confdefs.h >>conftest.$ac_ext
  12302. cat >>conftest.$ac_ext <<_ACEOF
  12303. /* end confdefs.h. */
  12304. /* Override any gcc2 internal prototype to avoid an error. */
  12305. #ifdef __cplusplus
  12306. extern "C"
  12307. #endif
  12308. /* We use char because int might match the return type of a gcc2
  12309. builtin and then its argument prototype would still apply. */
  12310. char dlopen ();
  12311. int
  12312. main ()
  12313. {
  12314. dlopen ();
  12315. ;
  12316. return 0;
  12317. }
  12318. _ACEOF
  12319. rm -f conftest.$ac_objext conftest$ac_exeext
  12320. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12321. (eval $ac_link) 2>conftest.er1
  12322. ac_status=$?
  12323. grep -v '^ *+' conftest.er1 >conftest.err
  12324. rm -f conftest.er1
  12325. cat conftest.err >&5
  12326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12327. (exit $ac_status); } &&
  12328. { ac_try='test -z "$ac_cxx_werror_flag"
  12329. || test ! -s conftest.err'
  12330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12331. (eval $ac_try) 2>&5
  12332. ac_status=$?
  12333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12334. (exit $ac_status); }; } &&
  12335. { ac_try='test -s conftest$ac_exeext'
  12336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12337. (eval $ac_try) 2>&5
  12338. ac_status=$?
  12339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12340. (exit $ac_status); }; }; then
  12341. ac_cv_lib_dl_dlopen=yes
  12342. else
  12343. echo "$as_me: failed program was:" >&5
  12344. sed 's/^/| /' conftest.$ac_ext >&5
  12345. ac_cv_lib_dl_dlopen=no
  12346. fi
  12347. rm -f conftest.err conftest.$ac_objext \
  12348. conftest$ac_exeext conftest.$ac_ext
  12349. LIBS=$ac_check_lib_save_LIBS
  12350. fi
  12351. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  12352. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  12353. if test $ac_cv_lib_dl_dlopen = yes; then
  12354. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12355. else
  12356. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  12357. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  12358. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  12359. echo $ECHO_N "(cached) $ECHO_C" >&6
  12360. else
  12361. ac_check_lib_save_LIBS=$LIBS
  12362. LIBS="-lsvld $LIBS"
  12363. cat >conftest.$ac_ext <<_ACEOF
  12364. /* confdefs.h. */
  12365. _ACEOF
  12366. cat confdefs.h >>conftest.$ac_ext
  12367. cat >>conftest.$ac_ext <<_ACEOF
  12368. /* end confdefs.h. */
  12369. /* Override any gcc2 internal prototype to avoid an error. */
  12370. #ifdef __cplusplus
  12371. extern "C"
  12372. #endif
  12373. /* We use char because int might match the return type of a gcc2
  12374. builtin and then its argument prototype would still apply. */
  12375. char dlopen ();
  12376. int
  12377. main ()
  12378. {
  12379. dlopen ();
  12380. ;
  12381. return 0;
  12382. }
  12383. _ACEOF
  12384. rm -f conftest.$ac_objext conftest$ac_exeext
  12385. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12386. (eval $ac_link) 2>conftest.er1
  12387. ac_status=$?
  12388. grep -v '^ *+' conftest.er1 >conftest.err
  12389. rm -f conftest.er1
  12390. cat conftest.err >&5
  12391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12392. (exit $ac_status); } &&
  12393. { ac_try='test -z "$ac_cxx_werror_flag"
  12394. || test ! -s conftest.err'
  12395. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12396. (eval $ac_try) 2>&5
  12397. ac_status=$?
  12398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12399. (exit $ac_status); }; } &&
  12400. { ac_try='test -s conftest$ac_exeext'
  12401. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12402. (eval $ac_try) 2>&5
  12403. ac_status=$?
  12404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12405. (exit $ac_status); }; }; then
  12406. ac_cv_lib_svld_dlopen=yes
  12407. else
  12408. echo "$as_me: failed program was:" >&5
  12409. sed 's/^/| /' conftest.$ac_ext >&5
  12410. ac_cv_lib_svld_dlopen=no
  12411. fi
  12412. rm -f conftest.err conftest.$ac_objext \
  12413. conftest$ac_exeext conftest.$ac_ext
  12414. LIBS=$ac_check_lib_save_LIBS
  12415. fi
  12416. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  12417. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  12418. if test $ac_cv_lib_svld_dlopen = yes; then
  12419. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  12420. else
  12421. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  12422. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  12423. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  12424. echo $ECHO_N "(cached) $ECHO_C" >&6
  12425. else
  12426. ac_check_lib_save_LIBS=$LIBS
  12427. LIBS="-ldld $LIBS"
  12428. cat >conftest.$ac_ext <<_ACEOF
  12429. /* confdefs.h. */
  12430. _ACEOF
  12431. cat confdefs.h >>conftest.$ac_ext
  12432. cat >>conftest.$ac_ext <<_ACEOF
  12433. /* end confdefs.h. */
  12434. /* Override any gcc2 internal prototype to avoid an error. */
  12435. #ifdef __cplusplus
  12436. extern "C"
  12437. #endif
  12438. /* We use char because int might match the return type of a gcc2
  12439. builtin and then its argument prototype would still apply. */
  12440. char dld_link ();
  12441. int
  12442. main ()
  12443. {
  12444. dld_link ();
  12445. ;
  12446. return 0;
  12447. }
  12448. _ACEOF
  12449. rm -f conftest.$ac_objext conftest$ac_exeext
  12450. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12451. (eval $ac_link) 2>conftest.er1
  12452. ac_status=$?
  12453. grep -v '^ *+' conftest.er1 >conftest.err
  12454. rm -f conftest.er1
  12455. cat conftest.err >&5
  12456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12457. (exit $ac_status); } &&
  12458. { ac_try='test -z "$ac_cxx_werror_flag"
  12459. || test ! -s conftest.err'
  12460. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12461. (eval $ac_try) 2>&5
  12462. ac_status=$?
  12463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12464. (exit $ac_status); }; } &&
  12465. { ac_try='test -s conftest$ac_exeext'
  12466. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12467. (eval $ac_try) 2>&5
  12468. ac_status=$?
  12469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12470. (exit $ac_status); }; }; then
  12471. ac_cv_lib_dld_dld_link=yes
  12472. else
  12473. echo "$as_me: failed program was:" >&5
  12474. sed 's/^/| /' conftest.$ac_ext >&5
  12475. ac_cv_lib_dld_dld_link=no
  12476. fi
  12477. rm -f conftest.err conftest.$ac_objext \
  12478. conftest$ac_exeext conftest.$ac_ext
  12479. LIBS=$ac_check_lib_save_LIBS
  12480. fi
  12481. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  12482. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  12483. if test $ac_cv_lib_dld_dld_link = yes; then
  12484. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  12485. fi
  12486. fi
  12487. fi
  12488. fi
  12489. fi
  12490. fi
  12491. ;;
  12492. esac
  12493. if test "x$lt_cv_dlopen" != xno; then
  12494. enable_dlopen=yes
  12495. else
  12496. enable_dlopen=no
  12497. fi
  12498. case $lt_cv_dlopen in
  12499. dlopen)
  12500. save_CPPFLAGS="$CPPFLAGS"
  12501. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12502. save_LDFLAGS="$LDFLAGS"
  12503. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12504. save_LIBS="$LIBS"
  12505. LIBS="$lt_cv_dlopen_libs $LIBS"
  12506. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  12507. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  12508. if test "${lt_cv_dlopen_self+set}" = set; then
  12509. echo $ECHO_N "(cached) $ECHO_C" >&6
  12510. else
  12511. if test "$cross_compiling" = yes; then :
  12512. lt_cv_dlopen_self=cross
  12513. else
  12514. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12515. lt_status=$lt_dlunknown
  12516. cat > conftest.$ac_ext <<EOF
  12517. #line 13766 "configure"
  12518. #include "confdefs.h"
  12519. #if HAVE_DLFCN_H
  12520. #include <dlfcn.h>
  12521. #endif
  12522. #include <stdio.h>
  12523. #ifdef RTLD_GLOBAL
  12524. # define LT_DLGLOBAL RTLD_GLOBAL
  12525. #else
  12526. # ifdef DL_GLOBAL
  12527. # define LT_DLGLOBAL DL_GLOBAL
  12528. # else
  12529. # define LT_DLGLOBAL 0
  12530. # endif
  12531. #endif
  12532. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12533. find out it does not work in some platform. */
  12534. #ifndef LT_DLLAZY_OR_NOW
  12535. # ifdef RTLD_LAZY
  12536. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12537. # else
  12538. # ifdef DL_LAZY
  12539. # define LT_DLLAZY_OR_NOW DL_LAZY
  12540. # else
  12541. # ifdef RTLD_NOW
  12542. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12543. # else
  12544. # ifdef DL_NOW
  12545. # define LT_DLLAZY_OR_NOW DL_NOW
  12546. # else
  12547. # define LT_DLLAZY_OR_NOW 0
  12548. # endif
  12549. # endif
  12550. # endif
  12551. # endif
  12552. #endif
  12553. #ifdef __cplusplus
  12554. extern "C" void exit (int);
  12555. #endif
  12556. void fnord() { int i=42;}
  12557. int main ()
  12558. {
  12559. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12560. int status = $lt_dlunknown;
  12561. if (self)
  12562. {
  12563. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12564. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12565. /* dlclose (self); */
  12566. }
  12567. exit (status);
  12568. }
  12569. EOF
  12570. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12571. (eval $ac_link) 2>&5
  12572. ac_status=$?
  12573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12574. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12575. (./conftest; exit; ) 2>/dev/null
  12576. lt_status=$?
  12577. case x$lt_status in
  12578. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12579. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12580. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  12581. esac
  12582. else :
  12583. # compilation failed
  12584. lt_cv_dlopen_self=no
  12585. fi
  12586. fi
  12587. rm -fr conftest*
  12588. fi
  12589. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  12590. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  12591. if test "x$lt_cv_dlopen_self" = xyes; then
  12592. LDFLAGS="$LDFLAGS $link_static_flag"
  12593. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  12594. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  12595. if test "${lt_cv_dlopen_self_static+set}" = set; then
  12596. echo $ECHO_N "(cached) $ECHO_C" >&6
  12597. else
  12598. if test "$cross_compiling" = yes; then :
  12599. lt_cv_dlopen_self_static=cross
  12600. else
  12601. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12602. lt_status=$lt_dlunknown
  12603. cat > conftest.$ac_ext <<EOF
  12604. #line 13864 "configure"
  12605. #include "confdefs.h"
  12606. #if HAVE_DLFCN_H
  12607. #include <dlfcn.h>
  12608. #endif
  12609. #include <stdio.h>
  12610. #ifdef RTLD_GLOBAL
  12611. # define LT_DLGLOBAL RTLD_GLOBAL
  12612. #else
  12613. # ifdef DL_GLOBAL
  12614. # define LT_DLGLOBAL DL_GLOBAL
  12615. # else
  12616. # define LT_DLGLOBAL 0
  12617. # endif
  12618. #endif
  12619. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12620. find out it does not work in some platform. */
  12621. #ifndef LT_DLLAZY_OR_NOW
  12622. # ifdef RTLD_LAZY
  12623. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12624. # else
  12625. # ifdef DL_LAZY
  12626. # define LT_DLLAZY_OR_NOW DL_LAZY
  12627. # else
  12628. # ifdef RTLD_NOW
  12629. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12630. # else
  12631. # ifdef DL_NOW
  12632. # define LT_DLLAZY_OR_NOW DL_NOW
  12633. # else
  12634. # define LT_DLLAZY_OR_NOW 0
  12635. # endif
  12636. # endif
  12637. # endif
  12638. # endif
  12639. #endif
  12640. #ifdef __cplusplus
  12641. extern "C" void exit (int);
  12642. #endif
  12643. void fnord() { int i=42;}
  12644. int main ()
  12645. {
  12646. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12647. int status = $lt_dlunknown;
  12648. if (self)
  12649. {
  12650. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12651. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12652. /* dlclose (self); */
  12653. }
  12654. exit (status);
  12655. }
  12656. EOF
  12657. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12658. (eval $ac_link) 2>&5
  12659. ac_status=$?
  12660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12661. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12662. (./conftest; exit; ) 2>/dev/null
  12663. lt_status=$?
  12664. case x$lt_status in
  12665. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12666. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12667. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  12668. esac
  12669. else :
  12670. # compilation failed
  12671. lt_cv_dlopen_self_static=no
  12672. fi
  12673. fi
  12674. rm -fr conftest*
  12675. fi
  12676. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  12677. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  12678. fi
  12679. CPPFLAGS="$save_CPPFLAGS"
  12680. LDFLAGS="$save_LDFLAGS"
  12681. LIBS="$save_LIBS"
  12682. ;;
  12683. esac
  12684. case $lt_cv_dlopen_self in
  12685. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12686. *) enable_dlopen_self=unknown ;;
  12687. esac
  12688. case $lt_cv_dlopen_self_static in
  12689. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12690. *) enable_dlopen_self_static=unknown ;;
  12691. esac
  12692. fi
  12693. # The else clause should only fire when bootstrapping the
  12694. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12695. # with your package, and you will get complaints that there are
  12696. # no rules to generate ltmain.sh.
  12697. if test -f "$ltmain"; then
  12698. # See if we are running on zsh, and set the options which allow our commands through
  12699. # without removal of \ escapes.
  12700. if test -n "${ZSH_VERSION+set}" ; then
  12701. setopt NO_GLOB_SUBST
  12702. fi
  12703. # Now quote all the things that may contain metacharacters while being
  12704. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12705. # variables and quote the copies for generation of the libtool script.
  12706. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  12707. SED SHELL STRIP \
  12708. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12709. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12710. deplibs_check_method reload_flag reload_cmds need_locks \
  12711. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12712. lt_cv_sys_global_symbol_to_c_name_address \
  12713. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12714. old_postinstall_cmds old_postuninstall_cmds \
  12715. compiler_CXX \
  12716. CC_CXX \
  12717. LD_CXX \
  12718. lt_prog_compiler_wl_CXX \
  12719. lt_prog_compiler_pic_CXX \
  12720. lt_prog_compiler_static_CXX \
  12721. lt_prog_compiler_no_builtin_flag_CXX \
  12722. export_dynamic_flag_spec_CXX \
  12723. thread_safe_flag_spec_CXX \
  12724. whole_archive_flag_spec_CXX \
  12725. enable_shared_with_static_runtimes_CXX \
  12726. old_archive_cmds_CXX \
  12727. old_archive_from_new_cmds_CXX \
  12728. predep_objects_CXX \
  12729. postdep_objects_CXX \
  12730. predeps_CXX \
  12731. postdeps_CXX \
  12732. compiler_lib_search_path_CXX \
  12733. archive_cmds_CXX \
  12734. archive_expsym_cmds_CXX \
  12735. postinstall_cmds_CXX \
  12736. postuninstall_cmds_CXX \
  12737. old_archive_from_expsyms_cmds_CXX \
  12738. allow_undefined_flag_CXX \
  12739. no_undefined_flag_CXX \
  12740. export_symbols_cmds_CXX \
  12741. hardcode_libdir_flag_spec_CXX \
  12742. hardcode_libdir_flag_spec_ld_CXX \
  12743. hardcode_libdir_separator_CXX \
  12744. hardcode_automatic_CXX \
  12745. module_cmds_CXX \
  12746. module_expsym_cmds_CXX \
  12747. lt_cv_prog_compiler_c_o_CXX \
  12748. exclude_expsyms_CXX \
  12749. include_expsyms_CXX; do
  12750. case $var in
  12751. old_archive_cmds_CXX | \
  12752. old_archive_from_new_cmds_CXX | \
  12753. archive_cmds_CXX | \
  12754. archive_expsym_cmds_CXX | \
  12755. module_cmds_CXX | \
  12756. module_expsym_cmds_CXX | \
  12757. old_archive_from_expsyms_cmds_CXX | \
  12758. export_symbols_cmds_CXX | \
  12759. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12760. postinstall_cmds | postuninstall_cmds | \
  12761. old_postinstall_cmds | old_postuninstall_cmds | \
  12762. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12763. # Double-quote double-evaled strings.
  12764. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12765. ;;
  12766. *)
  12767. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12768. ;;
  12769. esac
  12770. done
  12771. case $lt_echo in
  12772. *'\$0 --fallback-echo"')
  12773. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12774. ;;
  12775. esac
  12776. cfgfile="$ofile"
  12777. cat <<__EOF__ >> "$cfgfile"
  12778. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12779. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12780. # Shell to use when invoking shell scripts.
  12781. SHELL=$lt_SHELL
  12782. # Whether or not to build shared libraries.
  12783. build_libtool_libs=$enable_shared
  12784. # Whether or not to build static libraries.
  12785. build_old_libs=$enable_static
  12786. # Whether or not to add -lc for building shared libraries.
  12787. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12788. # Whether or not to disallow shared libs when runtime libs are static
  12789. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12790. # Whether or not to optimize for fast installation.
  12791. fast_install=$enable_fast_install
  12792. # The host system.
  12793. host_alias=$host_alias
  12794. host=$host
  12795. host_os=$host_os
  12796. # The build system.
  12797. build_alias=$build_alias
  12798. build=$build
  12799. build_os=$build_os
  12800. # An echo program that does not interpret backslashes.
  12801. echo=$lt_echo
  12802. # The archiver.
  12803. AR=$lt_AR
  12804. AR_FLAGS=$lt_AR_FLAGS
  12805. # A C compiler.
  12806. LTCC=$lt_LTCC
  12807. # A language-specific compiler.
  12808. CC=$lt_compiler_CXX
  12809. # Is the compiler the GNU C compiler?
  12810. with_gcc=$GCC_CXX
  12811. # An ERE matcher.
  12812. EGREP=$lt_EGREP
  12813. # The linker used to build libraries.
  12814. LD=$lt_LD_CXX
  12815. # Whether we need hard or soft links.
  12816. LN_S=$lt_LN_S
  12817. # A BSD-compatible nm program.
  12818. NM=$lt_NM
  12819. # A symbol stripping program
  12820. STRIP=$lt_STRIP
  12821. # Used to examine libraries when file_magic_cmd begins "file"
  12822. MAGIC_CMD=$MAGIC_CMD
  12823. # Used on cygwin: DLL creation program.
  12824. DLLTOOL="$DLLTOOL"
  12825. # Used on cygwin: object dumper.
  12826. OBJDUMP="$OBJDUMP"
  12827. # Used on cygwin: assembler.
  12828. AS="$AS"
  12829. # The name of the directory that contains temporary libtool files.
  12830. objdir=$objdir
  12831. # How to create reloadable object files.
  12832. reload_flag=$lt_reload_flag
  12833. reload_cmds=$lt_reload_cmds
  12834. # How to pass a linker flag through the compiler.
  12835. wl=$lt_lt_prog_compiler_wl_CXX
  12836. # Object file suffix (normally "o").
  12837. objext="$ac_objext"
  12838. # Old archive suffix (normally "a").
  12839. libext="$libext"
  12840. # Shared library suffix (normally ".so").
  12841. shrext_cmds='$shrext_cmds'
  12842. # Executable file suffix (normally "").
  12843. exeext="$exeext"
  12844. # Additional compiler flags for building library objects.
  12845. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12846. pic_mode=$pic_mode
  12847. # What is the maximum length of a command?
  12848. max_cmd_len=$lt_cv_sys_max_cmd_len
  12849. # Does compiler simultaneously support -c and -o options?
  12850. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12851. # Must we lock files when doing compilation ?
  12852. need_locks=$lt_need_locks
  12853. # Do we need the lib prefix for modules?
  12854. need_lib_prefix=$need_lib_prefix
  12855. # Do we need a version for libraries?
  12856. need_version=$need_version
  12857. # Whether dlopen is supported.
  12858. dlopen_support=$enable_dlopen
  12859. # Whether dlopen of programs is supported.
  12860. dlopen_self=$enable_dlopen_self
  12861. # Whether dlopen of statically linked programs is supported.
  12862. dlopen_self_static=$enable_dlopen_self_static
  12863. # Compiler flag to prevent dynamic linking.
  12864. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12865. # Compiler flag to turn off builtin functions.
  12866. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12867. # Compiler flag to allow reflexive dlopens.
  12868. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12869. # Compiler flag to generate shared objects directly from archives.
  12870. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12871. # Compiler flag to generate thread-safe objects.
  12872. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12873. # Library versioning type.
  12874. version_type=$version_type
  12875. # Format of library name prefix.
  12876. libname_spec=$lt_libname_spec
  12877. # List of archive names. First name is the real one, the rest are links.
  12878. # The last name is the one that the linker finds with -lNAME.
  12879. library_names_spec=$lt_library_names_spec
  12880. # The coded name of the library, if different from the real name.
  12881. soname_spec=$lt_soname_spec
  12882. # Commands used to build and install an old-style archive.
  12883. RANLIB=$lt_RANLIB
  12884. old_archive_cmds=$lt_old_archive_cmds_CXX
  12885. old_postinstall_cmds=$lt_old_postinstall_cmds
  12886. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12887. # Create an old-style archive from a shared archive.
  12888. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12889. # Create a temporary old-style archive to link instead of a shared archive.
  12890. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12891. # Commands used to build and install a shared archive.
  12892. archive_cmds=$lt_archive_cmds_CXX
  12893. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12894. postinstall_cmds=$lt_postinstall_cmds
  12895. postuninstall_cmds=$lt_postuninstall_cmds
  12896. # Commands used to build a loadable module (assumed same as above if empty)
  12897. module_cmds=$lt_module_cmds_CXX
  12898. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12899. # Commands to strip libraries.
  12900. old_striplib=$lt_old_striplib
  12901. striplib=$lt_striplib
  12902. # Dependencies to place before the objects being linked to create a
  12903. # shared library.
  12904. predep_objects=$lt_predep_objects_CXX
  12905. # Dependencies to place after the objects being linked to create a
  12906. # shared library.
  12907. postdep_objects=$lt_postdep_objects_CXX
  12908. # Dependencies to place before the objects being linked to create a
  12909. # shared library.
  12910. predeps=$lt_predeps_CXX
  12911. # Dependencies to place after the objects being linked to create a
  12912. # shared library.
  12913. postdeps=$lt_postdeps_CXX
  12914. # The library search path used internally by the compiler when linking
  12915. # a shared library.
  12916. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12917. # Method to check whether dependent libraries are shared objects.
  12918. deplibs_check_method=$lt_deplibs_check_method
  12919. # Command to use when deplibs_check_method == file_magic.
  12920. file_magic_cmd=$lt_file_magic_cmd
  12921. # Flag that allows shared libraries with undefined symbols to be built.
  12922. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12923. # Flag that forces no undefined symbols.
  12924. no_undefined_flag=$lt_no_undefined_flag_CXX
  12925. # Commands used to finish a libtool library installation in a directory.
  12926. finish_cmds=$lt_finish_cmds
  12927. # Same as above, but a single script fragment to be evaled but not shown.
  12928. finish_eval=$lt_finish_eval
  12929. # Take the output of nm and produce a listing of raw symbols and C names.
  12930. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12931. # Transform the output of nm in a proper C declaration
  12932. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12933. # Transform the output of nm in a C name address pair
  12934. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12935. # This is the shared library runtime path variable.
  12936. runpath_var=$runpath_var
  12937. # This is the shared library path variable.
  12938. shlibpath_var=$shlibpath_var
  12939. # Is shlibpath searched before the hard-coded library search path?
  12940. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12941. # How to hardcode a shared library path into an executable.
  12942. hardcode_action=$hardcode_action_CXX
  12943. # Whether we should hardcode library paths into libraries.
  12944. hardcode_into_libs=$hardcode_into_libs
  12945. # Flag to hardcode \$libdir into a binary during linking.
  12946. # This must work even if \$libdir does not exist.
  12947. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12948. # If ld is used when linking, flag to hardcode \$libdir into
  12949. # a binary during linking. This must work even if \$libdir does
  12950. # not exist.
  12951. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12952. # Whether we need a single -rpath flag with a separated argument.
  12953. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12954. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12955. # resulting binary.
  12956. hardcode_direct=$hardcode_direct_CXX
  12957. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12958. # resulting binary.
  12959. hardcode_minus_L=$hardcode_minus_L_CXX
  12960. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12961. # the resulting binary.
  12962. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12963. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12964. # and all subsequent libraries and executables linked against it.
  12965. hardcode_automatic=$hardcode_automatic_CXX
  12966. # Variables whose values should be saved in libtool wrapper scripts and
  12967. # restored at relink time.
  12968. variables_saved_for_relink="$variables_saved_for_relink"
  12969. # Whether libtool must link a program against all its dependency libraries.
  12970. link_all_deplibs=$link_all_deplibs_CXX
  12971. # Compile-time system search path for libraries
  12972. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12973. # Run-time system search path for libraries
  12974. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12975. # Fix the shell variable \$srcfile for the compiler.
  12976. fix_srcfile_path="$fix_srcfile_path_CXX"
  12977. # Set to yes if exported symbols are required.
  12978. always_export_symbols=$always_export_symbols_CXX
  12979. # The commands to list exported symbols.
  12980. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12981. # The commands to extract the exported symbol list from a shared archive.
  12982. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12983. # Symbols that should not be listed in the preloaded symbols.
  12984. exclude_expsyms=$lt_exclude_expsyms_CXX
  12985. # Symbols that must always be exported.
  12986. include_expsyms=$lt_include_expsyms_CXX
  12987. # ### END LIBTOOL TAG CONFIG: $tagname
  12988. __EOF__
  12989. else
  12990. # If there is no Makefile yet, we rely on a make rule to execute
  12991. # `config.status --recheck' to rerun these tests and create the
  12992. # libtool script then.
  12993. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12994. if test -f "$ltmain_in"; then
  12995. test -f Makefile && make "$ltmain"
  12996. fi
  12997. fi
  12998. ac_ext=c
  12999. ac_cpp='$CPP $CPPFLAGS'
  13000. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13001. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13002. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13003. CC=$lt_save_CC
  13004. LDCXX=$LD
  13005. LD=$lt_save_LD
  13006. GCC=$lt_save_GCC
  13007. with_gnu_ldcxx=$with_gnu_ld
  13008. with_gnu_ld=$lt_save_with_gnu_ld
  13009. lt_cv_path_LDCXX=$lt_cv_path_LD
  13010. lt_cv_path_LD=$lt_save_path_LD
  13011. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13012. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13013. else
  13014. tagname=""
  13015. fi
  13016. ;;
  13017. F77)
  13018. if test -n "$F77" && test "X$F77" != "Xno"; then
  13019. ac_ext=f
  13020. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  13021. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13022. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  13023. archive_cmds_need_lc_F77=no
  13024. allow_undefined_flag_F77=
  13025. always_export_symbols_F77=no
  13026. archive_expsym_cmds_F77=
  13027. export_dynamic_flag_spec_F77=
  13028. hardcode_direct_F77=no
  13029. hardcode_libdir_flag_spec_F77=
  13030. hardcode_libdir_flag_spec_ld_F77=
  13031. hardcode_libdir_separator_F77=
  13032. hardcode_minus_L_F77=no
  13033. hardcode_automatic_F77=no
  13034. module_cmds_F77=
  13035. module_expsym_cmds_F77=
  13036. link_all_deplibs_F77=unknown
  13037. old_archive_cmds_F77=$old_archive_cmds
  13038. no_undefined_flag_F77=
  13039. whole_archive_flag_spec_F77=
  13040. enable_shared_with_static_runtimes_F77=no
  13041. # Source file extension for f77 test sources.
  13042. ac_ext=f
  13043. # Object file extension for compiled f77 test sources.
  13044. objext=o
  13045. objext_F77=$objext
  13046. # Code to be used in simple compile tests
  13047. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  13048. # Code to be used in simple link tests
  13049. lt_simple_link_test_code=" program t\n end\n"
  13050. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13051. # If no C compiler was specified, use CC.
  13052. LTCC=${LTCC-"$CC"}
  13053. # Allow CC to be a program name with arguments.
  13054. compiler=$CC
  13055. # Allow CC to be a program name with arguments.
  13056. lt_save_CC="$CC"
  13057. CC=${F77-"f77"}
  13058. compiler=$CC
  13059. compiler_F77=$CC
  13060. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  13061. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  13062. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  13063. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  13064. echo "${ECHO_T}$can_build_shared" >&6
  13065. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  13066. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  13067. test "$can_build_shared" = "no" && enable_shared=no
  13068. # On AIX, shared libraries and static libraries use the same namespace, and
  13069. # are all built from PIC.
  13070. case "$host_os" in
  13071. aix3*)
  13072. test "$enable_shared" = yes && enable_static=no
  13073. if test -n "$RANLIB"; then
  13074. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  13075. postinstall_cmds='$RANLIB $lib'
  13076. fi
  13077. ;;
  13078. aix4* | aix5*)
  13079. test "$enable_shared" = yes && enable_static=no
  13080. ;;
  13081. esac
  13082. echo "$as_me:$LINENO: result: $enable_shared" >&5
  13083. echo "${ECHO_T}$enable_shared" >&6
  13084. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  13085. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  13086. # Make sure either enable_shared or enable_static is yes.
  13087. test "$enable_shared" = yes || enable_static=yes
  13088. echo "$as_me:$LINENO: result: $enable_static" >&5
  13089. echo "${ECHO_T}$enable_static" >&6
  13090. test "$ld_shlibs_F77" = no && can_build_shared=no
  13091. GCC_F77="$G77"
  13092. LD_F77="$LD"
  13093. lt_prog_compiler_wl_F77=
  13094. lt_prog_compiler_pic_F77=
  13095. lt_prog_compiler_static_F77=
  13096. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  13097. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  13098. if test "$GCC" = yes; then
  13099. lt_prog_compiler_wl_F77='-Wl,'
  13100. lt_prog_compiler_static_F77='-static'
  13101. case $host_os in
  13102. aix*)
  13103. # All AIX code is PIC.
  13104. if test "$host_cpu" = ia64; then
  13105. # AIX 5 now supports IA64 processor
  13106. lt_prog_compiler_static_F77='-Bstatic'
  13107. fi
  13108. ;;
  13109. amigaos*)
  13110. # FIXME: we need at least 68020 code to build shared libraries, but
  13111. # adding the `-m68020' flag to GCC prevents building anything better,
  13112. # like `-m68040'.
  13113. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  13114. ;;
  13115. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13116. # PIC is the default for these OSes.
  13117. ;;
  13118. mingw* | pw32* | os2*)
  13119. # This hack is so that the source file can tell whether it is being
  13120. # built for inclusion in a dll (and should export symbols for example).
  13121. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  13122. ;;
  13123. darwin* | rhapsody*)
  13124. # PIC is the default on this platform
  13125. # Common symbols not allowed in MH_DYLIB files
  13126. lt_prog_compiler_pic_F77='-fno-common'
  13127. ;;
  13128. msdosdjgpp*)
  13129. # Just because we use GCC doesn't mean we suddenly get shared libraries
  13130. # on systems that don't support them.
  13131. lt_prog_compiler_can_build_shared_F77=no
  13132. enable_shared=no
  13133. ;;
  13134. sysv4*MP*)
  13135. if test -d /usr/nec; then
  13136. lt_prog_compiler_pic_F77=-Kconform_pic
  13137. fi
  13138. ;;
  13139. hpux*)
  13140. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13141. # not for PA HP-UX.
  13142. case "$host_cpu" in
  13143. hppa*64*|ia64*)
  13144. # +Z the default
  13145. ;;
  13146. *)
  13147. lt_prog_compiler_pic_F77='-fPIC'
  13148. ;;
  13149. esac
  13150. ;;
  13151. *)
  13152. lt_prog_compiler_pic_F77='-fPIC'
  13153. ;;
  13154. esac
  13155. else
  13156. # PORTME Check for flag to pass linker flags through the system compiler.
  13157. case $host_os in
  13158. aix*)
  13159. lt_prog_compiler_wl_F77='-Wl,'
  13160. if test "$host_cpu" = ia64; then
  13161. # AIX 5 now supports IA64 processor
  13162. lt_prog_compiler_static_F77='-Bstatic'
  13163. else
  13164. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  13165. fi
  13166. ;;
  13167. darwin*)
  13168. # PIC is the default on this platform
  13169. # Common symbols not allowed in MH_DYLIB files
  13170. case "$cc_basename" in
  13171. xlc*)
  13172. lt_prog_compiler_pic_F77='-qnocommon'
  13173. lt_prog_compiler_wl_F77='-Wl,'
  13174. ;;
  13175. esac
  13176. ;;
  13177. mingw* | pw32* | os2*)
  13178. # This hack is so that the source file can tell whether it is being
  13179. # built for inclusion in a dll (and should export symbols for example).
  13180. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  13181. ;;
  13182. hpux9* | hpux10* | hpux11*)
  13183. lt_prog_compiler_wl_F77='-Wl,'
  13184. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13185. # not for PA HP-UX.
  13186. case "$host_cpu" in
  13187. hppa*64*|ia64*)
  13188. # +Z the default
  13189. ;;
  13190. *)
  13191. lt_prog_compiler_pic_F77='+Z'
  13192. ;;
  13193. esac
  13194. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13195. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  13196. ;;
  13197. irix5* | irix6* | nonstopux*)
  13198. lt_prog_compiler_wl_F77='-Wl,'
  13199. # PIC (with -KPIC) is the default.
  13200. lt_prog_compiler_static_F77='-non_shared'
  13201. ;;
  13202. newsos6)
  13203. lt_prog_compiler_pic_F77='-KPIC'
  13204. lt_prog_compiler_static_F77='-Bstatic'
  13205. ;;
  13206. linux*)
  13207. case $cc_basename in
  13208. icc* | ecc*)
  13209. lt_prog_compiler_wl_F77='-Wl,'
  13210. lt_prog_compiler_pic_F77='-KPIC'
  13211. lt_prog_compiler_static_F77='-static'
  13212. ;;
  13213. pgcc | pgf77 | pgf90)
  13214. # Portland Group compilers (*not* the Pentium gcc compiler,
  13215. # which looks to be a dead project)
  13216. lt_prog_compiler_wl_F77='-Wl,'
  13217. lt_prog_compiler_pic_F77='-fpic'
  13218. lt_prog_compiler_static_F77='-static'
  13219. ;;
  13220. ccc*)
  13221. lt_prog_compiler_wl_F77='-Wl,'
  13222. # All Alpha code is PIC.
  13223. lt_prog_compiler_static_F77='-non_shared'
  13224. ;;
  13225. esac
  13226. ;;
  13227. osf3* | osf4* | osf5*)
  13228. lt_prog_compiler_wl_F77='-Wl,'
  13229. # All OSF/1 code is PIC.
  13230. lt_prog_compiler_static_F77='-non_shared'
  13231. ;;
  13232. sco3.2v5*)
  13233. lt_prog_compiler_pic_F77='-Kpic'
  13234. lt_prog_compiler_static_F77='-dn'
  13235. ;;
  13236. solaris*)
  13237. lt_prog_compiler_wl_F77='-Wl,'
  13238. lt_prog_compiler_pic_F77='-KPIC'
  13239. lt_prog_compiler_static_F77='-Bstatic'
  13240. ;;
  13241. sunos4*)
  13242. lt_prog_compiler_wl_F77='-Qoption ld '
  13243. lt_prog_compiler_pic_F77='-PIC'
  13244. lt_prog_compiler_static_F77='-Bstatic'
  13245. ;;
  13246. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13247. lt_prog_compiler_wl_F77='-Wl,'
  13248. lt_prog_compiler_pic_F77='-KPIC'
  13249. lt_prog_compiler_static_F77='-Bstatic'
  13250. ;;
  13251. sysv4*MP*)
  13252. if test -d /usr/nec ;then
  13253. lt_prog_compiler_pic_F77='-Kconform_pic'
  13254. lt_prog_compiler_static_F77='-Bstatic'
  13255. fi
  13256. ;;
  13257. unicos*)
  13258. lt_prog_compiler_wl_F77='-Wl,'
  13259. lt_prog_compiler_can_build_shared_F77=no
  13260. ;;
  13261. uts4*)
  13262. lt_prog_compiler_pic_F77='-pic'
  13263. lt_prog_compiler_static_F77='-Bstatic'
  13264. ;;
  13265. *)
  13266. lt_prog_compiler_can_build_shared_F77=no
  13267. ;;
  13268. esac
  13269. fi
  13270. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  13271. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  13272. #
  13273. # Check to make sure the PIC flag actually works.
  13274. #
  13275. if test -n "$lt_prog_compiler_pic_F77"; then
  13276. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  13277. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  13278. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  13279. echo $ECHO_N "(cached) $ECHO_C" >&6
  13280. else
  13281. lt_prog_compiler_pic_works_F77=no
  13282. ac_outfile=conftest.$ac_objext
  13283. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13284. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  13285. # Insert the option either (1) after the last *FLAGS variable, or
  13286. # (2) before a word containing "conftest.", or (3) at the end.
  13287. # Note that $ac_compile itself does not contain backslashes and begins
  13288. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13289. # The option is referenced via a variable to avoid confusing sed.
  13290. lt_compile=`echo "$ac_compile" | $SED \
  13291. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13292. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13293. -e 's:$: $lt_compiler_flag:'`
  13294. (eval echo "\"\$as_me:14719: $lt_compile\"" >&5)
  13295. (eval "$lt_compile" 2>conftest.err)
  13296. ac_status=$?
  13297. cat conftest.err >&5
  13298. echo "$as_me:14723: \$? = $ac_status" >&5
  13299. if (exit $ac_status) && test -s "$ac_outfile"; then
  13300. # The compiler can only warn and ignore the option if not recognized
  13301. # So say no if there are warnings
  13302. if test ! -s conftest.err; then
  13303. lt_prog_compiler_pic_works_F77=yes
  13304. fi
  13305. fi
  13306. $rm conftest*
  13307. fi
  13308. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  13309. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  13310. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  13311. case $lt_prog_compiler_pic_F77 in
  13312. "" | " "*) ;;
  13313. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  13314. esac
  13315. else
  13316. lt_prog_compiler_pic_F77=
  13317. lt_prog_compiler_can_build_shared_F77=no
  13318. fi
  13319. fi
  13320. case "$host_os" in
  13321. # For platforms which do not support PIC, -DPIC is meaningless:
  13322. *djgpp*)
  13323. lt_prog_compiler_pic_F77=
  13324. ;;
  13325. *)
  13326. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  13327. ;;
  13328. esac
  13329. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13330. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  13331. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  13332. echo $ECHO_N "(cached) $ECHO_C" >&6
  13333. else
  13334. lt_cv_prog_compiler_c_o_F77=no
  13335. $rm -r conftest 2>/dev/null
  13336. mkdir conftest
  13337. cd conftest
  13338. mkdir out
  13339. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13340. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13341. # Insert the option either (1) after the last *FLAGS variable, or
  13342. # (2) before a word containing "conftest.", or (3) at the end.
  13343. # Note that $ac_compile itself does not contain backslashes and begins
  13344. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13345. lt_compile=`echo "$ac_compile" | $SED \
  13346. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13347. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13348. -e 's:$: $lt_compiler_flag:'`
  13349. (eval echo "\"\$as_me:14779: $lt_compile\"" >&5)
  13350. (eval "$lt_compile" 2>out/conftest.err)
  13351. ac_status=$?
  13352. cat out/conftest.err >&5
  13353. echo "$as_me:14783: \$? = $ac_status" >&5
  13354. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13355. then
  13356. # The compiler can only warn and ignore the option if not recognized
  13357. # So say no if there are warnings
  13358. if test ! -s out/conftest.err; then
  13359. lt_cv_prog_compiler_c_o_F77=yes
  13360. fi
  13361. fi
  13362. chmod u+w .
  13363. $rm conftest*
  13364. # SGI C++ compiler will create directory out/ii_files/ for
  13365. # template instantiation
  13366. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13367. $rm out/* && rmdir out
  13368. cd ..
  13369. rmdir conftest
  13370. $rm conftest*
  13371. fi
  13372. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  13373. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  13374. hard_links="nottested"
  13375. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  13376. # do not overwrite the value of need_locks provided by the user
  13377. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13378. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  13379. hard_links=yes
  13380. $rm conftest*
  13381. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13382. touch conftest.a
  13383. ln conftest.a conftest.b 2>&5 || hard_links=no
  13384. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13385. echo "$as_me:$LINENO: result: $hard_links" >&5
  13386. echo "${ECHO_T}$hard_links" >&6
  13387. if test "$hard_links" = no; then
  13388. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13389. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13390. need_locks=warn
  13391. fi
  13392. else
  13393. need_locks=no
  13394. fi
  13395. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13396. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  13397. runpath_var=
  13398. allow_undefined_flag_F77=
  13399. enable_shared_with_static_runtimes_F77=no
  13400. archive_cmds_F77=
  13401. archive_expsym_cmds_F77=
  13402. old_archive_From_new_cmds_F77=
  13403. old_archive_from_expsyms_cmds_F77=
  13404. export_dynamic_flag_spec_F77=
  13405. whole_archive_flag_spec_F77=
  13406. thread_safe_flag_spec_F77=
  13407. hardcode_libdir_flag_spec_F77=
  13408. hardcode_libdir_flag_spec_ld_F77=
  13409. hardcode_libdir_separator_F77=
  13410. hardcode_direct_F77=no
  13411. hardcode_minus_L_F77=no
  13412. hardcode_shlibpath_var_F77=unsupported
  13413. link_all_deplibs_F77=unknown
  13414. hardcode_automatic_F77=no
  13415. module_cmds_F77=
  13416. module_expsym_cmds_F77=
  13417. always_export_symbols_F77=no
  13418. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13419. # include_expsyms should be a list of space-separated symbols to be *always*
  13420. # included in the symbol list
  13421. include_expsyms_F77=
  13422. # exclude_expsyms can be an extended regexp of symbols to exclude
  13423. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13424. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13425. # as well as any symbol that contains `d'.
  13426. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  13427. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13428. # platforms (ab)use it in PIC code, but their linkers get confused if
  13429. # the symbol is explicitly referenced. Since portable code cannot
  13430. # rely on this symbol name, it's probably fine to never include it in
  13431. # preloaded symbol tables.
  13432. extract_expsyms_cmds=
  13433. case $host_os in
  13434. cygwin* | mingw* | pw32*)
  13435. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13436. # When not using gcc, we currently assume that we are using
  13437. # Microsoft Visual C++.
  13438. if test "$GCC" != yes; then
  13439. with_gnu_ld=no
  13440. fi
  13441. ;;
  13442. openbsd*)
  13443. with_gnu_ld=no
  13444. ;;
  13445. esac
  13446. ld_shlibs_F77=yes
  13447. if test "$with_gnu_ld" = yes; then
  13448. # If archive_cmds runs LD, not CC, wlarc should be empty
  13449. wlarc='${wl}'
  13450. # See if GNU ld supports shared libraries.
  13451. case $host_os in
  13452. aix3* | aix4* | aix5*)
  13453. # On AIX/PPC, the GNU linker is very broken
  13454. if test "$host_cpu" != ia64; then
  13455. ld_shlibs_F77=no
  13456. cat <<EOF 1>&2
  13457. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13458. *** to be unable to reliably create shared libraries on AIX.
  13459. *** Therefore, libtool is disabling shared libraries support. If you
  13460. *** really care for shared libraries, you may want to modify your PATH
  13461. *** so that a non-GNU linker is found, and then restart.
  13462. EOF
  13463. fi
  13464. ;;
  13465. amigaos*)
  13466. 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)'
  13467. hardcode_libdir_flag_spec_F77='-L$libdir'
  13468. hardcode_minus_L_F77=yes
  13469. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13470. # that the semantics of dynamic libraries on AmigaOS, at least up
  13471. # to version 4, is to share data among multiple programs linked
  13472. # with the same dynamic library. Since this doesn't match the
  13473. # behavior of shared libraries on other platforms, we can't use
  13474. # them.
  13475. ld_shlibs_F77=no
  13476. ;;
  13477. beos*)
  13478. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13479. allow_undefined_flag_F77=unsupported
  13480. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13481. # support --undefined. This deserves some investigation. FIXME
  13482. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13483. else
  13484. ld_shlibs_F77=no
  13485. fi
  13486. ;;
  13487. cygwin* | mingw* | pw32*)
  13488. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13489. # as there is no search path for DLLs.
  13490. hardcode_libdir_flag_spec_F77='-L$libdir'
  13491. allow_undefined_flag_F77=unsupported
  13492. always_export_symbols_F77=no
  13493. enable_shared_with_static_runtimes_F77=yes
  13494. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  13495. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13496. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  13497. # If the export-symbols file already is a .def file (1st line
  13498. # is EXPORTS), use it as is; otherwise, prepend...
  13499. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13500. cp $export_symbols $output_objdir/$soname.def;
  13501. else
  13502. echo EXPORTS > $output_objdir/$soname.def;
  13503. cat $export_symbols >> $output_objdir/$soname.def;
  13504. fi~
  13505. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  13506. else
  13507. ld_shlibs_F77=no
  13508. fi
  13509. ;;
  13510. netbsd*)
  13511. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13512. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13513. wlarc=
  13514. else
  13515. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13516. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13517. fi
  13518. ;;
  13519. solaris* | sysv5*)
  13520. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13521. ld_shlibs_F77=no
  13522. cat <<EOF 1>&2
  13523. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13524. *** create shared libraries on Solaris systems. Therefore, libtool
  13525. *** is disabling shared libraries support. We urge you to upgrade GNU
  13526. *** binutils to release 2.9.1 or newer. Another option is to modify
  13527. *** your PATH or compiler configuration so that the native linker is
  13528. *** used, and then restart.
  13529. EOF
  13530. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13531. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13532. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13533. else
  13534. ld_shlibs_F77=no
  13535. fi
  13536. ;;
  13537. sunos4*)
  13538. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13539. wlarc=
  13540. hardcode_direct_F77=yes
  13541. hardcode_shlibpath_var_F77=no
  13542. ;;
  13543. linux*)
  13544. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13545. tmp_addflag=
  13546. case $CC,$host_cpu in
  13547. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  13548. tmp_addflag=' -fpic' ;;
  13549. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13550. tmp_addflag=' -i_dynamic' ;;
  13551. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13552. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13553. ifc* | ifort*) # Intel Fortran compiler
  13554. tmp_addflag=' -nofor_main' ;;
  13555. esac
  13556. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13557. supports_anon_versioning=no
  13558. case `$LD -v 2>/dev/null` in
  13559. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13560. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13561. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13562. *\ 2.11.*) ;; # other 2.11 versions
  13563. *) supports_anon_versioning=yes ;;
  13564. esac
  13565. if test $supports_anon_versioning = yes; then
  13566. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13567. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13568. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13569. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13570. else
  13571. archive_expsym_cmds_F77=$archive_cmds_F77
  13572. fi
  13573. else
  13574. ld_shlibs_F77=no
  13575. fi
  13576. ;;
  13577. *)
  13578. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13579. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13580. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13581. else
  13582. ld_shlibs_F77=no
  13583. fi
  13584. ;;
  13585. esac
  13586. if test "$ld_shlibs_F77" = yes; then
  13587. runpath_var=LD_RUN_PATH
  13588. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  13589. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  13590. # ancient GNU ld didn't support --whole-archive et. al.
  13591. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13592. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13593. else
  13594. whole_archive_flag_spec_F77=
  13595. fi
  13596. fi
  13597. else
  13598. # PORTME fill in a description of your system's linker (not GNU ld)
  13599. case $host_os in
  13600. aix3*)
  13601. allow_undefined_flag_F77=unsupported
  13602. always_export_symbols_F77=yes
  13603. 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'
  13604. # Note: this linker hardcodes the directories in LIBPATH if there
  13605. # are no directories specified by -L.
  13606. hardcode_minus_L_F77=yes
  13607. if test "$GCC" = yes && test -z "$link_static_flag"; then
  13608. # Neither direct hardcoding nor static linking is supported with a
  13609. # broken collect2.
  13610. hardcode_direct_F77=unsupported
  13611. fi
  13612. ;;
  13613. aix4* | aix5*)
  13614. if test "$host_cpu" = ia64; then
  13615. # On IA64, the linker does run time linking by default, so we don't
  13616. # have to do anything special.
  13617. aix_use_runtimelinking=no
  13618. exp_sym_flag='-Bexport'
  13619. no_entry_flag=""
  13620. else
  13621. # If we're using GNU nm, then we don't want the "-C" option.
  13622. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13623. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13624. 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'
  13625. else
  13626. 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'
  13627. fi
  13628. aix_use_runtimelinking=no
  13629. # Test if we are trying to use run time linking or normal
  13630. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13631. # need to do runtime linking.
  13632. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  13633. for ld_flag in $LDFLAGS; do
  13634. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13635. aix_use_runtimelinking=yes
  13636. break
  13637. fi
  13638. done
  13639. esac
  13640. exp_sym_flag='-bexport'
  13641. no_entry_flag='-bnoentry'
  13642. fi
  13643. # When large executables or shared objects are built, AIX ld can
  13644. # have problems creating the table of contents. If linking a library
  13645. # or program results in "error TOC overflow" add -mminimal-toc to
  13646. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13647. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13648. archive_cmds_F77=''
  13649. hardcode_direct_F77=yes
  13650. hardcode_libdir_separator_F77=':'
  13651. link_all_deplibs_F77=yes
  13652. if test "$GCC" = yes; then
  13653. case $host_os in aix4.[012]|aix4.[012].*)
  13654. # We only want to do this on AIX 4.2 and lower, the check
  13655. # below for broken collect2 doesn't work under 4.3+
  13656. collect2name=`${CC} -print-prog-name=collect2`
  13657. if test -f "$collect2name" && \
  13658. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13659. then
  13660. # We have reworked collect2
  13661. hardcode_direct_F77=yes
  13662. else
  13663. # We have old collect2
  13664. hardcode_direct_F77=unsupported
  13665. # It fails to find uninstalled libraries when the uninstalled
  13666. # path is not listed in the libpath. Setting hardcode_minus_L
  13667. # to unsupported forces relinking
  13668. hardcode_minus_L_F77=yes
  13669. hardcode_libdir_flag_spec_F77='-L$libdir'
  13670. hardcode_libdir_separator_F77=
  13671. fi
  13672. esac
  13673. shared_flag='-shared'
  13674. if test "$aix_use_runtimelinking" = yes; then
  13675. shared_flag="$shared_flag "'${wl}-G'
  13676. fi
  13677. else
  13678. # not using gcc
  13679. if test "$host_cpu" = ia64; then
  13680. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13681. # chokes on -Wl,-G. The following line is correct:
  13682. shared_flag='-G'
  13683. else
  13684. if test "$aix_use_runtimelinking" = yes; then
  13685. shared_flag='${wl}-G'
  13686. else
  13687. shared_flag='${wl}-bM:SRE'
  13688. fi
  13689. fi
  13690. fi
  13691. # It seems that -bexpall does not export symbols beginning with
  13692. # underscore (_), so it is better to generate a list of symbols to export.
  13693. always_export_symbols_F77=yes
  13694. if test "$aix_use_runtimelinking" = yes; then
  13695. # Warning - without using the other runtime loading flags (-brtl),
  13696. # -berok will link without error, but may produce a broken library.
  13697. allow_undefined_flag_F77='-berok'
  13698. # Determine the default libpath from the value encoded in an empty executable.
  13699. cat >conftest.$ac_ext <<_ACEOF
  13700. program main
  13701. end
  13702. _ACEOF
  13703. rm -f conftest.$ac_objext conftest$ac_exeext
  13704. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13705. (eval $ac_link) 2>conftest.er1
  13706. ac_status=$?
  13707. grep -v '^ *+' conftest.er1 >conftest.err
  13708. rm -f conftest.er1
  13709. cat conftest.err >&5
  13710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13711. (exit $ac_status); } &&
  13712. { ac_try='test -z "$ac_f77_werror_flag"
  13713. || test ! -s conftest.err'
  13714. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13715. (eval $ac_try) 2>&5
  13716. ac_status=$?
  13717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13718. (exit $ac_status); }; } &&
  13719. { ac_try='test -s conftest$ac_exeext'
  13720. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13721. (eval $ac_try) 2>&5
  13722. ac_status=$?
  13723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13724. (exit $ac_status); }; }; then
  13725. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13726. }'`
  13727. # Check for a 64-bit object if we didn't find anything.
  13728. 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; }
  13729. }'`; fi
  13730. else
  13731. echo "$as_me: failed program was:" >&5
  13732. sed 's/^/| /' conftest.$ac_ext >&5
  13733. fi
  13734. rm -f conftest.err conftest.$ac_objext \
  13735. conftest$ac_exeext conftest.$ac_ext
  13736. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13737. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13738. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  13739. else
  13740. if test "$host_cpu" = ia64; then
  13741. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13742. allow_undefined_flag_F77="-z nodefs"
  13743. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  13744. else
  13745. # Determine the default libpath from the value encoded in an empty executable.
  13746. cat >conftest.$ac_ext <<_ACEOF
  13747. program main
  13748. end
  13749. _ACEOF
  13750. rm -f conftest.$ac_objext conftest$ac_exeext
  13751. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13752. (eval $ac_link) 2>conftest.er1
  13753. ac_status=$?
  13754. grep -v '^ *+' conftest.er1 >conftest.err
  13755. rm -f conftest.er1
  13756. cat conftest.err >&5
  13757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13758. (exit $ac_status); } &&
  13759. { ac_try='test -z "$ac_f77_werror_flag"
  13760. || test ! -s conftest.err'
  13761. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13762. (eval $ac_try) 2>&5
  13763. ac_status=$?
  13764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13765. (exit $ac_status); }; } &&
  13766. { ac_try='test -s conftest$ac_exeext'
  13767. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13768. (eval $ac_try) 2>&5
  13769. ac_status=$?
  13770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13771. (exit $ac_status); }; }; then
  13772. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13773. }'`
  13774. # Check for a 64-bit object if we didn't find anything.
  13775. 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; }
  13776. }'`; fi
  13777. else
  13778. echo "$as_me: failed program was:" >&5
  13779. sed 's/^/| /' conftest.$ac_ext >&5
  13780. fi
  13781. rm -f conftest.err conftest.$ac_objext \
  13782. conftest$ac_exeext conftest.$ac_ext
  13783. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13784. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13785. # Warning - without using the other run time loading flags,
  13786. # -berok will link without error, but may produce a broken library.
  13787. no_undefined_flag_F77=' ${wl}-bernotok'
  13788. allow_undefined_flag_F77=' ${wl}-berok'
  13789. # -bexpall does not export symbols beginning with underscore (_)
  13790. always_export_symbols_F77=yes
  13791. # Exported symbols can be pulled into shared objects from archives
  13792. whole_archive_flag_spec_F77=' '
  13793. archive_cmds_need_lc_F77=yes
  13794. # This is similar to how AIX traditionally builds it's shared libraries.
  13795. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  13796. fi
  13797. fi
  13798. ;;
  13799. amigaos*)
  13800. 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)'
  13801. hardcode_libdir_flag_spec_F77='-L$libdir'
  13802. hardcode_minus_L_F77=yes
  13803. # see comment about different semantics on the GNU ld section
  13804. ld_shlibs_F77=no
  13805. ;;
  13806. bsdi[45]*)
  13807. export_dynamic_flag_spec_F77=-rdynamic
  13808. ;;
  13809. cygwin* | mingw* | pw32*)
  13810. # When not using gcc, we currently assume that we are using
  13811. # Microsoft Visual C++.
  13812. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13813. # no search path for DLLs.
  13814. hardcode_libdir_flag_spec_F77=' '
  13815. allow_undefined_flag_F77=unsupported
  13816. # Tell ltmain to make .lib files, not .a files.
  13817. libext=lib
  13818. # Tell ltmain to make .dll files, not .so files.
  13819. shrext_cmds=".dll"
  13820. # FIXME: Setting linknames here is a bad hack.
  13821. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13822. # The linker will automatically build a .lib file if we build a DLL.
  13823. old_archive_From_new_cmds_F77='true'
  13824. # FIXME: Should let the user specify the lib program.
  13825. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  13826. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13827. enable_shared_with_static_runtimes_F77=yes
  13828. ;;
  13829. darwin* | rhapsody*)
  13830. case "$host_os" in
  13831. rhapsody* | darwin1.[012])
  13832. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13833. ;;
  13834. *) # Darwin 1.3 on
  13835. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13836. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13837. else
  13838. case ${MACOSX_DEPLOYMENT_TARGET} in
  13839. 10.[012])
  13840. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13841. ;;
  13842. 10.*)
  13843. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13844. ;;
  13845. esac
  13846. fi
  13847. ;;
  13848. esac
  13849. archive_cmds_need_lc_F77=no
  13850. hardcode_direct_F77=no
  13851. hardcode_automatic_F77=yes
  13852. hardcode_shlibpath_var_F77=unsupported
  13853. whole_archive_flag_spec_F77=''
  13854. link_all_deplibs_F77=yes
  13855. if test "$GCC" = yes ; then
  13856. output_verbose_link_cmd='echo'
  13857. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13858. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13859. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  13860. 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}'
  13861. 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}'
  13862. else
  13863. case "$cc_basename" in
  13864. xlc*)
  13865. output_verbose_link_cmd='echo'
  13866. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  13867. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13868. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  13869. 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}'
  13870. 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}'
  13871. ;;
  13872. *)
  13873. ld_shlibs_F77=no
  13874. ;;
  13875. esac
  13876. fi
  13877. ;;
  13878. dgux*)
  13879. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13880. hardcode_libdir_flag_spec_F77='-L$libdir'
  13881. hardcode_shlibpath_var_F77=no
  13882. ;;
  13883. freebsd1*)
  13884. ld_shlibs_F77=no
  13885. ;;
  13886. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13887. # support. Future versions do this automatically, but an explicit c++rt0.o
  13888. # does not break anything, and helps significantly (at the cost of a little
  13889. # extra space).
  13890. freebsd2.2*)
  13891. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13892. hardcode_libdir_flag_spec_F77='-R$libdir'
  13893. hardcode_direct_F77=yes
  13894. hardcode_shlibpath_var_F77=no
  13895. ;;
  13896. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13897. freebsd2*)
  13898. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13899. hardcode_direct_F77=yes
  13900. hardcode_minus_L_F77=yes
  13901. hardcode_shlibpath_var_F77=no
  13902. ;;
  13903. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13904. freebsd* | kfreebsd*-gnu | dragonfly*)
  13905. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13906. hardcode_libdir_flag_spec_F77='-R$libdir'
  13907. hardcode_direct_F77=yes
  13908. hardcode_shlibpath_var_F77=no
  13909. ;;
  13910. hpux9*)
  13911. if test "$GCC" = yes; then
  13912. 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'
  13913. else
  13914. 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'
  13915. fi
  13916. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13917. hardcode_libdir_separator_F77=:
  13918. hardcode_direct_F77=yes
  13919. # hardcode_minus_L: Not really in the search PATH,
  13920. # but as the default location of the library.
  13921. hardcode_minus_L_F77=yes
  13922. export_dynamic_flag_spec_F77='${wl}-E'
  13923. ;;
  13924. hpux10* | hpux11*)
  13925. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13926. case "$host_cpu" in
  13927. hppa*64*|ia64*)
  13928. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13929. ;;
  13930. *)
  13931. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13932. ;;
  13933. esac
  13934. else
  13935. case "$host_cpu" in
  13936. hppa*64*|ia64*)
  13937. archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  13938. ;;
  13939. *)
  13940. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13941. ;;
  13942. esac
  13943. fi
  13944. if test "$with_gnu_ld" = no; then
  13945. case "$host_cpu" in
  13946. hppa*64*)
  13947. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13948. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13949. hardcode_libdir_separator_F77=:
  13950. hardcode_direct_F77=no
  13951. hardcode_shlibpath_var_F77=no
  13952. ;;
  13953. ia64*)
  13954. hardcode_libdir_flag_spec_F77='-L$libdir'
  13955. hardcode_direct_F77=no
  13956. hardcode_shlibpath_var_F77=no
  13957. # hardcode_minus_L: Not really in the search PATH,
  13958. # but as the default location of the library.
  13959. hardcode_minus_L_F77=yes
  13960. ;;
  13961. *)
  13962. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13963. hardcode_libdir_separator_F77=:
  13964. hardcode_direct_F77=yes
  13965. export_dynamic_flag_spec_F77='${wl}-E'
  13966. # hardcode_minus_L: Not really in the search PATH,
  13967. # but as the default location of the library.
  13968. hardcode_minus_L_F77=yes
  13969. ;;
  13970. esac
  13971. fi
  13972. ;;
  13973. irix5* | irix6* | nonstopux*)
  13974. if test "$GCC" = yes; then
  13975. 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'
  13976. else
  13977. 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'
  13978. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13979. fi
  13980. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13981. hardcode_libdir_separator_F77=:
  13982. link_all_deplibs_F77=yes
  13983. ;;
  13984. netbsd*)
  13985. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13986. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13987. else
  13988. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13989. fi
  13990. hardcode_libdir_flag_spec_F77='-R$libdir'
  13991. hardcode_direct_F77=yes
  13992. hardcode_shlibpath_var_F77=no
  13993. ;;
  13994. newsos6)
  13995. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13996. hardcode_direct_F77=yes
  13997. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13998. hardcode_libdir_separator_F77=:
  13999. hardcode_shlibpath_var_F77=no
  14000. ;;
  14001. openbsd*)
  14002. hardcode_direct_F77=yes
  14003. hardcode_shlibpath_var_F77=no
  14004. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14005. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14006. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  14007. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  14008. export_dynamic_flag_spec_F77='${wl}-E'
  14009. else
  14010. case $host_os in
  14011. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  14012. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14013. hardcode_libdir_flag_spec_F77='-R$libdir'
  14014. ;;
  14015. *)
  14016. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14017. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  14018. ;;
  14019. esac
  14020. fi
  14021. ;;
  14022. os2*)
  14023. hardcode_libdir_flag_spec_F77='-L$libdir'
  14024. hardcode_minus_L_F77=yes
  14025. allow_undefined_flag_F77=unsupported
  14026. 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'
  14027. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  14028. ;;
  14029. osf3*)
  14030. if test "$GCC" = yes; then
  14031. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  14032. 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'
  14033. else
  14034. allow_undefined_flag_F77=' -expect_unresolved \*'
  14035. 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'
  14036. fi
  14037. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14038. hardcode_libdir_separator_F77=:
  14039. ;;
  14040. osf4* | osf5*) # as osf3* with the addition of -msym flag
  14041. if test "$GCC" = yes; then
  14042. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  14043. 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'
  14044. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14045. else
  14046. allow_undefined_flag_F77=' -expect_unresolved \*'
  14047. 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'
  14048. 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~
  14049. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  14050. # Both c and cxx compiler support -rpath directly
  14051. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  14052. fi
  14053. hardcode_libdir_separator_F77=:
  14054. ;;
  14055. sco3.2v5*)
  14056. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14057. hardcode_shlibpath_var_F77=no
  14058. export_dynamic_flag_spec_F77='${wl}-Bexport'
  14059. runpath_var=LD_RUN_PATH
  14060. hardcode_runpath_var=yes
  14061. ;;
  14062. solaris*)
  14063. no_undefined_flag_F77=' -z text'
  14064. if test "$GCC" = yes; then
  14065. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14066. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14067. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  14068. else
  14069. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14070. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14071. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14072. fi
  14073. hardcode_libdir_flag_spec_F77='-R$libdir'
  14074. hardcode_shlibpath_var_F77=no
  14075. case $host_os in
  14076. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14077. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  14078. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
  14079. esac
  14080. link_all_deplibs_F77=yes
  14081. ;;
  14082. sunos4*)
  14083. if test "x$host_vendor" = xsequent; then
  14084. # Use $CC to link under sequent, because it throws in some extra .o
  14085. # files that make .init and .fini sections work.
  14086. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14087. else
  14088. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  14089. fi
  14090. hardcode_libdir_flag_spec_F77='-L$libdir'
  14091. hardcode_direct_F77=yes
  14092. hardcode_minus_L_F77=yes
  14093. hardcode_shlibpath_var_F77=no
  14094. ;;
  14095. sysv4)
  14096. case $host_vendor in
  14097. sni)
  14098. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14099. hardcode_direct_F77=yes # is this really true???
  14100. ;;
  14101. siemens)
  14102. ## LD is ld it makes a PLAMLIB
  14103. ## CC just makes a GrossModule.
  14104. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14105. reload_cmds_F77='$CC -r -o $output$reload_objs'
  14106. hardcode_direct_F77=no
  14107. ;;
  14108. motorola)
  14109. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14110. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  14111. ;;
  14112. esac
  14113. runpath_var='LD_RUN_PATH'
  14114. hardcode_shlibpath_var_F77=no
  14115. ;;
  14116. sysv4.3*)
  14117. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14118. hardcode_shlibpath_var_F77=no
  14119. export_dynamic_flag_spec_F77='-Bexport'
  14120. ;;
  14121. sysv4*MP*)
  14122. if test -d /usr/nec; then
  14123. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14124. hardcode_shlibpath_var_F77=no
  14125. runpath_var=LD_RUN_PATH
  14126. hardcode_runpath_var=yes
  14127. ld_shlibs_F77=yes
  14128. fi
  14129. ;;
  14130. sysv4.2uw2*)
  14131. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14132. hardcode_direct_F77=yes
  14133. hardcode_minus_L_F77=no
  14134. hardcode_shlibpath_var_F77=no
  14135. hardcode_runpath_var=yes
  14136. runpath_var=LD_RUN_PATH
  14137. ;;
  14138. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  14139. no_undefined_flag_F77='${wl}-z ${wl}text'
  14140. if test "$GCC" = yes; then
  14141. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14142. else
  14143. archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14144. fi
  14145. runpath_var='LD_RUN_PATH'
  14146. hardcode_shlibpath_var_F77=no
  14147. ;;
  14148. sysv5*)
  14149. no_undefined_flag_F77=' -z text'
  14150. # $CC -shared without GNU ld will not create a library from C++
  14151. # object files and a static libstdc++, better avoid it by now
  14152. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14153. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14154. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14155. hardcode_libdir_flag_spec_F77=
  14156. hardcode_shlibpath_var_F77=no
  14157. runpath_var='LD_RUN_PATH'
  14158. ;;
  14159. uts4*)
  14160. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14161. hardcode_libdir_flag_spec_F77='-L$libdir'
  14162. hardcode_shlibpath_var_F77=no
  14163. ;;
  14164. *)
  14165. ld_shlibs_F77=no
  14166. ;;
  14167. esac
  14168. fi
  14169. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  14170. echo "${ECHO_T}$ld_shlibs_F77" >&6
  14171. test "$ld_shlibs_F77" = no && can_build_shared=no
  14172. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14173. if test "$GCC" = yes; then
  14174. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14175. fi
  14176. #
  14177. # Do we need to explicitly link libc?
  14178. #
  14179. case "x$archive_cmds_need_lc_F77" in
  14180. x|xyes)
  14181. # Assume -lc should be added
  14182. archive_cmds_need_lc_F77=yes
  14183. if test "$enable_shared" = yes && test "$GCC" = yes; then
  14184. case $archive_cmds_F77 in
  14185. *'~'*)
  14186. # FIXME: we may have to deal with multi-command sequences.
  14187. ;;
  14188. '$CC '*)
  14189. # Test whether the compiler implicitly links with -lc since on some
  14190. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14191. # to ld, don't add -lc before -lgcc.
  14192. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  14193. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  14194. $rm conftest*
  14195. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14196. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14197. (eval $ac_compile) 2>&5
  14198. ac_status=$?
  14199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14200. (exit $ac_status); } 2>conftest.err; then
  14201. soname=conftest
  14202. lib=conftest
  14203. libobjs=conftest.$ac_objext
  14204. deplibs=
  14205. wl=$lt_prog_compiler_wl_F77
  14206. compiler_flags=-v
  14207. linker_flags=-v
  14208. verstring=
  14209. output_objdir=.
  14210. libname=conftest
  14211. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  14212. allow_undefined_flag_F77=
  14213. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  14214. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14215. ac_status=$?
  14216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14217. (exit $ac_status); }
  14218. then
  14219. archive_cmds_need_lc_F77=no
  14220. else
  14221. archive_cmds_need_lc_F77=yes
  14222. fi
  14223. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  14224. else
  14225. cat conftest.err 1>&5
  14226. fi
  14227. $rm conftest*
  14228. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  14229. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  14230. ;;
  14231. esac
  14232. fi
  14233. ;;
  14234. esac
  14235. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14236. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  14237. library_names_spec=
  14238. libname_spec='lib$name'
  14239. soname_spec=
  14240. shrext_cmds=".so"
  14241. postinstall_cmds=
  14242. postuninstall_cmds=
  14243. finish_cmds=
  14244. finish_eval=
  14245. shlibpath_var=
  14246. shlibpath_overrides_runpath=unknown
  14247. version_type=none
  14248. dynamic_linker="$host_os ld.so"
  14249. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14250. if test "$GCC" = yes; then
  14251. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14252. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  14253. # if the path contains ";" then we assume it to be the separator
  14254. # otherwise default to the standard path separator (i.e. ":") - it is
  14255. # assumed that no part of a normal pathname contains ";" but that should
  14256. # okay in the real world where ";" in dirpaths is itself problematic.
  14257. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14258. else
  14259. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14260. fi
  14261. else
  14262. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14263. fi
  14264. need_lib_prefix=unknown
  14265. hardcode_into_libs=no
  14266. # when you set need_version to no, make sure it does not cause -set_version
  14267. # flags to be left without arguments
  14268. need_version=unknown
  14269. case $host_os in
  14270. aix3*)
  14271. version_type=linux
  14272. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14273. shlibpath_var=LIBPATH
  14274. # AIX 3 has no versioning support, so we append a major version to the name.
  14275. soname_spec='${libname}${release}${shared_ext}$major'
  14276. ;;
  14277. aix4* | aix5*)
  14278. version_type=linux
  14279. need_lib_prefix=no
  14280. need_version=no
  14281. hardcode_into_libs=yes
  14282. if test "$host_cpu" = ia64; then
  14283. # AIX 5 supports IA64
  14284. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14285. shlibpath_var=LD_LIBRARY_PATH
  14286. else
  14287. # With GCC up to 2.95.x, collect2 would create an import file
  14288. # for dependence libraries. The import file would start with
  14289. # the line `#! .'. This would cause the generated library to
  14290. # depend on `.', always an invalid library. This was fixed in
  14291. # development snapshots of GCC prior to 3.0.
  14292. case $host_os in
  14293. aix4 | aix4.[01] | aix4.[01].*)
  14294. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14295. echo ' yes '
  14296. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14297. :
  14298. else
  14299. can_build_shared=no
  14300. fi
  14301. ;;
  14302. esac
  14303. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14304. # soname into executable. Probably we can add versioning support to
  14305. # collect2, so additional links can be useful in future.
  14306. if test "$aix_use_runtimelinking" = yes; then
  14307. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14308. # instead of lib<name>.a to let people know that these are not
  14309. # typical AIX shared libraries.
  14310. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14311. else
  14312. # We preserve .a as extension for shared libraries through AIX4.2
  14313. # and later when we are not doing run time linking.
  14314. library_names_spec='${libname}${release}.a $libname.a'
  14315. soname_spec='${libname}${release}${shared_ext}$major'
  14316. fi
  14317. shlibpath_var=LIBPATH
  14318. fi
  14319. ;;
  14320. amigaos*)
  14321. library_names_spec='$libname.ixlibrary $libname.a'
  14322. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14323. 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'
  14324. ;;
  14325. beos*)
  14326. library_names_spec='${libname}${shared_ext}'
  14327. dynamic_linker="$host_os ld.so"
  14328. shlibpath_var=LIBRARY_PATH
  14329. ;;
  14330. bsdi[45]*)
  14331. version_type=linux
  14332. need_version=no
  14333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14334. soname_spec='${libname}${release}${shared_ext}$major'
  14335. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14336. shlibpath_var=LD_LIBRARY_PATH
  14337. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14338. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14339. # the default ld.so.conf also contains /usr/contrib/lib and
  14340. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14341. # libtool to hard-code these into programs
  14342. ;;
  14343. cygwin* | mingw* | pw32*)
  14344. version_type=windows
  14345. shrext_cmds=".dll"
  14346. need_version=no
  14347. need_lib_prefix=no
  14348. case $GCC,$host_os in
  14349. yes,cygwin* | yes,mingw* | yes,pw32*)
  14350. library_names_spec='$libname.dll.a'
  14351. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14352. postinstall_cmds='base_file=`basename \${file}`~
  14353. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14354. dldir=$destdir/`dirname \$dlpath`~
  14355. test -d \$dldir || mkdir -p \$dldir~
  14356. $install_prog $dir/$dlname \$dldir/$dlname'
  14357. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14358. dlpath=$dir/\$dldll~
  14359. $rm \$dlpath'
  14360. shlibpath_overrides_runpath=yes
  14361. case $host_os in
  14362. cygwin*)
  14363. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14364. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14365. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14366. ;;
  14367. mingw*)
  14368. # MinGW DLLs use traditional 'lib' prefix
  14369. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14370. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14371. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14372. # It is most probably a Windows format PATH printed by
  14373. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14374. # path with ; separators, and with drive letters. We can handle the
  14375. # drive letters (cygwin fileutils understands them), so leave them,
  14376. # especially as we might pass files found there to a mingw objdump,
  14377. # which wouldn't understand a cygwinified path. Ahh.
  14378. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14379. else
  14380. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14381. fi
  14382. ;;
  14383. pw32*)
  14384. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14385. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14386. ;;
  14387. esac
  14388. ;;
  14389. *)
  14390. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14391. ;;
  14392. esac
  14393. dynamic_linker='Win32 ld.exe'
  14394. # FIXME: first we should search . and the directory the executable is in
  14395. shlibpath_var=PATH
  14396. ;;
  14397. darwin* | rhapsody*)
  14398. dynamic_linker="$host_os dyld"
  14399. version_type=darwin
  14400. need_lib_prefix=no
  14401. need_version=no
  14402. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14403. soname_spec='${libname}${release}${major}$shared_ext'
  14404. shlibpath_overrides_runpath=yes
  14405. shlibpath_var=DYLD_LIBRARY_PATH
  14406. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  14407. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  14408. if test "$GCC" = yes; then
  14409. 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"`
  14410. else
  14411. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  14412. fi
  14413. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14414. ;;
  14415. dgux*)
  14416. version_type=linux
  14417. need_lib_prefix=no
  14418. need_version=no
  14419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14420. soname_spec='${libname}${release}${shared_ext}$major'
  14421. shlibpath_var=LD_LIBRARY_PATH
  14422. ;;
  14423. freebsd1*)
  14424. dynamic_linker=no
  14425. ;;
  14426. kfreebsd*-gnu)
  14427. version_type=linux
  14428. need_lib_prefix=no
  14429. need_version=no
  14430. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14431. soname_spec='${libname}${release}${shared_ext}$major'
  14432. shlibpath_var=LD_LIBRARY_PATH
  14433. shlibpath_overrides_runpath=no
  14434. hardcode_into_libs=yes
  14435. dynamic_linker='GNU ld.so'
  14436. ;;
  14437. freebsd* | dragonfly*)
  14438. # DragonFly does not have aout. When/if they implement a new
  14439. # versioning mechanism, adjust this.
  14440. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  14441. version_type=freebsd-$objformat
  14442. case $version_type in
  14443. freebsd-elf*)
  14444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14445. need_version=no
  14446. need_lib_prefix=no
  14447. ;;
  14448. freebsd-*)
  14449. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14450. need_version=yes
  14451. ;;
  14452. esac
  14453. shlibpath_var=LD_LIBRARY_PATH
  14454. case $host_os in
  14455. freebsd2*)
  14456. shlibpath_overrides_runpath=yes
  14457. ;;
  14458. freebsd3.[01]* | freebsdelf3.[01]*)
  14459. shlibpath_overrides_runpath=yes
  14460. hardcode_into_libs=yes
  14461. ;;
  14462. *) # from 3.2 on
  14463. shlibpath_overrides_runpath=no
  14464. hardcode_into_libs=yes
  14465. ;;
  14466. esac
  14467. ;;
  14468. gnu*)
  14469. version_type=linux
  14470. need_lib_prefix=no
  14471. need_version=no
  14472. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14473. soname_spec='${libname}${release}${shared_ext}$major'
  14474. shlibpath_var=LD_LIBRARY_PATH
  14475. hardcode_into_libs=yes
  14476. ;;
  14477. hpux9* | hpux10* | hpux11*)
  14478. # Give a soname corresponding to the major version so that dld.sl refuses to
  14479. # link against other versions.
  14480. version_type=sunos
  14481. need_lib_prefix=no
  14482. need_version=no
  14483. case "$host_cpu" in
  14484. ia64*)
  14485. shrext_cmds='.so'
  14486. hardcode_into_libs=yes
  14487. dynamic_linker="$host_os dld.so"
  14488. shlibpath_var=LD_LIBRARY_PATH
  14489. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14490. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14491. soname_spec='${libname}${release}${shared_ext}$major'
  14492. if test "X$HPUX_IA64_MODE" = X32; then
  14493. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14494. else
  14495. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14496. fi
  14497. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14498. ;;
  14499. hppa*64*)
  14500. shrext_cmds='.sl'
  14501. hardcode_into_libs=yes
  14502. dynamic_linker="$host_os dld.sl"
  14503. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14504. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14505. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14506. soname_spec='${libname}${release}${shared_ext}$major'
  14507. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14508. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14509. ;;
  14510. *)
  14511. shrext_cmds='.sl'
  14512. dynamic_linker="$host_os dld.sl"
  14513. shlibpath_var=SHLIB_PATH
  14514. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14515. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14516. soname_spec='${libname}${release}${shared_ext}$major'
  14517. ;;
  14518. esac
  14519. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14520. postinstall_cmds='chmod 555 $lib'
  14521. ;;
  14522. irix5* | irix6* | nonstopux*)
  14523. case $host_os in
  14524. nonstopux*) version_type=nonstopux ;;
  14525. *)
  14526. if test "$lt_cv_prog_gnu_ld" = yes; then
  14527. version_type=linux
  14528. else
  14529. version_type=irix
  14530. fi ;;
  14531. esac
  14532. need_lib_prefix=no
  14533. need_version=no
  14534. soname_spec='${libname}${release}${shared_ext}$major'
  14535. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14536. case $host_os in
  14537. irix5* | nonstopux*)
  14538. libsuff= shlibsuff=
  14539. ;;
  14540. *)
  14541. case $LD in # libtool.m4 will add one of these switches to LD
  14542. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14543. libsuff= shlibsuff= libmagic=32-bit;;
  14544. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14545. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14546. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14547. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14548. *) libsuff= shlibsuff= libmagic=never-match;;
  14549. esac
  14550. ;;
  14551. esac
  14552. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14553. shlibpath_overrides_runpath=no
  14554. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14555. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14556. hardcode_into_libs=yes
  14557. ;;
  14558. # No shared lib support for Linux oldld, aout, or coff.
  14559. linux*oldld* | linux*aout* | linux*coff*)
  14560. dynamic_linker=no
  14561. ;;
  14562. # This must be Linux ELF.
  14563. linux*)
  14564. version_type=linux
  14565. need_lib_prefix=no
  14566. need_version=no
  14567. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14568. soname_spec='${libname}${release}${shared_ext}$major'
  14569. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14570. shlibpath_var=LD_LIBRARY_PATH
  14571. shlibpath_overrides_runpath=no
  14572. # This implies no fast_install, which is unacceptable.
  14573. # Some rework will be needed to allow for fast_install
  14574. # before this can be enabled.
  14575. hardcode_into_libs=yes
  14576. # Append ld.so.conf contents to the search path
  14577. if test -f /etc/ld.so.conf; then
  14578. 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  14579. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14580. fi
  14581. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14582. # powerpc, because MkLinux only supported shared libraries with the
  14583. # GNU dynamic linker. Since this was broken with cross compilers,
  14584. # most powerpc-linux boxes support dynamic linking these days and
  14585. # people can always --disable-shared, the test was removed, and we
  14586. # assume the GNU/Linux dynamic linker is in use.
  14587. dynamic_linker='GNU/Linux ld.so'
  14588. ;;
  14589. knetbsd*-gnu)
  14590. version_type=linux
  14591. need_lib_prefix=no
  14592. need_version=no
  14593. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14594. soname_spec='${libname}${release}${shared_ext}$major'
  14595. shlibpath_var=LD_LIBRARY_PATH
  14596. shlibpath_overrides_runpath=no
  14597. hardcode_into_libs=yes
  14598. dynamic_linker='GNU ld.so'
  14599. ;;
  14600. netbsd*)
  14601. version_type=sunos
  14602. need_lib_prefix=no
  14603. need_version=no
  14604. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14606. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14607. dynamic_linker='NetBSD (a.out) ld.so'
  14608. else
  14609. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14610. soname_spec='${libname}${release}${shared_ext}$major'
  14611. dynamic_linker='NetBSD ld.elf_so'
  14612. fi
  14613. shlibpath_var=LD_LIBRARY_PATH
  14614. shlibpath_overrides_runpath=yes
  14615. hardcode_into_libs=yes
  14616. ;;
  14617. newsos6)
  14618. version_type=linux
  14619. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14620. shlibpath_var=LD_LIBRARY_PATH
  14621. shlibpath_overrides_runpath=yes
  14622. ;;
  14623. nto-qnx*)
  14624. version_type=linux
  14625. need_lib_prefix=no
  14626. need_version=no
  14627. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14628. soname_spec='${libname}${release}${shared_ext}$major'
  14629. shlibpath_var=LD_LIBRARY_PATH
  14630. shlibpath_overrides_runpath=yes
  14631. ;;
  14632. openbsd*)
  14633. version_type=sunos
  14634. need_lib_prefix=no
  14635. need_version=no
  14636. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14637. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14638. shlibpath_var=LD_LIBRARY_PATH
  14639. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14640. case $host_os in
  14641. openbsd2.[89] | openbsd2.[89].*)
  14642. shlibpath_overrides_runpath=no
  14643. ;;
  14644. *)
  14645. shlibpath_overrides_runpath=yes
  14646. ;;
  14647. esac
  14648. else
  14649. shlibpath_overrides_runpath=yes
  14650. fi
  14651. ;;
  14652. os2*)
  14653. libname_spec='$name'
  14654. shrext_cmds=".dll"
  14655. need_lib_prefix=no
  14656. library_names_spec='$libname${shared_ext} $libname.a'
  14657. dynamic_linker='OS/2 ld.exe'
  14658. shlibpath_var=LIBPATH
  14659. ;;
  14660. osf3* | osf4* | osf5*)
  14661. version_type=osf
  14662. need_lib_prefix=no
  14663. need_version=no
  14664. soname_spec='${libname}${release}${shared_ext}$major'
  14665. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14666. shlibpath_var=LD_LIBRARY_PATH
  14667. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14668. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14669. ;;
  14670. sco3.2v5*)
  14671. version_type=osf
  14672. soname_spec='${libname}${release}${shared_ext}$major'
  14673. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14674. shlibpath_var=LD_LIBRARY_PATH
  14675. ;;
  14676. solaris*)
  14677. version_type=linux
  14678. need_lib_prefix=no
  14679. need_version=no
  14680. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14681. soname_spec='${libname}${release}${shared_ext}$major'
  14682. shlibpath_var=LD_LIBRARY_PATH
  14683. shlibpath_overrides_runpath=yes
  14684. hardcode_into_libs=yes
  14685. # ldd complains unless libraries are executable
  14686. postinstall_cmds='chmod +x $lib'
  14687. ;;
  14688. sunos4*)
  14689. version_type=sunos
  14690. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14691. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14692. shlibpath_var=LD_LIBRARY_PATH
  14693. shlibpath_overrides_runpath=yes
  14694. if test "$with_gnu_ld" = yes; then
  14695. need_lib_prefix=no
  14696. fi
  14697. need_version=yes
  14698. ;;
  14699. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  14700. version_type=linux
  14701. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14702. soname_spec='${libname}${release}${shared_ext}$major'
  14703. shlibpath_var=LD_LIBRARY_PATH
  14704. case $host_vendor in
  14705. sni)
  14706. shlibpath_overrides_runpath=no
  14707. need_lib_prefix=no
  14708. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14709. runpath_var=LD_RUN_PATH
  14710. ;;
  14711. siemens)
  14712. need_lib_prefix=no
  14713. ;;
  14714. motorola)
  14715. need_lib_prefix=no
  14716. need_version=no
  14717. shlibpath_overrides_runpath=no
  14718. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14719. ;;
  14720. esac
  14721. ;;
  14722. sysv4*MP*)
  14723. if test -d /usr/nec ;then
  14724. version_type=linux
  14725. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14726. soname_spec='$libname${shared_ext}.$major'
  14727. shlibpath_var=LD_LIBRARY_PATH
  14728. fi
  14729. ;;
  14730. uts4*)
  14731. version_type=linux
  14732. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14733. soname_spec='${libname}${release}${shared_ext}$major'
  14734. shlibpath_var=LD_LIBRARY_PATH
  14735. ;;
  14736. *)
  14737. dynamic_linker=no
  14738. ;;
  14739. esac
  14740. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14741. echo "${ECHO_T}$dynamic_linker" >&6
  14742. test "$dynamic_linker" = no && can_build_shared=no
  14743. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14744. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  14745. hardcode_action_F77=
  14746. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14747. test -n "$runpath_var_F77" || \
  14748. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14749. # We can hardcode non-existant directories.
  14750. if test "$hardcode_direct_F77" != no &&
  14751. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14752. # have to relink, otherwise we might link with an installed library
  14753. # when we should be linking with a yet-to-be-installed one
  14754. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14755. test "$hardcode_minus_L_F77" != no; then
  14756. # Linking always hardcodes the temporary library directory.
  14757. hardcode_action_F77=relink
  14758. else
  14759. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14760. hardcode_action_F77=immediate
  14761. fi
  14762. else
  14763. # We cannot hardcode anything, or else we can only hardcode existing
  14764. # directories.
  14765. hardcode_action_F77=unsupported
  14766. fi
  14767. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14768. echo "${ECHO_T}$hardcode_action_F77" >&6
  14769. if test "$hardcode_action_F77" = relink; then
  14770. # Fast installation is not supported
  14771. enable_fast_install=no
  14772. elif test "$shlibpath_overrides_runpath" = yes ||
  14773. test "$enable_shared" = no; then
  14774. # Fast installation is not necessary
  14775. enable_fast_install=needless
  14776. fi
  14777. striplib=
  14778. old_striplib=
  14779. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  14780. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  14781. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  14782. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  14783. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  14784. echo "$as_me:$LINENO: result: yes" >&5
  14785. echo "${ECHO_T}yes" >&6
  14786. else
  14787. # FIXME - insert some real tests, host_os isn't really good enough
  14788. case $host_os in
  14789. darwin*)
  14790. if test -n "$STRIP" ; then
  14791. striplib="$STRIP -x"
  14792. echo "$as_me:$LINENO: result: yes" >&5
  14793. echo "${ECHO_T}yes" >&6
  14794. else
  14795. echo "$as_me:$LINENO: result: no" >&5
  14796. echo "${ECHO_T}no" >&6
  14797. fi
  14798. ;;
  14799. *)
  14800. echo "$as_me:$LINENO: result: no" >&5
  14801. echo "${ECHO_T}no" >&6
  14802. ;;
  14803. esac
  14804. fi
  14805. # The else clause should only fire when bootstrapping the
  14806. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14807. # with your package, and you will get complaints that there are
  14808. # no rules to generate ltmain.sh.
  14809. if test -f "$ltmain"; then
  14810. # See if we are running on zsh, and set the options which allow our commands through
  14811. # without removal of \ escapes.
  14812. if test -n "${ZSH_VERSION+set}" ; then
  14813. setopt NO_GLOB_SUBST
  14814. fi
  14815. # Now quote all the things that may contain metacharacters while being
  14816. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14817. # variables and quote the copies for generation of the libtool script.
  14818. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  14819. SED SHELL STRIP \
  14820. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14821. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14822. deplibs_check_method reload_flag reload_cmds need_locks \
  14823. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14824. lt_cv_sys_global_symbol_to_c_name_address \
  14825. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14826. old_postinstall_cmds old_postuninstall_cmds \
  14827. compiler_F77 \
  14828. CC_F77 \
  14829. LD_F77 \
  14830. lt_prog_compiler_wl_F77 \
  14831. lt_prog_compiler_pic_F77 \
  14832. lt_prog_compiler_static_F77 \
  14833. lt_prog_compiler_no_builtin_flag_F77 \
  14834. export_dynamic_flag_spec_F77 \
  14835. thread_safe_flag_spec_F77 \
  14836. whole_archive_flag_spec_F77 \
  14837. enable_shared_with_static_runtimes_F77 \
  14838. old_archive_cmds_F77 \
  14839. old_archive_from_new_cmds_F77 \
  14840. predep_objects_F77 \
  14841. postdep_objects_F77 \
  14842. predeps_F77 \
  14843. postdeps_F77 \
  14844. compiler_lib_search_path_F77 \
  14845. archive_cmds_F77 \
  14846. archive_expsym_cmds_F77 \
  14847. postinstall_cmds_F77 \
  14848. postuninstall_cmds_F77 \
  14849. old_archive_from_expsyms_cmds_F77 \
  14850. allow_undefined_flag_F77 \
  14851. no_undefined_flag_F77 \
  14852. export_symbols_cmds_F77 \
  14853. hardcode_libdir_flag_spec_F77 \
  14854. hardcode_libdir_flag_spec_ld_F77 \
  14855. hardcode_libdir_separator_F77 \
  14856. hardcode_automatic_F77 \
  14857. module_cmds_F77 \
  14858. module_expsym_cmds_F77 \
  14859. lt_cv_prog_compiler_c_o_F77 \
  14860. exclude_expsyms_F77 \
  14861. include_expsyms_F77; do
  14862. case $var in
  14863. old_archive_cmds_F77 | \
  14864. old_archive_from_new_cmds_F77 | \
  14865. archive_cmds_F77 | \
  14866. archive_expsym_cmds_F77 | \
  14867. module_cmds_F77 | \
  14868. module_expsym_cmds_F77 | \
  14869. old_archive_from_expsyms_cmds_F77 | \
  14870. export_symbols_cmds_F77 | \
  14871. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14872. postinstall_cmds | postuninstall_cmds | \
  14873. old_postinstall_cmds | old_postuninstall_cmds | \
  14874. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14875. # Double-quote double-evaled strings.
  14876. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14877. ;;
  14878. *)
  14879. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14880. ;;
  14881. esac
  14882. done
  14883. case $lt_echo in
  14884. *'\$0 --fallback-echo"')
  14885. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14886. ;;
  14887. esac
  14888. cfgfile="$ofile"
  14889. cat <<__EOF__ >> "$cfgfile"
  14890. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14891. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14892. # Shell to use when invoking shell scripts.
  14893. SHELL=$lt_SHELL
  14894. # Whether or not to build shared libraries.
  14895. build_libtool_libs=$enable_shared
  14896. # Whether or not to build static libraries.
  14897. build_old_libs=$enable_static
  14898. # Whether or not to add -lc for building shared libraries.
  14899. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14900. # Whether or not to disallow shared libs when runtime libs are static
  14901. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14902. # Whether or not to optimize for fast installation.
  14903. fast_install=$enable_fast_install
  14904. # The host system.
  14905. host_alias=$host_alias
  14906. host=$host
  14907. host_os=$host_os
  14908. # The build system.
  14909. build_alias=$build_alias
  14910. build=$build
  14911. build_os=$build_os
  14912. # An echo program that does not interpret backslashes.
  14913. echo=$lt_echo
  14914. # The archiver.
  14915. AR=$lt_AR
  14916. AR_FLAGS=$lt_AR_FLAGS
  14917. # A C compiler.
  14918. LTCC=$lt_LTCC
  14919. # A language-specific compiler.
  14920. CC=$lt_compiler_F77
  14921. # Is the compiler the GNU C compiler?
  14922. with_gcc=$GCC_F77
  14923. # An ERE matcher.
  14924. EGREP=$lt_EGREP
  14925. # The linker used to build libraries.
  14926. LD=$lt_LD_F77
  14927. # Whether we need hard or soft links.
  14928. LN_S=$lt_LN_S
  14929. # A BSD-compatible nm program.
  14930. NM=$lt_NM
  14931. # A symbol stripping program
  14932. STRIP=$lt_STRIP
  14933. # Used to examine libraries when file_magic_cmd begins "file"
  14934. MAGIC_CMD=$MAGIC_CMD
  14935. # Used on cygwin: DLL creation program.
  14936. DLLTOOL="$DLLTOOL"
  14937. # Used on cygwin: object dumper.
  14938. OBJDUMP="$OBJDUMP"
  14939. # Used on cygwin: assembler.
  14940. AS="$AS"
  14941. # The name of the directory that contains temporary libtool files.
  14942. objdir=$objdir
  14943. # How to create reloadable object files.
  14944. reload_flag=$lt_reload_flag
  14945. reload_cmds=$lt_reload_cmds
  14946. # How to pass a linker flag through the compiler.
  14947. wl=$lt_lt_prog_compiler_wl_F77
  14948. # Object file suffix (normally "o").
  14949. objext="$ac_objext"
  14950. # Old archive suffix (normally "a").
  14951. libext="$libext"
  14952. # Shared library suffix (normally ".so").
  14953. shrext_cmds='$shrext_cmds'
  14954. # Executable file suffix (normally "").
  14955. exeext="$exeext"
  14956. # Additional compiler flags for building library objects.
  14957. pic_flag=$lt_lt_prog_compiler_pic_F77
  14958. pic_mode=$pic_mode
  14959. # What is the maximum length of a command?
  14960. max_cmd_len=$lt_cv_sys_max_cmd_len
  14961. # Does compiler simultaneously support -c and -o options?
  14962. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14963. # Must we lock files when doing compilation ?
  14964. need_locks=$lt_need_locks
  14965. # Do we need the lib prefix for modules?
  14966. need_lib_prefix=$need_lib_prefix
  14967. # Do we need a version for libraries?
  14968. need_version=$need_version
  14969. # Whether dlopen is supported.
  14970. dlopen_support=$enable_dlopen
  14971. # Whether dlopen of programs is supported.
  14972. dlopen_self=$enable_dlopen_self
  14973. # Whether dlopen of statically linked programs is supported.
  14974. dlopen_self_static=$enable_dlopen_self_static
  14975. # Compiler flag to prevent dynamic linking.
  14976. link_static_flag=$lt_lt_prog_compiler_static_F77
  14977. # Compiler flag to turn off builtin functions.
  14978. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14979. # Compiler flag to allow reflexive dlopens.
  14980. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14981. # Compiler flag to generate shared objects directly from archives.
  14982. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14983. # Compiler flag to generate thread-safe objects.
  14984. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14985. # Library versioning type.
  14986. version_type=$version_type
  14987. # Format of library name prefix.
  14988. libname_spec=$lt_libname_spec
  14989. # List of archive names. First name is the real one, the rest are links.
  14990. # The last name is the one that the linker finds with -lNAME.
  14991. library_names_spec=$lt_library_names_spec
  14992. # The coded name of the library, if different from the real name.
  14993. soname_spec=$lt_soname_spec
  14994. # Commands used to build and install an old-style archive.
  14995. RANLIB=$lt_RANLIB
  14996. old_archive_cmds=$lt_old_archive_cmds_F77
  14997. old_postinstall_cmds=$lt_old_postinstall_cmds
  14998. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14999. # Create an old-style archive from a shared archive.
  15000. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  15001. # Create a temporary old-style archive to link instead of a shared archive.
  15002. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  15003. # Commands used to build and install a shared archive.
  15004. archive_cmds=$lt_archive_cmds_F77
  15005. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  15006. postinstall_cmds=$lt_postinstall_cmds
  15007. postuninstall_cmds=$lt_postuninstall_cmds
  15008. # Commands used to build a loadable module (assumed same as above if empty)
  15009. module_cmds=$lt_module_cmds_F77
  15010. module_expsym_cmds=$lt_module_expsym_cmds_F77
  15011. # Commands to strip libraries.
  15012. old_striplib=$lt_old_striplib
  15013. striplib=$lt_striplib
  15014. # Dependencies to place before the objects being linked to create a
  15015. # shared library.
  15016. predep_objects=$lt_predep_objects_F77
  15017. # Dependencies to place after the objects being linked to create a
  15018. # shared library.
  15019. postdep_objects=$lt_postdep_objects_F77
  15020. # Dependencies to place before the objects being linked to create a
  15021. # shared library.
  15022. predeps=$lt_predeps_F77
  15023. # Dependencies to place after the objects being linked to create a
  15024. # shared library.
  15025. postdeps=$lt_postdeps_F77
  15026. # The library search path used internally by the compiler when linking
  15027. # a shared library.
  15028. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  15029. # Method to check whether dependent libraries are shared objects.
  15030. deplibs_check_method=$lt_deplibs_check_method
  15031. # Command to use when deplibs_check_method == file_magic.
  15032. file_magic_cmd=$lt_file_magic_cmd
  15033. # Flag that allows shared libraries with undefined symbols to be built.
  15034. allow_undefined_flag=$lt_allow_undefined_flag_F77
  15035. # Flag that forces no undefined symbols.
  15036. no_undefined_flag=$lt_no_undefined_flag_F77
  15037. # Commands used to finish a libtool library installation in a directory.
  15038. finish_cmds=$lt_finish_cmds
  15039. # Same as above, but a single script fragment to be evaled but not shown.
  15040. finish_eval=$lt_finish_eval
  15041. # Take the output of nm and produce a listing of raw symbols and C names.
  15042. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15043. # Transform the output of nm in a proper C declaration
  15044. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15045. # Transform the output of nm in a C name address pair
  15046. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15047. # This is the shared library runtime path variable.
  15048. runpath_var=$runpath_var
  15049. # This is the shared library path variable.
  15050. shlibpath_var=$shlibpath_var
  15051. # Is shlibpath searched before the hard-coded library search path?
  15052. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15053. # How to hardcode a shared library path into an executable.
  15054. hardcode_action=$hardcode_action_F77
  15055. # Whether we should hardcode library paths into libraries.
  15056. hardcode_into_libs=$hardcode_into_libs
  15057. # Flag to hardcode \$libdir into a binary during linking.
  15058. # This must work even if \$libdir does not exist.
  15059. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  15060. # If ld is used when linking, flag to hardcode \$libdir into
  15061. # a binary during linking. This must work even if \$libdir does
  15062. # not exist.
  15063. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  15064. # Whether we need a single -rpath flag with a separated argument.
  15065. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  15066. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  15067. # resulting binary.
  15068. hardcode_direct=$hardcode_direct_F77
  15069. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  15070. # resulting binary.
  15071. hardcode_minus_L=$hardcode_minus_L_F77
  15072. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  15073. # the resulting binary.
  15074. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  15075. # Set to yes if building a shared library automatically hardcodes DIR into the library
  15076. # and all subsequent libraries and executables linked against it.
  15077. hardcode_automatic=$hardcode_automatic_F77
  15078. # Variables whose values should be saved in libtool wrapper scripts and
  15079. # restored at relink time.
  15080. variables_saved_for_relink="$variables_saved_for_relink"
  15081. # Whether libtool must link a program against all its dependency libraries.
  15082. link_all_deplibs=$link_all_deplibs_F77
  15083. # Compile-time system search path for libraries
  15084. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15085. # Run-time system search path for libraries
  15086. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15087. # Fix the shell variable \$srcfile for the compiler.
  15088. fix_srcfile_path="$fix_srcfile_path_F77"
  15089. # Set to yes if exported symbols are required.
  15090. always_export_symbols=$always_export_symbols_F77
  15091. # The commands to list exported symbols.
  15092. export_symbols_cmds=$lt_export_symbols_cmds_F77
  15093. # The commands to extract the exported symbol list from a shared archive.
  15094. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15095. # Symbols that should not be listed in the preloaded symbols.
  15096. exclude_expsyms=$lt_exclude_expsyms_F77
  15097. # Symbols that must always be exported.
  15098. include_expsyms=$lt_include_expsyms_F77
  15099. # ### END LIBTOOL TAG CONFIG: $tagname
  15100. __EOF__
  15101. else
  15102. # If there is no Makefile yet, we rely on a make rule to execute
  15103. # `config.status --recheck' to rerun these tests and create the
  15104. # libtool script then.
  15105. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  15106. if test -f "$ltmain_in"; then
  15107. test -f Makefile && make "$ltmain"
  15108. fi
  15109. fi
  15110. ac_ext=c
  15111. ac_cpp='$CPP $CPPFLAGS'
  15112. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15113. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15114. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15115. CC="$lt_save_CC"
  15116. else
  15117. tagname=""
  15118. fi
  15119. ;;
  15120. GCJ)
  15121. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  15122. # Source file extension for Java test sources.
  15123. ac_ext=java
  15124. # Object file extension for compiled Java test sources.
  15125. objext=o
  15126. objext_GCJ=$objext
  15127. # Code to be used in simple compile tests
  15128. lt_simple_compile_test_code="class foo {}\n"
  15129. # Code to be used in simple link tests
  15130. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  15131. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  15132. # If no C compiler was specified, use CC.
  15133. LTCC=${LTCC-"$CC"}
  15134. # Allow CC to be a program name with arguments.
  15135. compiler=$CC
  15136. # Allow CC to be a program name with arguments.
  15137. lt_save_CC="$CC"
  15138. CC=${GCJ-"gcj"}
  15139. compiler=$CC
  15140. compiler_GCJ=$CC
  15141. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  15142. archive_cmds_need_lc_GCJ=no
  15143. lt_prog_compiler_no_builtin_flag_GCJ=
  15144. if test "$GCC" = yes; then
  15145. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  15146. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  15147. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  15148. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  15149. echo $ECHO_N "(cached) $ECHO_C" >&6
  15150. else
  15151. lt_cv_prog_compiler_rtti_exceptions=no
  15152. ac_outfile=conftest.$ac_objext
  15153. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15154. lt_compiler_flag="-fno-rtti -fno-exceptions"
  15155. # Insert the option either (1) after the last *FLAGS variable, or
  15156. # (2) before a word containing "conftest.", or (3) at the end.
  15157. # Note that $ac_compile itself does not contain backslashes and begins
  15158. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15159. # The option is referenced via a variable to avoid confusing sed.
  15160. lt_compile=`echo "$ac_compile" | $SED \
  15161. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  15162. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15163. -e 's:$: $lt_compiler_flag:'`
  15164. (eval echo "\"\$as_me:16835: $lt_compile\"" >&5)
  15165. (eval "$lt_compile" 2>conftest.err)
  15166. ac_status=$?
  15167. cat conftest.err >&5
  15168. echo "$as_me:16839: \$? = $ac_status" >&5
  15169. if (exit $ac_status) && test -s "$ac_outfile"; then
  15170. # The compiler can only warn and ignore the option if not recognized
  15171. # So say no if there are warnings
  15172. if test ! -s conftest.err; then
  15173. lt_cv_prog_compiler_rtti_exceptions=yes
  15174. fi
  15175. fi
  15176. $rm conftest*
  15177. fi
  15178. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  15179. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  15180. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  15181. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  15182. else
  15183. :
  15184. fi
  15185. fi
  15186. lt_prog_compiler_wl_GCJ=
  15187. lt_prog_compiler_pic_GCJ=
  15188. lt_prog_compiler_static_GCJ=
  15189. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  15190. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  15191. if test "$GCC" = yes; then
  15192. lt_prog_compiler_wl_GCJ='-Wl,'
  15193. lt_prog_compiler_static_GCJ='-static'
  15194. case $host_os in
  15195. aix*)
  15196. # All AIX code is PIC.
  15197. if test "$host_cpu" = ia64; then
  15198. # AIX 5 now supports IA64 processor
  15199. lt_prog_compiler_static_GCJ='-Bstatic'
  15200. fi
  15201. ;;
  15202. amigaos*)
  15203. # FIXME: we need at least 68020 code to build shared libraries, but
  15204. # adding the `-m68020' flag to GCC prevents building anything better,
  15205. # like `-m68040'.
  15206. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  15207. ;;
  15208. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  15209. # PIC is the default for these OSes.
  15210. ;;
  15211. mingw* | pw32* | os2*)
  15212. # This hack is so that the source file can tell whether it is being
  15213. # built for inclusion in a dll (and should export symbols for example).
  15214. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15215. ;;
  15216. darwin* | rhapsody*)
  15217. # PIC is the default on this platform
  15218. # Common symbols not allowed in MH_DYLIB files
  15219. lt_prog_compiler_pic_GCJ='-fno-common'
  15220. ;;
  15221. msdosdjgpp*)
  15222. # Just because we use GCC doesn't mean we suddenly get shared libraries
  15223. # on systems that don't support them.
  15224. lt_prog_compiler_can_build_shared_GCJ=no
  15225. enable_shared=no
  15226. ;;
  15227. sysv4*MP*)
  15228. if test -d /usr/nec; then
  15229. lt_prog_compiler_pic_GCJ=-Kconform_pic
  15230. fi
  15231. ;;
  15232. hpux*)
  15233. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15234. # not for PA HP-UX.
  15235. case "$host_cpu" in
  15236. hppa*64*|ia64*)
  15237. # +Z the default
  15238. ;;
  15239. *)
  15240. lt_prog_compiler_pic_GCJ='-fPIC'
  15241. ;;
  15242. esac
  15243. ;;
  15244. *)
  15245. lt_prog_compiler_pic_GCJ='-fPIC'
  15246. ;;
  15247. esac
  15248. else
  15249. # PORTME Check for flag to pass linker flags through the system compiler.
  15250. case $host_os in
  15251. aix*)
  15252. lt_prog_compiler_wl_GCJ='-Wl,'
  15253. if test "$host_cpu" = ia64; then
  15254. # AIX 5 now supports IA64 processor
  15255. lt_prog_compiler_static_GCJ='-Bstatic'
  15256. else
  15257. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  15258. fi
  15259. ;;
  15260. darwin*)
  15261. # PIC is the default on this platform
  15262. # Common symbols not allowed in MH_DYLIB files
  15263. case "$cc_basename" in
  15264. xlc*)
  15265. lt_prog_compiler_pic_GCJ='-qnocommon'
  15266. lt_prog_compiler_wl_GCJ='-Wl,'
  15267. ;;
  15268. esac
  15269. ;;
  15270. mingw* | pw32* | os2*)
  15271. # This hack is so that the source file can tell whether it is being
  15272. # built for inclusion in a dll (and should export symbols for example).
  15273. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15274. ;;
  15275. hpux9* | hpux10* | hpux11*)
  15276. lt_prog_compiler_wl_GCJ='-Wl,'
  15277. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15278. # not for PA HP-UX.
  15279. case "$host_cpu" in
  15280. hppa*64*|ia64*)
  15281. # +Z the default
  15282. ;;
  15283. *)
  15284. lt_prog_compiler_pic_GCJ='+Z'
  15285. ;;
  15286. esac
  15287. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  15288. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  15289. ;;
  15290. irix5* | irix6* | nonstopux*)
  15291. lt_prog_compiler_wl_GCJ='-Wl,'
  15292. # PIC (with -KPIC) is the default.
  15293. lt_prog_compiler_static_GCJ='-non_shared'
  15294. ;;
  15295. newsos6)
  15296. lt_prog_compiler_pic_GCJ='-KPIC'
  15297. lt_prog_compiler_static_GCJ='-Bstatic'
  15298. ;;
  15299. linux*)
  15300. case $cc_basename in
  15301. icc* | ecc*)
  15302. lt_prog_compiler_wl_GCJ='-Wl,'
  15303. lt_prog_compiler_pic_GCJ='-KPIC'
  15304. lt_prog_compiler_static_GCJ='-static'
  15305. ;;
  15306. pgcc | pgf77 | pgf90)
  15307. # Portland Group compilers (*not* the Pentium gcc compiler,
  15308. # which looks to be a dead project)
  15309. lt_prog_compiler_wl_GCJ='-Wl,'
  15310. lt_prog_compiler_pic_GCJ='-fpic'
  15311. lt_prog_compiler_static_GCJ='-static'
  15312. ;;
  15313. ccc*)
  15314. lt_prog_compiler_wl_GCJ='-Wl,'
  15315. # All Alpha code is PIC.
  15316. lt_prog_compiler_static_GCJ='-non_shared'
  15317. ;;
  15318. esac
  15319. ;;
  15320. osf3* | osf4* | osf5*)
  15321. lt_prog_compiler_wl_GCJ='-Wl,'
  15322. # All OSF/1 code is PIC.
  15323. lt_prog_compiler_static_GCJ='-non_shared'
  15324. ;;
  15325. sco3.2v5*)
  15326. lt_prog_compiler_pic_GCJ='-Kpic'
  15327. lt_prog_compiler_static_GCJ='-dn'
  15328. ;;
  15329. solaris*)
  15330. lt_prog_compiler_wl_GCJ='-Wl,'
  15331. lt_prog_compiler_pic_GCJ='-KPIC'
  15332. lt_prog_compiler_static_GCJ='-Bstatic'
  15333. ;;
  15334. sunos4*)
  15335. lt_prog_compiler_wl_GCJ='-Qoption ld '
  15336. lt_prog_compiler_pic_GCJ='-PIC'
  15337. lt_prog_compiler_static_GCJ='-Bstatic'
  15338. ;;
  15339. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  15340. lt_prog_compiler_wl_GCJ='-Wl,'
  15341. lt_prog_compiler_pic_GCJ='-KPIC'
  15342. lt_prog_compiler_static_GCJ='-Bstatic'
  15343. ;;
  15344. sysv4*MP*)
  15345. if test -d /usr/nec ;then
  15346. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  15347. lt_prog_compiler_static_GCJ='-Bstatic'
  15348. fi
  15349. ;;
  15350. unicos*)
  15351. lt_prog_compiler_wl_GCJ='-Wl,'
  15352. lt_prog_compiler_can_build_shared_GCJ=no
  15353. ;;
  15354. uts4*)
  15355. lt_prog_compiler_pic_GCJ='-pic'
  15356. lt_prog_compiler_static_GCJ='-Bstatic'
  15357. ;;
  15358. *)
  15359. lt_prog_compiler_can_build_shared_GCJ=no
  15360. ;;
  15361. esac
  15362. fi
  15363. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  15364. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  15365. #
  15366. # Check to make sure the PIC flag actually works.
  15367. #
  15368. if test -n "$lt_prog_compiler_pic_GCJ"; then
  15369. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  15370. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  15371. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  15372. echo $ECHO_N "(cached) $ECHO_C" >&6
  15373. else
  15374. lt_prog_compiler_pic_works_GCJ=no
  15375. ac_outfile=conftest.$ac_objext
  15376. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15377. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  15378. # Insert the option either (1) after the last *FLAGS variable, or
  15379. # (2) before a word containing "conftest.", or (3) at the end.
  15380. # Note that $ac_compile itself does not contain backslashes and begins
  15381. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15382. # The option is referenced via a variable to avoid confusing sed.
  15383. lt_compile=`echo "$ac_compile" | $SED \
  15384. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  15385. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15386. -e 's:$: $lt_compiler_flag:'`
  15387. (eval echo "\"\$as_me:17090: $lt_compile\"" >&5)
  15388. (eval "$lt_compile" 2>conftest.err)
  15389. ac_status=$?
  15390. cat conftest.err >&5
  15391. echo "$as_me:17094: \$? = $ac_status" >&5
  15392. if (exit $ac_status) && test -s "$ac_outfile"; then
  15393. # The compiler can only warn and ignore the option if not recognized
  15394. # So say no if there are warnings
  15395. if test ! -s conftest.err; then
  15396. lt_prog_compiler_pic_works_GCJ=yes
  15397. fi
  15398. fi
  15399. $rm conftest*
  15400. fi
  15401. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  15402. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  15403. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  15404. case $lt_prog_compiler_pic_GCJ in
  15405. "" | " "*) ;;
  15406. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  15407. esac
  15408. else
  15409. lt_prog_compiler_pic_GCJ=
  15410. lt_prog_compiler_can_build_shared_GCJ=no
  15411. fi
  15412. fi
  15413. case "$host_os" in
  15414. # For platforms which do not support PIC, -DPIC is meaningless:
  15415. *djgpp*)
  15416. lt_prog_compiler_pic_GCJ=
  15417. ;;
  15418. *)
  15419. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  15420. ;;
  15421. esac
  15422. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  15423. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  15424. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  15425. echo $ECHO_N "(cached) $ECHO_C" >&6
  15426. else
  15427. lt_cv_prog_compiler_c_o_GCJ=no
  15428. $rm -r conftest 2>/dev/null
  15429. mkdir conftest
  15430. cd conftest
  15431. mkdir out
  15432. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15433. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15434. # Insert the option either (1) after the last *FLAGS variable, or
  15435. # (2) before a word containing "conftest.", or (3) at the end.
  15436. # Note that $ac_compile itself does not contain backslashes and begins
  15437. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15438. lt_compile=`echo "$ac_compile" | $SED \
  15439. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  15440. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15441. -e 's:$: $lt_compiler_flag:'`
  15442. (eval echo "\"\$as_me:17150: $lt_compile\"" >&5)
  15443. (eval "$lt_compile" 2>out/conftest.err)
  15444. ac_status=$?
  15445. cat out/conftest.err >&5
  15446. echo "$as_me:17154: \$? = $ac_status" >&5
  15447. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15448. then
  15449. # The compiler can only warn and ignore the option if not recognized
  15450. # So say no if there are warnings
  15451. if test ! -s out/conftest.err; then
  15452. lt_cv_prog_compiler_c_o_GCJ=yes
  15453. fi
  15454. fi
  15455. chmod u+w .
  15456. $rm conftest*
  15457. # SGI C++ compiler will create directory out/ii_files/ for
  15458. # template instantiation
  15459. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  15460. $rm out/* && rmdir out
  15461. cd ..
  15462. rmdir conftest
  15463. $rm conftest*
  15464. fi
  15465. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  15466. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  15467. hard_links="nottested"
  15468. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  15469. # do not overwrite the value of need_locks provided by the user
  15470. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  15471. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  15472. hard_links=yes
  15473. $rm conftest*
  15474. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15475. touch conftest.a
  15476. ln conftest.a conftest.b 2>&5 || hard_links=no
  15477. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15478. echo "$as_me:$LINENO: result: $hard_links" >&5
  15479. echo "${ECHO_T}$hard_links" >&6
  15480. if test "$hard_links" = no; then
  15481. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15482. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15483. need_locks=warn
  15484. fi
  15485. else
  15486. need_locks=no
  15487. fi
  15488. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15489. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  15490. runpath_var=
  15491. allow_undefined_flag_GCJ=
  15492. enable_shared_with_static_runtimes_GCJ=no
  15493. archive_cmds_GCJ=
  15494. archive_expsym_cmds_GCJ=
  15495. old_archive_From_new_cmds_GCJ=
  15496. old_archive_from_expsyms_cmds_GCJ=
  15497. export_dynamic_flag_spec_GCJ=
  15498. whole_archive_flag_spec_GCJ=
  15499. thread_safe_flag_spec_GCJ=
  15500. hardcode_libdir_flag_spec_GCJ=
  15501. hardcode_libdir_flag_spec_ld_GCJ=
  15502. hardcode_libdir_separator_GCJ=
  15503. hardcode_direct_GCJ=no
  15504. hardcode_minus_L_GCJ=no
  15505. hardcode_shlibpath_var_GCJ=unsupported
  15506. link_all_deplibs_GCJ=unknown
  15507. hardcode_automatic_GCJ=no
  15508. module_cmds_GCJ=
  15509. module_expsym_cmds_GCJ=
  15510. always_export_symbols_GCJ=no
  15511. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15512. # include_expsyms should be a list of space-separated symbols to be *always*
  15513. # included in the symbol list
  15514. include_expsyms_GCJ=
  15515. # exclude_expsyms can be an extended regexp of symbols to exclude
  15516. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15517. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15518. # as well as any symbol that contains `d'.
  15519. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  15520. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15521. # platforms (ab)use it in PIC code, but their linkers get confused if
  15522. # the symbol is explicitly referenced. Since portable code cannot
  15523. # rely on this symbol name, it's probably fine to never include it in
  15524. # preloaded symbol tables.
  15525. extract_expsyms_cmds=
  15526. case $host_os in
  15527. cygwin* | mingw* | pw32*)
  15528. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15529. # When not using gcc, we currently assume that we are using
  15530. # Microsoft Visual C++.
  15531. if test "$GCC" != yes; then
  15532. with_gnu_ld=no
  15533. fi
  15534. ;;
  15535. openbsd*)
  15536. with_gnu_ld=no
  15537. ;;
  15538. esac
  15539. ld_shlibs_GCJ=yes
  15540. if test "$with_gnu_ld" = yes; then
  15541. # If archive_cmds runs LD, not CC, wlarc should be empty
  15542. wlarc='${wl}'
  15543. # See if GNU ld supports shared libraries.
  15544. case $host_os in
  15545. aix3* | aix4* | aix5*)
  15546. # On AIX/PPC, the GNU linker is very broken
  15547. if test "$host_cpu" != ia64; then
  15548. ld_shlibs_GCJ=no
  15549. cat <<EOF 1>&2
  15550. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15551. *** to be unable to reliably create shared libraries on AIX.
  15552. *** Therefore, libtool is disabling shared libraries support. If you
  15553. *** really care for shared libraries, you may want to modify your PATH
  15554. *** so that a non-GNU linker is found, and then restart.
  15555. EOF
  15556. fi
  15557. ;;
  15558. amigaos*)
  15559. archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  15560. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15561. hardcode_minus_L_GCJ=yes
  15562. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15563. # that the semantics of dynamic libraries on AmigaOS, at least up
  15564. # to version 4, is to share data among multiple programs linked
  15565. # with the same dynamic library. Since this doesn't match the
  15566. # behavior of shared libraries on other platforms, we can't use
  15567. # them.
  15568. ld_shlibs_GCJ=no
  15569. ;;
  15570. beos*)
  15571. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15572. allow_undefined_flag_GCJ=unsupported
  15573. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15574. # support --undefined. This deserves some investigation. FIXME
  15575. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15576. else
  15577. ld_shlibs_GCJ=no
  15578. fi
  15579. ;;
  15580. cygwin* | mingw* | pw32*)
  15581. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15582. # as there is no search path for DLLs.
  15583. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15584. allow_undefined_flag_GCJ=unsupported
  15585. always_export_symbols_GCJ=no
  15586. enable_shared_with_static_runtimes_GCJ=yes
  15587. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  15588. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15589. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  15590. # If the export-symbols file already is a .def file (1st line
  15591. # is EXPORTS), use it as is; otherwise, prepend...
  15592. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15593. cp $export_symbols $output_objdir/$soname.def;
  15594. else
  15595. echo EXPORTS > $output_objdir/$soname.def;
  15596. cat $export_symbols >> $output_objdir/$soname.def;
  15597. fi~
  15598. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  15599. else
  15600. ld_shlibs_GCJ=no
  15601. fi
  15602. ;;
  15603. netbsd*)
  15604. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15605. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15606. wlarc=
  15607. else
  15608. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15609. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15610. fi
  15611. ;;
  15612. solaris* | sysv5*)
  15613. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15614. ld_shlibs_GCJ=no
  15615. cat <<EOF 1>&2
  15616. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15617. *** create shared libraries on Solaris systems. Therefore, libtool
  15618. *** is disabling shared libraries support. We urge you to upgrade GNU
  15619. *** binutils to release 2.9.1 or newer. Another option is to modify
  15620. *** your PATH or compiler configuration so that the native linker is
  15621. *** used, and then restart.
  15622. EOF
  15623. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15624. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15625. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15626. else
  15627. ld_shlibs_GCJ=no
  15628. fi
  15629. ;;
  15630. sunos4*)
  15631. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15632. wlarc=
  15633. hardcode_direct_GCJ=yes
  15634. hardcode_shlibpath_var_GCJ=no
  15635. ;;
  15636. linux*)
  15637. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15638. tmp_addflag=
  15639. case $CC,$host_cpu in
  15640. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  15641. tmp_addflag=' -fpic' ;;
  15642. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15643. tmp_addflag=' -i_dynamic' ;;
  15644. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15645. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15646. ifc* | ifort*) # Intel Fortran compiler
  15647. tmp_addflag=' -nofor_main' ;;
  15648. esac
  15649. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15650. supports_anon_versioning=no
  15651. case `$LD -v 2>/dev/null` in
  15652. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15653. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15654. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15655. *\ 2.11.*) ;; # other 2.11 versions
  15656. *) supports_anon_versioning=yes ;;
  15657. esac
  15658. if test $supports_anon_versioning = yes; then
  15659. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15660. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15661. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15662. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15663. else
  15664. archive_expsym_cmds_GCJ=$archive_cmds_GCJ
  15665. fi
  15666. else
  15667. ld_shlibs_GCJ=no
  15668. fi
  15669. ;;
  15670. *)
  15671. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15672. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15673. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15674. else
  15675. ld_shlibs_GCJ=no
  15676. fi
  15677. ;;
  15678. esac
  15679. if test "$ld_shlibs_GCJ" = yes; then
  15680. runpath_var=LD_RUN_PATH
  15681. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15682. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15683. # ancient GNU ld didn't support --whole-archive et. al.
  15684. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15685. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15686. else
  15687. whole_archive_flag_spec_GCJ=
  15688. fi
  15689. fi
  15690. else
  15691. # PORTME fill in a description of your system's linker (not GNU ld)
  15692. case $host_os in
  15693. aix3*)
  15694. allow_undefined_flag_GCJ=unsupported
  15695. always_export_symbols_GCJ=yes
  15696. archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  15697. # Note: this linker hardcodes the directories in LIBPATH if there
  15698. # are no directories specified by -L.
  15699. hardcode_minus_L_GCJ=yes
  15700. if test "$GCC" = yes && test -z "$link_static_flag"; then
  15701. # Neither direct hardcoding nor static linking is supported with a
  15702. # broken collect2.
  15703. hardcode_direct_GCJ=unsupported
  15704. fi
  15705. ;;
  15706. aix4* | aix5*)
  15707. if test "$host_cpu" = ia64; then
  15708. # On IA64, the linker does run time linking by default, so we don't
  15709. # have to do anything special.
  15710. aix_use_runtimelinking=no
  15711. exp_sym_flag='-Bexport'
  15712. no_entry_flag=""
  15713. else
  15714. # If we're using GNU nm, then we don't want the "-C" option.
  15715. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15716. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15717. export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  15718. else
  15719. export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  15720. fi
  15721. aix_use_runtimelinking=no
  15722. # Test if we are trying to use run time linking or normal
  15723. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15724. # need to do runtime linking.
  15725. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15726. for ld_flag in $LDFLAGS; do
  15727. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15728. aix_use_runtimelinking=yes
  15729. break
  15730. fi
  15731. done
  15732. esac
  15733. exp_sym_flag='-bexport'
  15734. no_entry_flag='-bnoentry'
  15735. fi
  15736. # When large executables or shared objects are built, AIX ld can
  15737. # have problems creating the table of contents. If linking a library
  15738. # or program results in "error TOC overflow" add -mminimal-toc to
  15739. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15740. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15741. archive_cmds_GCJ=''
  15742. hardcode_direct_GCJ=yes
  15743. hardcode_libdir_separator_GCJ=':'
  15744. link_all_deplibs_GCJ=yes
  15745. if test "$GCC" = yes; then
  15746. case $host_os in aix4.[012]|aix4.[012].*)
  15747. # We only want to do this on AIX 4.2 and lower, the check
  15748. # below for broken collect2 doesn't work under 4.3+
  15749. collect2name=`${CC} -print-prog-name=collect2`
  15750. if test -f "$collect2name" && \
  15751. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15752. then
  15753. # We have reworked collect2
  15754. hardcode_direct_GCJ=yes
  15755. else
  15756. # We have old collect2
  15757. hardcode_direct_GCJ=unsupported
  15758. # It fails to find uninstalled libraries when the uninstalled
  15759. # path is not listed in the libpath. Setting hardcode_minus_L
  15760. # to unsupported forces relinking
  15761. hardcode_minus_L_GCJ=yes
  15762. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15763. hardcode_libdir_separator_GCJ=
  15764. fi
  15765. esac
  15766. shared_flag='-shared'
  15767. if test "$aix_use_runtimelinking" = yes; then
  15768. shared_flag="$shared_flag "'${wl}-G'
  15769. fi
  15770. else
  15771. # not using gcc
  15772. if test "$host_cpu" = ia64; then
  15773. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15774. # chokes on -Wl,-G. The following line is correct:
  15775. shared_flag='-G'
  15776. else
  15777. if test "$aix_use_runtimelinking" = yes; then
  15778. shared_flag='${wl}-G'
  15779. else
  15780. shared_flag='${wl}-bM:SRE'
  15781. fi
  15782. fi
  15783. fi
  15784. # It seems that -bexpall does not export symbols beginning with
  15785. # underscore (_), so it is better to generate a list of symbols to export.
  15786. always_export_symbols_GCJ=yes
  15787. if test "$aix_use_runtimelinking" = yes; then
  15788. # Warning - without using the other runtime loading flags (-brtl),
  15789. # -berok will link without error, but may produce a broken library.
  15790. allow_undefined_flag_GCJ='-berok'
  15791. # Determine the default libpath from the value encoded in an empty executable.
  15792. cat >conftest.$ac_ext <<_ACEOF
  15793. /* confdefs.h. */
  15794. _ACEOF
  15795. cat confdefs.h >>conftest.$ac_ext
  15796. cat >>conftest.$ac_ext <<_ACEOF
  15797. /* end confdefs.h. */
  15798. int
  15799. main ()
  15800. {
  15801. ;
  15802. return 0;
  15803. }
  15804. _ACEOF
  15805. rm -f conftest.$ac_objext conftest$ac_exeext
  15806. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15807. (eval $ac_link) 2>conftest.er1
  15808. ac_status=$?
  15809. grep -v '^ *+' conftest.er1 >conftest.err
  15810. rm -f conftest.er1
  15811. cat conftest.err >&5
  15812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15813. (exit $ac_status); } &&
  15814. { ac_try='test -z "$ac_c_werror_flag"
  15815. || test ! -s conftest.err'
  15816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15817. (eval $ac_try) 2>&5
  15818. ac_status=$?
  15819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15820. (exit $ac_status); }; } &&
  15821. { ac_try='test -s conftest$ac_exeext'
  15822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15823. (eval $ac_try) 2>&5
  15824. ac_status=$?
  15825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15826. (exit $ac_status); }; }; then
  15827. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15828. }'`
  15829. # Check for a 64-bit object if we didn't find anything.
  15830. 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; }
  15831. }'`; fi
  15832. else
  15833. echo "$as_me: failed program was:" >&5
  15834. sed 's/^/| /' conftest.$ac_ext >&5
  15835. fi
  15836. rm -f conftest.err conftest.$ac_objext \
  15837. conftest$ac_exeext conftest.$ac_ext
  15838. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15839. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15840. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  15841. else
  15842. if test "$host_cpu" = ia64; then
  15843. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15844. allow_undefined_flag_GCJ="-z nodefs"
  15845. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  15846. else
  15847. # Determine the default libpath from the value encoded in an empty executable.
  15848. cat >conftest.$ac_ext <<_ACEOF
  15849. /* confdefs.h. */
  15850. _ACEOF
  15851. cat confdefs.h >>conftest.$ac_ext
  15852. cat >>conftest.$ac_ext <<_ACEOF
  15853. /* end confdefs.h. */
  15854. int
  15855. main ()
  15856. {
  15857. ;
  15858. return 0;
  15859. }
  15860. _ACEOF
  15861. rm -f conftest.$ac_objext conftest$ac_exeext
  15862. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15863. (eval $ac_link) 2>conftest.er1
  15864. ac_status=$?
  15865. grep -v '^ *+' conftest.er1 >conftest.err
  15866. rm -f conftest.er1
  15867. cat conftest.err >&5
  15868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15869. (exit $ac_status); } &&
  15870. { ac_try='test -z "$ac_c_werror_flag"
  15871. || test ! -s conftest.err'
  15872. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15873. (eval $ac_try) 2>&5
  15874. ac_status=$?
  15875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15876. (exit $ac_status); }; } &&
  15877. { ac_try='test -s conftest$ac_exeext'
  15878. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15879. (eval $ac_try) 2>&5
  15880. ac_status=$?
  15881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15882. (exit $ac_status); }; }; then
  15883. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15884. }'`
  15885. # Check for a 64-bit object if we didn't find anything.
  15886. 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; }
  15887. }'`; fi
  15888. else
  15889. echo "$as_me: failed program was:" >&5
  15890. sed 's/^/| /' conftest.$ac_ext >&5
  15891. fi
  15892. rm -f conftest.err conftest.$ac_objext \
  15893. conftest$ac_exeext conftest.$ac_ext
  15894. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15895. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15896. # Warning - without using the other run time loading flags,
  15897. # -berok will link without error, but may produce a broken library.
  15898. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15899. allow_undefined_flag_GCJ=' ${wl}-berok'
  15900. # -bexpall does not export symbols beginning with underscore (_)
  15901. always_export_symbols_GCJ=yes
  15902. # Exported symbols can be pulled into shared objects from archives
  15903. whole_archive_flag_spec_GCJ=' '
  15904. archive_cmds_need_lc_GCJ=yes
  15905. # This is similar to how AIX traditionally builds it's shared libraries.
  15906. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  15907. fi
  15908. fi
  15909. ;;
  15910. amigaos*)
  15911. archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  15912. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15913. hardcode_minus_L_GCJ=yes
  15914. # see comment about different semantics on the GNU ld section
  15915. ld_shlibs_GCJ=no
  15916. ;;
  15917. bsdi[45]*)
  15918. export_dynamic_flag_spec_GCJ=-rdynamic
  15919. ;;
  15920. cygwin* | mingw* | pw32*)
  15921. # When not using gcc, we currently assume that we are using
  15922. # Microsoft Visual C++.
  15923. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15924. # no search path for DLLs.
  15925. hardcode_libdir_flag_spec_GCJ=' '
  15926. allow_undefined_flag_GCJ=unsupported
  15927. # Tell ltmain to make .lib files, not .a files.
  15928. libext=lib
  15929. # Tell ltmain to make .dll files, not .so files.
  15930. shrext_cmds=".dll"
  15931. # FIXME: Setting linknames here is a bad hack.
  15932. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15933. # The linker will automatically build a .lib file if we build a DLL.
  15934. old_archive_From_new_cmds_GCJ='true'
  15935. # FIXME: Should let the user specify the lib program.
  15936. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15937. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15938. enable_shared_with_static_runtimes_GCJ=yes
  15939. ;;
  15940. darwin* | rhapsody*)
  15941. case "$host_os" in
  15942. rhapsody* | darwin1.[012])
  15943. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15944. ;;
  15945. *) # Darwin 1.3 on
  15946. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15947. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15948. else
  15949. case ${MACOSX_DEPLOYMENT_TARGET} in
  15950. 10.[012])
  15951. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15952. ;;
  15953. 10.*)
  15954. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15955. ;;
  15956. esac
  15957. fi
  15958. ;;
  15959. esac
  15960. archive_cmds_need_lc_GCJ=no
  15961. hardcode_direct_GCJ=no
  15962. hardcode_automatic_GCJ=yes
  15963. hardcode_shlibpath_var_GCJ=unsupported
  15964. whole_archive_flag_spec_GCJ=''
  15965. link_all_deplibs_GCJ=yes
  15966. if test "$GCC" = yes ; then
  15967. output_verbose_link_cmd='echo'
  15968. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15969. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15970. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  15971. archive_expsym_cmds_GCJ='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}'
  15972. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15973. else
  15974. case "$cc_basename" in
  15975. xlc*)
  15976. output_verbose_link_cmd='echo'
  15977. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  15978. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15979. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  15980. archive_expsym_cmds_GCJ='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}'
  15981. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15982. ;;
  15983. *)
  15984. ld_shlibs_GCJ=no
  15985. ;;
  15986. esac
  15987. fi
  15988. ;;
  15989. dgux*)
  15990. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15991. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15992. hardcode_shlibpath_var_GCJ=no
  15993. ;;
  15994. freebsd1*)
  15995. ld_shlibs_GCJ=no
  15996. ;;
  15997. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15998. # support. Future versions do this automatically, but an explicit c++rt0.o
  15999. # does not break anything, and helps significantly (at the cost of a little
  16000. # extra space).
  16001. freebsd2.2*)
  16002. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  16003. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16004. hardcode_direct_GCJ=yes
  16005. hardcode_shlibpath_var_GCJ=no
  16006. ;;
  16007. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  16008. freebsd2*)
  16009. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16010. hardcode_direct_GCJ=yes
  16011. hardcode_minus_L_GCJ=yes
  16012. hardcode_shlibpath_var_GCJ=no
  16013. ;;
  16014. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  16015. freebsd* | kfreebsd*-gnu | dragonfly*)
  16016. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  16017. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16018. hardcode_direct_GCJ=yes
  16019. hardcode_shlibpath_var_GCJ=no
  16020. ;;
  16021. hpux9*)
  16022. if test "$GCC" = yes; then
  16023. archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  16024. else
  16025. archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  16026. fi
  16027. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16028. hardcode_libdir_separator_GCJ=:
  16029. hardcode_direct_GCJ=yes
  16030. # hardcode_minus_L: Not really in the search PATH,
  16031. # but as the default location of the library.
  16032. hardcode_minus_L_GCJ=yes
  16033. export_dynamic_flag_spec_GCJ='${wl}-E'
  16034. ;;
  16035. hpux10* | hpux11*)
  16036. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  16037. case "$host_cpu" in
  16038. hppa*64*|ia64*)
  16039. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16040. ;;
  16041. *)
  16042. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16043. ;;
  16044. esac
  16045. else
  16046. case "$host_cpu" in
  16047. hppa*64*|ia64*)
  16048. archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  16049. ;;
  16050. *)
  16051. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  16052. ;;
  16053. esac
  16054. fi
  16055. if test "$with_gnu_ld" = no; then
  16056. case "$host_cpu" in
  16057. hppa*64*)
  16058. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16059. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  16060. hardcode_libdir_separator_GCJ=:
  16061. hardcode_direct_GCJ=no
  16062. hardcode_shlibpath_var_GCJ=no
  16063. ;;
  16064. ia64*)
  16065. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16066. hardcode_direct_GCJ=no
  16067. hardcode_shlibpath_var_GCJ=no
  16068. # hardcode_minus_L: Not really in the search PATH,
  16069. # but as the default location of the library.
  16070. hardcode_minus_L_GCJ=yes
  16071. ;;
  16072. *)
  16073. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16074. hardcode_libdir_separator_GCJ=:
  16075. hardcode_direct_GCJ=yes
  16076. export_dynamic_flag_spec_GCJ='${wl}-E'
  16077. # hardcode_minus_L: Not really in the search PATH,
  16078. # but as the default location of the library.
  16079. hardcode_minus_L_GCJ=yes
  16080. ;;
  16081. esac
  16082. fi
  16083. ;;
  16084. irix5* | irix6* | nonstopux*)
  16085. if test "$GCC" = yes; then
  16086. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16087. else
  16088. archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  16089. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  16090. fi
  16091. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16092. hardcode_libdir_separator_GCJ=:
  16093. link_all_deplibs_GCJ=yes
  16094. ;;
  16095. netbsd*)
  16096. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16097. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  16098. else
  16099. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  16100. fi
  16101. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16102. hardcode_direct_GCJ=yes
  16103. hardcode_shlibpath_var_GCJ=no
  16104. ;;
  16105. newsos6)
  16106. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16107. hardcode_direct_GCJ=yes
  16108. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16109. hardcode_libdir_separator_GCJ=:
  16110. hardcode_shlibpath_var_GCJ=no
  16111. ;;
  16112. openbsd*)
  16113. hardcode_direct_GCJ=yes
  16114. hardcode_shlibpath_var_GCJ=no
  16115. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16116. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16117. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  16118. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16119. export_dynamic_flag_spec_GCJ='${wl}-E'
  16120. else
  16121. case $host_os in
  16122. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  16123. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16124. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16125. ;;
  16126. *)
  16127. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16128. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16129. ;;
  16130. esac
  16131. fi
  16132. ;;
  16133. os2*)
  16134. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16135. hardcode_minus_L_GCJ=yes
  16136. allow_undefined_flag_GCJ=unsupported
  16137. archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  16138. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  16139. ;;
  16140. osf3*)
  16141. if test "$GCC" = yes; then
  16142. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16143. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16144. else
  16145. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16146. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  16147. fi
  16148. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16149. hardcode_libdir_separator_GCJ=:
  16150. ;;
  16151. osf4* | osf5*) # as osf3* with the addition of -msym flag
  16152. if test "$GCC" = yes; then
  16153. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16154. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16155. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16156. else
  16157. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16158. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  16159. archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  16160. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  16161. # Both c and cxx compiler support -rpath directly
  16162. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  16163. fi
  16164. hardcode_libdir_separator_GCJ=:
  16165. ;;
  16166. sco3.2v5*)
  16167. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16168. hardcode_shlibpath_var_GCJ=no
  16169. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  16170. runpath_var=LD_RUN_PATH
  16171. hardcode_runpath_var=yes
  16172. ;;
  16173. solaris*)
  16174. no_undefined_flag_GCJ=' -z text'
  16175. if test "$GCC" = yes; then
  16176. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16177. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16178. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  16179. else
  16180. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16181. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16182. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16183. fi
  16184. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16185. hardcode_shlibpath_var_GCJ=no
  16186. case $host_os in
  16187. solaris2.[0-5] | solaris2.[0-5].*) ;;
  16188. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  16189. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
  16190. esac
  16191. link_all_deplibs_GCJ=yes
  16192. ;;
  16193. sunos4*)
  16194. if test "x$host_vendor" = xsequent; then
  16195. # Use $CC to link under sequent, because it throws in some extra .o
  16196. # files that make .init and .fini sections work.
  16197. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  16198. else
  16199. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  16200. fi
  16201. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16202. hardcode_direct_GCJ=yes
  16203. hardcode_minus_L_GCJ=yes
  16204. hardcode_shlibpath_var_GCJ=no
  16205. ;;
  16206. sysv4)
  16207. case $host_vendor in
  16208. sni)
  16209. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16210. hardcode_direct_GCJ=yes # is this really true???
  16211. ;;
  16212. siemens)
  16213. ## LD is ld it makes a PLAMLIB
  16214. ## CC just makes a GrossModule.
  16215. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16216. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  16217. hardcode_direct_GCJ=no
  16218. ;;
  16219. motorola)
  16220. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16221. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  16222. ;;
  16223. esac
  16224. runpath_var='LD_RUN_PATH'
  16225. hardcode_shlibpath_var_GCJ=no
  16226. ;;
  16227. sysv4.3*)
  16228. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16229. hardcode_shlibpath_var_GCJ=no
  16230. export_dynamic_flag_spec_GCJ='-Bexport'
  16231. ;;
  16232. sysv4*MP*)
  16233. if test -d /usr/nec; then
  16234. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16235. hardcode_shlibpath_var_GCJ=no
  16236. runpath_var=LD_RUN_PATH
  16237. hardcode_runpath_var=yes
  16238. ld_shlibs_GCJ=yes
  16239. fi
  16240. ;;
  16241. sysv4.2uw2*)
  16242. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16243. hardcode_direct_GCJ=yes
  16244. hardcode_minus_L_GCJ=no
  16245. hardcode_shlibpath_var_GCJ=no
  16246. hardcode_runpath_var=yes
  16247. runpath_var=LD_RUN_PATH
  16248. ;;
  16249. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  16250. no_undefined_flag_GCJ='${wl}-z ${wl}text'
  16251. if test "$GCC" = yes; then
  16252. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16253. else
  16254. archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16255. fi
  16256. runpath_var='LD_RUN_PATH'
  16257. hardcode_shlibpath_var_GCJ=no
  16258. ;;
  16259. sysv5*)
  16260. no_undefined_flag_GCJ=' -z text'
  16261. # $CC -shared without GNU ld will not create a library from C++
  16262. # object files and a static libstdc++, better avoid it by now
  16263. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16264. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16265. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16266. hardcode_libdir_flag_spec_GCJ=
  16267. hardcode_shlibpath_var_GCJ=no
  16268. runpath_var='LD_RUN_PATH'
  16269. ;;
  16270. uts4*)
  16271. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16272. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16273. hardcode_shlibpath_var_GCJ=no
  16274. ;;
  16275. *)
  16276. ld_shlibs_GCJ=no
  16277. ;;
  16278. esac
  16279. fi
  16280. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  16281. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  16282. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  16283. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16284. if test "$GCC" = yes; then
  16285. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16286. fi
  16287. #
  16288. # Do we need to explicitly link libc?
  16289. #
  16290. case "x$archive_cmds_need_lc_GCJ" in
  16291. x|xyes)
  16292. # Assume -lc should be added
  16293. archive_cmds_need_lc_GCJ=yes
  16294. if test "$enable_shared" = yes && test "$GCC" = yes; then
  16295. case $archive_cmds_GCJ in
  16296. *'~'*)
  16297. # FIXME: we may have to deal with multi-command sequences.
  16298. ;;
  16299. '$CC '*)
  16300. # Test whether the compiler implicitly links with -lc since on some
  16301. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16302. # to ld, don't add -lc before -lgcc.
  16303. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16304. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  16305. $rm conftest*
  16306. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  16307. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16308. (eval $ac_compile) 2>&5
  16309. ac_status=$?
  16310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16311. (exit $ac_status); } 2>conftest.err; then
  16312. soname=conftest
  16313. lib=conftest
  16314. libobjs=conftest.$ac_objext
  16315. deplibs=
  16316. wl=$lt_prog_compiler_wl_GCJ
  16317. compiler_flags=-v
  16318. linker_flags=-v
  16319. verstring=
  16320. output_objdir=.
  16321. libname=conftest
  16322. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  16323. allow_undefined_flag_GCJ=
  16324. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16325. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16326. ac_status=$?
  16327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16328. (exit $ac_status); }
  16329. then
  16330. archive_cmds_need_lc_GCJ=no
  16331. else
  16332. archive_cmds_need_lc_GCJ=yes
  16333. fi
  16334. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  16335. else
  16336. cat conftest.err 1>&5
  16337. fi
  16338. $rm conftest*
  16339. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  16340. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  16341. ;;
  16342. esac
  16343. fi
  16344. ;;
  16345. esac
  16346. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  16347. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  16348. library_names_spec=
  16349. libname_spec='lib$name'
  16350. soname_spec=
  16351. shrext_cmds=".so"
  16352. postinstall_cmds=
  16353. postuninstall_cmds=
  16354. finish_cmds=
  16355. finish_eval=
  16356. shlibpath_var=
  16357. shlibpath_overrides_runpath=unknown
  16358. version_type=none
  16359. dynamic_linker="$host_os ld.so"
  16360. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16361. if test "$GCC" = yes; then
  16362. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16363. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  16364. # if the path contains ";" then we assume it to be the separator
  16365. # otherwise default to the standard path separator (i.e. ":") - it is
  16366. # assumed that no part of a normal pathname contains ";" but that should
  16367. # okay in the real world where ";" in dirpaths is itself problematic.
  16368. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16369. else
  16370. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16371. fi
  16372. else
  16373. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  16374. fi
  16375. need_lib_prefix=unknown
  16376. hardcode_into_libs=no
  16377. # when you set need_version to no, make sure it does not cause -set_version
  16378. # flags to be left without arguments
  16379. need_version=unknown
  16380. case $host_os in
  16381. aix3*)
  16382. version_type=linux
  16383. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16384. shlibpath_var=LIBPATH
  16385. # AIX 3 has no versioning support, so we append a major version to the name.
  16386. soname_spec='${libname}${release}${shared_ext}$major'
  16387. ;;
  16388. aix4* | aix5*)
  16389. version_type=linux
  16390. need_lib_prefix=no
  16391. need_version=no
  16392. hardcode_into_libs=yes
  16393. if test "$host_cpu" = ia64; then
  16394. # AIX 5 supports IA64
  16395. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16396. shlibpath_var=LD_LIBRARY_PATH
  16397. else
  16398. # With GCC up to 2.95.x, collect2 would create an import file
  16399. # for dependence libraries. The import file would start with
  16400. # the line `#! .'. This would cause the generated library to
  16401. # depend on `.', always an invalid library. This was fixed in
  16402. # development snapshots of GCC prior to 3.0.
  16403. case $host_os in
  16404. aix4 | aix4.[01] | aix4.[01].*)
  16405. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16406. echo ' yes '
  16407. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16408. :
  16409. else
  16410. can_build_shared=no
  16411. fi
  16412. ;;
  16413. esac
  16414. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16415. # soname into executable. Probably we can add versioning support to
  16416. # collect2, so additional links can be useful in future.
  16417. if test "$aix_use_runtimelinking" = yes; then
  16418. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16419. # instead of lib<name>.a to let people know that these are not
  16420. # typical AIX shared libraries.
  16421. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16422. else
  16423. # We preserve .a as extension for shared libraries through AIX4.2
  16424. # and later when we are not doing run time linking.
  16425. library_names_spec='${libname}${release}.a $libname.a'
  16426. soname_spec='${libname}${release}${shared_ext}$major'
  16427. fi
  16428. shlibpath_var=LIBPATH
  16429. fi
  16430. ;;
  16431. amigaos*)
  16432. library_names_spec='$libname.ixlibrary $libname.a'
  16433. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16434. 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'
  16435. ;;
  16436. beos*)
  16437. library_names_spec='${libname}${shared_ext}'
  16438. dynamic_linker="$host_os ld.so"
  16439. shlibpath_var=LIBRARY_PATH
  16440. ;;
  16441. bsdi[45]*)
  16442. version_type=linux
  16443. need_version=no
  16444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16445. soname_spec='${libname}${release}${shared_ext}$major'
  16446. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16447. shlibpath_var=LD_LIBRARY_PATH
  16448. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16449. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16450. # the default ld.so.conf also contains /usr/contrib/lib and
  16451. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16452. # libtool to hard-code these into programs
  16453. ;;
  16454. cygwin* | mingw* | pw32*)
  16455. version_type=windows
  16456. shrext_cmds=".dll"
  16457. need_version=no
  16458. need_lib_prefix=no
  16459. case $GCC,$host_os in
  16460. yes,cygwin* | yes,mingw* | yes,pw32*)
  16461. library_names_spec='$libname.dll.a'
  16462. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16463. postinstall_cmds='base_file=`basename \${file}`~
  16464. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16465. dldir=$destdir/`dirname \$dlpath`~
  16466. test -d \$dldir || mkdir -p \$dldir~
  16467. $install_prog $dir/$dlname \$dldir/$dlname'
  16468. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16469. dlpath=$dir/\$dldll~
  16470. $rm \$dlpath'
  16471. shlibpath_overrides_runpath=yes
  16472. case $host_os in
  16473. cygwin*)
  16474. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16475. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16476. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16477. ;;
  16478. mingw*)
  16479. # MinGW DLLs use traditional 'lib' prefix
  16480. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16481. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16482. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16483. # It is most probably a Windows format PATH printed by
  16484. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16485. # path with ; separators, and with drive letters. We can handle the
  16486. # drive letters (cygwin fileutils understands them), so leave them,
  16487. # especially as we might pass files found there to a mingw objdump,
  16488. # which wouldn't understand a cygwinified path. Ahh.
  16489. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16490. else
  16491. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16492. fi
  16493. ;;
  16494. pw32*)
  16495. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16496. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16497. ;;
  16498. esac
  16499. ;;
  16500. *)
  16501. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16502. ;;
  16503. esac
  16504. dynamic_linker='Win32 ld.exe'
  16505. # FIXME: first we should search . and the directory the executable is in
  16506. shlibpath_var=PATH
  16507. ;;
  16508. darwin* | rhapsody*)
  16509. dynamic_linker="$host_os dyld"
  16510. version_type=darwin
  16511. need_lib_prefix=no
  16512. need_version=no
  16513. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16514. soname_spec='${libname}${release}${major}$shared_ext'
  16515. shlibpath_overrides_runpath=yes
  16516. shlibpath_var=DYLD_LIBRARY_PATH
  16517. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  16518. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  16519. if test "$GCC" = yes; then
  16520. 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"`
  16521. else
  16522. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  16523. fi
  16524. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16525. ;;
  16526. dgux*)
  16527. version_type=linux
  16528. need_lib_prefix=no
  16529. need_version=no
  16530. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16531. soname_spec='${libname}${release}${shared_ext}$major'
  16532. shlibpath_var=LD_LIBRARY_PATH
  16533. ;;
  16534. freebsd1*)
  16535. dynamic_linker=no
  16536. ;;
  16537. kfreebsd*-gnu)
  16538. version_type=linux
  16539. need_lib_prefix=no
  16540. need_version=no
  16541. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16542. soname_spec='${libname}${release}${shared_ext}$major'
  16543. shlibpath_var=LD_LIBRARY_PATH
  16544. shlibpath_overrides_runpath=no
  16545. hardcode_into_libs=yes
  16546. dynamic_linker='GNU ld.so'
  16547. ;;
  16548. freebsd* | dragonfly*)
  16549. # DragonFly does not have aout. When/if they implement a new
  16550. # versioning mechanism, adjust this.
  16551. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  16552. version_type=freebsd-$objformat
  16553. case $version_type in
  16554. freebsd-elf*)
  16555. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16556. need_version=no
  16557. need_lib_prefix=no
  16558. ;;
  16559. freebsd-*)
  16560. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16561. need_version=yes
  16562. ;;
  16563. esac
  16564. shlibpath_var=LD_LIBRARY_PATH
  16565. case $host_os in
  16566. freebsd2*)
  16567. shlibpath_overrides_runpath=yes
  16568. ;;
  16569. freebsd3.[01]* | freebsdelf3.[01]*)
  16570. shlibpath_overrides_runpath=yes
  16571. hardcode_into_libs=yes
  16572. ;;
  16573. *) # from 3.2 on
  16574. shlibpath_overrides_runpath=no
  16575. hardcode_into_libs=yes
  16576. ;;
  16577. esac
  16578. ;;
  16579. gnu*)
  16580. version_type=linux
  16581. need_lib_prefix=no
  16582. need_version=no
  16583. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16584. soname_spec='${libname}${release}${shared_ext}$major'
  16585. shlibpath_var=LD_LIBRARY_PATH
  16586. hardcode_into_libs=yes
  16587. ;;
  16588. hpux9* | hpux10* | hpux11*)
  16589. # Give a soname corresponding to the major version so that dld.sl refuses to
  16590. # link against other versions.
  16591. version_type=sunos
  16592. need_lib_prefix=no
  16593. need_version=no
  16594. case "$host_cpu" in
  16595. ia64*)
  16596. shrext_cmds='.so'
  16597. hardcode_into_libs=yes
  16598. dynamic_linker="$host_os dld.so"
  16599. shlibpath_var=LD_LIBRARY_PATH
  16600. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16601. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16602. soname_spec='${libname}${release}${shared_ext}$major'
  16603. if test "X$HPUX_IA64_MODE" = X32; then
  16604. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16605. else
  16606. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16607. fi
  16608. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16609. ;;
  16610. hppa*64*)
  16611. shrext_cmds='.sl'
  16612. hardcode_into_libs=yes
  16613. dynamic_linker="$host_os dld.sl"
  16614. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16615. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16616. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16617. soname_spec='${libname}${release}${shared_ext}$major'
  16618. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16619. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16620. ;;
  16621. *)
  16622. shrext_cmds='.sl'
  16623. dynamic_linker="$host_os dld.sl"
  16624. shlibpath_var=SHLIB_PATH
  16625. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16626. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16627. soname_spec='${libname}${release}${shared_ext}$major'
  16628. ;;
  16629. esac
  16630. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16631. postinstall_cmds='chmod 555 $lib'
  16632. ;;
  16633. irix5* | irix6* | nonstopux*)
  16634. case $host_os in
  16635. nonstopux*) version_type=nonstopux ;;
  16636. *)
  16637. if test "$lt_cv_prog_gnu_ld" = yes; then
  16638. version_type=linux
  16639. else
  16640. version_type=irix
  16641. fi ;;
  16642. esac
  16643. need_lib_prefix=no
  16644. need_version=no
  16645. soname_spec='${libname}${release}${shared_ext}$major'
  16646. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16647. case $host_os in
  16648. irix5* | nonstopux*)
  16649. libsuff= shlibsuff=
  16650. ;;
  16651. *)
  16652. case $LD in # libtool.m4 will add one of these switches to LD
  16653. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16654. libsuff= shlibsuff= libmagic=32-bit;;
  16655. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16656. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16657. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16658. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16659. *) libsuff= shlibsuff= libmagic=never-match;;
  16660. esac
  16661. ;;
  16662. esac
  16663. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16664. shlibpath_overrides_runpath=no
  16665. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16666. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16667. hardcode_into_libs=yes
  16668. ;;
  16669. # No shared lib support for Linux oldld, aout, or coff.
  16670. linux*oldld* | linux*aout* | linux*coff*)
  16671. dynamic_linker=no
  16672. ;;
  16673. # This must be Linux ELF.
  16674. linux*)
  16675. version_type=linux
  16676. need_lib_prefix=no
  16677. need_version=no
  16678. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16679. soname_spec='${libname}${release}${shared_ext}$major'
  16680. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16681. shlibpath_var=LD_LIBRARY_PATH
  16682. shlibpath_overrides_runpath=no
  16683. # This implies no fast_install, which is unacceptable.
  16684. # Some rework will be needed to allow for fast_install
  16685. # before this can be enabled.
  16686. hardcode_into_libs=yes
  16687. # Append ld.so.conf contents to the search path
  16688. if test -f /etc/ld.so.conf; then
  16689. 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  16690. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16691. fi
  16692. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16693. # powerpc, because MkLinux only supported shared libraries with the
  16694. # GNU dynamic linker. Since this was broken with cross compilers,
  16695. # most powerpc-linux boxes support dynamic linking these days and
  16696. # people can always --disable-shared, the test was removed, and we
  16697. # assume the GNU/Linux dynamic linker is in use.
  16698. dynamic_linker='GNU/Linux ld.so'
  16699. ;;
  16700. knetbsd*-gnu)
  16701. version_type=linux
  16702. need_lib_prefix=no
  16703. need_version=no
  16704. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16705. soname_spec='${libname}${release}${shared_ext}$major'
  16706. shlibpath_var=LD_LIBRARY_PATH
  16707. shlibpath_overrides_runpath=no
  16708. hardcode_into_libs=yes
  16709. dynamic_linker='GNU ld.so'
  16710. ;;
  16711. netbsd*)
  16712. version_type=sunos
  16713. need_lib_prefix=no
  16714. need_version=no
  16715. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16716. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16717. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16718. dynamic_linker='NetBSD (a.out) ld.so'
  16719. else
  16720. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16721. soname_spec='${libname}${release}${shared_ext}$major'
  16722. dynamic_linker='NetBSD ld.elf_so'
  16723. fi
  16724. shlibpath_var=LD_LIBRARY_PATH
  16725. shlibpath_overrides_runpath=yes
  16726. hardcode_into_libs=yes
  16727. ;;
  16728. newsos6)
  16729. version_type=linux
  16730. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16731. shlibpath_var=LD_LIBRARY_PATH
  16732. shlibpath_overrides_runpath=yes
  16733. ;;
  16734. nto-qnx*)
  16735. version_type=linux
  16736. need_lib_prefix=no
  16737. need_version=no
  16738. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16739. soname_spec='${libname}${release}${shared_ext}$major'
  16740. shlibpath_var=LD_LIBRARY_PATH
  16741. shlibpath_overrides_runpath=yes
  16742. ;;
  16743. openbsd*)
  16744. version_type=sunos
  16745. need_lib_prefix=no
  16746. need_version=no
  16747. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16748. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16749. shlibpath_var=LD_LIBRARY_PATH
  16750. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16751. case $host_os in
  16752. openbsd2.[89] | openbsd2.[89].*)
  16753. shlibpath_overrides_runpath=no
  16754. ;;
  16755. *)
  16756. shlibpath_overrides_runpath=yes
  16757. ;;
  16758. esac
  16759. else
  16760. shlibpath_overrides_runpath=yes
  16761. fi
  16762. ;;
  16763. os2*)
  16764. libname_spec='$name'
  16765. shrext_cmds=".dll"
  16766. need_lib_prefix=no
  16767. library_names_spec='$libname${shared_ext} $libname.a'
  16768. dynamic_linker='OS/2 ld.exe'
  16769. shlibpath_var=LIBPATH
  16770. ;;
  16771. osf3* | osf4* | osf5*)
  16772. version_type=osf
  16773. need_lib_prefix=no
  16774. need_version=no
  16775. soname_spec='${libname}${release}${shared_ext}$major'
  16776. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16777. shlibpath_var=LD_LIBRARY_PATH
  16778. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16779. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16780. ;;
  16781. sco3.2v5*)
  16782. version_type=osf
  16783. soname_spec='${libname}${release}${shared_ext}$major'
  16784. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16785. shlibpath_var=LD_LIBRARY_PATH
  16786. ;;
  16787. solaris*)
  16788. version_type=linux
  16789. need_lib_prefix=no
  16790. need_version=no
  16791. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16792. soname_spec='${libname}${release}${shared_ext}$major'
  16793. shlibpath_var=LD_LIBRARY_PATH
  16794. shlibpath_overrides_runpath=yes
  16795. hardcode_into_libs=yes
  16796. # ldd complains unless libraries are executable
  16797. postinstall_cmds='chmod +x $lib'
  16798. ;;
  16799. sunos4*)
  16800. version_type=sunos
  16801. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16802. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16803. shlibpath_var=LD_LIBRARY_PATH
  16804. shlibpath_overrides_runpath=yes
  16805. if test "$with_gnu_ld" = yes; then
  16806. need_lib_prefix=no
  16807. fi
  16808. need_version=yes
  16809. ;;
  16810. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  16811. version_type=linux
  16812. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16813. soname_spec='${libname}${release}${shared_ext}$major'
  16814. shlibpath_var=LD_LIBRARY_PATH
  16815. case $host_vendor in
  16816. sni)
  16817. shlibpath_overrides_runpath=no
  16818. need_lib_prefix=no
  16819. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16820. runpath_var=LD_RUN_PATH
  16821. ;;
  16822. siemens)
  16823. need_lib_prefix=no
  16824. ;;
  16825. motorola)
  16826. need_lib_prefix=no
  16827. need_version=no
  16828. shlibpath_overrides_runpath=no
  16829. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16830. ;;
  16831. esac
  16832. ;;
  16833. sysv4*MP*)
  16834. if test -d /usr/nec ;then
  16835. version_type=linux
  16836. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16837. soname_spec='$libname${shared_ext}.$major'
  16838. shlibpath_var=LD_LIBRARY_PATH
  16839. fi
  16840. ;;
  16841. uts4*)
  16842. version_type=linux
  16843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16844. soname_spec='${libname}${release}${shared_ext}$major'
  16845. shlibpath_var=LD_LIBRARY_PATH
  16846. ;;
  16847. *)
  16848. dynamic_linker=no
  16849. ;;
  16850. esac
  16851. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16852. echo "${ECHO_T}$dynamic_linker" >&6
  16853. test "$dynamic_linker" = no && can_build_shared=no
  16854. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16855. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  16856. hardcode_action_GCJ=
  16857. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16858. test -n "$runpath_var_GCJ" || \
  16859. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16860. # We can hardcode non-existant directories.
  16861. if test "$hardcode_direct_GCJ" != no &&
  16862. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16863. # have to relink, otherwise we might link with an installed library
  16864. # when we should be linking with a yet-to-be-installed one
  16865. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16866. test "$hardcode_minus_L_GCJ" != no; then
  16867. # Linking always hardcodes the temporary library directory.
  16868. hardcode_action_GCJ=relink
  16869. else
  16870. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16871. hardcode_action_GCJ=immediate
  16872. fi
  16873. else
  16874. # We cannot hardcode anything, or else we can only hardcode existing
  16875. # directories.
  16876. hardcode_action_GCJ=unsupported
  16877. fi
  16878. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16879. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  16880. if test "$hardcode_action_GCJ" = relink; then
  16881. # Fast installation is not supported
  16882. enable_fast_install=no
  16883. elif test "$shlibpath_overrides_runpath" = yes ||
  16884. test "$enable_shared" = no; then
  16885. # Fast installation is not necessary
  16886. enable_fast_install=needless
  16887. fi
  16888. striplib=
  16889. old_striplib=
  16890. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  16891. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  16892. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  16893. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  16894. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  16895. echo "$as_me:$LINENO: result: yes" >&5
  16896. echo "${ECHO_T}yes" >&6
  16897. else
  16898. # FIXME - insert some real tests, host_os isn't really good enough
  16899. case $host_os in
  16900. darwin*)
  16901. if test -n "$STRIP" ; then
  16902. striplib="$STRIP -x"
  16903. echo "$as_me:$LINENO: result: yes" >&5
  16904. echo "${ECHO_T}yes" >&6
  16905. else
  16906. echo "$as_me:$LINENO: result: no" >&5
  16907. echo "${ECHO_T}no" >&6
  16908. fi
  16909. ;;
  16910. *)
  16911. echo "$as_me:$LINENO: result: no" >&5
  16912. echo "${ECHO_T}no" >&6
  16913. ;;
  16914. esac
  16915. fi
  16916. if test "x$enable_dlopen" != xyes; then
  16917. enable_dlopen=unknown
  16918. enable_dlopen_self=unknown
  16919. enable_dlopen_self_static=unknown
  16920. else
  16921. lt_cv_dlopen=no
  16922. lt_cv_dlopen_libs=
  16923. case $host_os in
  16924. beos*)
  16925. lt_cv_dlopen="load_add_on"
  16926. lt_cv_dlopen_libs=
  16927. lt_cv_dlopen_self=yes
  16928. ;;
  16929. mingw* | pw32*)
  16930. lt_cv_dlopen="LoadLibrary"
  16931. lt_cv_dlopen_libs=
  16932. ;;
  16933. cygwin*)
  16934. lt_cv_dlopen="dlopen"
  16935. lt_cv_dlopen_libs=
  16936. ;;
  16937. darwin*)
  16938. # if libdl is installed we need to link against it
  16939. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  16940. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  16941. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  16942. echo $ECHO_N "(cached) $ECHO_C" >&6
  16943. else
  16944. ac_check_lib_save_LIBS=$LIBS
  16945. LIBS="-ldl $LIBS"
  16946. cat >conftest.$ac_ext <<_ACEOF
  16947. /* confdefs.h. */
  16948. _ACEOF
  16949. cat confdefs.h >>conftest.$ac_ext
  16950. cat >>conftest.$ac_ext <<_ACEOF
  16951. /* end confdefs.h. */
  16952. /* Override any gcc2 internal prototype to avoid an error. */
  16953. #ifdef __cplusplus
  16954. extern "C"
  16955. #endif
  16956. /* We use char because int might match the return type of a gcc2
  16957. builtin and then its argument prototype would still apply. */
  16958. char dlopen ();
  16959. int
  16960. main ()
  16961. {
  16962. dlopen ();
  16963. ;
  16964. return 0;
  16965. }
  16966. _ACEOF
  16967. rm -f conftest.$ac_objext conftest$ac_exeext
  16968. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16969. (eval $ac_link) 2>conftest.er1
  16970. ac_status=$?
  16971. grep -v '^ *+' conftest.er1 >conftest.err
  16972. rm -f conftest.er1
  16973. cat conftest.err >&5
  16974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16975. (exit $ac_status); } &&
  16976. { ac_try='test -z "$ac_c_werror_flag"
  16977. || test ! -s conftest.err'
  16978. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16979. (eval $ac_try) 2>&5
  16980. ac_status=$?
  16981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16982. (exit $ac_status); }; } &&
  16983. { ac_try='test -s conftest$ac_exeext'
  16984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16985. (eval $ac_try) 2>&5
  16986. ac_status=$?
  16987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16988. (exit $ac_status); }; }; then
  16989. ac_cv_lib_dl_dlopen=yes
  16990. else
  16991. echo "$as_me: failed program was:" >&5
  16992. sed 's/^/| /' conftest.$ac_ext >&5
  16993. ac_cv_lib_dl_dlopen=no
  16994. fi
  16995. rm -f conftest.err conftest.$ac_objext \
  16996. conftest$ac_exeext conftest.$ac_ext
  16997. LIBS=$ac_check_lib_save_LIBS
  16998. fi
  16999. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  17000. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  17001. if test $ac_cv_lib_dl_dlopen = yes; then
  17002. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  17003. else
  17004. lt_cv_dlopen="dyld"
  17005. lt_cv_dlopen_libs=
  17006. lt_cv_dlopen_self=yes
  17007. fi
  17008. ;;
  17009. *)
  17010. echo "$as_me:$LINENO: checking for shl_load" >&5
  17011. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  17012. if test "${ac_cv_func_shl_load+set}" = set; then
  17013. echo $ECHO_N "(cached) $ECHO_C" >&6
  17014. else
  17015. cat >conftest.$ac_ext <<_ACEOF
  17016. /* confdefs.h. */
  17017. _ACEOF
  17018. cat confdefs.h >>conftest.$ac_ext
  17019. cat >>conftest.$ac_ext <<_ACEOF
  17020. /* end confdefs.h. */
  17021. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  17022. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17023. #define shl_load innocuous_shl_load
  17024. /* System header to define __stub macros and hopefully few prototypes,
  17025. which can conflict with char shl_load (); below.
  17026. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17027. <limits.h> exists even on freestanding compilers. */
  17028. #ifdef __STDC__
  17029. # include <limits.h>
  17030. #else
  17031. # include <assert.h>
  17032. #endif
  17033. #undef shl_load
  17034. /* Override any gcc2 internal prototype to avoid an error. */
  17035. #ifdef __cplusplus
  17036. extern "C"
  17037. {
  17038. #endif
  17039. /* We use char because int might match the return type of a gcc2
  17040. builtin and then its argument prototype would still apply. */
  17041. char shl_load ();
  17042. /* The GNU C library defines this for functions which it implements
  17043. to always fail with ENOSYS. Some functions are actually named
  17044. something starting with __ and the normal name is an alias. */
  17045. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  17046. choke me
  17047. #else
  17048. char (*f) () = shl_load;
  17049. #endif
  17050. #ifdef __cplusplus
  17051. }
  17052. #endif
  17053. int
  17054. main ()
  17055. {
  17056. return f != shl_load;
  17057. ;
  17058. return 0;
  17059. }
  17060. _ACEOF
  17061. rm -f conftest.$ac_objext conftest$ac_exeext
  17062. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17063. (eval $ac_link) 2>conftest.er1
  17064. ac_status=$?
  17065. grep -v '^ *+' conftest.er1 >conftest.err
  17066. rm -f conftest.er1
  17067. cat conftest.err >&5
  17068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17069. (exit $ac_status); } &&
  17070. { ac_try='test -z "$ac_c_werror_flag"
  17071. || test ! -s conftest.err'
  17072. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17073. (eval $ac_try) 2>&5
  17074. ac_status=$?
  17075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17076. (exit $ac_status); }; } &&
  17077. { ac_try='test -s conftest$ac_exeext'
  17078. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17079. (eval $ac_try) 2>&5
  17080. ac_status=$?
  17081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17082. (exit $ac_status); }; }; then
  17083. ac_cv_func_shl_load=yes
  17084. else
  17085. echo "$as_me: failed program was:" >&5
  17086. sed 's/^/| /' conftest.$ac_ext >&5
  17087. ac_cv_func_shl_load=no
  17088. fi
  17089. rm -f conftest.err conftest.$ac_objext \
  17090. conftest$ac_exeext conftest.$ac_ext
  17091. fi
  17092. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  17093. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  17094. if test $ac_cv_func_shl_load = yes; then
  17095. lt_cv_dlopen="shl_load"
  17096. else
  17097. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  17098. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  17099. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  17100. echo $ECHO_N "(cached) $ECHO_C" >&6
  17101. else
  17102. ac_check_lib_save_LIBS=$LIBS
  17103. LIBS="-ldld $LIBS"
  17104. cat >conftest.$ac_ext <<_ACEOF
  17105. /* confdefs.h. */
  17106. _ACEOF
  17107. cat confdefs.h >>conftest.$ac_ext
  17108. cat >>conftest.$ac_ext <<_ACEOF
  17109. /* end confdefs.h. */
  17110. /* Override any gcc2 internal prototype to avoid an error. */
  17111. #ifdef __cplusplus
  17112. extern "C"
  17113. #endif
  17114. /* We use char because int might match the return type of a gcc2
  17115. builtin and then its argument prototype would still apply. */
  17116. char shl_load ();
  17117. int
  17118. main ()
  17119. {
  17120. shl_load ();
  17121. ;
  17122. return 0;
  17123. }
  17124. _ACEOF
  17125. rm -f conftest.$ac_objext conftest$ac_exeext
  17126. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17127. (eval $ac_link) 2>conftest.er1
  17128. ac_status=$?
  17129. grep -v '^ *+' conftest.er1 >conftest.err
  17130. rm -f conftest.er1
  17131. cat conftest.err >&5
  17132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17133. (exit $ac_status); } &&
  17134. { ac_try='test -z "$ac_c_werror_flag"
  17135. || test ! -s conftest.err'
  17136. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17137. (eval $ac_try) 2>&5
  17138. ac_status=$?
  17139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17140. (exit $ac_status); }; } &&
  17141. { ac_try='test -s conftest$ac_exeext'
  17142. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17143. (eval $ac_try) 2>&5
  17144. ac_status=$?
  17145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17146. (exit $ac_status); }; }; then
  17147. ac_cv_lib_dld_shl_load=yes
  17148. else
  17149. echo "$as_me: failed program was:" >&5
  17150. sed 's/^/| /' conftest.$ac_ext >&5
  17151. ac_cv_lib_dld_shl_load=no
  17152. fi
  17153. rm -f conftest.err conftest.$ac_objext \
  17154. conftest$ac_exeext conftest.$ac_ext
  17155. LIBS=$ac_check_lib_save_LIBS
  17156. fi
  17157. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  17158. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  17159. if test $ac_cv_lib_dld_shl_load = yes; then
  17160. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  17161. else
  17162. echo "$as_me:$LINENO: checking for dlopen" >&5
  17163. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  17164. if test "${ac_cv_func_dlopen+set}" = set; then
  17165. echo $ECHO_N "(cached) $ECHO_C" >&6
  17166. else
  17167. cat >conftest.$ac_ext <<_ACEOF
  17168. /* confdefs.h. */
  17169. _ACEOF
  17170. cat confdefs.h >>conftest.$ac_ext
  17171. cat >>conftest.$ac_ext <<_ACEOF
  17172. /* end confdefs.h. */
  17173. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  17174. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17175. #define dlopen innocuous_dlopen
  17176. /* System header to define __stub macros and hopefully few prototypes,
  17177. which can conflict with char dlopen (); below.
  17178. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17179. <limits.h> exists even on freestanding compilers. */
  17180. #ifdef __STDC__
  17181. # include <limits.h>
  17182. #else
  17183. # include <assert.h>
  17184. #endif
  17185. #undef dlopen
  17186. /* Override any gcc2 internal prototype to avoid an error. */
  17187. #ifdef __cplusplus
  17188. extern "C"
  17189. {
  17190. #endif
  17191. /* We use char because int might match the return type of a gcc2
  17192. builtin and then its argument prototype would still apply. */
  17193. char dlopen ();
  17194. /* The GNU C library defines this for functions which it implements
  17195. to always fail with ENOSYS. Some functions are actually named
  17196. something starting with __ and the normal name is an alias. */
  17197. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  17198. choke me
  17199. #else
  17200. char (*f) () = dlopen;
  17201. #endif
  17202. #ifdef __cplusplus
  17203. }
  17204. #endif
  17205. int
  17206. main ()
  17207. {
  17208. return f != dlopen;
  17209. ;
  17210. return 0;
  17211. }
  17212. _ACEOF
  17213. rm -f conftest.$ac_objext conftest$ac_exeext
  17214. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17215. (eval $ac_link) 2>conftest.er1
  17216. ac_status=$?
  17217. grep -v '^ *+' conftest.er1 >conftest.err
  17218. rm -f conftest.er1
  17219. cat conftest.err >&5
  17220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17221. (exit $ac_status); } &&
  17222. { ac_try='test -z "$ac_c_werror_flag"
  17223. || test ! -s conftest.err'
  17224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17225. (eval $ac_try) 2>&5
  17226. ac_status=$?
  17227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17228. (exit $ac_status); }; } &&
  17229. { ac_try='test -s conftest$ac_exeext'
  17230. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17231. (eval $ac_try) 2>&5
  17232. ac_status=$?
  17233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17234. (exit $ac_status); }; }; then
  17235. ac_cv_func_dlopen=yes
  17236. else
  17237. echo "$as_me: failed program was:" >&5
  17238. sed 's/^/| /' conftest.$ac_ext >&5
  17239. ac_cv_func_dlopen=no
  17240. fi
  17241. rm -f conftest.err conftest.$ac_objext \
  17242. conftest$ac_exeext conftest.$ac_ext
  17243. fi
  17244. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  17245. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  17246. if test $ac_cv_func_dlopen = yes; then
  17247. lt_cv_dlopen="dlopen"
  17248. else
  17249. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  17250. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  17251. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  17252. echo $ECHO_N "(cached) $ECHO_C" >&6
  17253. else
  17254. ac_check_lib_save_LIBS=$LIBS
  17255. LIBS="-ldl $LIBS"
  17256. cat >conftest.$ac_ext <<_ACEOF
  17257. /* confdefs.h. */
  17258. _ACEOF
  17259. cat confdefs.h >>conftest.$ac_ext
  17260. cat >>conftest.$ac_ext <<_ACEOF
  17261. /* end confdefs.h. */
  17262. /* Override any gcc2 internal prototype to avoid an error. */
  17263. #ifdef __cplusplus
  17264. extern "C"
  17265. #endif
  17266. /* We use char because int might match the return type of a gcc2
  17267. builtin and then its argument prototype would still apply. */
  17268. char dlopen ();
  17269. int
  17270. main ()
  17271. {
  17272. dlopen ();
  17273. ;
  17274. return 0;
  17275. }
  17276. _ACEOF
  17277. rm -f conftest.$ac_objext conftest$ac_exeext
  17278. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17279. (eval $ac_link) 2>conftest.er1
  17280. ac_status=$?
  17281. grep -v '^ *+' conftest.er1 >conftest.err
  17282. rm -f conftest.er1
  17283. cat conftest.err >&5
  17284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17285. (exit $ac_status); } &&
  17286. { ac_try='test -z "$ac_c_werror_flag"
  17287. || test ! -s conftest.err'
  17288. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17289. (eval $ac_try) 2>&5
  17290. ac_status=$?
  17291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17292. (exit $ac_status); }; } &&
  17293. { ac_try='test -s conftest$ac_exeext'
  17294. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17295. (eval $ac_try) 2>&5
  17296. ac_status=$?
  17297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17298. (exit $ac_status); }; }; then
  17299. ac_cv_lib_dl_dlopen=yes
  17300. else
  17301. echo "$as_me: failed program was:" >&5
  17302. sed 's/^/| /' conftest.$ac_ext >&5
  17303. ac_cv_lib_dl_dlopen=no
  17304. fi
  17305. rm -f conftest.err conftest.$ac_objext \
  17306. conftest$ac_exeext conftest.$ac_ext
  17307. LIBS=$ac_check_lib_save_LIBS
  17308. fi
  17309. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  17310. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  17311. if test $ac_cv_lib_dl_dlopen = yes; then
  17312. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  17313. else
  17314. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  17315. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  17316. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  17317. echo $ECHO_N "(cached) $ECHO_C" >&6
  17318. else
  17319. ac_check_lib_save_LIBS=$LIBS
  17320. LIBS="-lsvld $LIBS"
  17321. cat >conftest.$ac_ext <<_ACEOF
  17322. /* confdefs.h. */
  17323. _ACEOF
  17324. cat confdefs.h >>conftest.$ac_ext
  17325. cat >>conftest.$ac_ext <<_ACEOF
  17326. /* end confdefs.h. */
  17327. /* Override any gcc2 internal prototype to avoid an error. */
  17328. #ifdef __cplusplus
  17329. extern "C"
  17330. #endif
  17331. /* We use char because int might match the return type of a gcc2
  17332. builtin and then its argument prototype would still apply. */
  17333. char dlopen ();
  17334. int
  17335. main ()
  17336. {
  17337. dlopen ();
  17338. ;
  17339. return 0;
  17340. }
  17341. _ACEOF
  17342. rm -f conftest.$ac_objext conftest$ac_exeext
  17343. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17344. (eval $ac_link) 2>conftest.er1
  17345. ac_status=$?
  17346. grep -v '^ *+' conftest.er1 >conftest.err
  17347. rm -f conftest.er1
  17348. cat conftest.err >&5
  17349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17350. (exit $ac_status); } &&
  17351. { ac_try='test -z "$ac_c_werror_flag"
  17352. || test ! -s conftest.err'
  17353. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17354. (eval $ac_try) 2>&5
  17355. ac_status=$?
  17356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17357. (exit $ac_status); }; } &&
  17358. { ac_try='test -s conftest$ac_exeext'
  17359. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17360. (eval $ac_try) 2>&5
  17361. ac_status=$?
  17362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17363. (exit $ac_status); }; }; then
  17364. ac_cv_lib_svld_dlopen=yes
  17365. else
  17366. echo "$as_me: failed program was:" >&5
  17367. sed 's/^/| /' conftest.$ac_ext >&5
  17368. ac_cv_lib_svld_dlopen=no
  17369. fi
  17370. rm -f conftest.err conftest.$ac_objext \
  17371. conftest$ac_exeext conftest.$ac_ext
  17372. LIBS=$ac_check_lib_save_LIBS
  17373. fi
  17374. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  17375. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  17376. if test $ac_cv_lib_svld_dlopen = yes; then
  17377. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  17378. else
  17379. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  17380. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  17381. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  17382. echo $ECHO_N "(cached) $ECHO_C" >&6
  17383. else
  17384. ac_check_lib_save_LIBS=$LIBS
  17385. LIBS="-ldld $LIBS"
  17386. cat >conftest.$ac_ext <<_ACEOF
  17387. /* confdefs.h. */
  17388. _ACEOF
  17389. cat confdefs.h >>conftest.$ac_ext
  17390. cat >>conftest.$ac_ext <<_ACEOF
  17391. /* end confdefs.h. */
  17392. /* Override any gcc2 internal prototype to avoid an error. */
  17393. #ifdef __cplusplus
  17394. extern "C"
  17395. #endif
  17396. /* We use char because int might match the return type of a gcc2
  17397. builtin and then its argument prototype would still apply. */
  17398. char dld_link ();
  17399. int
  17400. main ()
  17401. {
  17402. dld_link ();
  17403. ;
  17404. return 0;
  17405. }
  17406. _ACEOF
  17407. rm -f conftest.$ac_objext conftest$ac_exeext
  17408. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17409. (eval $ac_link) 2>conftest.er1
  17410. ac_status=$?
  17411. grep -v '^ *+' conftest.er1 >conftest.err
  17412. rm -f conftest.er1
  17413. cat conftest.err >&5
  17414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17415. (exit $ac_status); } &&
  17416. { ac_try='test -z "$ac_c_werror_flag"
  17417. || test ! -s conftest.err'
  17418. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17419. (eval $ac_try) 2>&5
  17420. ac_status=$?
  17421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17422. (exit $ac_status); }; } &&
  17423. { ac_try='test -s conftest$ac_exeext'
  17424. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17425. (eval $ac_try) 2>&5
  17426. ac_status=$?
  17427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17428. (exit $ac_status); }; }; then
  17429. ac_cv_lib_dld_dld_link=yes
  17430. else
  17431. echo "$as_me: failed program was:" >&5
  17432. sed 's/^/| /' conftest.$ac_ext >&5
  17433. ac_cv_lib_dld_dld_link=no
  17434. fi
  17435. rm -f conftest.err conftest.$ac_objext \
  17436. conftest$ac_exeext conftest.$ac_ext
  17437. LIBS=$ac_check_lib_save_LIBS
  17438. fi
  17439. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  17440. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  17441. if test $ac_cv_lib_dld_dld_link = yes; then
  17442. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  17443. fi
  17444. fi
  17445. fi
  17446. fi
  17447. fi
  17448. fi
  17449. ;;
  17450. esac
  17451. if test "x$lt_cv_dlopen" != xno; then
  17452. enable_dlopen=yes
  17453. else
  17454. enable_dlopen=no
  17455. fi
  17456. case $lt_cv_dlopen in
  17457. dlopen)
  17458. save_CPPFLAGS="$CPPFLAGS"
  17459. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  17460. save_LDFLAGS="$LDFLAGS"
  17461. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  17462. save_LIBS="$LIBS"
  17463. LIBS="$lt_cv_dlopen_libs $LIBS"
  17464. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  17465. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  17466. if test "${lt_cv_dlopen_self+set}" = set; then
  17467. echo $ECHO_N "(cached) $ECHO_C" >&6
  17468. else
  17469. if test "$cross_compiling" = yes; then :
  17470. lt_cv_dlopen_self=cross
  17471. else
  17472. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  17473. lt_status=$lt_dlunknown
  17474. cat > conftest.$ac_ext <<EOF
  17475. #line 19350 "configure"
  17476. #include "confdefs.h"
  17477. #if HAVE_DLFCN_H
  17478. #include <dlfcn.h>
  17479. #endif
  17480. #include <stdio.h>
  17481. #ifdef RTLD_GLOBAL
  17482. # define LT_DLGLOBAL RTLD_GLOBAL
  17483. #else
  17484. # ifdef DL_GLOBAL
  17485. # define LT_DLGLOBAL DL_GLOBAL
  17486. # else
  17487. # define LT_DLGLOBAL 0
  17488. # endif
  17489. #endif
  17490. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  17491. find out it does not work in some platform. */
  17492. #ifndef LT_DLLAZY_OR_NOW
  17493. # ifdef RTLD_LAZY
  17494. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  17495. # else
  17496. # ifdef DL_LAZY
  17497. # define LT_DLLAZY_OR_NOW DL_LAZY
  17498. # else
  17499. # ifdef RTLD_NOW
  17500. # define LT_DLLAZY_OR_NOW RTLD_NOW
  17501. # else
  17502. # ifdef DL_NOW
  17503. # define LT_DLLAZY_OR_NOW DL_NOW
  17504. # else
  17505. # define LT_DLLAZY_OR_NOW 0
  17506. # endif
  17507. # endif
  17508. # endif
  17509. # endif
  17510. #endif
  17511. #ifdef __cplusplus
  17512. extern "C" void exit (int);
  17513. #endif
  17514. void fnord() { int i=42;}
  17515. int main ()
  17516. {
  17517. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  17518. int status = $lt_dlunknown;
  17519. if (self)
  17520. {
  17521. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  17522. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  17523. /* dlclose (self); */
  17524. }
  17525. exit (status);
  17526. }
  17527. EOF
  17528. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17529. (eval $ac_link) 2>&5
  17530. ac_status=$?
  17531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17532. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  17533. (./conftest; exit; ) 2>/dev/null
  17534. lt_status=$?
  17535. case x$lt_status in
  17536. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  17537. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  17538. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  17539. esac
  17540. else :
  17541. # compilation failed
  17542. lt_cv_dlopen_self=no
  17543. fi
  17544. fi
  17545. rm -fr conftest*
  17546. fi
  17547. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  17548. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  17549. if test "x$lt_cv_dlopen_self" = xyes; then
  17550. LDFLAGS="$LDFLAGS $link_static_flag"
  17551. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  17552. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  17553. if test "${lt_cv_dlopen_self_static+set}" = set; then
  17554. echo $ECHO_N "(cached) $ECHO_C" >&6
  17555. else
  17556. if test "$cross_compiling" = yes; then :
  17557. lt_cv_dlopen_self_static=cross
  17558. else
  17559. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  17560. lt_status=$lt_dlunknown
  17561. cat > conftest.$ac_ext <<EOF
  17562. #line 19448 "configure"
  17563. #include "confdefs.h"
  17564. #if HAVE_DLFCN_H
  17565. #include <dlfcn.h>
  17566. #endif
  17567. #include <stdio.h>
  17568. #ifdef RTLD_GLOBAL
  17569. # define LT_DLGLOBAL RTLD_GLOBAL
  17570. #else
  17571. # ifdef DL_GLOBAL
  17572. # define LT_DLGLOBAL DL_GLOBAL
  17573. # else
  17574. # define LT_DLGLOBAL 0
  17575. # endif
  17576. #endif
  17577. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  17578. find out it does not work in some platform. */
  17579. #ifndef LT_DLLAZY_OR_NOW
  17580. # ifdef RTLD_LAZY
  17581. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  17582. # else
  17583. # ifdef DL_LAZY
  17584. # define LT_DLLAZY_OR_NOW DL_LAZY
  17585. # else
  17586. # ifdef RTLD_NOW
  17587. # define LT_DLLAZY_OR_NOW RTLD_NOW
  17588. # else
  17589. # ifdef DL_NOW
  17590. # define LT_DLLAZY_OR_NOW DL_NOW
  17591. # else
  17592. # define LT_DLLAZY_OR_NOW 0
  17593. # endif
  17594. # endif
  17595. # endif
  17596. # endif
  17597. #endif
  17598. #ifdef __cplusplus
  17599. extern "C" void exit (int);
  17600. #endif
  17601. void fnord() { int i=42;}
  17602. int main ()
  17603. {
  17604. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  17605. int status = $lt_dlunknown;
  17606. if (self)
  17607. {
  17608. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  17609. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  17610. /* dlclose (self); */
  17611. }
  17612. exit (status);
  17613. }
  17614. EOF
  17615. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17616. (eval $ac_link) 2>&5
  17617. ac_status=$?
  17618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17619. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  17620. (./conftest; exit; ) 2>/dev/null
  17621. lt_status=$?
  17622. case x$lt_status in
  17623. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  17624. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  17625. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  17626. esac
  17627. else :
  17628. # compilation failed
  17629. lt_cv_dlopen_self_static=no
  17630. fi
  17631. fi
  17632. rm -fr conftest*
  17633. fi
  17634. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  17635. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  17636. fi
  17637. CPPFLAGS="$save_CPPFLAGS"
  17638. LDFLAGS="$save_LDFLAGS"
  17639. LIBS="$save_LIBS"
  17640. ;;
  17641. esac
  17642. case $lt_cv_dlopen_self in
  17643. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  17644. *) enable_dlopen_self=unknown ;;
  17645. esac
  17646. case $lt_cv_dlopen_self_static in
  17647. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  17648. *) enable_dlopen_self_static=unknown ;;
  17649. esac
  17650. fi
  17651. # The else clause should only fire when bootstrapping the
  17652. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17653. # with your package, and you will get complaints that there are
  17654. # no rules to generate ltmain.sh.
  17655. if test -f "$ltmain"; then
  17656. # See if we are running on zsh, and set the options which allow our commands through
  17657. # without removal of \ escapes.
  17658. if test -n "${ZSH_VERSION+set}" ; then
  17659. setopt NO_GLOB_SUBST
  17660. fi
  17661. # Now quote all the things that may contain metacharacters while being
  17662. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17663. # variables and quote the copies for generation of the libtool script.
  17664. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  17665. SED SHELL STRIP \
  17666. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17667. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17668. deplibs_check_method reload_flag reload_cmds need_locks \
  17669. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17670. lt_cv_sys_global_symbol_to_c_name_address \
  17671. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17672. old_postinstall_cmds old_postuninstall_cmds \
  17673. compiler_GCJ \
  17674. CC_GCJ \
  17675. LD_GCJ \
  17676. lt_prog_compiler_wl_GCJ \
  17677. lt_prog_compiler_pic_GCJ \
  17678. lt_prog_compiler_static_GCJ \
  17679. lt_prog_compiler_no_builtin_flag_GCJ \
  17680. export_dynamic_flag_spec_GCJ \
  17681. thread_safe_flag_spec_GCJ \
  17682. whole_archive_flag_spec_GCJ \
  17683. enable_shared_with_static_runtimes_GCJ \
  17684. old_archive_cmds_GCJ \
  17685. old_archive_from_new_cmds_GCJ \
  17686. predep_objects_GCJ \
  17687. postdep_objects_GCJ \
  17688. predeps_GCJ \
  17689. postdeps_GCJ \
  17690. compiler_lib_search_path_GCJ \
  17691. archive_cmds_GCJ \
  17692. archive_expsym_cmds_GCJ \
  17693. postinstall_cmds_GCJ \
  17694. postuninstall_cmds_GCJ \
  17695. old_archive_from_expsyms_cmds_GCJ \
  17696. allow_undefined_flag_GCJ \
  17697. no_undefined_flag_GCJ \
  17698. export_symbols_cmds_GCJ \
  17699. hardcode_libdir_flag_spec_GCJ \
  17700. hardcode_libdir_flag_spec_ld_GCJ \
  17701. hardcode_libdir_separator_GCJ \
  17702. hardcode_automatic_GCJ \
  17703. module_cmds_GCJ \
  17704. module_expsym_cmds_GCJ \
  17705. lt_cv_prog_compiler_c_o_GCJ \
  17706. exclude_expsyms_GCJ \
  17707. include_expsyms_GCJ; do
  17708. case $var in
  17709. old_archive_cmds_GCJ | \
  17710. old_archive_from_new_cmds_GCJ | \
  17711. archive_cmds_GCJ | \
  17712. archive_expsym_cmds_GCJ | \
  17713. module_cmds_GCJ | \
  17714. module_expsym_cmds_GCJ | \
  17715. old_archive_from_expsyms_cmds_GCJ | \
  17716. export_symbols_cmds_GCJ | \
  17717. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17718. postinstall_cmds | postuninstall_cmds | \
  17719. old_postinstall_cmds | old_postuninstall_cmds | \
  17720. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17721. # Double-quote double-evaled strings.
  17722. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17723. ;;
  17724. *)
  17725. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17726. ;;
  17727. esac
  17728. done
  17729. case $lt_echo in
  17730. *'\$0 --fallback-echo"')
  17731. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17732. ;;
  17733. esac
  17734. cfgfile="$ofile"
  17735. cat <<__EOF__ >> "$cfgfile"
  17736. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17737. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17738. # Shell to use when invoking shell scripts.
  17739. SHELL=$lt_SHELL
  17740. # Whether or not to build shared libraries.
  17741. build_libtool_libs=$enable_shared
  17742. # Whether or not to build static libraries.
  17743. build_old_libs=$enable_static
  17744. # Whether or not to add -lc for building shared libraries.
  17745. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  17746. # Whether or not to disallow shared libs when runtime libs are static
  17747. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  17748. # Whether or not to optimize for fast installation.
  17749. fast_install=$enable_fast_install
  17750. # The host system.
  17751. host_alias=$host_alias
  17752. host=$host
  17753. host_os=$host_os
  17754. # The build system.
  17755. build_alias=$build_alias
  17756. build=$build
  17757. build_os=$build_os
  17758. # An echo program that does not interpret backslashes.
  17759. echo=$lt_echo
  17760. # The archiver.
  17761. AR=$lt_AR
  17762. AR_FLAGS=$lt_AR_FLAGS
  17763. # A C compiler.
  17764. LTCC=$lt_LTCC
  17765. # A language-specific compiler.
  17766. CC=$lt_compiler_GCJ
  17767. # Is the compiler the GNU C compiler?
  17768. with_gcc=$GCC_GCJ
  17769. # An ERE matcher.
  17770. EGREP=$lt_EGREP
  17771. # The linker used to build libraries.
  17772. LD=$lt_LD_GCJ
  17773. # Whether we need hard or soft links.
  17774. LN_S=$lt_LN_S
  17775. # A BSD-compatible nm program.
  17776. NM=$lt_NM
  17777. # A symbol stripping program
  17778. STRIP=$lt_STRIP
  17779. # Used to examine libraries when file_magic_cmd begins "file"
  17780. MAGIC_CMD=$MAGIC_CMD
  17781. # Used on cygwin: DLL creation program.
  17782. DLLTOOL="$DLLTOOL"
  17783. # Used on cygwin: object dumper.
  17784. OBJDUMP="$OBJDUMP"
  17785. # Used on cygwin: assembler.
  17786. AS="$AS"
  17787. # The name of the directory that contains temporary libtool files.
  17788. objdir=$objdir
  17789. # How to create reloadable object files.
  17790. reload_flag=$lt_reload_flag
  17791. reload_cmds=$lt_reload_cmds
  17792. # How to pass a linker flag through the compiler.
  17793. wl=$lt_lt_prog_compiler_wl_GCJ
  17794. # Object file suffix (normally "o").
  17795. objext="$ac_objext"
  17796. # Old archive suffix (normally "a").
  17797. libext="$libext"
  17798. # Shared library suffix (normally ".so").
  17799. shrext_cmds='$shrext_cmds'
  17800. # Executable file suffix (normally "").
  17801. exeext="$exeext"
  17802. # Additional compiler flags for building library objects.
  17803. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  17804. pic_mode=$pic_mode
  17805. # What is the maximum length of a command?
  17806. max_cmd_len=$lt_cv_sys_max_cmd_len
  17807. # Does compiler simultaneously support -c and -o options?
  17808. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  17809. # Must we lock files when doing compilation ?
  17810. need_locks=$lt_need_locks
  17811. # Do we need the lib prefix for modules?
  17812. need_lib_prefix=$need_lib_prefix
  17813. # Do we need a version for libraries?
  17814. need_version=$need_version
  17815. # Whether dlopen is supported.
  17816. dlopen_support=$enable_dlopen
  17817. # Whether dlopen of programs is supported.
  17818. dlopen_self=$enable_dlopen_self
  17819. # Whether dlopen of statically linked programs is supported.
  17820. dlopen_self_static=$enable_dlopen_self_static
  17821. # Compiler flag to prevent dynamic linking.
  17822. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  17823. # Compiler flag to turn off builtin functions.
  17824. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  17825. # Compiler flag to allow reflexive dlopens.
  17826. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  17827. # Compiler flag to generate shared objects directly from archives.
  17828. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  17829. # Compiler flag to generate thread-safe objects.
  17830. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  17831. # Library versioning type.
  17832. version_type=$version_type
  17833. # Format of library name prefix.
  17834. libname_spec=$lt_libname_spec
  17835. # List of archive names. First name is the real one, the rest are links.
  17836. # The last name is the one that the linker finds with -lNAME.
  17837. library_names_spec=$lt_library_names_spec
  17838. # The coded name of the library, if different from the real name.
  17839. soname_spec=$lt_soname_spec
  17840. # Commands used to build and install an old-style archive.
  17841. RANLIB=$lt_RANLIB
  17842. old_archive_cmds=$lt_old_archive_cmds_GCJ
  17843. old_postinstall_cmds=$lt_old_postinstall_cmds
  17844. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17845. # Create an old-style archive from a shared archive.
  17846. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  17847. # Create a temporary old-style archive to link instead of a shared archive.
  17848. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  17849. # Commands used to build and install a shared archive.
  17850. archive_cmds=$lt_archive_cmds_GCJ
  17851. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  17852. postinstall_cmds=$lt_postinstall_cmds
  17853. postuninstall_cmds=$lt_postuninstall_cmds
  17854. # Commands used to build a loadable module (assumed same as above if empty)
  17855. module_cmds=$lt_module_cmds_GCJ
  17856. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  17857. # Commands to strip libraries.
  17858. old_striplib=$lt_old_striplib
  17859. striplib=$lt_striplib
  17860. # Dependencies to place before the objects being linked to create a
  17861. # shared library.
  17862. predep_objects=$lt_predep_objects_GCJ
  17863. # Dependencies to place after the objects being linked to create a
  17864. # shared library.
  17865. postdep_objects=$lt_postdep_objects_GCJ
  17866. # Dependencies to place before the objects being linked to create a
  17867. # shared library.
  17868. predeps=$lt_predeps_GCJ
  17869. # Dependencies to place after the objects being linked to create a
  17870. # shared library.
  17871. postdeps=$lt_postdeps_GCJ
  17872. # The library search path used internally by the compiler when linking
  17873. # a shared library.
  17874. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  17875. # Method to check whether dependent libraries are shared objects.
  17876. deplibs_check_method=$lt_deplibs_check_method
  17877. # Command to use when deplibs_check_method == file_magic.
  17878. file_magic_cmd=$lt_file_magic_cmd
  17879. # Flag that allows shared libraries with undefined symbols to be built.
  17880. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  17881. # Flag that forces no undefined symbols.
  17882. no_undefined_flag=$lt_no_undefined_flag_GCJ
  17883. # Commands used to finish a libtool library installation in a directory.
  17884. finish_cmds=$lt_finish_cmds
  17885. # Same as above, but a single script fragment to be evaled but not shown.
  17886. finish_eval=$lt_finish_eval
  17887. # Take the output of nm and produce a listing of raw symbols and C names.
  17888. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17889. # Transform the output of nm in a proper C declaration
  17890. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17891. # Transform the output of nm in a C name address pair
  17892. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17893. # This is the shared library runtime path variable.
  17894. runpath_var=$runpath_var
  17895. # This is the shared library path variable.
  17896. shlibpath_var=$shlibpath_var
  17897. # Is shlibpath searched before the hard-coded library search path?
  17898. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17899. # How to hardcode a shared library path into an executable.
  17900. hardcode_action=$hardcode_action_GCJ
  17901. # Whether we should hardcode library paths into libraries.
  17902. hardcode_into_libs=$hardcode_into_libs
  17903. # Flag to hardcode \$libdir into a binary during linking.
  17904. # This must work even if \$libdir does not exist.
  17905. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  17906. # If ld is used when linking, flag to hardcode \$libdir into
  17907. # a binary during linking. This must work even if \$libdir does
  17908. # not exist.
  17909. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  17910. # Whether we need a single -rpath flag with a separated argument.
  17911. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  17912. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17913. # resulting binary.
  17914. hardcode_direct=$hardcode_direct_GCJ
  17915. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17916. # resulting binary.
  17917. hardcode_minus_L=$hardcode_minus_L_GCJ
  17918. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17919. # the resulting binary.
  17920. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  17921. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17922. # and all subsequent libraries and executables linked against it.
  17923. hardcode_automatic=$hardcode_automatic_GCJ
  17924. # Variables whose values should be saved in libtool wrapper scripts and
  17925. # restored at relink time.
  17926. variables_saved_for_relink="$variables_saved_for_relink"
  17927. # Whether libtool must link a program against all its dependency libraries.
  17928. link_all_deplibs=$link_all_deplibs_GCJ
  17929. # Compile-time system search path for libraries
  17930. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17931. # Run-time system search path for libraries
  17932. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17933. # Fix the shell variable \$srcfile for the compiler.
  17934. fix_srcfile_path="$fix_srcfile_path_GCJ"
  17935. # Set to yes if exported symbols are required.
  17936. always_export_symbols=$always_export_symbols_GCJ
  17937. # The commands to list exported symbols.
  17938. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  17939. # The commands to extract the exported symbol list from a shared archive.
  17940. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17941. # Symbols that should not be listed in the preloaded symbols.
  17942. exclude_expsyms=$lt_exclude_expsyms_GCJ
  17943. # Symbols that must always be exported.
  17944. include_expsyms=$lt_include_expsyms_GCJ
  17945. # ### END LIBTOOL TAG CONFIG: $tagname
  17946. __EOF__
  17947. else
  17948. # If there is no Makefile yet, we rely on a make rule to execute
  17949. # `config.status --recheck' to rerun these tests and create the
  17950. # libtool script then.
  17951. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17952. if test -f "$ltmain_in"; then
  17953. test -f Makefile && make "$ltmain"
  17954. fi
  17955. fi
  17956. ac_ext=c
  17957. ac_cpp='$CPP $CPPFLAGS'
  17958. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17959. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17960. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17961. CC="$lt_save_CC"
  17962. else
  17963. tagname=""
  17964. fi
  17965. ;;
  17966. RC)
  17967. # Source file extension for RC test sources.
  17968. ac_ext=rc
  17969. # Object file extension for compiled RC test sources.
  17970. objext=o
  17971. objext_RC=$objext
  17972. # Code to be used in simple compile tests
  17973. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  17974. # Code to be used in simple link tests
  17975. lt_simple_link_test_code="$lt_simple_compile_test_code"
  17976. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17977. # If no C compiler was specified, use CC.
  17978. LTCC=${LTCC-"$CC"}
  17979. # Allow CC to be a program name with arguments.
  17980. compiler=$CC
  17981. # Allow CC to be a program name with arguments.
  17982. lt_save_CC="$CC"
  17983. CC=${RC-"windres"}
  17984. compiler=$CC
  17985. compiler_RC=$CC
  17986. lt_cv_prog_compiler_c_o_RC=yes
  17987. # The else clause should only fire when bootstrapping the
  17988. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17989. # with your package, and you will get complaints that there are
  17990. # no rules to generate ltmain.sh.
  17991. if test -f "$ltmain"; then
  17992. # See if we are running on zsh, and set the options which allow our commands through
  17993. # without removal of \ escapes.
  17994. if test -n "${ZSH_VERSION+set}" ; then
  17995. setopt NO_GLOB_SUBST
  17996. fi
  17997. # Now quote all the things that may contain metacharacters while being
  17998. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17999. # variables and quote the copies for generation of the libtool script.
  18000. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  18001. SED SHELL STRIP \
  18002. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  18003. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  18004. deplibs_check_method reload_flag reload_cmds need_locks \
  18005. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  18006. lt_cv_sys_global_symbol_to_c_name_address \
  18007. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  18008. old_postinstall_cmds old_postuninstall_cmds \
  18009. compiler_RC \
  18010. CC_RC \
  18011. LD_RC \
  18012. lt_prog_compiler_wl_RC \
  18013. lt_prog_compiler_pic_RC \
  18014. lt_prog_compiler_static_RC \
  18015. lt_prog_compiler_no_builtin_flag_RC \
  18016. export_dynamic_flag_spec_RC \
  18017. thread_safe_flag_spec_RC \
  18018. whole_archive_flag_spec_RC \
  18019. enable_shared_with_static_runtimes_RC \
  18020. old_archive_cmds_RC \
  18021. old_archive_from_new_cmds_RC \
  18022. predep_objects_RC \
  18023. postdep_objects_RC \
  18024. predeps_RC \
  18025. postdeps_RC \
  18026. compiler_lib_search_path_RC \
  18027. archive_cmds_RC \
  18028. archive_expsym_cmds_RC \
  18029. postinstall_cmds_RC \
  18030. postuninstall_cmds_RC \
  18031. old_archive_from_expsyms_cmds_RC \
  18032. allow_undefined_flag_RC \
  18033. no_undefined_flag_RC \
  18034. export_symbols_cmds_RC \
  18035. hardcode_libdir_flag_spec_RC \
  18036. hardcode_libdir_flag_spec_ld_RC \
  18037. hardcode_libdir_separator_RC \
  18038. hardcode_automatic_RC \
  18039. module_cmds_RC \
  18040. module_expsym_cmds_RC \
  18041. lt_cv_prog_compiler_c_o_RC \
  18042. exclude_expsyms_RC \
  18043. include_expsyms_RC; do
  18044. case $var in
  18045. old_archive_cmds_RC | \
  18046. old_archive_from_new_cmds_RC | \
  18047. archive_cmds_RC | \
  18048. archive_expsym_cmds_RC | \
  18049. module_cmds_RC | \
  18050. module_expsym_cmds_RC | \
  18051. old_archive_from_expsyms_cmds_RC | \
  18052. export_symbols_cmds_RC | \
  18053. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  18054. postinstall_cmds | postuninstall_cmds | \
  18055. old_postinstall_cmds | old_postuninstall_cmds | \
  18056. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  18057. # Double-quote double-evaled strings.
  18058. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  18059. ;;
  18060. *)
  18061. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  18062. ;;
  18063. esac
  18064. done
  18065. case $lt_echo in
  18066. *'\$0 --fallback-echo"')
  18067. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  18068. ;;
  18069. esac
  18070. cfgfile="$ofile"
  18071. cat <<__EOF__ >> "$cfgfile"
  18072. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  18073. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  18074. # Shell to use when invoking shell scripts.
  18075. SHELL=$lt_SHELL
  18076. # Whether or not to build shared libraries.
  18077. build_libtool_libs=$enable_shared
  18078. # Whether or not to build static libraries.
  18079. build_old_libs=$enable_static
  18080. # Whether or not to add -lc for building shared libraries.
  18081. build_libtool_need_lc=$archive_cmds_need_lc_RC
  18082. # Whether or not to disallow shared libs when runtime libs are static
  18083. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  18084. # Whether or not to optimize for fast installation.
  18085. fast_install=$enable_fast_install
  18086. # The host system.
  18087. host_alias=$host_alias
  18088. host=$host
  18089. host_os=$host_os
  18090. # The build system.
  18091. build_alias=$build_alias
  18092. build=$build
  18093. build_os=$build_os
  18094. # An echo program that does not interpret backslashes.
  18095. echo=$lt_echo
  18096. # The archiver.
  18097. AR=$lt_AR
  18098. AR_FLAGS=$lt_AR_FLAGS
  18099. # A C compiler.
  18100. LTCC=$lt_LTCC
  18101. # A language-specific compiler.
  18102. CC=$lt_compiler_RC
  18103. # Is the compiler the GNU C compiler?
  18104. with_gcc=$GCC_RC
  18105. # An ERE matcher.
  18106. EGREP=$lt_EGREP
  18107. # The linker used to build libraries.
  18108. LD=$lt_LD_RC
  18109. # Whether we need hard or soft links.
  18110. LN_S=$lt_LN_S
  18111. # A BSD-compatible nm program.
  18112. NM=$lt_NM
  18113. # A symbol stripping program
  18114. STRIP=$lt_STRIP
  18115. # Used to examine libraries when file_magic_cmd begins "file"
  18116. MAGIC_CMD=$MAGIC_CMD
  18117. # Used on cygwin: DLL creation program.
  18118. DLLTOOL="$DLLTOOL"
  18119. # Used on cygwin: object dumper.
  18120. OBJDUMP="$OBJDUMP"
  18121. # Used on cygwin: assembler.
  18122. AS="$AS"
  18123. # The name of the directory that contains temporary libtool files.
  18124. objdir=$objdir
  18125. # How to create reloadable object files.
  18126. reload_flag=$lt_reload_flag
  18127. reload_cmds=$lt_reload_cmds
  18128. # How to pass a linker flag through the compiler.
  18129. wl=$lt_lt_prog_compiler_wl_RC
  18130. # Object file suffix (normally "o").
  18131. objext="$ac_objext"
  18132. # Old archive suffix (normally "a").
  18133. libext="$libext"
  18134. # Shared library suffix (normally ".so").
  18135. shrext_cmds='$shrext_cmds'
  18136. # Executable file suffix (normally "").
  18137. exeext="$exeext"
  18138. # Additional compiler flags for building library objects.
  18139. pic_flag=$lt_lt_prog_compiler_pic_RC
  18140. pic_mode=$pic_mode
  18141. # What is the maximum length of a command?
  18142. max_cmd_len=$lt_cv_sys_max_cmd_len
  18143. # Does compiler simultaneously support -c and -o options?
  18144. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  18145. # Must we lock files when doing compilation ?
  18146. need_locks=$lt_need_locks
  18147. # Do we need the lib prefix for modules?
  18148. need_lib_prefix=$need_lib_prefix
  18149. # Do we need a version for libraries?
  18150. need_version=$need_version
  18151. # Whether dlopen is supported.
  18152. dlopen_support=$enable_dlopen
  18153. # Whether dlopen of programs is supported.
  18154. dlopen_self=$enable_dlopen_self
  18155. # Whether dlopen of statically linked programs is supported.
  18156. dlopen_self_static=$enable_dlopen_self_static
  18157. # Compiler flag to prevent dynamic linking.
  18158. link_static_flag=$lt_lt_prog_compiler_static_RC
  18159. # Compiler flag to turn off builtin functions.
  18160. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  18161. # Compiler flag to allow reflexive dlopens.
  18162. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  18163. # Compiler flag to generate shared objects directly from archives.
  18164. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  18165. # Compiler flag to generate thread-safe objects.
  18166. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  18167. # Library versioning type.
  18168. version_type=$version_type
  18169. # Format of library name prefix.
  18170. libname_spec=$lt_libname_spec
  18171. # List of archive names. First name is the real one, the rest are links.
  18172. # The last name is the one that the linker finds with -lNAME.
  18173. library_names_spec=$lt_library_names_spec
  18174. # The coded name of the library, if different from the real name.
  18175. soname_spec=$lt_soname_spec
  18176. # Commands used to build and install an old-style archive.
  18177. RANLIB=$lt_RANLIB
  18178. old_archive_cmds=$lt_old_archive_cmds_RC
  18179. old_postinstall_cmds=$lt_old_postinstall_cmds
  18180. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  18181. # Create an old-style archive from a shared archive.
  18182. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  18183. # Create a temporary old-style archive to link instead of a shared archive.
  18184. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  18185. # Commands used to build and install a shared archive.
  18186. archive_cmds=$lt_archive_cmds_RC
  18187. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  18188. postinstall_cmds=$lt_postinstall_cmds
  18189. postuninstall_cmds=$lt_postuninstall_cmds
  18190. # Commands used to build a loadable module (assumed same as above if empty)
  18191. module_cmds=$lt_module_cmds_RC
  18192. module_expsym_cmds=$lt_module_expsym_cmds_RC
  18193. # Commands to strip libraries.
  18194. old_striplib=$lt_old_striplib
  18195. striplib=$lt_striplib
  18196. # Dependencies to place before the objects being linked to create a
  18197. # shared library.
  18198. predep_objects=$lt_predep_objects_RC
  18199. # Dependencies to place after the objects being linked to create a
  18200. # shared library.
  18201. postdep_objects=$lt_postdep_objects_RC
  18202. # Dependencies to place before the objects being linked to create a
  18203. # shared library.
  18204. predeps=$lt_predeps_RC
  18205. # Dependencies to place after the objects being linked to create a
  18206. # shared library.
  18207. postdeps=$lt_postdeps_RC
  18208. # The library search path used internally by the compiler when linking
  18209. # a shared library.
  18210. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  18211. # Method to check whether dependent libraries are shared objects.
  18212. deplibs_check_method=$lt_deplibs_check_method
  18213. # Command to use when deplibs_check_method == file_magic.
  18214. file_magic_cmd=$lt_file_magic_cmd
  18215. # Flag that allows shared libraries with undefined symbols to be built.
  18216. allow_undefined_flag=$lt_allow_undefined_flag_RC
  18217. # Flag that forces no undefined symbols.
  18218. no_undefined_flag=$lt_no_undefined_flag_RC
  18219. # Commands used to finish a libtool library installation in a directory.
  18220. finish_cmds=$lt_finish_cmds
  18221. # Same as above, but a single script fragment to be evaled but not shown.
  18222. finish_eval=$lt_finish_eval
  18223. # Take the output of nm and produce a listing of raw symbols and C names.
  18224. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  18225. # Transform the output of nm in a proper C declaration
  18226. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  18227. # Transform the output of nm in a C name address pair
  18228. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  18229. # This is the shared library runtime path variable.
  18230. runpath_var=$runpath_var
  18231. # This is the shared library path variable.
  18232. shlibpath_var=$shlibpath_var
  18233. # Is shlibpath searched before the hard-coded library search path?
  18234. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  18235. # How to hardcode a shared library path into an executable.
  18236. hardcode_action=$hardcode_action_RC
  18237. # Whether we should hardcode library paths into libraries.
  18238. hardcode_into_libs=$hardcode_into_libs
  18239. # Flag to hardcode \$libdir into a binary during linking.
  18240. # This must work even if \$libdir does not exist.
  18241. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  18242. # If ld is used when linking, flag to hardcode \$libdir into
  18243. # a binary during linking. This must work even if \$libdir does
  18244. # not exist.
  18245. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  18246. # Whether we need a single -rpath flag with a separated argument.
  18247. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  18248. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  18249. # resulting binary.
  18250. hardcode_direct=$hardcode_direct_RC
  18251. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  18252. # resulting binary.
  18253. hardcode_minus_L=$hardcode_minus_L_RC
  18254. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  18255. # the resulting binary.
  18256. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  18257. # Set to yes if building a shared library automatically hardcodes DIR into the library
  18258. # and all subsequent libraries and executables linked against it.
  18259. hardcode_automatic=$hardcode_automatic_RC
  18260. # Variables whose values should be saved in libtool wrapper scripts and
  18261. # restored at relink time.
  18262. variables_saved_for_relink="$variables_saved_for_relink"
  18263. # Whether libtool must link a program against all its dependency libraries.
  18264. link_all_deplibs=$link_all_deplibs_RC
  18265. # Compile-time system search path for libraries
  18266. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  18267. # Run-time system search path for libraries
  18268. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  18269. # Fix the shell variable \$srcfile for the compiler.
  18270. fix_srcfile_path="$fix_srcfile_path_RC"
  18271. # Set to yes if exported symbols are required.
  18272. always_export_symbols=$always_export_symbols_RC
  18273. # The commands to list exported symbols.
  18274. export_symbols_cmds=$lt_export_symbols_cmds_RC
  18275. # The commands to extract the exported symbol list from a shared archive.
  18276. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  18277. # Symbols that should not be listed in the preloaded symbols.
  18278. exclude_expsyms=$lt_exclude_expsyms_RC
  18279. # Symbols that must always be exported.
  18280. include_expsyms=$lt_include_expsyms_RC
  18281. # ### END LIBTOOL TAG CONFIG: $tagname
  18282. __EOF__
  18283. else
  18284. # If there is no Makefile yet, we rely on a make rule to execute
  18285. # `config.status --recheck' to rerun these tests and create the
  18286. # libtool script then.
  18287. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  18288. if test -f "$ltmain_in"; then
  18289. test -f Makefile && make "$ltmain"
  18290. fi
  18291. fi
  18292. ac_ext=c
  18293. ac_cpp='$CPP $CPPFLAGS'
  18294. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18295. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18296. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18297. CC="$lt_save_CC"
  18298. ;;
  18299. *)
  18300. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  18301. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  18302. { (exit 1); exit 1; }; }
  18303. ;;
  18304. esac
  18305. # Append the new tag name to the list of available tags.
  18306. if test -n "$tagname" ; then
  18307. available_tags="$available_tags $tagname"
  18308. fi
  18309. fi
  18310. done
  18311. IFS="$lt_save_ifs"
  18312. # Now substitute the updated list of available tags.
  18313. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  18314. mv "${ofile}T" "$ofile"
  18315. chmod +x "$ofile"
  18316. else
  18317. rm -f "${ofile}T"
  18318. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  18319. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  18320. { (exit 1); exit 1; }; }
  18321. fi
  18322. fi
  18323. # This can be used to rebuild libtool when needed
  18324. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  18325. # Always use our own libtool.
  18326. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  18327. # Prevent multiple expansion
  18328. cat >conftest.$ac_ext <<_ACEOF
  18329. /* confdefs.h. */
  18330. _ACEOF
  18331. cat confdefs.h >>conftest.$ac_ext
  18332. cat >>conftest.$ac_ext <<_ACEOF
  18333. /* end confdefs.h. */
  18334. __INTEL_COMPILER
  18335. _ACEOF
  18336. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18337. $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
  18338. ICC="no"
  18339. else
  18340. ICC="yes"
  18341. fi
  18342. rm -f conftest*
  18343. if test "$ICC" = "yes" ; then
  18344. AM_CFLAGS="$AM_CFLAGS -Wall -wd279,310,869,810,981"
  18345. elif test "$GCC" = "yes" ; then
  18346. AM_CFLAGS="$AM_CFLAGS -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-variable -Wunused-value -fno-strict-aliasing"
  18347. fi
  18348. if test -n "$FPM_WERROR" ; then
  18349. AM_CFLAGS="$AM_CFLAGS -Werror"
  18350. fi
  18351. # Check whether --with-fpm-bin or --without-fpm-bin was given.
  18352. if test "${with_fpm_bin+set}" = set; then
  18353. withval="$with_fpm_bin"
  18354. fi;
  18355. # Check whether --with-fpm-port or --without-fpm-port was given.
  18356. if test "${with_fpm_port+set}" = set; then
  18357. withval="$with_fpm_port"
  18358. fi;
  18359. # Check whether --with-fpm-conf or --without-fpm-conf was given.
  18360. if test "${with_fpm_conf+set}" = set; then
  18361. withval="$with_fpm_conf"
  18362. fi;
  18363. # Check whether --with-fpm-init or --without-fpm-init was given.
  18364. if test "${with_fpm_init+set}" = set; then
  18365. withval="$with_fpm_init"
  18366. fi;
  18367. # Check whether --with-fpm-log or --without-fpm-log was given.
  18368. if test "${with_fpm_log+set}" = set; then
  18369. withval="$with_fpm_log"
  18370. fi;
  18371. # Check whether --with-fpm-pid or --without-fpm-pid was given.
  18372. if test "${with_fpm_pid+set}" = set; then
  18373. withval="$with_fpm_pid"
  18374. fi;
  18375. # Check whether --with-fpm-user or --without-fpm-user was given.
  18376. if test "${with_fpm_user+set}" = set; then
  18377. withval="$with_fpm_user"
  18378. fi;
  18379. # Check whether --with-fpm-group or --without-fpm-group was given.
  18380. if test "${with_fpm_group+set}" = set; then
  18381. withval="$with_fpm_group"
  18382. fi;
  18383. fpm_prefix=$ac_default_prefix
  18384. if test $prefix != "NONE" -a $prefix != "" -a $prefix != "no" ; then
  18385. fpm_prefix=$prefix
  18386. else
  18387. prefix=$fpm_prefix
  18388. fi
  18389. if test $exec_prefix = "NONE" -o $exec_prefix = "" -o $exec_prefix = "no" ; then
  18390. exec_prefix=$fpm_prefix
  18391. fi
  18392. if test `echo "$bindir" | grep "exec_prefix"` ; then
  18393. bindir=$exec_prefix/bin
  18394. fi
  18395. fpm_bin_prefix=$fpm_prefix/bin
  18396. if test $bindir != "NONE" -a $bindir != "" -a $bindir != "no" ; then
  18397. fpm_bin_prefix=$bindir
  18398. fi
  18399. if test -z "$PHP_FPM_BIN" -o "$PHP_FPM_BIN" = "yes" -o "$PHP_FPM_BIN" = "no"; then
  18400. php_fpm_bin_path="$fpm_bin_prefix/php-fpm"
  18401. else
  18402. php_fpm_bin_path="$PHP_FPM_BIN"
  18403. fi
  18404. php_fpm_bin=`basename $php_fpm_bin_path`
  18405. php_fpm_bin_dir=`dirname $php_fpm_bin_path`
  18406. if test -z "$with_fpm_port" -o "$with_fpm_port" = "yes" -o "$with_fpm_port" = "no"; then
  18407. php_fpm_port="9000"
  18408. else
  18409. php_fpm_port="$with_fpm_port"
  18410. fi
  18411. if test -z "$with_fpm_conf" -o "$with_fpm_conf" = "yes"; then
  18412. case $host_os in
  18413. freebsd*|dragonfly*) php_fpm_conf_path="/usr/local/etc/php-fpm.conf" ;;
  18414. *) php_fpm_conf_path="/etc/php-fpm.conf" ;;
  18415. esac
  18416. elif test "$with_fpm_conf" = "no"; then
  18417. php_fpm_conf_path=""
  18418. else
  18419. php_fpm_conf_path="$with_fpm_conf"
  18420. fi
  18421. if test -z "$php_fpm_conf_path"; then
  18422. php_fpm_conf=""
  18423. php_fpm_conf_dir=""
  18424. else
  18425. php_fpm_conf=`basename $php_fpm_conf_path`
  18426. php_fpm_conf_dir=`dirname $php_fpm_conf_path`
  18427. fi
  18428. if test -z "$with_fpm_init" -o "$with_fpm_init" = "yes"; then
  18429. case $host_os in
  18430. openbsd*) php_fpm_init_path="" ;;
  18431. netbsd*) php_fpm_init_path="/etc/rc.d/php-fpm" ;;
  18432. *bsd*|dragonfly*) php_fpm_init_path="/usr/local/etc/rc.d/php-fpm" ;;
  18433. *) php_fpm_init_path="/etc/init.d/php-fpm" ;;
  18434. esac
  18435. test -f /etc/arch-release && php_fpm_init_path="/etc/rc.d/php-fpm" # arch linux
  18436. elif test "$with_fpm_init" = "no"; then
  18437. php_fpm_init_path=""
  18438. else
  18439. php_fpm_init_path="$with_fpm_init"
  18440. fi
  18441. if test -z "$php_fpm_init_path"; then
  18442. php_fpm_init=""
  18443. php_fpm_init_dir=""
  18444. else
  18445. php_fpm_init=`basename $php_fpm_init_path`
  18446. php_fpm_init_dir=`dirname $php_fpm_init_path`
  18447. fi
  18448. if test -z "$with_fpm_log" -o "$with_fpm_log" = "yes" -o "$with_fpm_log" = "no"; then
  18449. php_fpm_log_path="/var/log/php-fpm.log"
  18450. else
  18451. php_fpm_log_path="$with_fpm_log"
  18452. fi
  18453. php_fpm_log_dir=`dirname $php_fpm_log_path`
  18454. if test -z "$with_fpm_pid" -o "$with_fpm_pid" = "yes" -o "$with_fpm_pid" = "no"; then
  18455. php_fpm_pid_path="/var/run/php-fpm.pid"
  18456. else
  18457. php_fpm_pid_path="$with_fpm_pid"
  18458. fi
  18459. php_fpm_pid_dir=`dirname $php_fpm_pid_path`
  18460. if test -z "$with_fpm_user" -o "$with_fpm_user" = "yes" -o "$with_fpm_user" = "no"; then
  18461. php_fpm_user="nobody"
  18462. else
  18463. php_fpm_user="$with_fpm_user"
  18464. fi
  18465. if test -z "$with_fpm_group" -o "$with_fpm_group" = "yes" -o "$with_fpm_group" = "no"; then
  18466. php_fpm_group="nobody"
  18467. else
  18468. php_fpm_group="$with_fpm_group"
  18469. fi
  18470. # Check whether --with-php-src or --without-php-src was given.
  18471. if test "${with_php_src+set}" = set; then
  18472. withval="$with_php_src"
  18473. fi;
  18474. # Check whether --with-php-build or --without-php-build was given.
  18475. if test "${with_php_build+set}" = set; then
  18476. withval="$with_php_build"
  18477. fi;
  18478. echo "$as_me:$LINENO: checking for php configuration" >&5
  18479. echo $ECHO_N "checking for php configuration... $ECHO_C" >&6
  18480. if test -z "$with_php_src" -o "$with_php_src" = "no" -o "$with_php_src" = "yes" ; then
  18481. { { echo "$as_me:$LINENO: error: Please specify full path to php source dir: --with-php=DIR" >&5
  18482. echo "$as_me: error: Please specify full path to php source dir: --with-php=DIR" >&2;}
  18483. { (exit 1); exit 1; }; }
  18484. else
  18485. PHP_SRCDIR="`cd $with_php_src; pwd`"
  18486. fi
  18487. if test ! -f $PHP_SRCDIR/main/php.h ; then
  18488. { { echo "$as_me:$LINENO: error: No php sources found in php source dir" >&5
  18489. echo "$as_me: error: No php sources found in php source dir" >&2;}
  18490. { (exit 1); exit 1; }; }
  18491. fi
  18492. if test -z "$with_php_build" -o "$with_php_build" = "no" -o "$with_php_build" = "yes" ; then
  18493. PHP_BUILDDIR="$PHP_SRCDIR"
  18494. else
  18495. PHP_BUILDDIR="`cd $with_php_build; pwd`"
  18496. fi
  18497. if test ! -f $PHP_BUILDDIR/Makefile ; then
  18498. { { echo "$as_me:$LINENO: error: No Makefile found in php build dir. Did you run configure ?" >&5
  18499. echo "$as_me: error: No Makefile found in php build dir. Did you run configure ?" >&2;}
  18500. { (exit 1); exit 1; }; }
  18501. { { echo "$as_me:$LINENO: error: Use command: cd $php_src_dir && ./configure && make" >&5
  18502. echo "$as_me: error: Use command: cd $php_src_dir && ./configure && make" >&2;}
  18503. { (exit 1); exit 1; }; }
  18504. { { echo "$as_me:$LINENO: error: If you have separate php build dir, please specify it --with-php-build=DIR" >&5
  18505. echo "$as_me: error: If you have separate php build dir, please specify it --with-php-build=DIR" >&2;}
  18506. { (exit 1); exit 1; }; }
  18507. fi
  18508. PHP_GLOBAL_OBJS=`grep "^PHP_GLOBAL_OBJS =" $PHP_BUILDDIR/Makefile | sed -e 's,.*= ,,'`
  18509. PHP_EXTRA_LIBS=`grep "^EXTRA_LIBS =" $PHP_BUILDDIR/Makefile | sed -e 's,.*= ,,'`
  18510. PHP_VERSION=`grep "^PHP_VERSION =" $PHP_BUILDDIR/Makefile | sed -e 's,.*= ,,'`
  18511. PHP_SAPI=`grep "^PHP_SAPI =" $PHP_BUILDDIR/Makefile | sed -e 's,.*= ,,'`
  18512. if test -z "$PHP_GLOBAL_OBJS" ; then
  18513. { { echo "$as_me:$LINENO: error: Cannot find expected makefile variables" >&5
  18514. echo "$as_me: error: Cannot find expected makefile variables" >&2;}
  18515. { (exit 1); exit 1; }; }
  18516. fi
  18517. echo "$as_me:$LINENO: result: $PHP_VERSION" >&5
  18518. echo "${ECHO_T}$PHP_VERSION" >&6
  18519. # sanity check
  18520. if test "$PHP_SAPI" != "cgi" ; then
  18521. { echo "$as_me:$LINENO: WARNING: PHP was built as sapi \"$PHP_SAPI\". Its recommended to buid php without any sapi-related switches." >&5
  18522. echo "$as_me: WARNING: PHP was built as sapi \"$PHP_SAPI\". Its recommended to buid php without any sapi-related switches." >&2;}
  18523. fi
  18524. PHP_OBJS="$PHP_GLOBAL_OBJS main/internal_functions.lo"
  18525. echo "$as_me:$LINENO: result: checking for XML configuration" >&5
  18526. echo "${ECHO_T}checking for XML configuration" >&6
  18527. # Check whether --with-xml-config or --without-xml-config was given.
  18528. if test "${with_xml_config+set}" = set; then
  18529. withval="$with_xml_config"
  18530. XMLCONFIG="$withval"
  18531. else
  18532. for ac_prog in xml2-config xml-config
  18533. do
  18534. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18535. set dummy $ac_prog; ac_word=$2
  18536. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18537. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18538. if test "${ac_cv_path_XMLCONFIG+set}" = set; then
  18539. echo $ECHO_N "(cached) $ECHO_C" >&6
  18540. else
  18541. case $XMLCONFIG in
  18542. [\\/]* | ?:[\\/]*)
  18543. ac_cv_path_XMLCONFIG="$XMLCONFIG" # Let the user override the test with a path.
  18544. ;;
  18545. *)
  18546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18547. for as_dir in $PATH
  18548. do
  18549. IFS=$as_save_IFS
  18550. test -z "$as_dir" && as_dir=.
  18551. for ac_exec_ext in '' $ac_executable_extensions; do
  18552. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18553. ac_cv_path_XMLCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18554. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18555. break 2
  18556. fi
  18557. done
  18558. done
  18559. ;;
  18560. esac
  18561. fi
  18562. XMLCONFIG=$ac_cv_path_XMLCONFIG
  18563. if test -n "$XMLCONFIG"; then
  18564. echo "$as_me:$LINENO: result: $XMLCONFIG" >&5
  18565. echo "${ECHO_T}$XMLCONFIG" >&6
  18566. else
  18567. echo "$as_me:$LINENO: result: no" >&5
  18568. echo "${ECHO_T}no" >&6
  18569. fi
  18570. test -n "$XMLCONFIG" && break
  18571. done
  18572. test -n "$XMLCONFIG" || XMLCONFIG=""""
  18573. fi;
  18574. if test "x$XMLCONFIG" = "x"; then
  18575. { { echo "$as_me:$LINENO: error: XML configuration could not be found" >&5
  18576. echo "$as_me: error: XML configuration could not be found" >&2;}
  18577. { (exit 1); exit 1; }; }
  18578. else
  18579. echo "$as_me:$LINENO: checking for libxml library" >&5
  18580. echo $ECHO_N "checking for libxml library... $ECHO_C" >&6
  18581. if test ! -x "$XMLCONFIG"; then
  18582. { { echo "$as_me:$LINENO: error: $XMLCONFIG cannot be executed" >&5
  18583. echo "$as_me: error: $XMLCONFIG cannot be executed" >&2;}
  18584. { (exit 1); exit 1; }; }
  18585. fi
  18586. LIBXML_LIBS="`$XMLCONFIG --libs`"
  18587. LIBXML_CFLAGS="`$XMLCONFIG --cflags`"
  18588. LIBXML_VERSION="`$XMLCONFIG --version`"
  18589. echo "$as_me:$LINENO: result: yes, $LIBXML_VERSION" >&5
  18590. echo "${ECHO_T}yes, $LIBXML_VERSION" >&6
  18591. SAVED_CFLAGS="$CFLAGS"
  18592. CFLAGS="$CFLAGS $LIBXML_CFLAGS"
  18593. SAVED_LIBS="$LIBS"
  18594. LIBS="$LIBS $LIBXML_LIBS"
  18595. echo "$as_me:$LINENO: checking for xmlParseFile" >&5
  18596. echo $ECHO_N "checking for xmlParseFile... $ECHO_C" >&6
  18597. if test "${ac_cv_func_xmlParseFile+set}" = set; then
  18598. echo $ECHO_N "(cached) $ECHO_C" >&6
  18599. else
  18600. cat >conftest.$ac_ext <<_ACEOF
  18601. /* confdefs.h. */
  18602. _ACEOF
  18603. cat confdefs.h >>conftest.$ac_ext
  18604. cat >>conftest.$ac_ext <<_ACEOF
  18605. /* end confdefs.h. */
  18606. /* Define xmlParseFile to an innocuous variant, in case <limits.h> declares xmlParseFile.
  18607. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18608. #define xmlParseFile innocuous_xmlParseFile
  18609. /* System header to define __stub macros and hopefully few prototypes,
  18610. which can conflict with char xmlParseFile (); below.
  18611. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18612. <limits.h> exists even on freestanding compilers. */
  18613. #ifdef __STDC__
  18614. # include <limits.h>
  18615. #else
  18616. # include <assert.h>
  18617. #endif
  18618. #undef xmlParseFile
  18619. /* Override any gcc2 internal prototype to avoid an error. */
  18620. #ifdef __cplusplus
  18621. extern "C"
  18622. {
  18623. #endif
  18624. /* We use char because int might match the return type of a gcc2
  18625. builtin and then its argument prototype would still apply. */
  18626. char xmlParseFile ();
  18627. /* The GNU C library defines this for functions which it implements
  18628. to always fail with ENOSYS. Some functions are actually named
  18629. something starting with __ and the normal name is an alias. */
  18630. #if defined (__stub_xmlParseFile) || defined (__stub___xmlParseFile)
  18631. choke me
  18632. #else
  18633. char (*f) () = xmlParseFile;
  18634. #endif
  18635. #ifdef __cplusplus
  18636. }
  18637. #endif
  18638. int
  18639. main ()
  18640. {
  18641. return f != xmlParseFile;
  18642. ;
  18643. return 0;
  18644. }
  18645. _ACEOF
  18646. rm -f conftest.$ac_objext conftest$ac_exeext
  18647. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18648. (eval $ac_link) 2>conftest.er1
  18649. ac_status=$?
  18650. grep -v '^ *+' conftest.er1 >conftest.err
  18651. rm -f conftest.er1
  18652. cat conftest.err >&5
  18653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18654. (exit $ac_status); } &&
  18655. { ac_try='test -z "$ac_c_werror_flag"
  18656. || test ! -s conftest.err'
  18657. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18658. (eval $ac_try) 2>&5
  18659. ac_status=$?
  18660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18661. (exit $ac_status); }; } &&
  18662. { ac_try='test -s conftest$ac_exeext'
  18663. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18664. (eval $ac_try) 2>&5
  18665. ac_status=$?
  18666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18667. (exit $ac_status); }; }; then
  18668. ac_cv_func_xmlParseFile=yes
  18669. else
  18670. echo "$as_me: failed program was:" >&5
  18671. sed 's/^/| /' conftest.$ac_ext >&5
  18672. ac_cv_func_xmlParseFile=no
  18673. fi
  18674. rm -f conftest.err conftest.$ac_objext \
  18675. conftest$ac_exeext conftest.$ac_ext
  18676. fi
  18677. echo "$as_me:$LINENO: result: $ac_cv_func_xmlParseFile" >&5
  18678. echo "${ECHO_T}$ac_cv_func_xmlParseFile" >&6
  18679. if test $ac_cv_func_xmlParseFile = yes; then
  18680. :
  18681. else
  18682. { { echo "$as_me:$LINENO: error: Failed to link with libxml" >&5
  18683. echo "$as_me: error: Failed to link with libxml" >&2;}
  18684. { (exit 1); exit 1; }; }
  18685. fi
  18686. CFLAGS="$SAVED_CFLAGS"
  18687. LIBS="$SAVED_LIBS"
  18688. cat >>confdefs.h <<\_ACEOF
  18689. #define HAVE_LIBXML 1
  18690. _ACEOF
  18691. fi
  18692. echo "$as_me:$LINENO: checking for prctl" >&5
  18693. echo $ECHO_N "checking for prctl... $ECHO_C" >&6
  18694. cat >conftest.$ac_ext <<_ACEOF
  18695. /* confdefs.h. */
  18696. _ACEOF
  18697. cat confdefs.h >>conftest.$ac_ext
  18698. cat >>conftest.$ac_ext <<_ACEOF
  18699. /* end confdefs.h. */
  18700. #include <sys/prctl.h>
  18701. int
  18702. main ()
  18703. {
  18704. prctl(0, 0, 0, 0, 0);
  18705. ;
  18706. return 0;
  18707. }
  18708. _ACEOF
  18709. rm -f conftest.$ac_objext
  18710. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18711. (eval $ac_compile) 2>conftest.er1
  18712. ac_status=$?
  18713. grep -v '^ *+' conftest.er1 >conftest.err
  18714. rm -f conftest.er1
  18715. cat conftest.err >&5
  18716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18717. (exit $ac_status); } &&
  18718. { ac_try='test -z "$ac_c_werror_flag"
  18719. || test ! -s conftest.err'
  18720. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18721. (eval $ac_try) 2>&5
  18722. ac_status=$?
  18723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18724. (exit $ac_status); }; } &&
  18725. { ac_try='test -s conftest.$ac_objext'
  18726. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18727. (eval $ac_try) 2>&5
  18728. ac_status=$?
  18729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18730. (exit $ac_status); }; }; then
  18731. cat >>confdefs.h <<\_ACEOF
  18732. #define HAVE_PRCTL 1
  18733. _ACEOF
  18734. echo "$as_me:$LINENO: result: yes" >&5
  18735. echo "${ECHO_T}yes" >&6
  18736. else
  18737. echo "$as_me: failed program was:" >&5
  18738. sed 's/^/| /' conftest.$ac_ext >&5
  18739. echo "$as_me:$LINENO: result: no" >&5
  18740. echo "${ECHO_T}no" >&6
  18741. fi
  18742. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18743. have_clock_gettime=no
  18744. echo "$as_me:$LINENO: checking for clock_gettime" >&5
  18745. echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6
  18746. cat >conftest.$ac_ext <<_ACEOF
  18747. /* confdefs.h. */
  18748. _ACEOF
  18749. cat confdefs.h >>conftest.$ac_ext
  18750. cat >>conftest.$ac_ext <<_ACEOF
  18751. /* end confdefs.h. */
  18752. #include <time.h>
  18753. int
  18754. main ()
  18755. {
  18756. struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts);
  18757. ;
  18758. return 0;
  18759. }
  18760. _ACEOF
  18761. rm -f conftest.$ac_objext conftest$ac_exeext
  18762. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18763. (eval $ac_link) 2>conftest.er1
  18764. ac_status=$?
  18765. grep -v '^ *+' conftest.er1 >conftest.err
  18766. rm -f conftest.er1
  18767. cat conftest.err >&5
  18768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18769. (exit $ac_status); } &&
  18770. { ac_try='test -z "$ac_c_werror_flag"
  18771. || test ! -s conftest.err'
  18772. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18773. (eval $ac_try) 2>&5
  18774. ac_status=$?
  18775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18776. (exit $ac_status); }; } &&
  18777. { ac_try='test -s conftest$ac_exeext'
  18778. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18779. (eval $ac_try) 2>&5
  18780. ac_status=$?
  18781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18782. (exit $ac_status); }; }; then
  18783. have_clock_gettime=yes
  18784. echo "$as_me:$LINENO: result: yes" >&5
  18785. echo "${ECHO_T}yes" >&6
  18786. else
  18787. echo "$as_me: failed program was:" >&5
  18788. sed 's/^/| /' conftest.$ac_ext >&5
  18789. echo "$as_me:$LINENO: result: no" >&5
  18790. echo "${ECHO_T}no" >&6
  18791. fi
  18792. rm -f conftest.err conftest.$ac_objext \
  18793. conftest$ac_exeext conftest.$ac_ext
  18794. if test "$have_clock_gettime" = "no"; then
  18795. echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
  18796. echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
  18797. SAVED_LIBS="$LIBS"
  18798. LIBS="$LIBS -lrt"
  18799. cat >conftest.$ac_ext <<_ACEOF
  18800. /* confdefs.h. */
  18801. _ACEOF
  18802. cat confdefs.h >>conftest.$ac_ext
  18803. cat >>conftest.$ac_ext <<_ACEOF
  18804. /* end confdefs.h. */
  18805. #include <time.h>
  18806. int
  18807. main ()
  18808. {
  18809. struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts);
  18810. ;
  18811. return 0;
  18812. }
  18813. _ACEOF
  18814. rm -f conftest.$ac_objext conftest$ac_exeext
  18815. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18816. (eval $ac_link) 2>conftest.er1
  18817. ac_status=$?
  18818. grep -v '^ *+' conftest.er1 >conftest.err
  18819. rm -f conftest.er1
  18820. cat conftest.err >&5
  18821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18822. (exit $ac_status); } &&
  18823. { ac_try='test -z "$ac_c_werror_flag"
  18824. || test ! -s conftest.err'
  18825. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18826. (eval $ac_try) 2>&5
  18827. ac_status=$?
  18828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18829. (exit $ac_status); }; } &&
  18830. { ac_try='test -s conftest$ac_exeext'
  18831. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18832. (eval $ac_try) 2>&5
  18833. ac_status=$?
  18834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18835. (exit $ac_status); }; }; then
  18836. have_clock_gettime=yes
  18837. echo "$as_me:$LINENO: result: yes" >&5
  18838. echo "${ECHO_T}yes" >&6
  18839. else
  18840. echo "$as_me: failed program was:" >&5
  18841. sed 's/^/| /' conftest.$ac_ext >&5
  18842. LIBS="$SAVED_LIBS"
  18843. echo "$as_me:$LINENO: result: no" >&5
  18844. echo "${ECHO_T}no" >&6
  18845. fi
  18846. rm -f conftest.err conftest.$ac_objext \
  18847. conftest$ac_exeext conftest.$ac_ext
  18848. fi
  18849. if test "$have_clock_gettime" = "yes"; then
  18850. cat >>confdefs.h <<\_ACEOF
  18851. #define HAVE_CLOCK_GETTIME 1
  18852. _ACEOF
  18853. fi
  18854. have_clock_get_time=no
  18855. if test "$have_clock_gettime" = "no"; then
  18856. echo "$as_me:$LINENO: checking for clock_get_time" >&5
  18857. echo $ECHO_N "checking for clock_get_time... $ECHO_C" >&6
  18858. if test "$cross_compiling" = yes; then
  18859. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  18860. See \`config.log' for more details." >&5
  18861. echo "$as_me: error: cannot run test program while cross compiling
  18862. See \`config.log' for more details." >&2;}
  18863. { (exit 1); exit 1; }; }
  18864. else
  18865. cat >conftest.$ac_ext <<_ACEOF
  18866. /* confdefs.h. */
  18867. _ACEOF
  18868. cat confdefs.h >>conftest.$ac_ext
  18869. cat >>conftest.$ac_ext <<_ACEOF
  18870. /* end confdefs.h. */
  18871. #include <mach/mach.h>
  18872. #include <mach/clock.h>
  18873. #include <mach/mach_error.h>
  18874. int main()
  18875. {
  18876. kern_return_t ret; clock_serv_t aClock; mach_timespec_t aTime;
  18877. ret = host_get_clock_service(mach_host_self(), REALTIME_CLOCK, &aClock);
  18878. if (ret != KERN_SUCCESS) {
  18879. return 1;
  18880. }
  18881. ret = clock_get_time(aClock, &aTime);
  18882. if (ret != KERN_SUCCESS) {
  18883. return 2;
  18884. }
  18885. return 0;
  18886. }
  18887. _ACEOF
  18888. rm -f conftest$ac_exeext
  18889. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18890. (eval $ac_link) 2>&5
  18891. ac_status=$?
  18892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18893. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18895. (eval $ac_try) 2>&5
  18896. ac_status=$?
  18897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18898. (exit $ac_status); }; }; then
  18899. have_clock_get_time=yes
  18900. echo "$as_me:$LINENO: result: yes" >&5
  18901. echo "${ECHO_T}yes" >&6
  18902. else
  18903. echo "$as_me: program exited with status $ac_status" >&5
  18904. echo "$as_me: failed program was:" >&5
  18905. sed 's/^/| /' conftest.$ac_ext >&5
  18906. ( exit $ac_status )
  18907. echo "$as_me:$LINENO: result: no" >&5
  18908. echo "${ECHO_T}no" >&6
  18909. fi
  18910. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18911. fi
  18912. fi
  18913. if test "$have_clock_get_time" = "yes"; then
  18914. cat >>confdefs.h <<\_ACEOF
  18915. #define HAVE_CLOCK_GET_TIME 1
  18916. _ACEOF
  18917. fi
  18918. have_ptrace=no
  18919. have_broken_ptrace=no
  18920. echo "$as_me:$LINENO: checking for ptrace" >&5
  18921. echo $ECHO_N "checking for ptrace... $ECHO_C" >&6
  18922. cat >conftest.$ac_ext <<_ACEOF
  18923. /* confdefs.h. */
  18924. _ACEOF
  18925. cat confdefs.h >>conftest.$ac_ext
  18926. cat >>conftest.$ac_ext <<_ACEOF
  18927. /* end confdefs.h. */
  18928. #include <sys/types.h>
  18929. #include <sys/ptrace.h>
  18930. int
  18931. main ()
  18932. {
  18933. ptrace(0, 0, (void *) 0, 0);
  18934. ;
  18935. return 0;
  18936. }
  18937. _ACEOF
  18938. rm -f conftest.$ac_objext
  18939. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18940. (eval $ac_compile) 2>conftest.er1
  18941. ac_status=$?
  18942. grep -v '^ *+' conftest.er1 >conftest.err
  18943. rm -f conftest.er1
  18944. cat conftest.err >&5
  18945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18946. (exit $ac_status); } &&
  18947. { ac_try='test -z "$ac_c_werror_flag"
  18948. || test ! -s conftest.err'
  18949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18950. (eval $ac_try) 2>&5
  18951. ac_status=$?
  18952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18953. (exit $ac_status); }; } &&
  18954. { ac_try='test -s conftest.$ac_objext'
  18955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18956. (eval $ac_try) 2>&5
  18957. ac_status=$?
  18958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18959. (exit $ac_status); }; }; then
  18960. have_ptrace=yes
  18961. echo "$as_me:$LINENO: result: yes" >&5
  18962. echo "${ECHO_T}yes" >&6
  18963. else
  18964. echo "$as_me: failed program was:" >&5
  18965. sed 's/^/| /' conftest.$ac_ext >&5
  18966. echo "$as_me:$LINENO: result: no" >&5
  18967. echo "${ECHO_T}no" >&6
  18968. fi
  18969. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18970. if test "$have_ptrace" = "yes"; then
  18971. echo "$as_me:$LINENO: checking whether ptrace works" >&5
  18972. echo $ECHO_N "checking whether ptrace works... $ECHO_C" >&6
  18973. if test "$cross_compiling" = yes; then
  18974. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  18975. See \`config.log' for more details." >&5
  18976. echo "$as_me: error: cannot run test program while cross compiling
  18977. See \`config.log' for more details." >&2;}
  18978. { (exit 1); exit 1; }; }
  18979. else
  18980. cat >conftest.$ac_ext <<_ACEOF
  18981. /* confdefs.h. */
  18982. _ACEOF
  18983. cat confdefs.h >>conftest.$ac_ext
  18984. cat >>conftest.$ac_ext <<_ACEOF
  18985. /* end confdefs.h. */
  18986. #include <unistd.h>
  18987. #include <signal.h>
  18988. #include <sys/wait.h>
  18989. #include <sys/types.h>
  18990. #include <sys/ptrace.h>
  18991. #include <errno.h>
  18992. #if !defined(PTRACE_ATTACH) && defined(PT_ATTACH)
  18993. #define PTRACE_ATTACH PT_ATTACH
  18994. #endif
  18995. #if !defined(PTRACE_DETACH) && defined(PT_DETACH)
  18996. #define PTRACE_DETACH PT_DETACH
  18997. #endif
  18998. #if !defined(PTRACE_PEEKDATA) && defined(PT_READ_D)
  18999. #define PTRACE_PEEKDATA PT_READ_D
  19000. #endif
  19001. int main()
  19002. {
  19003. long v1 = (unsigned int) -1; /* copy will fail if sizeof(long) == 8 and we've got "int ptrace()" */
  19004. long v2;
  19005. pid_t child;
  19006. int status;
  19007. if ( (child = fork()) ) { /* parent */
  19008. int ret = 0;
  19009. if (0 > ptrace(PTRACE_ATTACH, child, 0, 0)) {
  19010. return 1;
  19011. }
  19012. waitpid(child, &status, 0);
  19013. #ifdef PT_IO
  19014. struct ptrace_io_desc ptio = {
  19015. .piod_op = PIOD_READ_D,
  19016. .piod_offs = &v1,
  19017. .piod_addr = &v2,
  19018. .piod_len = sizeof(v1)
  19019. };
  19020. if (0 > ptrace(PT_IO, child, (void *) &ptio, 0)) {
  19021. ret = 1;
  19022. }
  19023. #else
  19024. errno = 0;
  19025. v2 = ptrace(PTRACE_PEEKDATA, child, (void *) &v1, 0);
  19026. if (errno) {
  19027. ret = 1;
  19028. }
  19029. #endif
  19030. ptrace(PTRACE_DETACH, child, (void *) 1, 0);
  19031. kill(child, SIGKILL);
  19032. return ret ? ret : (v1 != v2);
  19033. }
  19034. else { /* child */
  19035. sleep(10);
  19036. return 0;
  19037. }
  19038. }
  19039. _ACEOF
  19040. rm -f conftest$ac_exeext
  19041. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19042. (eval $ac_link) 2>&5
  19043. ac_status=$?
  19044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19045. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19047. (eval $ac_try) 2>&5
  19048. ac_status=$?
  19049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19050. (exit $ac_status); }; }; then
  19051. echo "$as_me:$LINENO: result: yes" >&5
  19052. echo "${ECHO_T}yes" >&6
  19053. else
  19054. echo "$as_me: program exited with status $ac_status" >&5
  19055. echo "$as_me: failed program was:" >&5
  19056. sed 's/^/| /' conftest.$ac_ext >&5
  19057. ( exit $ac_status )
  19058. have_ptrace=no
  19059. have_broken_ptrace=yes
  19060. echo "$as_me:$LINENO: result: no" >&5
  19061. echo "${ECHO_T}no" >&6
  19062. fi
  19063. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19064. fi
  19065. fi
  19066. if test "$have_ptrace" = "yes"; then
  19067. cat >>confdefs.h <<\_ACEOF
  19068. #define HAVE_PTRACE 1
  19069. _ACEOF
  19070. fi
  19071. have_mach_vm_read=no
  19072. if test "$have_broken_ptrace" = "yes"; then
  19073. echo "$as_me:$LINENO: checking for mach_vm_read" >&5
  19074. echo $ECHO_N "checking for mach_vm_read... $ECHO_C" >&6
  19075. cat >conftest.$ac_ext <<_ACEOF
  19076. /* confdefs.h. */
  19077. _ACEOF
  19078. cat confdefs.h >>conftest.$ac_ext
  19079. cat >>conftest.$ac_ext <<_ACEOF
  19080. /* end confdefs.h. */
  19081. #include <mach/mach.h>
  19082. #include <mach/mach_vm.h>
  19083. int
  19084. main ()
  19085. {
  19086. mach_vm_read((vm_map_t)0, (mach_vm_address_t)0, (mach_vm_size_t)0, (vm_offset_t *)0, (mach_msg_type_number_t*)0);
  19087. ;
  19088. return 0;
  19089. }
  19090. _ACEOF
  19091. rm -f conftest.$ac_objext
  19092. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19093. (eval $ac_compile) 2>conftest.er1
  19094. ac_status=$?
  19095. grep -v '^ *+' conftest.er1 >conftest.err
  19096. rm -f conftest.er1
  19097. cat conftest.err >&5
  19098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19099. (exit $ac_status); } &&
  19100. { ac_try='test -z "$ac_c_werror_flag"
  19101. || test ! -s conftest.err'
  19102. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19103. (eval $ac_try) 2>&5
  19104. ac_status=$?
  19105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19106. (exit $ac_status); }; } &&
  19107. { ac_try='test -s conftest.$ac_objext'
  19108. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19109. (eval $ac_try) 2>&5
  19110. ac_status=$?
  19111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19112. (exit $ac_status); }; }; then
  19113. have_mach_vm_read=yes
  19114. echo "$as_me:$LINENO: result: yes" >&5
  19115. echo "${ECHO_T}yes" >&6
  19116. else
  19117. echo "$as_me: failed program was:" >&5
  19118. sed 's/^/| /' conftest.$ac_ext >&5
  19119. echo "$as_me:$LINENO: result: no" >&5
  19120. echo "${ECHO_T}no" >&6
  19121. fi
  19122. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19123. fi
  19124. if test "$have_mach_vm_read" = "yes"; then
  19125. cat >>confdefs.h <<\_ACEOF
  19126. #define HAVE_MACH_VM_READ 1
  19127. _ACEOF
  19128. fi
  19129. proc_mem_file=""
  19130. if test -r /proc/$$/mem ; then
  19131. proc_mem_file="mem"
  19132. else
  19133. if test -r /proc/$$/as ; then
  19134. proc_mem_file="as"
  19135. fi
  19136. fi
  19137. if test -n "$proc_mem_file" ; then
  19138. echo "$as_me:$LINENO: checking for proc mem file" >&5
  19139. echo $ECHO_N "checking for proc mem file... $ECHO_C" >&6
  19140. if test "$cross_compiling" = yes; then
  19141. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  19142. See \`config.log' for more details." >&5
  19143. echo "$as_me: error: cannot run test program while cross compiling
  19144. See \`config.log' for more details." >&2;}
  19145. { (exit 1); exit 1; }; }
  19146. else
  19147. cat >conftest.$ac_ext <<_ACEOF
  19148. /* confdefs.h. */
  19149. _ACEOF
  19150. cat confdefs.h >>conftest.$ac_ext
  19151. cat >>conftest.$ac_ext <<_ACEOF
  19152. /* end confdefs.h. */
  19153. #define _GNU_SOURCE
  19154. #define _FILE_OFFSET_BITS 64
  19155. #if HAVE_INTTYPES_H
  19156. #include <inttypes.h>
  19157. #else
  19158. #include <stdint.h>
  19159. #endif
  19160. #include <unistd.h>
  19161. #include <sys/types.h>
  19162. #include <sys/stat.h>
  19163. #include <fcntl.h>
  19164. #include <stdio.h>
  19165. int main()
  19166. {
  19167. long v1 = (unsigned int) -1, v2 = 0;
  19168. char buf[128];
  19169. int fd;
  19170. sprintf(buf, "/proc/%d/$proc_mem_file", getpid());
  19171. fd = open(buf, O_RDONLY);
  19172. if (0 > fd) {
  19173. return 1;
  19174. }
  19175. if (sizeof(long) != pread(fd, &v2, sizeof(long), (uintptr_t) &v1)) {
  19176. close(fd);
  19177. return 1;
  19178. }
  19179. close(fd);
  19180. return v1 != v2;
  19181. }
  19182. _ACEOF
  19183. rm -f conftest$ac_exeext
  19184. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19185. (eval $ac_link) 2>&5
  19186. ac_status=$?
  19187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19188. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19189. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19190. (eval $ac_try) 2>&5
  19191. ac_status=$?
  19192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19193. (exit $ac_status); }; }; then
  19194. echo "$as_me:$LINENO: result: $proc_mem_file" >&5
  19195. echo "${ECHO_T}$proc_mem_file" >&6
  19196. else
  19197. echo "$as_me: program exited with status $ac_status" >&5
  19198. echo "$as_me: failed program was:" >&5
  19199. sed 's/^/| /' conftest.$ac_ext >&5
  19200. ( exit $ac_status )
  19201. proc_mem_file=""
  19202. echo "$as_me:$LINENO: result: no" >&5
  19203. echo "${ECHO_T}no" >&6
  19204. fi
  19205. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19206. fi
  19207. fi
  19208. if test -n "$proc_mem_file"; then
  19209. cat >>confdefs.h <<_ACEOF
  19210. #define PROC_MEM_FILE "$proc_mem_file"
  19211. _ACEOF
  19212. fi
  19213. use_ptrace=no
  19214. use_pread=no
  19215. use_mach=no
  19216. if test "$have_ptrace" = "yes"; then
  19217. use_ptrace=yes
  19218. elif test -n "$proc_mem_file"; then
  19219. use_pread=yes
  19220. elif test "$have_mach_vm_read" = "yes" ; then
  19221. use_mach=yes
  19222. fi
  19223. if test "x$use_ptrace" = "xyes"; then
  19224. FPM_TRACE_USE_PTRACE_TRUE=
  19225. FPM_TRACE_USE_PTRACE_FALSE='#'
  19226. else
  19227. FPM_TRACE_USE_PTRACE_TRUE='#'
  19228. FPM_TRACE_USE_PTRACE_FALSE=
  19229. fi
  19230. if test "x$use_pread" = "xyes"; then
  19231. FPM_TRACE_USE_PREAD_TRUE=
  19232. FPM_TRACE_USE_PREAD_FALSE='#'
  19233. else
  19234. FPM_TRACE_USE_PREAD_TRUE='#'
  19235. FPM_TRACE_USE_PREAD_FALSE=
  19236. fi
  19237. if test "x$use_mach" = "xyes"; then
  19238. FPM_TRACE_USE_MACH_TRUE=
  19239. FPM_TRACE_USE_MACH_FALSE='#'
  19240. else
  19241. FPM_TRACE_USE_MACH_TRUE='#'
  19242. FPM_TRACE_USE_MACH_FALSE=
  19243. fi
  19244. # Check whether --with-libevent or --without-libevent was given.
  19245. if test "${with_libevent+set}" = set; then
  19246. withval="$with_libevent"
  19247. PHP_LIBEVENT=$withval
  19248. else
  19249. PHP_LIBEVENT=yes
  19250. fi;
  19251. ext_output="yes, shared"
  19252. ext_shared=yes
  19253. case $PHP_LIBEVENT in
  19254. shared,*)
  19255. PHP_LIBEVENT=`echo "$PHP_LIBEVENT"|sed 's/^shared,//'`
  19256. ;;
  19257. shared)
  19258. PHP_LIBEVENT=yes
  19259. ;;
  19260. no)
  19261. ext_output=no
  19262. ext_shared=no
  19263. ;;
  19264. *)
  19265. ext_output=yes
  19266. ext_shared=no
  19267. ;;
  19268. esac
  19269. if test "$PHP_LIBEVENT" != "no"; then
  19270. LIBEVENT_MIN_VERSION=1.4.3
  19271. LIBEVENT_REQ_VERSION=1.4.11
  19272. # Default library search paths ($sys_lib_search_path_spec)
  19273. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  19274. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  19275. library_names_spec=
  19276. libname_spec='lib$name'
  19277. soname_spec=
  19278. shrext_cmds=".so"
  19279. postinstall_cmds=
  19280. postuninstall_cmds=
  19281. finish_cmds=
  19282. finish_eval=
  19283. shlibpath_var=
  19284. shlibpath_overrides_runpath=unknown
  19285. version_type=none
  19286. dynamic_linker="$host_os ld.so"
  19287. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  19288. if test "$GCC" = yes; then
  19289. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  19290. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  19291. # if the path contains ";" then we assume it to be the separator
  19292. # otherwise default to the standard path separator (i.e. ":") - it is
  19293. # assumed that no part of a normal pathname contains ";" but that should
  19294. # okay in the real world where ";" in dirpaths is itself problematic.
  19295. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  19296. else
  19297. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  19298. fi
  19299. else
  19300. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  19301. fi
  19302. need_lib_prefix=unknown
  19303. hardcode_into_libs=no
  19304. # when you set need_version to no, make sure it does not cause -set_version
  19305. # flags to be left without arguments
  19306. need_version=unknown
  19307. case $host_os in
  19308. aix3*)
  19309. version_type=linux
  19310. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  19311. shlibpath_var=LIBPATH
  19312. # AIX 3 has no versioning support, so we append a major version to the name.
  19313. soname_spec='${libname}${release}${shared_ext}$major'
  19314. ;;
  19315. aix4* | aix5*)
  19316. version_type=linux
  19317. need_lib_prefix=no
  19318. need_version=no
  19319. hardcode_into_libs=yes
  19320. if test "$host_cpu" = ia64; then
  19321. # AIX 5 supports IA64
  19322. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  19323. shlibpath_var=LD_LIBRARY_PATH
  19324. else
  19325. # With GCC up to 2.95.x, collect2 would create an import file
  19326. # for dependence libraries. The import file would start with
  19327. # the line `#! .'. This would cause the generated library to
  19328. # depend on `.', always an invalid library. This was fixed in
  19329. # development snapshots of GCC prior to 3.0.
  19330. case $host_os in
  19331. aix4 | aix4.[01] | aix4.[01].*)
  19332. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  19333. echo ' yes '
  19334. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  19335. :
  19336. else
  19337. can_build_shared=no
  19338. fi
  19339. ;;
  19340. esac
  19341. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  19342. # soname into executable. Probably we can add versioning support to
  19343. # collect2, so additional links can be useful in future.
  19344. if test "$aix_use_runtimelinking" = yes; then
  19345. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  19346. # instead of lib<name>.a to let people know that these are not
  19347. # typical AIX shared libraries.
  19348. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19349. else
  19350. # We preserve .a as extension for shared libraries through AIX4.2
  19351. # and later when we are not doing run time linking.
  19352. library_names_spec='${libname}${release}.a $libname.a'
  19353. soname_spec='${libname}${release}${shared_ext}$major'
  19354. fi
  19355. shlibpath_var=LIBPATH
  19356. fi
  19357. ;;
  19358. amigaos*)
  19359. library_names_spec='$libname.ixlibrary $libname.a'
  19360. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  19361. 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'
  19362. ;;
  19363. beos*)
  19364. library_names_spec='${libname}${shared_ext}'
  19365. dynamic_linker="$host_os ld.so"
  19366. shlibpath_var=LIBRARY_PATH
  19367. ;;
  19368. bsdi[45]*)
  19369. version_type=linux
  19370. need_version=no
  19371. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19372. soname_spec='${libname}${release}${shared_ext}$major'
  19373. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  19374. shlibpath_var=LD_LIBRARY_PATH
  19375. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  19376. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  19377. # the default ld.so.conf also contains /usr/contrib/lib and
  19378. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  19379. # libtool to hard-code these into programs
  19380. ;;
  19381. cygwin* | mingw* | pw32*)
  19382. version_type=windows
  19383. shrext_cmds=".dll"
  19384. need_version=no
  19385. need_lib_prefix=no
  19386. case $GCC,$host_os in
  19387. yes,cygwin* | yes,mingw* | yes,pw32*)
  19388. library_names_spec='$libname.dll.a'
  19389. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  19390. postinstall_cmds='base_file=`basename \${file}`~
  19391. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  19392. dldir=$destdir/`dirname \$dlpath`~
  19393. test -d \$dldir || mkdir -p \$dldir~
  19394. $install_prog $dir/$dlname \$dldir/$dlname'
  19395. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  19396. dlpath=$dir/\$dldll~
  19397. $rm \$dlpath'
  19398. shlibpath_overrides_runpath=yes
  19399. case $host_os in
  19400. cygwin*)
  19401. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  19402. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  19403. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  19404. ;;
  19405. mingw*)
  19406. # MinGW DLLs use traditional 'lib' prefix
  19407. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  19408. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  19409. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  19410. # It is most probably a Windows format PATH printed by
  19411. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  19412. # path with ; separators, and with drive letters. We can handle the
  19413. # drive letters (cygwin fileutils understands them), so leave them,
  19414. # especially as we might pass files found there to a mingw objdump,
  19415. # which wouldn't understand a cygwinified path. Ahh.
  19416. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  19417. else
  19418. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  19419. fi
  19420. ;;
  19421. pw32*)
  19422. # pw32 DLLs use 'pw' prefix rather than 'lib'
  19423. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  19424. ;;
  19425. esac
  19426. ;;
  19427. *)
  19428. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  19429. ;;
  19430. esac
  19431. dynamic_linker='Win32 ld.exe'
  19432. # FIXME: first we should search . and the directory the executable is in
  19433. shlibpath_var=PATH
  19434. ;;
  19435. darwin* | rhapsody*)
  19436. dynamic_linker="$host_os dyld"
  19437. version_type=darwin
  19438. need_lib_prefix=no
  19439. need_version=no
  19440. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  19441. soname_spec='${libname}${release}${major}$shared_ext'
  19442. shlibpath_overrides_runpath=yes
  19443. shlibpath_var=DYLD_LIBRARY_PATH
  19444. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  19445. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  19446. if test "$GCC" = yes; then
  19447. 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"`
  19448. else
  19449. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  19450. fi
  19451. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  19452. ;;
  19453. dgux*)
  19454. version_type=linux
  19455. need_lib_prefix=no
  19456. need_version=no
  19457. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  19458. soname_spec='${libname}${release}${shared_ext}$major'
  19459. shlibpath_var=LD_LIBRARY_PATH
  19460. ;;
  19461. freebsd1*)
  19462. dynamic_linker=no
  19463. ;;
  19464. kfreebsd*-gnu)
  19465. version_type=linux
  19466. need_lib_prefix=no
  19467. need_version=no
  19468. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  19469. soname_spec='${libname}${release}${shared_ext}$major'
  19470. shlibpath_var=LD_LIBRARY_PATH
  19471. shlibpath_overrides_runpath=no
  19472. hardcode_into_libs=yes
  19473. dynamic_linker='GNU ld.so'
  19474. ;;
  19475. freebsd* | dragonfly*)
  19476. # DragonFly does not have aout. When/if they implement a new
  19477. # versioning mechanism, adjust this.
  19478. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  19479. version_type=freebsd-$objformat
  19480. case $version_type in
  19481. freebsd-elf*)
  19482. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  19483. need_version=no
  19484. need_lib_prefix=no
  19485. ;;
  19486. freebsd-*)
  19487. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  19488. need_version=yes
  19489. ;;
  19490. esac
  19491. shlibpath_var=LD_LIBRARY_PATH
  19492. case $host_os in
  19493. freebsd2*)
  19494. shlibpath_overrides_runpath=yes
  19495. ;;
  19496. freebsd3.[01]* | freebsdelf3.[01]*)
  19497. shlibpath_overrides_runpath=yes
  19498. hardcode_into_libs=yes
  19499. ;;
  19500. *) # from 3.2 on
  19501. shlibpath_overrides_runpath=no
  19502. hardcode_into_libs=yes
  19503. ;;
  19504. esac
  19505. ;;
  19506. gnu*)
  19507. version_type=linux
  19508. need_lib_prefix=no
  19509. need_version=no
  19510. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  19511. soname_spec='${libname}${release}${shared_ext}$major'
  19512. shlibpath_var=LD_LIBRARY_PATH
  19513. hardcode_into_libs=yes
  19514. ;;
  19515. hpux9* | hpux10* | hpux11*)
  19516. # Give a soname corresponding to the major version so that dld.sl refuses to
  19517. # link against other versions.
  19518. version_type=sunos
  19519. need_lib_prefix=no
  19520. need_version=no
  19521. case "$host_cpu" in
  19522. ia64*)
  19523. shrext_cmds='.so'
  19524. hardcode_into_libs=yes
  19525. dynamic_linker="$host_os dld.so"
  19526. shlibpath_var=LD_LIBRARY_PATH
  19527. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  19528. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19529. soname_spec='${libname}${release}${shared_ext}$major'
  19530. if test "X$HPUX_IA64_MODE" = X32; then
  19531. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  19532. else
  19533. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  19534. fi
  19535. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  19536. ;;
  19537. hppa*64*)
  19538. shrext_cmds='.sl'
  19539. hardcode_into_libs=yes
  19540. dynamic_linker="$host_os dld.sl"
  19541. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  19542. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  19543. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19544. soname_spec='${libname}${release}${shared_ext}$major'
  19545. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  19546. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  19547. ;;
  19548. *)
  19549. shrext_cmds='.sl'
  19550. dynamic_linker="$host_os dld.sl"
  19551. shlibpath_var=SHLIB_PATH
  19552. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  19553. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19554. soname_spec='${libname}${release}${shared_ext}$major'
  19555. ;;
  19556. esac
  19557. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  19558. postinstall_cmds='chmod 555 $lib'
  19559. ;;
  19560. irix5* | irix6* | nonstopux*)
  19561. case $host_os in
  19562. nonstopux*) version_type=nonstopux ;;
  19563. *)
  19564. if test "$lt_cv_prog_gnu_ld" = yes; then
  19565. version_type=linux
  19566. else
  19567. version_type=irix
  19568. fi ;;
  19569. esac
  19570. need_lib_prefix=no
  19571. need_version=no
  19572. soname_spec='${libname}${release}${shared_ext}$major'
  19573. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  19574. case $host_os in
  19575. irix5* | nonstopux*)
  19576. libsuff= shlibsuff=
  19577. ;;
  19578. *)
  19579. case $LD in # libtool.m4 will add one of these switches to LD
  19580. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  19581. libsuff= shlibsuff= libmagic=32-bit;;
  19582. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  19583. libsuff=32 shlibsuff=N32 libmagic=N32;;
  19584. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  19585. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  19586. *) libsuff= shlibsuff= libmagic=never-match;;
  19587. esac
  19588. ;;
  19589. esac
  19590. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  19591. shlibpath_overrides_runpath=no
  19592. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  19593. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  19594. hardcode_into_libs=yes
  19595. ;;
  19596. # No shared lib support for Linux oldld, aout, or coff.
  19597. linux*oldld* | linux*aout* | linux*coff*)
  19598. dynamic_linker=no
  19599. ;;
  19600. # This must be Linux ELF.
  19601. linux*)
  19602. version_type=linux
  19603. need_lib_prefix=no
  19604. need_version=no
  19605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19606. soname_spec='${libname}${release}${shared_ext}$major'
  19607. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  19608. shlibpath_var=LD_LIBRARY_PATH
  19609. shlibpath_overrides_runpath=no
  19610. # This implies no fast_install, which is unacceptable.
  19611. # Some rework will be needed to allow for fast_install
  19612. # before this can be enabled.
  19613. hardcode_into_libs=yes
  19614. # Append ld.so.conf contents to the search path
  19615. if test -f /etc/ld.so.conf; then
  19616. 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  19617. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  19618. fi
  19619. # We used to test for /lib/ld.so.1 and disable shared libraries on
  19620. # powerpc, because MkLinux only supported shared libraries with the
  19621. # GNU dynamic linker. Since this was broken with cross compilers,
  19622. # most powerpc-linux boxes support dynamic linking these days and
  19623. # people can always --disable-shared, the test was removed, and we
  19624. # assume the GNU/Linux dynamic linker is in use.
  19625. dynamic_linker='GNU/Linux ld.so'
  19626. ;;
  19627. knetbsd*-gnu)
  19628. version_type=linux
  19629. need_lib_prefix=no
  19630. need_version=no
  19631. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  19632. soname_spec='${libname}${release}${shared_ext}$major'
  19633. shlibpath_var=LD_LIBRARY_PATH
  19634. shlibpath_overrides_runpath=no
  19635. hardcode_into_libs=yes
  19636. dynamic_linker='GNU ld.so'
  19637. ;;
  19638. netbsd*)
  19639. version_type=sunos
  19640. need_lib_prefix=no
  19641. need_version=no
  19642. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  19643. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  19644. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  19645. dynamic_linker='NetBSD (a.out) ld.so'
  19646. else
  19647. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  19648. soname_spec='${libname}${release}${shared_ext}$major'
  19649. dynamic_linker='NetBSD ld.elf_so'
  19650. fi
  19651. shlibpath_var=LD_LIBRARY_PATH
  19652. shlibpath_overrides_runpath=yes
  19653. hardcode_into_libs=yes
  19654. ;;
  19655. newsos6)
  19656. version_type=linux
  19657. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19658. shlibpath_var=LD_LIBRARY_PATH
  19659. shlibpath_overrides_runpath=yes
  19660. ;;
  19661. nto-qnx*)
  19662. version_type=linux
  19663. need_lib_prefix=no
  19664. need_version=no
  19665. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19666. soname_spec='${libname}${release}${shared_ext}$major'
  19667. shlibpath_var=LD_LIBRARY_PATH
  19668. shlibpath_overrides_runpath=yes
  19669. ;;
  19670. openbsd*)
  19671. version_type=sunos
  19672. need_lib_prefix=no
  19673. need_version=no
  19674. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  19675. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  19676. shlibpath_var=LD_LIBRARY_PATH
  19677. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  19678. case $host_os in
  19679. openbsd2.[89] | openbsd2.[89].*)
  19680. shlibpath_overrides_runpath=no
  19681. ;;
  19682. *)
  19683. shlibpath_overrides_runpath=yes
  19684. ;;
  19685. esac
  19686. else
  19687. shlibpath_overrides_runpath=yes
  19688. fi
  19689. ;;
  19690. os2*)
  19691. libname_spec='$name'
  19692. shrext_cmds=".dll"
  19693. need_lib_prefix=no
  19694. library_names_spec='$libname${shared_ext} $libname.a'
  19695. dynamic_linker='OS/2 ld.exe'
  19696. shlibpath_var=LIBPATH
  19697. ;;
  19698. osf3* | osf4* | osf5*)
  19699. version_type=osf
  19700. need_lib_prefix=no
  19701. need_version=no
  19702. soname_spec='${libname}${release}${shared_ext}$major'
  19703. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19704. shlibpath_var=LD_LIBRARY_PATH
  19705. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  19706. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  19707. ;;
  19708. sco3.2v5*)
  19709. version_type=osf
  19710. soname_spec='${libname}${release}${shared_ext}$major'
  19711. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19712. shlibpath_var=LD_LIBRARY_PATH
  19713. ;;
  19714. solaris*)
  19715. version_type=linux
  19716. need_lib_prefix=no
  19717. need_version=no
  19718. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19719. soname_spec='${libname}${release}${shared_ext}$major'
  19720. shlibpath_var=LD_LIBRARY_PATH
  19721. shlibpath_overrides_runpath=yes
  19722. hardcode_into_libs=yes
  19723. # ldd complains unless libraries are executable
  19724. postinstall_cmds='chmod +x $lib'
  19725. ;;
  19726. sunos4*)
  19727. version_type=sunos
  19728. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  19729. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  19730. shlibpath_var=LD_LIBRARY_PATH
  19731. shlibpath_overrides_runpath=yes
  19732. if test "$with_gnu_ld" = yes; then
  19733. need_lib_prefix=no
  19734. fi
  19735. need_version=yes
  19736. ;;
  19737. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  19738. version_type=linux
  19739. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19740. soname_spec='${libname}${release}${shared_ext}$major'
  19741. shlibpath_var=LD_LIBRARY_PATH
  19742. case $host_vendor in
  19743. sni)
  19744. shlibpath_overrides_runpath=no
  19745. need_lib_prefix=no
  19746. export_dynamic_flag_spec='${wl}-Blargedynsym'
  19747. runpath_var=LD_RUN_PATH
  19748. ;;
  19749. siemens)
  19750. need_lib_prefix=no
  19751. ;;
  19752. motorola)
  19753. need_lib_prefix=no
  19754. need_version=no
  19755. shlibpath_overrides_runpath=no
  19756. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  19757. ;;
  19758. esac
  19759. ;;
  19760. sysv4*MP*)
  19761. if test -d /usr/nec ;then
  19762. version_type=linux
  19763. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  19764. soname_spec='$libname${shared_ext}.$major'
  19765. shlibpath_var=LD_LIBRARY_PATH
  19766. fi
  19767. ;;
  19768. uts4*)
  19769. version_type=linux
  19770. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19771. soname_spec='${libname}${release}${shared_ext}$major'
  19772. shlibpath_var=LD_LIBRARY_PATH
  19773. ;;
  19774. *)
  19775. dynamic_linker=no
  19776. ;;
  19777. esac
  19778. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  19779. echo "${ECHO_T}$dynamic_linker" >&6
  19780. test "$dynamic_linker" = no && can_build_shared=no
  19781. libevent_prefix=$ac_default_prefix
  19782. if test $prefix != "NONE" -a $prefix != "" -a $prefix != "no" ; then
  19783. libevent_prefix=$prefix
  19784. fi
  19785. if test "$PHP_LIBEVENT" = "yes"; then
  19786. PHP_LIBEVENT=$libevent_prefix
  19787. fi
  19788. echo "$as_me:$LINENO: checking for libevent >= $LIBEVENT_REQ_VERSION" >&5
  19789. echo $ECHO_N "checking for libevent >= $LIBEVENT_REQ_VERSION... $ECHO_C" >&6
  19790. for ac_libevent_path in "" $PHP_LIBEVENT /usr /usr/local /opt /opt/local /opt/libevent ; do
  19791. WANT_LIBEVENT_VERSION="$LIBEVENT_REQ_VERSION"
  19792. # Save our flags.
  19793. CPPFLAGS_SAVED="$CPPFLAGS"
  19794. LDFLAGS_SAVED="$LDFLAGS"
  19795. LIBS_SAVED="$LIBS"
  19796. LD_LIBRARY_PATH_SAVED="$LD_LIBRARY_PATH"
  19797. # Set our flags if we are checking a specific directory.
  19798. if test -n "$ac_libevent_path" ; then
  19799. LIBEVENT_CPPFLAGS="-I$ac_libevent_path/include"
  19800. LIBEVENT_LDFLAGS="-L$ac_libevent_path/lib"
  19801. LD_LIBRARY_PATH="$ac_libevent_path/lib:$LD_LIBRARY_PATH"
  19802. else
  19803. LIBEVENT_CPPFLAGS=""
  19804. LIBEVENT_LDFLAGS=""
  19805. fi
  19806. # Required flag for libevent.
  19807. LIBEVENT_LIBS="-levent"
  19808. # Prepare the environment for compilation.
  19809. CPPFLAGS="$CPPFLAGS $LIBEVENT_CPPFLAGS"
  19810. LDFLAGS="$LDFLAGS $LIBEVENT_LDFLAGS"
  19811. LIBS="$LIBS $LIBEVENT_LIBS"
  19812. export CPPFLAGS
  19813. export LDFLAGS
  19814. export LIBS
  19815. export LD_LIBRARY_PATH
  19816. success=no
  19817. # Compile, link, and run the program. This checks:
  19818. # - event.h is available for including.
  19819. # - event_get_version() is available for linking.
  19820. # - The event version string is lexicographically greater
  19821. # than the required version.
  19822. ac_ext=c
  19823. ac_cpp='$CPP $CPPFLAGS'
  19824. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19825. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19826. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19827. if test "$cross_compiling" = yes; then
  19828. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  19829. See \`config.log' for more details." >&5
  19830. echo "$as_me: error: cannot run test program while cross compiling
  19831. See \`config.log' for more details." >&2;}
  19832. { (exit 1); exit 1; }; }
  19833. else
  19834. cat >conftest.$ac_ext <<_ACEOF
  19835. /* confdefs.h. */
  19836. _ACEOF
  19837. cat confdefs.h >>conftest.$ac_ext
  19838. cat >>conftest.$ac_ext <<_ACEOF
  19839. /* end confdefs.h. */
  19840. #include <sys/types.h>
  19841. #include <event.h>
  19842. int
  19843. main ()
  19844. {
  19845. const char* lib_version = event_get_version();
  19846. const char* wnt_version = "$WANT_LIBEVENT_VERSION";
  19847. for (;;) {
  19848. /* If we reached the end of the want version. We have it. */
  19849. if (*wnt_version == '\0' || *wnt_version == '-') {
  19850. return 0;
  19851. }
  19852. /* If the want version continues but the lib version does not, */
  19853. /* we are missing a letter. We don't have it. */
  19854. if (*lib_version == '\0' || *lib_version == '-') {
  19855. return 1;
  19856. }
  19857. /* In the 1.4 version numbering style, if there are more digits */
  19858. /* in one version than the other, that one is higher. */
  19859. int lib_digits;
  19860. for (lib_digits = 0;
  19861. lib_version[lib_digits] >= '0' &&
  19862. lib_version[lib_digits] <= '9';
  19863. lib_digits++)
  19864. ;
  19865. int wnt_digits;
  19866. for (wnt_digits = 0;
  19867. wnt_version[wnt_digits] >= '0' &&
  19868. wnt_version[wnt_digits] <= '9';
  19869. wnt_digits++)
  19870. ;
  19871. if (lib_digits > wnt_digits) {
  19872. return 0;
  19873. }
  19874. if (lib_digits < wnt_digits) {
  19875. return 1;
  19876. }
  19877. /* If we have greater than what we want. We have it. */
  19878. if (*lib_version > *wnt_version) {
  19879. return 0;
  19880. }
  19881. /* If we have less, we don't. */
  19882. if (*lib_version < *wnt_version) {
  19883. return 1;
  19884. }
  19885. lib_version++;
  19886. wnt_version++;
  19887. }
  19888. return 0;
  19889. ;
  19890. return 0;
  19891. }
  19892. _ACEOF
  19893. rm -f conftest$ac_exeext
  19894. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19895. (eval $ac_link) 2>&5
  19896. ac_status=$?
  19897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19898. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19899. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19900. (eval $ac_try) 2>&5
  19901. ac_status=$?
  19902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19903. (exit $ac_status); }; }; then
  19904. success=yes
  19905. else
  19906. echo "$as_me: program exited with status $ac_status" >&5
  19907. echo "$as_me: failed program was:" >&5
  19908. sed 's/^/| /' conftest.$ac_ext >&5
  19909. fi
  19910. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19911. fi
  19912. ac_ext=c
  19913. ac_cpp='$CPP $CPPFLAGS'
  19914. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19915. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19916. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19917. # Restore flags.
  19918. LIBEVENT_LIBS=""
  19919. CPPFLAGS="$CPPFLAGS_SAVED"
  19920. LDFLAGS="$LDFLAGS_SAVED"
  19921. LIBS="$LIBS_SAVED"
  19922. LD_LIBRARY_PATH="$LD_LIBRARY_PATH_SAVED"
  19923. if test "$success" = "yes"; then
  19924. break;
  19925. fi
  19926. done
  19927. if test "$success" = "no"; then
  19928. echo "$as_me:$LINENO: result: no" >&5
  19929. echo "${ECHO_T}no" >&6
  19930. { echo "$as_me:$LINENO: WARNING: Could not find libevent $LIBEVENT_REQ_VERSION." >&5
  19931. echo "$as_me: WARNING: Could not find libevent $LIBEVENT_REQ_VERSION." >&2;}
  19932. { echo "$as_me:$LINENO: WARNING: The use of earlier versions of libevent is not recommended" >&5
  19933. echo "$as_me: WARNING: The use of earlier versions of libevent is not recommended" >&2;}
  19934. { echo "$as_me:$LINENO: WARNING: and can result in unspecified or unsupported behaviour." >&5
  19935. echo "$as_me: WARNING: and can result in unspecified or unsupported behaviour." >&2;}
  19936. echo "$as_me:$LINENO: checking for minimum libevent version >= $LIBEVENT_MIN_VERSION" >&5
  19937. echo $ECHO_N "checking for minimum libevent version >= $LIBEVENT_MIN_VERSION... $ECHO_C" >&6
  19938. for ac_libevent_path in "" $PHP_LIBEVENT /usr /usr/local /opt /opt/local /opt/libevent ; do
  19939. WANT_LIBEVENT_VERSION="$LIBEVENT_MIN_VERSION"
  19940. # Save our flags.
  19941. CPPFLAGS_SAVED="$CPPFLAGS"
  19942. LDFLAGS_SAVED="$LDFLAGS"
  19943. LIBS_SAVED="$LIBS"
  19944. LD_LIBRARY_PATH_SAVED="$LD_LIBRARY_PATH"
  19945. # Set our flags if we are checking a specific directory.
  19946. if test -n "$ac_libevent_path" ; then
  19947. LIBEVENT_CPPFLAGS="-I$ac_libevent_path/include"
  19948. LIBEVENT_LDFLAGS="-L$ac_libevent_path/lib"
  19949. LD_LIBRARY_PATH="$ac_libevent_path/lib:$LD_LIBRARY_PATH"
  19950. else
  19951. LIBEVENT_CPPFLAGS=""
  19952. LIBEVENT_LDFLAGS=""
  19953. fi
  19954. # Required flag for libevent.
  19955. LIBEVENT_LIBS="-levent"
  19956. # Prepare the environment for compilation.
  19957. CPPFLAGS="$CPPFLAGS $LIBEVENT_CPPFLAGS"
  19958. LDFLAGS="$LDFLAGS $LIBEVENT_LDFLAGS"
  19959. LIBS="$LIBS $LIBEVENT_LIBS"
  19960. export CPPFLAGS
  19961. export LDFLAGS
  19962. export LIBS
  19963. export LD_LIBRARY_PATH
  19964. success=no
  19965. # Compile, link, and run the program. This checks:
  19966. # - event.h is available for including.
  19967. # - event_get_version() is available for linking.
  19968. # - The event version string is lexicographically greater
  19969. # than the required version.
  19970. ac_ext=c
  19971. ac_cpp='$CPP $CPPFLAGS'
  19972. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19973. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19974. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19975. if test "$cross_compiling" = yes; then
  19976. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  19977. See \`config.log' for more details." >&5
  19978. echo "$as_me: error: cannot run test program while cross compiling
  19979. See \`config.log' for more details." >&2;}
  19980. { (exit 1); exit 1; }; }
  19981. else
  19982. cat >conftest.$ac_ext <<_ACEOF
  19983. /* confdefs.h. */
  19984. _ACEOF
  19985. cat confdefs.h >>conftest.$ac_ext
  19986. cat >>conftest.$ac_ext <<_ACEOF
  19987. /* end confdefs.h. */
  19988. #include <sys/types.h>
  19989. #include <event.h>
  19990. int
  19991. main ()
  19992. {
  19993. const char* lib_version = event_get_version();
  19994. const char* wnt_version = "$WANT_LIBEVENT_VERSION";
  19995. for (;;) {
  19996. /* If we reached the end of the want version. We have it. */
  19997. if (*wnt_version == '\0' || *wnt_version == '-') {
  19998. return 0;
  19999. }
  20000. /* If the want version continues but the lib version does not, */
  20001. /* we are missing a letter. We don't have it. */
  20002. if (*lib_version == '\0' || *lib_version == '-') {
  20003. return 1;
  20004. }
  20005. /* In the 1.4 version numbering style, if there are more digits */
  20006. /* in one version than the other, that one is higher. */
  20007. int lib_digits;
  20008. for (lib_digits = 0;
  20009. lib_version[lib_digits] >= '0' &&
  20010. lib_version[lib_digits] <= '9';
  20011. lib_digits++)
  20012. ;
  20013. int wnt_digits;
  20014. for (wnt_digits = 0;
  20015. wnt_version[wnt_digits] >= '0' &&
  20016. wnt_version[wnt_digits] <= '9';
  20017. wnt_digits++)
  20018. ;
  20019. if (lib_digits > wnt_digits) {
  20020. return 0;
  20021. }
  20022. if (lib_digits < wnt_digits) {
  20023. return 1;
  20024. }
  20025. /* If we have greater than what we want. We have it. */
  20026. if (*lib_version > *wnt_version) {
  20027. return 0;
  20028. }
  20029. /* If we have less, we don't. */
  20030. if (*lib_version < *wnt_version) {
  20031. return 1;
  20032. }
  20033. lib_version++;
  20034. wnt_version++;
  20035. }
  20036. return 0;
  20037. ;
  20038. return 0;
  20039. }
  20040. _ACEOF
  20041. rm -f conftest$ac_exeext
  20042. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20043. (eval $ac_link) 2>&5
  20044. ac_status=$?
  20045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20046. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20047. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20048. (eval $ac_try) 2>&5
  20049. ac_status=$?
  20050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20051. (exit $ac_status); }; }; then
  20052. success=yes
  20053. else
  20054. echo "$as_me: program exited with status $ac_status" >&5
  20055. echo "$as_me: failed program was:" >&5
  20056. sed 's/^/| /' conftest.$ac_ext >&5
  20057. fi
  20058. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20059. fi
  20060. ac_ext=c
  20061. ac_cpp='$CPP $CPPFLAGS'
  20062. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20063. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20064. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20065. # Restore flags.
  20066. LIBEVENT_LIBS=""
  20067. CPPFLAGS="$CPPFLAGS_SAVED"
  20068. LDFLAGS="$LDFLAGS_SAVED"
  20069. LIBS="$LIBS_SAVED"
  20070. LD_LIBRARY_PATH="$LD_LIBRARY_PATH_SAVED"
  20071. if test "$success" = "yes"; then
  20072. break;
  20073. fi
  20074. done
  20075. if test "$success" = "no"; then
  20076. echo "$as_me:$LINENO: result: no" >&5
  20077. echo "${ECHO_T}no" >&6
  20078. LIBEVENT_LIBS=""
  20079. ac_have_libevent=no
  20080. { echo "$as_me:$LINENO: WARNING: Syntax:" >&5
  20081. echo "$as_me: WARNING: Syntax:" >&2;}
  20082. { echo "$as_me:$LINENO: WARNING: --with-libevent[=yes|path] - link to libevent.a (static library)" >&5
  20083. echo "$as_me: WARNING: --with-libevent[=yes|path] - link to libevent.a (static library)" >&2;}
  20084. { echo "$as_me:$LINENO: WARNING: --with-libevent=shared[,path] - link to libevent.so (shared library)" >&5
  20085. echo "$as_me: WARNING: --with-libevent=shared[,path] - link to libevent.so (shared library)" >&2;}
  20086. { { echo "$as_me:$LINENO: error: Libevent minimum version >= $LIBEVENT_MIN_VERSION could not be found. Stop." >&5
  20087. echo "$as_me: error: Libevent minimum version >= $LIBEVENT_MIN_VERSION could not be found. Stop." >&2;}
  20088. { (exit 1); exit 1; }; }
  20089. fi
  20090. fi
  20091. if test "$ext_shared" = "yes"; then
  20092. if test -n "$ac_libevent_path"; then
  20093. LIBEVENT_LIBS="-L$ac_libevent_path/lib -levent"
  20094. else
  20095. LIBEVENT_LIBS="-levent"
  20096. fi
  20097. else
  20098. libevent_a="libevent.a"
  20099. if test -n "$ac_libevent_path"; then
  20100. if test -f "$ac_libevent_path/lib/$libevent_a" ; then
  20101. LIBEVENT_LIBS="$ac_libevent_path/lib/$libevent_a"
  20102. fi
  20103. if test -z "$LIBEVENT_LIBS"; then
  20104. echo "$as_me:$LINENO: result: no" >&5
  20105. echo "${ECHO_T}no" >&6
  20106. { echo "$as_me:$LINENO: WARNING: libevent.a could not be found. We looked in:" >&5
  20107. echo "$as_me: WARNING: libevent.a could not be found. We looked in:" >&2;}
  20108. { echo "$as_me:$LINENO: WARNING: \"$ac_libevent_path\"" >&5
  20109. echo "$as_me: WARNING: \"$ac_libevent_path\"" >&2;}
  20110. fi
  20111. else
  20112. for search_path in $sys_lib_search_path_spec ; do
  20113. if test -f "$search_path$libevent_a" ; then
  20114. LIBEVENT_LIBS="$search_path$libevent_a"
  20115. break;
  20116. fi
  20117. done
  20118. if test -z "$LIBEVENT_LIBS"; then
  20119. echo "$as_me:$LINENO: result: no" >&5
  20120. echo "${ECHO_T}no" >&6
  20121. { echo "$as_me:$LINENO: WARNING: libevent.a could not be found. We looked in:" >&5
  20122. echo "$as_me: WARNING: libevent.a could not be found. We looked in:" >&2;}
  20123. { echo "$as_me:$LINENO: WARNING: \"$sys_lib_search_path_spec\"" >&5
  20124. echo "$as_me: WARNING: \"$sys_lib_search_path_spec\"" >&2;}
  20125. fi
  20126. fi
  20127. if test -z "$LIBEVENT_LIBS"; then
  20128. { echo "$as_me:$LINENO: WARNING: Install libevent system-wide (make install)" >&5
  20129. echo "$as_me: WARNING: Install libevent system-wide (make install)" >&2;}
  20130. { echo "$as_me:$LINENO: WARNING: Syntax:" >&5
  20131. echo "$as_me: WARNING: Syntax:" >&2;}
  20132. { echo "$as_me:$LINENO: WARNING: --with-libevent[=yes|path] - link to libevent.a (static library)" >&5
  20133. echo "$as_me: WARNING: --with-libevent[=yes|path] - link to libevent.a (static library)" >&2;}
  20134. { echo "$as_me:$LINENO: WARNING: --with-libevent=shared[,path] - link to libevent.so (shared library)" >&5
  20135. echo "$as_me: WARNING: --with-libevent=shared[,path] - link to libevent.so (shared library)" >&2;}
  20136. { { echo "$as_me:$LINENO: error: libevent.a could not be found. Stop." >&5
  20137. echo "$as_me: error: libevent.a could not be found. Stop." >&2;}
  20138. { (exit 1); exit 1; }; }
  20139. fi
  20140. fi
  20141. if test "$success" = "yes" ; then
  20142. echo "$as_me:$LINENO: result: yes" >&5
  20143. echo "${ECHO_T}yes" >&6
  20144. ac_have_libevent=yes
  20145. cat >>confdefs.h <<\_ACEOF
  20146. #define HAVE_LIBEVENT 1
  20147. _ACEOF
  20148. fi
  20149. if test -n "$ac_libevent_path"; then
  20150. LIBEVENT_CFLAGS="-I$ac_libevent_path/include"
  20151. fi
  20152. else
  20153. { { echo "$as_me:$LINENO: error: FPM Requires Libevent. You must build this target --with-libevent. Stop." >&5
  20154. echo "$as_me: error: FPM Requires Libevent. You must build this target --with-libevent. Stop." >&2;}
  20155. { (exit 1); exit 1; }; }
  20156. fi
  20157. for ac_func in setenv clearenv
  20158. do
  20159. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20160. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20161. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20162. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20163. echo $ECHO_N "(cached) $ECHO_C" >&6
  20164. else
  20165. cat >conftest.$ac_ext <<_ACEOF
  20166. /* confdefs.h. */
  20167. _ACEOF
  20168. cat confdefs.h >>conftest.$ac_ext
  20169. cat >>conftest.$ac_ext <<_ACEOF
  20170. /* end confdefs.h. */
  20171. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20172. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20173. #define $ac_func innocuous_$ac_func
  20174. /* System header to define __stub macros and hopefully few prototypes,
  20175. which can conflict with char $ac_func (); below.
  20176. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20177. <limits.h> exists even on freestanding compilers. */
  20178. #ifdef __STDC__
  20179. # include <limits.h>
  20180. #else
  20181. # include <assert.h>
  20182. #endif
  20183. #undef $ac_func
  20184. /* Override any gcc2 internal prototype to avoid an error. */
  20185. #ifdef __cplusplus
  20186. extern "C"
  20187. {
  20188. #endif
  20189. /* We use char because int might match the return type of a gcc2
  20190. builtin and then its argument prototype would still apply. */
  20191. char $ac_func ();
  20192. /* The GNU C library defines this for functions which it implements
  20193. to always fail with ENOSYS. Some functions are actually named
  20194. something starting with __ and the normal name is an alias. */
  20195. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20196. choke me
  20197. #else
  20198. char (*f) () = $ac_func;
  20199. #endif
  20200. #ifdef __cplusplus
  20201. }
  20202. #endif
  20203. int
  20204. main ()
  20205. {
  20206. return f != $ac_func;
  20207. ;
  20208. return 0;
  20209. }
  20210. _ACEOF
  20211. rm -f conftest.$ac_objext conftest$ac_exeext
  20212. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20213. (eval $ac_link) 2>conftest.er1
  20214. ac_status=$?
  20215. grep -v '^ *+' conftest.er1 >conftest.err
  20216. rm -f conftest.er1
  20217. cat conftest.err >&5
  20218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20219. (exit $ac_status); } &&
  20220. { ac_try='test -z "$ac_c_werror_flag"
  20221. || test ! -s conftest.err'
  20222. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20223. (eval $ac_try) 2>&5
  20224. ac_status=$?
  20225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20226. (exit $ac_status); }; } &&
  20227. { ac_try='test -s conftest$ac_exeext'
  20228. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20229. (eval $ac_try) 2>&5
  20230. ac_status=$?
  20231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20232. (exit $ac_status); }; }; then
  20233. eval "$as_ac_var=yes"
  20234. else
  20235. echo "$as_me: failed program was:" >&5
  20236. sed 's/^/| /' conftest.$ac_ext >&5
  20237. eval "$as_ac_var=no"
  20238. fi
  20239. rm -f conftest.err conftest.$ac_objext \
  20240. conftest$ac_exeext conftest.$ac_ext
  20241. fi
  20242. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20243. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20244. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20245. cat >>confdefs.h <<_ACEOF
  20246. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20247. _ACEOF
  20248. fi
  20249. done
  20250. for ac_header in errno.h fcntl.h stdio.h stdlib.h unistd.h sys/uio.h
  20251. do
  20252. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20253. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20254. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20255. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20256. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20257. echo $ECHO_N "(cached) $ECHO_C" >&6
  20258. fi
  20259. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20260. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20261. else
  20262. # Is the header compilable?
  20263. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20264. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  20265. cat >conftest.$ac_ext <<_ACEOF
  20266. /* confdefs.h. */
  20267. _ACEOF
  20268. cat confdefs.h >>conftest.$ac_ext
  20269. cat >>conftest.$ac_ext <<_ACEOF
  20270. /* end confdefs.h. */
  20271. $ac_includes_default
  20272. #include <$ac_header>
  20273. _ACEOF
  20274. rm -f conftest.$ac_objext
  20275. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20276. (eval $ac_compile) 2>conftest.er1
  20277. ac_status=$?
  20278. grep -v '^ *+' conftest.er1 >conftest.err
  20279. rm -f conftest.er1
  20280. cat conftest.err >&5
  20281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20282. (exit $ac_status); } &&
  20283. { ac_try='test -z "$ac_c_werror_flag"
  20284. || test ! -s conftest.err'
  20285. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20286. (eval $ac_try) 2>&5
  20287. ac_status=$?
  20288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20289. (exit $ac_status); }; } &&
  20290. { ac_try='test -s conftest.$ac_objext'
  20291. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20292. (eval $ac_try) 2>&5
  20293. ac_status=$?
  20294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20295. (exit $ac_status); }; }; then
  20296. ac_header_compiler=yes
  20297. else
  20298. echo "$as_me: failed program was:" >&5
  20299. sed 's/^/| /' conftest.$ac_ext >&5
  20300. ac_header_compiler=no
  20301. fi
  20302. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20303. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20304. echo "${ECHO_T}$ac_header_compiler" >&6
  20305. # Is the header present?
  20306. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20307. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  20308. cat >conftest.$ac_ext <<_ACEOF
  20309. /* confdefs.h. */
  20310. _ACEOF
  20311. cat confdefs.h >>conftest.$ac_ext
  20312. cat >>conftest.$ac_ext <<_ACEOF
  20313. /* end confdefs.h. */
  20314. #include <$ac_header>
  20315. _ACEOF
  20316. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20317. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20318. ac_status=$?
  20319. grep -v '^ *+' conftest.er1 >conftest.err
  20320. rm -f conftest.er1
  20321. cat conftest.err >&5
  20322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20323. (exit $ac_status); } >/dev/null; then
  20324. if test -s conftest.err; then
  20325. ac_cpp_err=$ac_c_preproc_warn_flag
  20326. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20327. else
  20328. ac_cpp_err=
  20329. fi
  20330. else
  20331. ac_cpp_err=yes
  20332. fi
  20333. if test -z "$ac_cpp_err"; then
  20334. ac_header_preproc=yes
  20335. else
  20336. echo "$as_me: failed program was:" >&5
  20337. sed 's/^/| /' conftest.$ac_ext >&5
  20338. ac_header_preproc=no
  20339. fi
  20340. rm -f conftest.err conftest.$ac_ext
  20341. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20342. echo "${ECHO_T}$ac_header_preproc" >&6
  20343. # So? What about this header?
  20344. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20345. yes:no: )
  20346. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20347. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20348. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20349. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20350. ac_header_preproc=yes
  20351. ;;
  20352. no:yes:* )
  20353. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20354. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20355. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20356. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20357. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20358. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20359. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20360. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20361. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20362. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20363. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20364. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20365. (
  20366. cat <<\_ASBOX
  20367. ## ------------------------------------------ ##
  20368. ## Report this to andrei.nigmatulin@gmail.com ##
  20369. ## ------------------------------------------ ##
  20370. _ASBOX
  20371. ) |
  20372. sed "s/^/$as_me: WARNING: /" >&2
  20373. ;;
  20374. esac
  20375. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20376. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20377. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20378. echo $ECHO_N "(cached) $ECHO_C" >&6
  20379. else
  20380. eval "$as_ac_Header=\$ac_header_preproc"
  20381. fi
  20382. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20383. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20384. fi
  20385. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20386. cat >>confdefs.h <<_ACEOF
  20387. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20388. _ACEOF
  20389. fi
  20390. done
  20391. for ac_header in sys/select.h sys/socket.h sys/time.h
  20392. do
  20393. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20394. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20395. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20396. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20397. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20398. echo $ECHO_N "(cached) $ECHO_C" >&6
  20399. fi
  20400. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20401. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20402. else
  20403. # Is the header compilable?
  20404. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20405. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  20406. cat >conftest.$ac_ext <<_ACEOF
  20407. /* confdefs.h. */
  20408. _ACEOF
  20409. cat confdefs.h >>conftest.$ac_ext
  20410. cat >>conftest.$ac_ext <<_ACEOF
  20411. /* end confdefs.h. */
  20412. $ac_includes_default
  20413. #include <$ac_header>
  20414. _ACEOF
  20415. rm -f conftest.$ac_objext
  20416. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20417. (eval $ac_compile) 2>conftest.er1
  20418. ac_status=$?
  20419. grep -v '^ *+' conftest.er1 >conftest.err
  20420. rm -f conftest.er1
  20421. cat conftest.err >&5
  20422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20423. (exit $ac_status); } &&
  20424. { ac_try='test -z "$ac_c_werror_flag"
  20425. || test ! -s conftest.err'
  20426. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20427. (eval $ac_try) 2>&5
  20428. ac_status=$?
  20429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20430. (exit $ac_status); }; } &&
  20431. { ac_try='test -s conftest.$ac_objext'
  20432. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20433. (eval $ac_try) 2>&5
  20434. ac_status=$?
  20435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20436. (exit $ac_status); }; }; then
  20437. ac_header_compiler=yes
  20438. else
  20439. echo "$as_me: failed program was:" >&5
  20440. sed 's/^/| /' conftest.$ac_ext >&5
  20441. ac_header_compiler=no
  20442. fi
  20443. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20444. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20445. echo "${ECHO_T}$ac_header_compiler" >&6
  20446. # Is the header present?
  20447. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20448. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  20449. cat >conftest.$ac_ext <<_ACEOF
  20450. /* confdefs.h. */
  20451. _ACEOF
  20452. cat confdefs.h >>conftest.$ac_ext
  20453. cat >>conftest.$ac_ext <<_ACEOF
  20454. /* end confdefs.h. */
  20455. #include <$ac_header>
  20456. _ACEOF
  20457. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20458. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20459. ac_status=$?
  20460. grep -v '^ *+' conftest.er1 >conftest.err
  20461. rm -f conftest.er1
  20462. cat conftest.err >&5
  20463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20464. (exit $ac_status); } >/dev/null; then
  20465. if test -s conftest.err; then
  20466. ac_cpp_err=$ac_c_preproc_warn_flag
  20467. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20468. else
  20469. ac_cpp_err=
  20470. fi
  20471. else
  20472. ac_cpp_err=yes
  20473. fi
  20474. if test -z "$ac_cpp_err"; then
  20475. ac_header_preproc=yes
  20476. else
  20477. echo "$as_me: failed program was:" >&5
  20478. sed 's/^/| /' conftest.$ac_ext >&5
  20479. ac_header_preproc=no
  20480. fi
  20481. rm -f conftest.err conftest.$ac_ext
  20482. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20483. echo "${ECHO_T}$ac_header_preproc" >&6
  20484. # So? What about this header?
  20485. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20486. yes:no: )
  20487. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20488. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20489. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20490. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20491. ac_header_preproc=yes
  20492. ;;
  20493. no:yes:* )
  20494. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20495. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20496. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20497. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20498. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20499. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20500. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20501. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20502. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20503. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20504. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20505. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20506. (
  20507. cat <<\_ASBOX
  20508. ## ------------------------------------------ ##
  20509. ## Report this to andrei.nigmatulin@gmail.com ##
  20510. ## ------------------------------------------ ##
  20511. _ASBOX
  20512. ) |
  20513. sed "s/^/$as_me: WARNING: /" >&2
  20514. ;;
  20515. esac
  20516. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20517. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20518. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20519. echo $ECHO_N "(cached) $ECHO_C" >&6
  20520. else
  20521. eval "$as_ac_Header=\$ac_header_preproc"
  20522. fi
  20523. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20524. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20525. fi
  20526. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20527. cat >>confdefs.h <<_ACEOF
  20528. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20529. _ACEOF
  20530. fi
  20531. done
  20532. for ac_header in arpa/inet.h netinet/in.h
  20533. do
  20534. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20535. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20536. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20537. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20538. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20539. echo $ECHO_N "(cached) $ECHO_C" >&6
  20540. fi
  20541. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20542. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20543. else
  20544. # Is the header compilable?
  20545. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20546. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  20547. cat >conftest.$ac_ext <<_ACEOF
  20548. /* confdefs.h. */
  20549. _ACEOF
  20550. cat confdefs.h >>conftest.$ac_ext
  20551. cat >>conftest.$ac_ext <<_ACEOF
  20552. /* end confdefs.h. */
  20553. $ac_includes_default
  20554. #include <$ac_header>
  20555. _ACEOF
  20556. rm -f conftest.$ac_objext
  20557. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20558. (eval $ac_compile) 2>conftest.er1
  20559. ac_status=$?
  20560. grep -v '^ *+' conftest.er1 >conftest.err
  20561. rm -f conftest.er1
  20562. cat conftest.err >&5
  20563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20564. (exit $ac_status); } &&
  20565. { ac_try='test -z "$ac_c_werror_flag"
  20566. || test ! -s conftest.err'
  20567. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20568. (eval $ac_try) 2>&5
  20569. ac_status=$?
  20570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20571. (exit $ac_status); }; } &&
  20572. { ac_try='test -s conftest.$ac_objext'
  20573. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20574. (eval $ac_try) 2>&5
  20575. ac_status=$?
  20576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20577. (exit $ac_status); }; }; then
  20578. ac_header_compiler=yes
  20579. else
  20580. echo "$as_me: failed program was:" >&5
  20581. sed 's/^/| /' conftest.$ac_ext >&5
  20582. ac_header_compiler=no
  20583. fi
  20584. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20585. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20586. echo "${ECHO_T}$ac_header_compiler" >&6
  20587. # Is the header present?
  20588. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20589. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  20590. cat >conftest.$ac_ext <<_ACEOF
  20591. /* confdefs.h. */
  20592. _ACEOF
  20593. cat confdefs.h >>conftest.$ac_ext
  20594. cat >>conftest.$ac_ext <<_ACEOF
  20595. /* end confdefs.h. */
  20596. #include <$ac_header>
  20597. _ACEOF
  20598. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20599. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20600. ac_status=$?
  20601. grep -v '^ *+' conftest.er1 >conftest.err
  20602. rm -f conftest.er1
  20603. cat conftest.err >&5
  20604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20605. (exit $ac_status); } >/dev/null; then
  20606. if test -s conftest.err; then
  20607. ac_cpp_err=$ac_c_preproc_warn_flag
  20608. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20609. else
  20610. ac_cpp_err=
  20611. fi
  20612. else
  20613. ac_cpp_err=yes
  20614. fi
  20615. if test -z "$ac_cpp_err"; then
  20616. ac_header_preproc=yes
  20617. else
  20618. echo "$as_me: failed program was:" >&5
  20619. sed 's/^/| /' conftest.$ac_ext >&5
  20620. ac_header_preproc=no
  20621. fi
  20622. rm -f conftest.err conftest.$ac_ext
  20623. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20624. echo "${ECHO_T}$ac_header_preproc" >&6
  20625. # So? What about this header?
  20626. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20627. yes:no: )
  20628. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20629. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20630. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20631. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20632. ac_header_preproc=yes
  20633. ;;
  20634. no:yes:* )
  20635. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20636. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20637. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20638. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20639. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20640. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20641. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20642. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20643. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20644. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20645. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20646. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20647. (
  20648. cat <<\_ASBOX
  20649. ## ------------------------------------------ ##
  20650. ## Report this to andrei.nigmatulin@gmail.com ##
  20651. ## ------------------------------------------ ##
  20652. _ASBOX
  20653. ) |
  20654. sed "s/^/$as_me: WARNING: /" >&2
  20655. ;;
  20656. esac
  20657. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20658. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20659. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20660. echo $ECHO_N "(cached) $ECHO_C" >&6
  20661. else
  20662. eval "$as_ac_Header=\$ac_header_preproc"
  20663. fi
  20664. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20665. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20666. fi
  20667. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20668. cat >>confdefs.h <<_ACEOF
  20669. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20670. _ACEOF
  20671. fi
  20672. done
  20673. php_fpm_ADD_CFLAGS="$LIBEVENT_CFLAGS $LIBXML_CFLAGS"
  20674. php_fpm_ADD_LIBS="$LIBEVENT_LIBS $LIBXML_LIBS $PHP_EXTRA_LIBS"
  20675. ENDIF=endif
  20676. cat >>confdefs.h <<_ACEOF
  20677. #define PHP_FPM_VERSION "$fpm_version"
  20678. _ACEOF
  20679. cat >>confdefs.h <<_ACEOF
  20680. #define PHP_FPM_BIN "$php_fpm_bin"
  20681. _ACEOF
  20682. cat >>confdefs.h <<_ACEOF
  20683. #define PHP_FPM_BIN_DIR "$php_fpm_bin_dir"
  20684. _ACEOF
  20685. cat >>confdefs.h <<_ACEOF
  20686. #define PHP_FPM_BIN_PATH "$php_fpm_bin_path"
  20687. _ACEOF
  20688. cat >>confdefs.h <<_ACEOF
  20689. #define PHP_FPM_PORT "$php_fpm_port"
  20690. _ACEOF
  20691. cat >>confdefs.h <<_ACEOF
  20692. #define PHP_FPM_CONF "$php_fpm_conf"
  20693. _ACEOF
  20694. cat >>confdefs.h <<_ACEOF
  20695. #define PHP_FPM_CONF_DIR "$php_fpm_conf_dir"
  20696. _ACEOF
  20697. cat >>confdefs.h <<_ACEOF
  20698. #define PHP_FPM_CONF_PATH "$php_fpm_conf_path"
  20699. _ACEOF
  20700. cat >>confdefs.h <<_ACEOF
  20701. #define PHP_FPM_INIT "$php_fpm_init"
  20702. _ACEOF
  20703. cat >>confdefs.h <<_ACEOF
  20704. #define PHP_FPM_INIT_DIR "$php_fpm_init_dir"
  20705. _ACEOF
  20706. cat >>confdefs.h <<_ACEOF
  20707. #define PHP_FPM_INIT_PATH "$php_fpm_init_path"
  20708. _ACEOF
  20709. cat >>confdefs.h <<_ACEOF
  20710. #define PHP_FPM_LOG_DIR "$php_fpm_log_dir"
  20711. _ACEOF
  20712. cat >>confdefs.h <<_ACEOF
  20713. #define PHP_FPM_LOG_PATH "$php_fpm_log_path"
  20714. _ACEOF
  20715. cat >>confdefs.h <<_ACEOF
  20716. #define PHP_FPM_PID_DIR "$php_fpm_pid_dir"
  20717. _ACEOF
  20718. cat >>confdefs.h <<_ACEOF
  20719. #define PHP_FPM_PID_PATH "$php_fpm_pid_path"
  20720. _ACEOF
  20721. cat >>confdefs.h <<_ACEOF
  20722. #define PHP_FPM_USER "$php_fpm_user"
  20723. _ACEOF
  20724. cat >>confdefs.h <<_ACEOF
  20725. #define PHP_FPM_GROUP "$php_fpm_group"
  20726. _ACEOF
  20727. ac_config_files="$ac_config_files Makefile cgi/Makefile fpm/Makefile"
  20728. ac_config_files="$ac_config_files php_fpm.conf:conf/php-fpm.conf.in init.d.php_fpm:conf/init.d.php-fpm.in nginx-site-conf.sample:conf/nginx-site-conf.sample.in $php_fpm_bin.1:man/php-fpm.1.in"
  20729. cat >confcache <<\_ACEOF
  20730. # This file is a shell script that caches the results of configure
  20731. # tests run on this system so they can be shared between configure
  20732. # scripts and configure runs, see configure's option --config-cache.
  20733. # It is not useful on other systems. If it contains results you don't
  20734. # want to keep, you may remove or edit it.
  20735. #
  20736. # config.status only pays attention to the cache file if you give it
  20737. # the --recheck option to rerun configure.
  20738. #
  20739. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20740. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20741. # following values.
  20742. _ACEOF
  20743. # The following way of writing the cache mishandles newlines in values,
  20744. # but we know of no workaround that is simple, portable, and efficient.
  20745. # So, don't put newlines in cache variables' values.
  20746. # Ultrix sh set writes to stderr and can't be redirected directly,
  20747. # and sets the high bit in the cache file unless we assign to the vars.
  20748. {
  20749. (set) 2>&1 |
  20750. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  20751. *ac_space=\ *)
  20752. # `set' does not quote correctly, so add quotes (double-quote
  20753. # substitution turns \\\\ into \\, and sed turns \\ into \).
  20754. sed -n \
  20755. "s/'/'\\\\''/g;
  20756. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20757. ;;
  20758. *)
  20759. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20760. sed -n \
  20761. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  20762. ;;
  20763. esac;
  20764. } |
  20765. sed '
  20766. t clear
  20767. : clear
  20768. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20769. t end
  20770. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20771. : end' >>confcache
  20772. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  20773. if test -w $cache_file; then
  20774. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  20775. cat confcache >$cache_file
  20776. else
  20777. echo "not updating unwritable cache $cache_file"
  20778. fi
  20779. fi
  20780. rm -f confcache
  20781. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20782. # Let make expand exec_prefix.
  20783. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20784. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  20785. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  20786. # trailing colons and then remove the whole line if VPATH becomes empty
  20787. # (actually we leave an empty line to preserve line numbers).
  20788. if test "x$srcdir" = x.; then
  20789. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  20790. s/:*\$(srcdir):*/:/;
  20791. s/:*\${srcdir}:*/:/;
  20792. s/:*@srcdir@:*/:/;
  20793. s/^\([^=]*=[ ]*\):*/\1/;
  20794. s/:*$//;
  20795. s/^[^=]*=[ ]*$//;
  20796. }'
  20797. fi
  20798. DEFS=-DHAVE_CONFIG_H
  20799. ac_libobjs=
  20800. ac_ltlibobjs=
  20801. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20802. # 1. Remove the extension, and $U if already installed.
  20803. ac_i=`echo "$ac_i" |
  20804. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  20805. # 2. Add them.
  20806. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  20807. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  20808. done
  20809. LIBOBJS=$ac_libobjs
  20810. LTLIBOBJS=$ac_ltlibobjs
  20811. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  20812. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  20813. Usually this means the macro was only invoked conditionally." >&5
  20814. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  20815. Usually this means the macro was only invoked conditionally." >&2;}
  20816. { (exit 1); exit 1; }; }
  20817. fi
  20818. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  20819. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  20820. Usually this means the macro was only invoked conditionally." >&5
  20821. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  20822. Usually this means the macro was only invoked conditionally." >&2;}
  20823. { (exit 1); exit 1; }; }
  20824. fi
  20825. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  20826. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  20827. Usually this means the macro was only invoked conditionally." >&5
  20828. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  20829. Usually this means the macro was only invoked conditionally." >&2;}
  20830. { (exit 1); exit 1; }; }
  20831. fi
  20832. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  20833. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  20834. Usually this means the macro was only invoked conditionally." >&5
  20835. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  20836. Usually this means the macro was only invoked conditionally." >&2;}
  20837. { (exit 1); exit 1; }; }
  20838. fi
  20839. if test -z "${FPM_TRACE_USE_PTRACE_TRUE}" && test -z "${FPM_TRACE_USE_PTRACE_FALSE}"; then
  20840. { { echo "$as_me:$LINENO: error: conditional \"FPM_TRACE_USE_PTRACE\" was never defined.
  20841. Usually this means the macro was only invoked conditionally." >&5
  20842. echo "$as_me: error: conditional \"FPM_TRACE_USE_PTRACE\" was never defined.
  20843. Usually this means the macro was only invoked conditionally." >&2;}
  20844. { (exit 1); exit 1; }; }
  20845. fi
  20846. if test -z "${FPM_TRACE_USE_PREAD_TRUE}" && test -z "${FPM_TRACE_USE_PREAD_FALSE}"; then
  20847. { { echo "$as_me:$LINENO: error: conditional \"FPM_TRACE_USE_PREAD\" was never defined.
  20848. Usually this means the macro was only invoked conditionally." >&5
  20849. echo "$as_me: error: conditional \"FPM_TRACE_USE_PREAD\" was never defined.
  20850. Usually this means the macro was only invoked conditionally." >&2;}
  20851. { (exit 1); exit 1; }; }
  20852. fi
  20853. if test -z "${FPM_TRACE_USE_MACH_TRUE}" && test -z "${FPM_TRACE_USE_MACH_FALSE}"; then
  20854. { { echo "$as_me:$LINENO: error: conditional \"FPM_TRACE_USE_MACH\" was never defined.
  20855. Usually this means the macro was only invoked conditionally." >&5
  20856. echo "$as_me: error: conditional \"FPM_TRACE_USE_MACH\" was never defined.
  20857. Usually this means the macro was only invoked conditionally." >&2;}
  20858. { (exit 1); exit 1; }; }
  20859. fi
  20860. : ${CONFIG_STATUS=./config.status}
  20861. ac_clean_files_save=$ac_clean_files
  20862. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20863. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  20864. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20865. cat >$CONFIG_STATUS <<_ACEOF
  20866. #! $SHELL
  20867. # Generated by $as_me.
  20868. # Run this file to recreate the current configuration.
  20869. # Compiler output produced by configure, useful for debugging
  20870. # configure, is in config.log if it exists.
  20871. debug=false
  20872. ac_cs_recheck=false
  20873. ac_cs_silent=false
  20874. SHELL=\${CONFIG_SHELL-$SHELL}
  20875. _ACEOF
  20876. cat >>$CONFIG_STATUS <<\_ACEOF
  20877. ## --------------------- ##
  20878. ## M4sh Initialization. ##
  20879. ## --------------------- ##
  20880. # Be Bourne compatible
  20881. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  20882. emulate sh
  20883. NULLCMD=:
  20884. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20885. # is contrary to our usage. Disable this feature.
  20886. alias -g '${1+"$@"}'='"$@"'
  20887. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  20888. set -o posix
  20889. fi
  20890. DUALCASE=1; export DUALCASE # for MKS sh
  20891. # Support unset when possible.
  20892. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  20893. as_unset=unset
  20894. else
  20895. as_unset=false
  20896. fi
  20897. # Work around bugs in pre-3.0 UWIN ksh.
  20898. $as_unset ENV MAIL MAILPATH
  20899. PS1='$ '
  20900. PS2='> '
  20901. PS4='+ '
  20902. # NLS nuisances.
  20903. for as_var in \
  20904. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  20905. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  20906. LC_TELEPHONE LC_TIME
  20907. do
  20908. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  20909. eval $as_var=C; export $as_var
  20910. else
  20911. $as_unset $as_var
  20912. fi
  20913. done
  20914. # Required to use basename.
  20915. if expr a : '\(a\)' >/dev/null 2>&1; then
  20916. as_expr=expr
  20917. else
  20918. as_expr=false
  20919. fi
  20920. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  20921. as_basename=basename
  20922. else
  20923. as_basename=false
  20924. fi
  20925. # Name of the executable.
  20926. as_me=`$as_basename "$0" ||
  20927. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20928. X"$0" : 'X\(//\)$' \| \
  20929. X"$0" : 'X\(/\)$' \| \
  20930. . : '\(.\)' 2>/dev/null ||
  20931. echo X/"$0" |
  20932. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  20933. /^X\/\(\/\/\)$/{ s//\1/; q; }
  20934. /^X\/\(\/\).*/{ s//\1/; q; }
  20935. s/.*/./; q'`
  20936. # PATH needs CR, and LINENO needs CR and PATH.
  20937. # Avoid depending upon Character Ranges.
  20938. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20939. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20940. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20941. as_cr_digits='0123456789'
  20942. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20943. # The user is always right.
  20944. if test "${PATH_SEPARATOR+set}" != set; then
  20945. echo "#! /bin/sh" >conf$$.sh
  20946. echo "exit 0" >>conf$$.sh
  20947. chmod +x conf$$.sh
  20948. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  20949. PATH_SEPARATOR=';'
  20950. else
  20951. PATH_SEPARATOR=:
  20952. fi
  20953. rm -f conf$$.sh
  20954. fi
  20955. as_lineno_1=$LINENO
  20956. as_lineno_2=$LINENO
  20957. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  20958. test "x$as_lineno_1" != "x$as_lineno_2" &&
  20959. test "x$as_lineno_3" = "x$as_lineno_2" || {
  20960. # Find who we are. Look in the path if we contain no path at all
  20961. # relative or not.
  20962. case $0 in
  20963. *[\\/]* ) as_myself=$0 ;;
  20964. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20965. for as_dir in $PATH
  20966. do
  20967. IFS=$as_save_IFS
  20968. test -z "$as_dir" && as_dir=.
  20969. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20970. done
  20971. ;;
  20972. esac
  20973. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20974. # in which case we are not to be found in the path.
  20975. if test "x$as_myself" = x; then
  20976. as_myself=$0
  20977. fi
  20978. if test ! -f "$as_myself"; then
  20979. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  20980. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  20981. { (exit 1); exit 1; }; }
  20982. fi
  20983. case $CONFIG_SHELL in
  20984. '')
  20985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20986. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  20987. do
  20988. IFS=$as_save_IFS
  20989. test -z "$as_dir" && as_dir=.
  20990. for as_base in sh bash ksh sh5; do
  20991. case $as_dir in
  20992. /*)
  20993. if ("$as_dir/$as_base" -c '
  20994. as_lineno_1=$LINENO
  20995. as_lineno_2=$LINENO
  20996. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  20997. test "x$as_lineno_1" != "x$as_lineno_2" &&
  20998. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  20999. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  21000. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  21001. CONFIG_SHELL=$as_dir/$as_base
  21002. export CONFIG_SHELL
  21003. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  21004. fi;;
  21005. esac
  21006. done
  21007. done
  21008. ;;
  21009. esac
  21010. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  21011. # uniformly replaced by the line number. The first 'sed' inserts a
  21012. # line-number line before each line; the second 'sed' does the real
  21013. # work. The second script uses 'N' to pair each line-number line
  21014. # with the numbered line, and appends trailing '-' during
  21015. # substitution so that $LINENO is not a special case at line end.
  21016. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  21017. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  21018. sed '=' <$as_myself |
  21019. sed '
  21020. N
  21021. s,$,-,
  21022. : loop
  21023. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  21024. t loop
  21025. s,-$,,
  21026. s,^['$as_cr_digits']*\n,,
  21027. ' >$as_me.lineno &&
  21028. chmod +x $as_me.lineno ||
  21029. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  21030. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  21031. { (exit 1); exit 1; }; }
  21032. # Don't try to exec as it changes $[0], causing all sort of problems
  21033. # (the dirname of $[0] is not the place where we might find the
  21034. # original and so on. Autoconf is especially sensible to this).
  21035. . ./$as_me.lineno
  21036. # Exit status is that of the last command.
  21037. exit
  21038. }
  21039. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  21040. *c*,-n*) ECHO_N= ECHO_C='
  21041. ' ECHO_T=' ' ;;
  21042. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  21043. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  21044. esac
  21045. if expr a : '\(a\)' >/dev/null 2>&1; then
  21046. as_expr=expr
  21047. else
  21048. as_expr=false
  21049. fi
  21050. rm -f conf$$ conf$$.exe conf$$.file
  21051. echo >conf$$.file
  21052. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21053. # We could just check for DJGPP; but this test a) works b) is more generic
  21054. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  21055. if test -f conf$$.exe; then
  21056. # Don't use ln at all; we don't have any links
  21057. as_ln_s='cp -p'
  21058. else
  21059. as_ln_s='ln -s'
  21060. fi
  21061. elif ln conf$$.file conf$$ 2>/dev/null; then
  21062. as_ln_s=ln
  21063. else
  21064. as_ln_s='cp -p'
  21065. fi
  21066. rm -f conf$$ conf$$.exe conf$$.file
  21067. if mkdir -p . 2>/dev/null; then
  21068. as_mkdir_p=:
  21069. else
  21070. test -d ./-p && rmdir ./-p
  21071. as_mkdir_p=false
  21072. fi
  21073. as_executable_p="test -f"
  21074. # Sed expression to map a string onto a valid CPP name.
  21075. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21076. # Sed expression to map a string onto a valid variable name.
  21077. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21078. # IFS
  21079. # We need space, tab and new line, in precisely that order.
  21080. as_nl='
  21081. '
  21082. IFS=" $as_nl"
  21083. # CDPATH.
  21084. $as_unset CDPATH
  21085. exec 6>&1
  21086. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  21087. # report actual input values of CONFIG_FILES etc. instead of their
  21088. # values after options handling. Logging --version etc. is OK.
  21089. exec 5>>config.log
  21090. {
  21091. echo
  21092. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21093. ## Running $as_me. ##
  21094. _ASBOX
  21095. } >&5
  21096. cat >&5 <<_CSEOF
  21097. This file was extended by php-fpm $as_me 0.6, which was
  21098. generated by GNU Autoconf 2.59. Invocation command line was
  21099. CONFIG_FILES = $CONFIG_FILES
  21100. CONFIG_HEADERS = $CONFIG_HEADERS
  21101. CONFIG_LINKS = $CONFIG_LINKS
  21102. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21103. $ $0 $@
  21104. _CSEOF
  21105. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  21106. echo >&5
  21107. _ACEOF
  21108. # Files that config.status was made for.
  21109. if test -n "$ac_config_files"; then
  21110. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  21111. fi
  21112. if test -n "$ac_config_headers"; then
  21113. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  21114. fi
  21115. if test -n "$ac_config_links"; then
  21116. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  21117. fi
  21118. if test -n "$ac_config_commands"; then
  21119. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  21120. fi
  21121. cat >>$CONFIG_STATUS <<\_ACEOF
  21122. ac_cs_usage="\
  21123. \`$as_me' instantiates files from templates according to the
  21124. current configuration.
  21125. Usage: $0 [OPTIONS] [FILE]...
  21126. -h, --help print this help, then exit
  21127. -V, --version print version number, then exit
  21128. -q, --quiet do not print progress messages
  21129. -d, --debug don't remove temporary files
  21130. --recheck update $as_me by reconfiguring in the same conditions
  21131. --file=FILE[:TEMPLATE]
  21132. instantiate the configuration file FILE
  21133. --header=FILE[:TEMPLATE]
  21134. instantiate the configuration header FILE
  21135. Configuration files:
  21136. $config_files
  21137. Configuration headers:
  21138. $config_headers
  21139. Configuration commands:
  21140. $config_commands
  21141. Report bugs to <bug-autoconf@gnu.org>."
  21142. _ACEOF
  21143. cat >>$CONFIG_STATUS <<_ACEOF
  21144. ac_cs_version="\\
  21145. php-fpm config.status 0.6
  21146. configured by $0, generated by GNU Autoconf 2.59,
  21147. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  21148. Copyright (C) 2003 Free Software Foundation, Inc.
  21149. This config.status script is free software; the Free Software Foundation
  21150. gives unlimited permission to copy, distribute and modify it."
  21151. srcdir=$srcdir
  21152. INSTALL="$INSTALL"
  21153. _ACEOF
  21154. cat >>$CONFIG_STATUS <<\_ACEOF
  21155. # If no file are specified by the user, then we need to provide default
  21156. # value. By we need to know if files were specified by the user.
  21157. ac_need_defaults=:
  21158. while test $# != 0
  21159. do
  21160. case $1 in
  21161. --*=*)
  21162. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  21163. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  21164. ac_shift=:
  21165. ;;
  21166. -*)
  21167. ac_option=$1
  21168. ac_optarg=$2
  21169. ac_shift=shift
  21170. ;;
  21171. *) # This is not an option, so the user has probably given explicit
  21172. # arguments.
  21173. ac_option=$1
  21174. ac_need_defaults=false;;
  21175. esac
  21176. case $ac_option in
  21177. # Handling of the options.
  21178. _ACEOF
  21179. cat >>$CONFIG_STATUS <<\_ACEOF
  21180. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21181. ac_cs_recheck=: ;;
  21182. --version | --vers* | -V )
  21183. echo "$ac_cs_version"; exit 0 ;;
  21184. --he | --h)
  21185. # Conflict between --help and --header
  21186. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  21187. Try \`$0 --help' for more information." >&5
  21188. echo "$as_me: error: ambiguous option: $1
  21189. Try \`$0 --help' for more information." >&2;}
  21190. { (exit 1); exit 1; }; };;
  21191. --help | --hel | -h )
  21192. echo "$ac_cs_usage"; exit 0 ;;
  21193. --debug | --d* | -d )
  21194. debug=: ;;
  21195. --file | --fil | --fi | --f )
  21196. $ac_shift
  21197. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  21198. ac_need_defaults=false;;
  21199. --header | --heade | --head | --hea )
  21200. $ac_shift
  21201. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  21202. ac_need_defaults=false;;
  21203. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21204. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21205. ac_cs_silent=: ;;
  21206. # This is an error.
  21207. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  21208. Try \`$0 --help' for more information." >&5
  21209. echo "$as_me: error: unrecognized option: $1
  21210. Try \`$0 --help' for more information." >&2;}
  21211. { (exit 1); exit 1; }; } ;;
  21212. *) ac_config_targets="$ac_config_targets $1" ;;
  21213. esac
  21214. shift
  21215. done
  21216. ac_configure_extra_args=
  21217. if $ac_cs_silent; then
  21218. exec 6>/dev/null
  21219. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21220. fi
  21221. _ACEOF
  21222. cat >>$CONFIG_STATUS <<_ACEOF
  21223. if \$ac_cs_recheck; then
  21224. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  21225. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21226. fi
  21227. _ACEOF
  21228. cat >>$CONFIG_STATUS <<_ACEOF
  21229. #
  21230. # INIT-COMMANDS section.
  21231. #
  21232. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  21233. _ACEOF
  21234. cat >>$CONFIG_STATUS <<\_ACEOF
  21235. for ac_config_target in $ac_config_targets
  21236. do
  21237. case "$ac_config_target" in
  21238. # Handling of arguments.
  21239. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  21240. "cgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi/Makefile" ;;
  21241. "fpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES fpm/Makefile" ;;
  21242. "php_fpm.conf" ) CONFIG_FILES="$CONFIG_FILES php_fpm.conf:conf/php-fpm.conf.in" ;;
  21243. "init.d.php_fpm" ) CONFIG_FILES="$CONFIG_FILES init.d.php_fpm:conf/init.d.php-fpm.in" ;;
  21244. "nginx-site-conf.sample" ) CONFIG_FILES="$CONFIG_FILES nginx-site-conf.sample:conf/nginx-site-conf.sample.in" ;;
  21245. "$php_fpm_bin.1" ) CONFIG_FILES="$CONFIG_FILES $php_fpm_bin.1:man/php-fpm.1.in" ;;
  21246. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  21247. "fpm_autoconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fpm_autoconfig.h" ;;
  21248. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  21249. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  21250. { (exit 1); exit 1; }; };;
  21251. esac
  21252. done
  21253. # If the user did not use the arguments to specify the items to instantiate,
  21254. # then the envvar interface is used. Set only those that are not.
  21255. # We use the long form for the default assignment because of an extremely
  21256. # bizarre bug on SunOS 4.1.3.
  21257. if $ac_need_defaults; then
  21258. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21259. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21260. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21261. fi
  21262. # Have a temporary directory for convenience. Make it in the build tree
  21263. # simply because there is no reason to put it here, and in addition,
  21264. # creating and moving files from /tmp can sometimes cause problems.
  21265. # Create a temporary directory, and hook for its removal unless debugging.
  21266. $debug ||
  21267. {
  21268. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  21269. trap '{ (exit 1); exit 1; }' 1 2 13 15
  21270. }
  21271. # Create a (secure) tmp directory for tmp files.
  21272. {
  21273. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  21274. test -n "$tmp" && test -d "$tmp"
  21275. } ||
  21276. {
  21277. tmp=./confstat$$-$RANDOM
  21278. (umask 077 && mkdir $tmp)
  21279. } ||
  21280. {
  21281. echo "$me: cannot create a temporary directory in ." >&2
  21282. { (exit 1); exit 1; }
  21283. }
  21284. _ACEOF
  21285. cat >>$CONFIG_STATUS <<_ACEOF
  21286. #
  21287. # CONFIG_FILES section.
  21288. #
  21289. # No need to generate the scripts if there are no CONFIG_FILES.
  21290. # This happens for instance when ./config.status config.h
  21291. if test -n "\$CONFIG_FILES"; then
  21292. # Protect against being on the right side of a sed subst in config.status.
  21293. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  21294. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  21295. s,@SHELL@,$SHELL,;t t
  21296. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  21297. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  21298. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  21299. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  21300. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  21301. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  21302. s,@exec_prefix@,$exec_prefix,;t t
  21303. s,@prefix@,$prefix,;t t
  21304. s,@program_transform_name@,$program_transform_name,;t t
  21305. s,@bindir@,$bindir,;t t
  21306. s,@sbindir@,$sbindir,;t t
  21307. s,@libexecdir@,$libexecdir,;t t
  21308. s,@datadir@,$datadir,;t t
  21309. s,@sysconfdir@,$sysconfdir,;t t
  21310. s,@sharedstatedir@,$sharedstatedir,;t t
  21311. s,@localstatedir@,$localstatedir,;t t
  21312. s,@libdir@,$libdir,;t t
  21313. s,@includedir@,$includedir,;t t
  21314. s,@oldincludedir@,$oldincludedir,;t t
  21315. s,@infodir@,$infodir,;t t
  21316. s,@mandir@,$mandir,;t t
  21317. s,@build_alias@,$build_alias,;t t
  21318. s,@host_alias@,$host_alias,;t t
  21319. s,@target_alias@,$target_alias,;t t
  21320. s,@DEFS@,$DEFS,;t t
  21321. s,@ECHO_C@,$ECHO_C,;t t
  21322. s,@ECHO_N@,$ECHO_N,;t t
  21323. s,@ECHO_T@,$ECHO_T,;t t
  21324. s,@LIBS@,$LIBS,;t t
  21325. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  21326. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  21327. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  21328. s,@CYGPATH_W@,$CYGPATH_W,;t t
  21329. s,@PACKAGE@,$PACKAGE,;t t
  21330. s,@VERSION@,$VERSION,;t t
  21331. s,@ACLOCAL@,$ACLOCAL,;t t
  21332. s,@AUTOCONF@,$AUTOCONF,;t t
  21333. s,@AUTOMAKE@,$AUTOMAKE,;t t
  21334. s,@AUTOHEADER@,$AUTOHEADER,;t t
  21335. s,@MAKEINFO@,$MAKEINFO,;t t
  21336. s,@install_sh@,$install_sh,;t t
  21337. s,@STRIP@,$STRIP,;t t
  21338. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  21339. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  21340. s,@mkdir_p@,$mkdir_p,;t t
  21341. s,@AWK@,$AWK,;t t
  21342. s,@SET_MAKE@,$SET_MAKE,;t t
  21343. s,@am__leading_dot@,$am__leading_dot,;t t
  21344. s,@AMTAR@,$AMTAR,;t t
  21345. s,@am__tar@,$am__tar,;t t
  21346. s,@am__untar@,$am__untar,;t t
  21347. s,@CC@,$CC,;t t
  21348. s,@CFLAGS@,$CFLAGS,;t t
  21349. s,@LDFLAGS@,$LDFLAGS,;t t
  21350. s,@CPPFLAGS@,$CPPFLAGS,;t t
  21351. s,@ac_ct_CC@,$ac_ct_CC,;t t
  21352. s,@EXEEXT@,$EXEEXT,;t t
  21353. s,@OBJEXT@,$OBJEXT,;t t
  21354. s,@DEPDIR@,$DEPDIR,;t t
  21355. s,@am__include@,$am__include,;t t
  21356. s,@am__quote@,$am__quote,;t t
  21357. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  21358. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  21359. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  21360. s,@CCDEPMODE@,$CCDEPMODE,;t t
  21361. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  21362. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  21363. s,@CPP@,$CPP,;t t
  21364. s,@build@,$build,;t t
  21365. s,@build_cpu@,$build_cpu,;t t
  21366. s,@build_vendor@,$build_vendor,;t t
  21367. s,@build_os@,$build_os,;t t
  21368. s,@host@,$host,;t t
  21369. s,@host_cpu@,$host_cpu,;t t
  21370. s,@host_vendor@,$host_vendor,;t t
  21371. s,@host_os@,$host_os,;t t
  21372. s,@EGREP@,$EGREP,;t t
  21373. s,@LN_S@,$LN_S,;t t
  21374. s,@ECHO@,$ECHO,;t t
  21375. s,@AR@,$AR,;t t
  21376. s,@ac_ct_AR@,$ac_ct_AR,;t t
  21377. s,@RANLIB@,$RANLIB,;t t
  21378. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  21379. s,@CXX@,$CXX,;t t
  21380. s,@CXXFLAGS@,$CXXFLAGS,;t t
  21381. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  21382. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  21383. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  21384. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  21385. s,@CXXCPP@,$CXXCPP,;t t
  21386. s,@F77@,$F77,;t t
  21387. s,@FFLAGS@,$FFLAGS,;t t
  21388. s,@ac_ct_F77@,$ac_ct_F77,;t t
  21389. s,@LIBTOOL@,$LIBTOOL,;t t
  21390. s,@PHP_OBJS@,$PHP_OBJS,;t t
  21391. s,@PHP_SRCDIR@,$PHP_SRCDIR,;t t
  21392. s,@PHP_BUILDDIR@,$PHP_BUILDDIR,;t t
  21393. s,@PHP_VERSION@,$PHP_VERSION,;t t
  21394. s,@XMLCONFIG@,$XMLCONFIG,;t t
  21395. s,@FPM_TRACE_USE_PTRACE_TRUE@,$FPM_TRACE_USE_PTRACE_TRUE,;t t
  21396. s,@FPM_TRACE_USE_PTRACE_FALSE@,$FPM_TRACE_USE_PTRACE_FALSE,;t t
  21397. s,@FPM_TRACE_USE_PREAD_TRUE@,$FPM_TRACE_USE_PREAD_TRUE,;t t
  21398. s,@FPM_TRACE_USE_PREAD_FALSE@,$FPM_TRACE_USE_PREAD_FALSE,;t t
  21399. s,@FPM_TRACE_USE_MACH_TRUE@,$FPM_TRACE_USE_MACH_TRUE,;t t
  21400. s,@FPM_TRACE_USE_MACH_FALSE@,$FPM_TRACE_USE_MACH_FALSE,;t t
  21401. s,@LIBEVENT_CFLAGS@,$LIBEVENT_CFLAGS,;t t
  21402. s,@LIBEVENT_LIBS@,$LIBEVENT_LIBS,;t t
  21403. s,@ENDIF@,$ENDIF,;t t
  21404. s,@AM_CFLAGS@,$AM_CFLAGS,;t t
  21405. s,@php_fpm_ADD_CFLAGS@,$php_fpm_ADD_CFLAGS,;t t
  21406. s,@php_fpm_ADD_LIBS@,$php_fpm_ADD_LIBS,;t t
  21407. s,@fpm_version@,$fpm_version,;t t
  21408. s,@php_fpm_bin@,$php_fpm_bin,;t t
  21409. s,@php_fpm_bin_dir@,$php_fpm_bin_dir,;t t
  21410. s,@php_fpm_bin_path@,$php_fpm_bin_path,;t t
  21411. s,@php_fpm_port@,$php_fpm_port,;t t
  21412. s,@php_fpm_conf@,$php_fpm_conf,;t t
  21413. s,@php_fpm_conf_dir@,$php_fpm_conf_dir,;t t
  21414. s,@php_fpm_conf_path@,$php_fpm_conf_path,;t t
  21415. s,@php_fpm_init@,$php_fpm_init,;t t
  21416. s,@php_fpm_init_dir@,$php_fpm_init_dir,;t t
  21417. s,@php_fpm_init_path@,$php_fpm_init_path,;t t
  21418. s,@php_fpm_log_dir@,$php_fpm_log_dir,;t t
  21419. s,@php_fpm_log_path@,$php_fpm_log_path,;t t
  21420. s,@php_fpm_pid_dir@,$php_fpm_pid_dir,;t t
  21421. s,@php_fpm_pid_path@,$php_fpm_pid_path,;t t
  21422. s,@php_fpm_user@,$php_fpm_user,;t t
  21423. s,@php_fpm_group@,$php_fpm_group,;t t
  21424. s,@LIBOBJS@,$LIBOBJS,;t t
  21425. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  21426. CEOF
  21427. _ACEOF
  21428. cat >>$CONFIG_STATUS <<\_ACEOF
  21429. # Split the substitutions into bite-sized pieces for seds with
  21430. # small command number limits, like on Digital OSF/1 and HP-UX.
  21431. ac_max_sed_lines=48
  21432. ac_sed_frag=1 # Number of current file.
  21433. ac_beg=1 # First line for current file.
  21434. ac_end=$ac_max_sed_lines # Line after last line for current file.
  21435. ac_more_lines=:
  21436. ac_sed_cmds=
  21437. while $ac_more_lines; do
  21438. if test $ac_beg -gt 1; then
  21439. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  21440. else
  21441. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  21442. fi
  21443. if test ! -s $tmp/subs.frag; then
  21444. ac_more_lines=false
  21445. else
  21446. # The purpose of the label and of the branching condition is to
  21447. # speed up the sed processing (if there are no `@' at all, there
  21448. # is no need to browse any of the substitutions).
  21449. # These are the two extra sed commands mentioned above.
  21450. (echo ':t
  21451. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  21452. if test -z "$ac_sed_cmds"; then
  21453. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  21454. else
  21455. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  21456. fi
  21457. ac_sed_frag=`expr $ac_sed_frag + 1`
  21458. ac_beg=$ac_end
  21459. ac_end=`expr $ac_end + $ac_max_sed_lines`
  21460. fi
  21461. done
  21462. if test -z "$ac_sed_cmds"; then
  21463. ac_sed_cmds=cat
  21464. fi
  21465. fi # test -n "$CONFIG_FILES"
  21466. _ACEOF
  21467. cat >>$CONFIG_STATUS <<\_ACEOF
  21468. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  21469. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  21470. case $ac_file in
  21471. - | *:- | *:-:* ) # input from stdin
  21472. cat >$tmp/stdin
  21473. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  21474. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  21475. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  21476. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  21477. * ) ac_file_in=$ac_file.in ;;
  21478. esac
  21479. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  21480. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  21481. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21482. X"$ac_file" : 'X\(//\)[^/]' \| \
  21483. X"$ac_file" : 'X\(//\)$' \| \
  21484. X"$ac_file" : 'X\(/\)' \| \
  21485. . : '\(.\)' 2>/dev/null ||
  21486. echo X"$ac_file" |
  21487. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21488. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21489. /^X\(\/\/\)$/{ s//\1/; q; }
  21490. /^X\(\/\).*/{ s//\1/; q; }
  21491. s/.*/./; q'`
  21492. { if $as_mkdir_p; then
  21493. mkdir -p "$ac_dir"
  21494. else
  21495. as_dir="$ac_dir"
  21496. as_dirs=
  21497. while test ! -d "$as_dir"; do
  21498. as_dirs="$as_dir $as_dirs"
  21499. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  21500. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21501. X"$as_dir" : 'X\(//\)[^/]' \| \
  21502. X"$as_dir" : 'X\(//\)$' \| \
  21503. X"$as_dir" : 'X\(/\)' \| \
  21504. . : '\(.\)' 2>/dev/null ||
  21505. echo X"$as_dir" |
  21506. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21507. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21508. /^X\(\/\/\)$/{ s//\1/; q; }
  21509. /^X\(\/\).*/{ s//\1/; q; }
  21510. s/.*/./; q'`
  21511. done
  21512. test ! -n "$as_dirs" || mkdir $as_dirs
  21513. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  21514. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  21515. { (exit 1); exit 1; }; }; }
  21516. ac_builddir=.
  21517. if test "$ac_dir" != .; then
  21518. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  21519. # A "../" for each directory in $ac_dir_suffix.
  21520. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  21521. else
  21522. ac_dir_suffix= ac_top_builddir=
  21523. fi
  21524. case $srcdir in
  21525. .) # No --srcdir option. We are building in place.
  21526. ac_srcdir=.
  21527. if test -z "$ac_top_builddir"; then
  21528. ac_top_srcdir=.
  21529. else
  21530. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  21531. fi ;;
  21532. [\\/]* | ?:[\\/]* ) # Absolute path.
  21533. ac_srcdir=$srcdir$ac_dir_suffix;
  21534. ac_top_srcdir=$srcdir ;;
  21535. *) # Relative path.
  21536. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  21537. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  21538. esac
  21539. # Do not use `cd foo && pwd` to compute absolute paths, because
  21540. # the directories may not exist.
  21541. case `pwd` in
  21542. .) ac_abs_builddir="$ac_dir";;
  21543. *)
  21544. case "$ac_dir" in
  21545. .) ac_abs_builddir=`pwd`;;
  21546. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  21547. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  21548. esac;;
  21549. esac
  21550. case $ac_abs_builddir in
  21551. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  21552. *)
  21553. case ${ac_top_builddir}. in
  21554. .) ac_abs_top_builddir=$ac_abs_builddir;;
  21555. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  21556. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  21557. esac;;
  21558. esac
  21559. case $ac_abs_builddir in
  21560. .) ac_abs_srcdir=$ac_srcdir;;
  21561. *)
  21562. case $ac_srcdir in
  21563. .) ac_abs_srcdir=$ac_abs_builddir;;
  21564. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  21565. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  21566. esac;;
  21567. esac
  21568. case $ac_abs_builddir in
  21569. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  21570. *)
  21571. case $ac_top_srcdir in
  21572. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  21573. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  21574. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  21575. esac;;
  21576. esac
  21577. case $INSTALL in
  21578. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21579. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  21580. esac
  21581. if test x"$ac_file" != x-; then
  21582. { echo "$as_me:$LINENO: creating $ac_file" >&5
  21583. echo "$as_me: creating $ac_file" >&6;}
  21584. rm -f "$ac_file"
  21585. fi
  21586. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21587. # use $as_me), people would be surprised to read:
  21588. # /* config.h. Generated by config.status. */
  21589. if test x"$ac_file" = x-; then
  21590. configure_input=
  21591. else
  21592. configure_input="$ac_file. "
  21593. fi
  21594. configure_input=$configure_input"Generated from `echo $ac_file_in |
  21595. sed 's,.*/,,'` by configure."
  21596. # First look for the input files in the build tree, otherwise in the
  21597. # src tree.
  21598. ac_file_inputs=`IFS=:
  21599. for f in $ac_file_in; do
  21600. case $f in
  21601. -) echo $tmp/stdin ;;
  21602. [\\/$]*)
  21603. # Absolute (can't be DOS-style, as IFS=:)
  21604. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  21605. echo "$as_me: error: cannot find input file: $f" >&2;}
  21606. { (exit 1); exit 1; }; }
  21607. echo "$f";;
  21608. *) # Relative
  21609. if test -f "$f"; then
  21610. # Build tree
  21611. echo "$f"
  21612. elif test -f "$srcdir/$f"; then
  21613. # Source tree
  21614. echo "$srcdir/$f"
  21615. else
  21616. # /dev/null tree
  21617. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  21618. echo "$as_me: error: cannot find input file: $f" >&2;}
  21619. { (exit 1); exit 1; }; }
  21620. fi;;
  21621. esac
  21622. done` || { (exit 1); exit 1; }
  21623. _ACEOF
  21624. cat >>$CONFIG_STATUS <<_ACEOF
  21625. sed "$ac_vpsub
  21626. $extrasub
  21627. _ACEOF
  21628. cat >>$CONFIG_STATUS <<\_ACEOF
  21629. :t
  21630. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21631. s,@configure_input@,$configure_input,;t t
  21632. s,@srcdir@,$ac_srcdir,;t t
  21633. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  21634. s,@top_srcdir@,$ac_top_srcdir,;t t
  21635. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  21636. s,@builddir@,$ac_builddir,;t t
  21637. s,@abs_builddir@,$ac_abs_builddir,;t t
  21638. s,@top_builddir@,$ac_top_builddir,;t t
  21639. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  21640. s,@INSTALL@,$ac_INSTALL,;t t
  21641. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  21642. rm -f $tmp/stdin
  21643. if test x"$ac_file" != x-; then
  21644. mv $tmp/out $ac_file
  21645. else
  21646. cat $tmp/out
  21647. rm -f $tmp/out
  21648. fi
  21649. done
  21650. _ACEOF
  21651. cat >>$CONFIG_STATUS <<\_ACEOF
  21652. #
  21653. # CONFIG_HEADER section.
  21654. #
  21655. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  21656. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  21657. #
  21658. # ac_d sets the value in "#define NAME VALUE" lines.
  21659. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  21660. ac_dB='[ ].*$,\1#\2'
  21661. ac_dC=' '
  21662. ac_dD=',;t'
  21663. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  21664. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  21665. ac_uB='$,\1#\2define\3'
  21666. ac_uC=' '
  21667. ac_uD=',;t'
  21668. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  21669. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  21670. case $ac_file in
  21671. - | *:- | *:-:* ) # input from stdin
  21672. cat >$tmp/stdin
  21673. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  21674. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  21675. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  21676. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  21677. * ) ac_file_in=$ac_file.in ;;
  21678. esac
  21679. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  21680. echo "$as_me: creating $ac_file" >&6;}
  21681. # First look for the input files in the build tree, otherwise in the
  21682. # src tree.
  21683. ac_file_inputs=`IFS=:
  21684. for f in $ac_file_in; do
  21685. case $f in
  21686. -) echo $tmp/stdin ;;
  21687. [\\/$]*)
  21688. # Absolute (can't be DOS-style, as IFS=:)
  21689. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  21690. echo "$as_me: error: cannot find input file: $f" >&2;}
  21691. { (exit 1); exit 1; }; }
  21692. # Do quote $f, to prevent DOS paths from being IFS'd.
  21693. echo "$f";;
  21694. *) # Relative
  21695. if test -f "$f"; then
  21696. # Build tree
  21697. echo "$f"
  21698. elif test -f "$srcdir/$f"; then
  21699. # Source tree
  21700. echo "$srcdir/$f"
  21701. else
  21702. # /dev/null tree
  21703. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  21704. echo "$as_me: error: cannot find input file: $f" >&2;}
  21705. { (exit 1); exit 1; }; }
  21706. fi;;
  21707. esac
  21708. done` || { (exit 1); exit 1; }
  21709. # Remove the trailing spaces.
  21710. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  21711. _ACEOF
  21712. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  21713. # `conftest.undefs', that substitutes the proper values into
  21714. # config.h.in to produce config.h. The first handles `#define'
  21715. # templates, and the second `#undef' templates.
  21716. # And first: Protect against being on the right side of a sed subst in
  21717. # config.status. Protect against being in an unquoted here document
  21718. # in config.status.
  21719. rm -f conftest.defines conftest.undefs
  21720. # Using a here document instead of a string reduces the quoting nightmare.
  21721. # Putting comments in sed scripts is not portable.
  21722. #
  21723. # `end' is used to avoid that the second main sed command (meant for
  21724. # 0-ary CPP macros) applies to n-ary macro definitions.
  21725. # See the Autoconf documentation for `clear'.
  21726. cat >confdef2sed.sed <<\_ACEOF
  21727. s/[\\&,]/\\&/g
  21728. s,[\\$`],\\&,g
  21729. t clear
  21730. : clear
  21731. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  21732. t end
  21733. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  21734. : end
  21735. _ACEOF
  21736. # If some macros were called several times there might be several times
  21737. # the same #defines, which is useless. Nevertheless, we may not want to
  21738. # sort them, since we want the *last* AC-DEFINE to be honored.
  21739. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  21740. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  21741. rm -f confdef2sed.sed
  21742. # This sed command replaces #undef with comments. This is necessary, for
  21743. # example, in the case of _POSIX_SOURCE, which is predefined and required
  21744. # on some systems where configure will not decide to define it.
  21745. cat >>conftest.undefs <<\_ACEOF
  21746. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  21747. _ACEOF
  21748. # Break up conftest.defines because some shells have a limit on the size
  21749. # of here documents, and old seds have small limits too (100 cmds).
  21750. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  21751. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  21752. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  21753. echo ' :' >>$CONFIG_STATUS
  21754. rm -f conftest.tail
  21755. while grep . conftest.defines >/dev/null
  21756. do
  21757. # Write a limited-size here document to $tmp/defines.sed.
  21758. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  21759. # Speed up: don't consider the non `#define' lines.
  21760. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  21761. # Work around the forget-to-reset-the-flag bug.
  21762. echo 't clr' >>$CONFIG_STATUS
  21763. echo ': clr' >>$CONFIG_STATUS
  21764. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  21765. echo 'CEOF
  21766. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  21767. rm -f $tmp/in
  21768. mv $tmp/out $tmp/in
  21769. ' >>$CONFIG_STATUS
  21770. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  21771. rm -f conftest.defines
  21772. mv conftest.tail conftest.defines
  21773. done
  21774. rm -f conftest.defines
  21775. echo ' fi # grep' >>$CONFIG_STATUS
  21776. echo >>$CONFIG_STATUS
  21777. # Break up conftest.undefs because some shells have a limit on the size
  21778. # of here documents, and old seds have small limits too (100 cmds).
  21779. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  21780. rm -f conftest.tail
  21781. while grep . conftest.undefs >/dev/null
  21782. do
  21783. # Write a limited-size here document to $tmp/undefs.sed.
  21784. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  21785. # Speed up: don't consider the non `#undef'
  21786. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  21787. # Work around the forget-to-reset-the-flag bug.
  21788. echo 't clr' >>$CONFIG_STATUS
  21789. echo ': clr' >>$CONFIG_STATUS
  21790. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  21791. echo 'CEOF
  21792. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  21793. rm -f $tmp/in
  21794. mv $tmp/out $tmp/in
  21795. ' >>$CONFIG_STATUS
  21796. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  21797. rm -f conftest.undefs
  21798. mv conftest.tail conftest.undefs
  21799. done
  21800. rm -f conftest.undefs
  21801. cat >>$CONFIG_STATUS <<\_ACEOF
  21802. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21803. # use $as_me), people would be surprised to read:
  21804. # /* config.h. Generated by config.status. */
  21805. if test x"$ac_file" = x-; then
  21806. echo "/* Generated by configure. */" >$tmp/config.h
  21807. else
  21808. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  21809. fi
  21810. cat $tmp/in >>$tmp/config.h
  21811. rm -f $tmp/in
  21812. if test x"$ac_file" != x-; then
  21813. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  21814. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  21815. echo "$as_me: $ac_file is unchanged" >&6;}
  21816. else
  21817. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  21818. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21819. X"$ac_file" : 'X\(//\)[^/]' \| \
  21820. X"$ac_file" : 'X\(//\)$' \| \
  21821. X"$ac_file" : 'X\(/\)' \| \
  21822. . : '\(.\)' 2>/dev/null ||
  21823. echo X"$ac_file" |
  21824. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21825. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21826. /^X\(\/\/\)$/{ s//\1/; q; }
  21827. /^X\(\/\).*/{ s//\1/; q; }
  21828. s/.*/./; q'`
  21829. { if $as_mkdir_p; then
  21830. mkdir -p "$ac_dir"
  21831. else
  21832. as_dir="$ac_dir"
  21833. as_dirs=
  21834. while test ! -d "$as_dir"; do
  21835. as_dirs="$as_dir $as_dirs"
  21836. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  21837. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21838. X"$as_dir" : 'X\(//\)[^/]' \| \
  21839. X"$as_dir" : 'X\(//\)$' \| \
  21840. X"$as_dir" : 'X\(/\)' \| \
  21841. . : '\(.\)' 2>/dev/null ||
  21842. echo X"$as_dir" |
  21843. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21844. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21845. /^X\(\/\/\)$/{ s//\1/; q; }
  21846. /^X\(\/\).*/{ s//\1/; q; }
  21847. s/.*/./; q'`
  21848. done
  21849. test ! -n "$as_dirs" || mkdir $as_dirs
  21850. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  21851. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  21852. { (exit 1); exit 1; }; }; }
  21853. rm -f $ac_file
  21854. mv $tmp/config.h $ac_file
  21855. fi
  21856. else
  21857. cat $tmp/config.h
  21858. rm -f $tmp/config.h
  21859. fi
  21860. # Compute $ac_file's index in $config_headers.
  21861. _am_stamp_count=1
  21862. for _am_header in $config_headers :; do
  21863. case $_am_header in
  21864. $ac_file | $ac_file:* )
  21865. break ;;
  21866. * )
  21867. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  21868. esac
  21869. done
  21870. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  21871. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21872. X$ac_file : 'X\(//\)[^/]' \| \
  21873. X$ac_file : 'X\(//\)$' \| \
  21874. X$ac_file : 'X\(/\)' \| \
  21875. . : '\(.\)' 2>/dev/null ||
  21876. echo X$ac_file |
  21877. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21878. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21879. /^X\(\/\/\)$/{ s//\1/; q; }
  21880. /^X\(\/\).*/{ s//\1/; q; }
  21881. s/.*/./; q'`/stamp-h$_am_stamp_count
  21882. done
  21883. _ACEOF
  21884. cat >>$CONFIG_STATUS <<\_ACEOF
  21885. #
  21886. # CONFIG_COMMANDS section.
  21887. #
  21888. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  21889. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  21890. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  21891. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  21892. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21893. X"$ac_dest" : 'X\(//\)[^/]' \| \
  21894. X"$ac_dest" : 'X\(//\)$' \| \
  21895. X"$ac_dest" : 'X\(/\)' \| \
  21896. . : '\(.\)' 2>/dev/null ||
  21897. echo X"$ac_dest" |
  21898. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21899. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21900. /^X\(\/\/\)$/{ s//\1/; q; }
  21901. /^X\(\/\).*/{ s//\1/; q; }
  21902. s/.*/./; q'`
  21903. { if $as_mkdir_p; then
  21904. mkdir -p "$ac_dir"
  21905. else
  21906. as_dir="$ac_dir"
  21907. as_dirs=
  21908. while test ! -d "$as_dir"; do
  21909. as_dirs="$as_dir $as_dirs"
  21910. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  21911. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21912. X"$as_dir" : 'X\(//\)[^/]' \| \
  21913. X"$as_dir" : 'X\(//\)$' \| \
  21914. X"$as_dir" : 'X\(/\)' \| \
  21915. . : '\(.\)' 2>/dev/null ||
  21916. echo X"$as_dir" |
  21917. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21918. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21919. /^X\(\/\/\)$/{ s//\1/; q; }
  21920. /^X\(\/\).*/{ s//\1/; q; }
  21921. s/.*/./; q'`
  21922. done
  21923. test ! -n "$as_dirs" || mkdir $as_dirs
  21924. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  21925. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  21926. { (exit 1); exit 1; }; }; }
  21927. ac_builddir=.
  21928. if test "$ac_dir" != .; then
  21929. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  21930. # A "../" for each directory in $ac_dir_suffix.
  21931. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  21932. else
  21933. ac_dir_suffix= ac_top_builddir=
  21934. fi
  21935. case $srcdir in
  21936. .) # No --srcdir option. We are building in place.
  21937. ac_srcdir=.
  21938. if test -z "$ac_top_builddir"; then
  21939. ac_top_srcdir=.
  21940. else
  21941. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  21942. fi ;;
  21943. [\\/]* | ?:[\\/]* ) # Absolute path.
  21944. ac_srcdir=$srcdir$ac_dir_suffix;
  21945. ac_top_srcdir=$srcdir ;;
  21946. *) # Relative path.
  21947. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  21948. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  21949. esac
  21950. # Do not use `cd foo && pwd` to compute absolute paths, because
  21951. # the directories may not exist.
  21952. case `pwd` in
  21953. .) ac_abs_builddir="$ac_dir";;
  21954. *)
  21955. case "$ac_dir" in
  21956. .) ac_abs_builddir=`pwd`;;
  21957. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  21958. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  21959. esac;;
  21960. esac
  21961. case $ac_abs_builddir in
  21962. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  21963. *)
  21964. case ${ac_top_builddir}. in
  21965. .) ac_abs_top_builddir=$ac_abs_builddir;;
  21966. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  21967. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  21968. esac;;
  21969. esac
  21970. case $ac_abs_builddir in
  21971. .) ac_abs_srcdir=$ac_srcdir;;
  21972. *)
  21973. case $ac_srcdir in
  21974. .) ac_abs_srcdir=$ac_abs_builddir;;
  21975. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  21976. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  21977. esac;;
  21978. esac
  21979. case $ac_abs_builddir in
  21980. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  21981. *)
  21982. case $ac_top_srcdir in
  21983. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  21984. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  21985. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  21986. esac;;
  21987. esac
  21988. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  21989. echo "$as_me: executing $ac_dest commands" >&6;}
  21990. case $ac_dest in
  21991. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  21992. # Strip MF so we end up with the name of the file.
  21993. mf=`echo "$mf" | sed -e 's/:.*$//'`
  21994. # Check whether this is an Automake generated Makefile or not.
  21995. # We used to match only the files named `Makefile.in', but
  21996. # some people rename them; so instead we look at the file content.
  21997. # Grep'ing the first line is not enough: some people post-process
  21998. # each Makefile.in and add a new line on top of each file to say so.
  21999. # So let's grep whole file.
  22000. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  22001. dirpart=`(dirname "$mf") 2>/dev/null ||
  22002. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22003. X"$mf" : 'X\(//\)[^/]' \| \
  22004. X"$mf" : 'X\(//\)$' \| \
  22005. X"$mf" : 'X\(/\)' \| \
  22006. . : '\(.\)' 2>/dev/null ||
  22007. echo X"$mf" |
  22008. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  22009. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  22010. /^X\(\/\/\)$/{ s//\1/; q; }
  22011. /^X\(\/\).*/{ s//\1/; q; }
  22012. s/.*/./; q'`
  22013. else
  22014. continue
  22015. fi
  22016. # Extract the definition of DEPDIR, am__include, and am__quote
  22017. # from the Makefile without running `make'.
  22018. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  22019. test -z "$DEPDIR" && continue
  22020. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  22021. test -z "am__include" && continue
  22022. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  22023. # When using ansi2knr, U may be empty or an underscore; expand it
  22024. U=`sed -n 's/^U = //p' < "$mf"`
  22025. # Find all dependency output files, they are included files with
  22026. # $(DEPDIR) in their names. We invoke sed twice because it is the
  22027. # simplest approach to changing $(DEPDIR) to its actual value in the
  22028. # expansion.
  22029. for file in `sed -n "
  22030. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  22031. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  22032. # Make sure the directory exists.
  22033. test -f "$dirpart/$file" && continue
  22034. fdir=`(dirname "$file") 2>/dev/null ||
  22035. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22036. X"$file" : 'X\(//\)[^/]' \| \
  22037. X"$file" : 'X\(//\)$' \| \
  22038. X"$file" : 'X\(/\)' \| \
  22039. . : '\(.\)' 2>/dev/null ||
  22040. echo X"$file" |
  22041. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  22042. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  22043. /^X\(\/\/\)$/{ s//\1/; q; }
  22044. /^X\(\/\).*/{ s//\1/; q; }
  22045. s/.*/./; q'`
  22046. { if $as_mkdir_p; then
  22047. mkdir -p $dirpart/$fdir
  22048. else
  22049. as_dir=$dirpart/$fdir
  22050. as_dirs=
  22051. while test ! -d "$as_dir"; do
  22052. as_dirs="$as_dir $as_dirs"
  22053. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  22054. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22055. X"$as_dir" : 'X\(//\)[^/]' \| \
  22056. X"$as_dir" : 'X\(//\)$' \| \
  22057. X"$as_dir" : 'X\(/\)' \| \
  22058. . : '\(.\)' 2>/dev/null ||
  22059. echo X"$as_dir" |
  22060. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  22061. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  22062. /^X\(\/\/\)$/{ s//\1/; q; }
  22063. /^X\(\/\).*/{ s//\1/; q; }
  22064. s/.*/./; q'`
  22065. done
  22066. test ! -n "$as_dirs" || mkdir $as_dirs
  22067. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  22068. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  22069. { (exit 1); exit 1; }; }; }
  22070. # echo "creating $dirpart/$file"
  22071. echo '# dummy' > "$dirpart/$file"
  22072. done
  22073. done
  22074. ;;
  22075. esac
  22076. done
  22077. _ACEOF
  22078. cat >>$CONFIG_STATUS <<\_ACEOF
  22079. { (exit 0); exit 0; }
  22080. _ACEOF
  22081. chmod +x $CONFIG_STATUS
  22082. ac_clean_files=$ac_clean_files_save
  22083. # configure is writing to config.log, and then calls config.status.
  22084. # config.status does its own redirection, appending to config.log.
  22085. # Unfortunately, on DOS this fails, as config.log is still kept open
  22086. # by configure, so config.status won't be able to write to it; its
  22087. # output is simply discarded. So we exec the FD to /dev/null,
  22088. # effectively closing config.log, so it can be properly (re)opened and
  22089. # appended to by config.status. When coming back to configure, we
  22090. # need to make the FD available again.
  22091. if test "$no_create" != yes; then
  22092. ac_cs_success=:
  22093. ac_config_status_args=
  22094. test "$silent" = yes &&
  22095. ac_config_status_args="$ac_config_status_args --quiet"
  22096. exec 5>/dev/null
  22097. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22098. exec 5>>config.log
  22099. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22100. # would make configure fail if this is the last instruction.
  22101. $ac_cs_success || { (exit 1); exit 1; }
  22102. fi