configure.ac 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ(2.59)
  4. # This version is the version returned by ns-slapd -v
  5. AC_INIT([dirsrv], [1.1.4], [http://bugzilla.redhat.com/])
  6. # AC_CONFIG_HEADER must be called right after AC_INIT.
  7. AC_CONFIG_HEADERS([config.h])
  8. AM_INIT_AUTOMAKE([1.9 foreign subdir-objects])
  9. AM_MAINTAINER_MODE
  10. AC_CANONICAL_HOST
  11. # Checks for programs.
  12. AC_PROG_CXX
  13. AC_PROG_CC
  14. AM_PROG_CC_C_O
  15. AM_PROG_AS
  16. # disable static libs by default - we only use a couple
  17. AC_DISABLE_STATIC
  18. AC_PROG_LIBTOOL
  19. # Checks for header files.
  20. AC_HEADER_DIRENT
  21. AC_HEADER_STDC
  22. AC_HEADER_SYS_WAIT
  23. AC_CHECK_HEADERS([arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/file.h sys/socket.h sys/time.h unistd.h inttypes.h])
  24. # Checks for typedefs, structures, and compiler characteristics.
  25. AC_HEADER_STAT
  26. AC_C_CONST
  27. AC_HEADER_STDBOOL
  28. AC_TYPE_UID_T
  29. AC_TYPE_PID_T
  30. AC_TYPE_SIZE_T
  31. AC_HEADER_TIME
  32. AC_STRUCT_TM
  33. # Checks for library functions.
  34. AC_FUNC_CHOWN
  35. AC_FUNC_CLOSEDIR_VOID
  36. AC_FUNC_ERROR_AT_LINE
  37. AC_FUNC_FORK
  38. AC_FUNC_LSTAT
  39. AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
  40. AC_FUNC_MALLOC
  41. AC_FUNC_MEMCMP
  42. AC_FUNC_MMAP
  43. AC_TYPE_SIGNAL
  44. AC_FUNC_STAT
  45. AC_FUNC_STRERROR_R
  46. AC_FUNC_STRFTIME
  47. AC_FUNC_VPRINTF
  48. AC_CHECK_FUNCS([setrlimit endpwent ftruncate getcwd gethostbyname inet_ntoa localtime_r memmove memset mkdir munmap putenv rmdir socket strcasecmp strchr strcspn strdup strerror strncasecmp strpbrk strrchr strstr strtol tzset])
  49. AC_MSG_CHECKING(for --enable-debug)
  50. AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [Enable debug features (default: no)]),
  51. [
  52. AC_MSG_RESULT(yes)
  53. debug_defs="-DDEBUG -DMCC_DEBUG"
  54. ],
  55. [
  56. AC_MSG_RESULT(no)
  57. debug_defs=""
  58. ])
  59. AC_SUBST([debug_defs])
  60. # Used for legacy style packaging where we bundle all of the dependencies.
  61. AC_MSG_CHECKING(for --enable-bundle)
  62. AC_ARG_ENABLE(bundle, AS_HELP_STRING([--enable-bundle], [Enable bundled dependencies (default: no)]),
  63. [
  64. AC_MSG_RESULT(yes)
  65. bundle="1";
  66. ],
  67. [
  68. AC_MSG_RESULT(no)
  69. bundle="";
  70. ])
  71. AM_CONDITIONAL(BUNDLE,test "$bundle" = "1")
  72. # these enables are for optional or experimental features
  73. if test -z "$enable_pam_passthru" ; then
  74. enable_pam_passthru=yes # if not set on cmdline, set default
  75. fi
  76. AC_MSG_CHECKING(for --enable-pam-passthru)
  77. AC_ARG_ENABLE(pam-passthru,
  78. AS_HELP_STRING([--enable-pam-passthru],
  79. [enable the PAM passthrough auth plugin (default: yes)]))
  80. if test "$enable_pam_passthru" = yes ; then
  81. AC_MSG_RESULT(yes)
  82. AC_DEFINE([ENABLE_PAM_PASSTHRU], [1], [enable the pam passthru auth plugin])
  83. else
  84. AC_MSG_RESULT(no)
  85. fi
  86. AM_CONDITIONAL(enable_pam_passthru,test "$enable_pam_passthru" = "yes")
  87. if test -z "$enable_dna" ; then
  88. enable_dna=yes # if not set on cmdline, set default
  89. fi
  90. AC_MSG_CHECKING(for --enable-dna)
  91. AC_ARG_ENABLE(dna,
  92. AS_HELP_STRING([--enable-dna],
  93. [enable the Distributed Numeric Assignment (DNA) plugin (default: yes)]))
  94. if test "$enable_dna" = yes ; then
  95. AC_MSG_RESULT(yes)
  96. AC_DEFINE([ENABLE_DNA], [1], [enable the dna plugin])
  97. else
  98. AC_MSG_RESULT(no)
  99. fi
  100. AM_CONDITIONAL(enable_dna,test "$enable_dna" = "yes")
  101. if test -z "$enable_ldapi" ; then
  102. enable_ldapi=yes # if not set on cmdline, set default
  103. fi
  104. AC_MSG_CHECKING(for --enable-ldapi)
  105. AC_ARG_ENABLE(ldapi,
  106. AS_HELP_STRING([--enable-ldapi],
  107. [enable LDAP over unix domain socket (LDAPI) support (default: yes)]))
  108. if test "$enable_ldapi" = yes ; then
  109. AC_MSG_RESULT(yes)
  110. AC_DEFINE([ENABLE_LDAPI], [1], [enable ldapi support in the server])
  111. else
  112. AC_MSG_RESULT(no)
  113. fi
  114. AM_CONDITIONAL(enable_ldapi,test "$enable_ldapi" = "yes")
  115. if test -z "$enable_autobind" ; then
  116. enable_autobind=no # if not set on cmdline, set default
  117. fi
  118. AC_MSG_CHECKING(for --enable-autobind)
  119. AC_ARG_ENABLE(autobind,
  120. AS_HELP_STRING([--enable-autobind],
  121. [enable auto bind over unix domain socket (LDAPI) support (default: no)]))
  122. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  123. AC_MSG_RESULT(yes)
  124. AC_DEFINE([ENABLE_AUTOBIND], [1], [enable ldapi auto bind support in the server])
  125. else
  126. AC_MSG_RESULT(no)
  127. fi
  128. AM_CONDITIONAL(enable_autobind,test "$enable_autobind" = "yes")
  129. if test -z "$enable_auto_dn_suffix" ; then
  130. enable_auto_dn_suffix=no # if not set on cmdline, set default
  131. fi
  132. AC_MSG_CHECKING(for --enable-auto-dn-suffix)
  133. AC_ARG_ENABLE(autobind,
  134. AS_HELP_STRING([--enable-auto-dn-suffix],
  135. [enable auto bind with auto dn suffix over unix domain socket (LDAPI) support (default: no)]))
  136. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  137. AC_MSG_RESULT(yes)
  138. AC_DEFINE([ENABLE_AUTO_DN_SUFFIX], [1], [enable ldapi auto bind with auto dn suffix support in the server])
  139. else
  140. AC_MSG_RESULT(no)
  141. fi
  142. AM_CONDITIONAL(enable_auto_dn_suffix,test "$enable_auto_dn_suffix" = "yes")
  143. if test -z "$enable_bitwise" ; then
  144. enable_bitwise=yes # if not set on cmdline, set default
  145. fi
  146. AC_MSG_CHECKING(for --enable-bitwise)
  147. AC_ARG_ENABLE(bitwise,
  148. AS_HELP_STRING([--enable-bitwise],
  149. [enable the bitwise matching rule plugin (default: yes)]))
  150. if test "$enable_bitwise" = yes ; then
  151. AC_MSG_RESULT(yes)
  152. AC_DEFINE([ENABLE_BITWISE], [1], [enable the bitwise plugin])
  153. else
  154. AC_MSG_RESULT(no)
  155. fi
  156. AM_CONDITIONAL(enable_bitwise,test "$enable_bitwise" = "yes")
  157. # the default prefix - override with --prefix or --with-fhs
  158. AC_PREFIX_DEFAULT([/opt/$PACKAGE_NAME])
  159. brand=fedora
  160. capbrand=Fedora
  161. vendor="Fedora Project"
  162. m4_include(m4/fhs.m4)
  163. # installation paths - by default, we store everything
  164. # under the prefix. The with-fhs option will use /usr,
  165. # /etc, and /var. The with-fhs-opt option will use the
  166. # prefix, but it's sysconfdir and localstatedir will be
  167. # /etc/opt, and /var/opt.
  168. if test "$with_fhs_opt" = "yes"; then
  169. # Override sysconfdir and localstatedir if FHS optional
  170. # package was requested.
  171. sysconfdir='/etc/opt'
  172. localstatedir='/var/opt'
  173. # relative to datadir
  174. sampledatadir=/data
  175. # relative to datadir
  176. scripttemplatedir=/script-templates
  177. # relative to libdir
  178. serverdir=
  179. # relative to libdir
  180. serverplugindir=/plugins
  181. # relative to datadir
  182. infdir=/inf
  183. # relative to datadir
  184. mibdir=/mibs
  185. # location of property/resource files, relative to datadir
  186. propertydir=/properties
  187. # relative to libdir
  188. perldir=/perl
  189. else
  190. if test "$with_fhs" = "yes"; then
  191. ac_default_prefix=/usr
  192. prefix=$ac_default_prefix
  193. exec_prefix=$prefix
  194. dnl as opposed to the default /usr/etc
  195. sysconfdir='/etc'
  196. dnl as opposed to the default /usr/var
  197. localstatedir='/var'
  198. fi
  199. # relative to datadir
  200. sampledatadir=/$PACKAGE_NAME/data
  201. # relative to datadir
  202. scripttemplatedir=/$PACKAGE_NAME/script-templates
  203. # relative to libdir
  204. serverdir=/$PACKAGE_NAME
  205. # relative to libdir
  206. serverplugindir=/$PACKAGE_NAME/plugins
  207. # relative to datadir
  208. infdir=/$PACKAGE_NAME/inf
  209. # relative to datadir
  210. mibdir=/$PACKAGE_NAME/mibs
  211. # location of property/resource files, relative to datadir
  212. propertydir=/$PACKAGE_NAME/properties
  213. # relative to libdir
  214. perldir=/$PACKAGE_NAME/perl
  215. fi
  216. # if mandir is the default value, override it
  217. # otherwise, the user must have set it - just use it
  218. if test X"$mandir" = X'${prefix}/man' ; then
  219. mandir='$(datadir)/man'
  220. fi
  221. # Shared paths for all layouts
  222. # relative to sysconfdir
  223. configdir=/$PACKAGE_NAME/config
  224. # relative to sysconfdir
  225. schemadir=/$PACKAGE_NAME/schema
  226. # default user, group
  227. defaultuser=nobody
  228. defaultgroup=nobody
  229. AC_SUBST(configdir)
  230. AC_SUBST(sampledatadir)
  231. AC_SUBST(propertydir)
  232. AC_SUBST(schemadir)
  233. AC_SUBST(serverdir)
  234. AC_SUBST(serverplugindir)
  235. AC_SUBST(scripttemplatedir)
  236. AC_SUBST(perldir)
  237. AC_SUBST(infdir)
  238. AC_SUBST(mibdir)
  239. AC_SUBST(mandir)
  240. AC_SUBST(defaultuser)
  241. AC_SUBST(defaultgroup)
  242. # check for --with-instconfigdir
  243. AC_MSG_CHECKING(for --with-instconfigdir)
  244. AC_ARG_WITH(instconfigdir,
  245. AS_HELP_STRING([--with-instconfigdir=/path],
  246. [Base directory for instance specific writable configuration directories (default $sysconfdir/$PACKAGE_NAME)]),
  247. [
  248. if test $withval = yes ; then
  249. AC_ERROR([Please specify a full path with --with-instconfigdir])
  250. fi
  251. instconfigdir="$withval"
  252. AC_MSG_RESULT($withval)
  253. ],
  254. [
  255. dnl this value is expanded out in Makefile.am
  256. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  257. AC_MSG_RESULT(no)
  258. ])
  259. AC_SUBST(instconfigdir)
  260. # WINNT should be true if building on Windows system not using
  261. # cygnus, mingw, or the like and using cmd.exe as the shell
  262. AM_CONDITIONAL([WINNT], false)
  263. # Deal with platform dependent defines
  264. # relative to sysconfdir
  265. initdir=/rc.d
  266. # on most platforms, we will just use perl from PATH
  267. # On some platforms, we cannot. Why not just use any old
  268. # perl? Because of perldap. We use a perldap that is
  269. # compiled to either 32bit or 64bit, so we must use a native
  270. # perl binary compiled with the same bitsize. On Solaris
  271. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  272. # those with our 64 bit compiled product.
  273. perlexec='/usr/bin/env perl'
  274. case $host in
  275. i*86-*-linux*)
  276. AC_DEFINE([XP_UNIX], [1], [UNIX])
  277. AC_DEFINE([Linux], [1], [Linux])
  278. AC_DEFINE([LINUX], [1], [Linux])
  279. AC_DEFINE([LINUX2_0], [1], [Linux 2.0])
  280. AC_DEFINE([LINUX2_2], [1], [Linux 2.2])
  281. AC_DEFINE([LINUX2_4], [1], [Linux 2.4])
  282. AC_DEFINE([CPU_x86], [], [cpu type x86])
  283. AC_DEFINE([_GNU_SOURCE], [1], [GNU Source])
  284. AC_DEFINE([ATOMIC_64BIT_OPERATIONS], [1], [enabling atomic counter])
  285. AC_CHECK_DECLS([__sync_add_and_fetch])
  286. platform="linux"
  287. # relative to sysconfdir
  288. initdir=/rc.d/init.d
  289. ;;
  290. x86_64-*-linux*)
  291. AC_DEFINE([XP_UNIX], [1], [UNIX])
  292. AC_DEFINE([Linux], [1], [Linux])
  293. AC_DEFINE([LINUX], [1], [Linux])
  294. AC_DEFINE([LINUX2_0], [1], [Linux 2.0])
  295. AC_DEFINE([LINUX2_2], [1], [Linux 2.2])
  296. AC_DEFINE([LINUX2_4], [1], [Linux 2.4])
  297. AC_DEFINE([CPU_x86_64], [], [cpu type x86_64])
  298. AC_DEFINE([_GNU_SOURCE], [1], [GNU Source])
  299. AC_DEFINE([ATOMIC_64BIT_OPERATIONS], [1], [enabling atomic counter])
  300. AC_CHECK_DECLS([__sync_add_and_fetch])
  301. platform="linux"
  302. # relative to sysconfdir
  303. initdir=/rc.d/init.d
  304. ;;
  305. ia64-hp-hpux*)
  306. AC_DEFINE([XP_UNIX], [1], [UNIX])
  307. AC_DEFINE([hpux], [1], [HP-UX])
  308. AC_DEFINE([HPUX], [1], [HP-UX])
  309. AC_DEFINE([HPUX11], [1], [HP-UX 11])
  310. AC_DEFINE([HPUX11_23], [1], [HP-UX 11.23])
  311. AC_DEFINE([CPU_ia64], [], [cpu type ia64])
  312. AC_DEFINE([OS_hpux], [1], [OS HP-UX])
  313. AC_DEFINE([_POSIX_C_SOURCE], [199506L], [POSIX revision])
  314. AC_DEFINE([_HPUX_SOURCE], [1], [Source namespace])
  315. AC_DEFINE([_INCLUDE_STDC__SOURCE_199901], [1], [to pick up all of the printf format macros in inttypes.h])
  316. AC_DEFINE([ATOMIC_64BIT_OPERATIONS], [1], [enabling atomic counter])
  317. # assume 64 bit
  318. perlexec='/opt/perl_64/bin/perl'
  319. platform="hpux"
  320. initconfigdir="/$PACKAGE_NAME/config"
  321. ;;
  322. hppa*-hp-hpux*)
  323. AC_DEFINE([XP_UNIX], [1], [UNIX])
  324. AC_DEFINE([hpux], [1], [HP-UX])
  325. AC_DEFINE([HPUX], [1], [HP-UX])
  326. AC_DEFINE([HPUX11], [1], [HP-UX 11])
  327. AC_DEFINE([HPUX11_11], [1], [HP-UX 11.11])
  328. AC_DEFINE([CPU_hppa], [], [cpu type pa-risc])
  329. AC_DEFINE([OS_hpux], [1], [OS HP-UX])
  330. AC_DEFINE([_POSIX_C_SOURCE], [199506L], [POSIX revision])
  331. AC_DEFINE([_HPUX_SOURCE], [1], [Source namespace])
  332. AC_DEFINE([_INCLUDE_STDC__SOURCE_199901], [1], [to pick up all of the printf format macros in inttypes.h])
  333. AC_DEFINE([ATOMIC_64BIT_OPERATIONS], [1], [enabling atomic counter])
  334. # assume 64 bit
  335. initconfigdir="/$PACKAGE_NAME/config"
  336. perlexec='/opt/perl_64/bin/perl'
  337. platform="hpux"
  338. ;;
  339. sparc-sun-solaris*)
  340. AC_DEFINE([XP_UNIX], [1], [UNIX])
  341. AC_DEFINE([SVR4], [1], [SVR4])
  342. AC_DEFINE([__svr4], [1], [SVR4])
  343. AC_DEFINE([__svr4__], [1], [SVR4])
  344. AC_DEFINE([_SVID_GETTOD], [1], [SVID_GETTOD])
  345. AC_DEFINE([SOLARIS], [1], [SOLARIS])
  346. AC_DEFINE([CPU_sparc], [], [cpu type sparc])
  347. AC_DEFINE([OS_solaris], [1], [OS SOLARIS])
  348. AC_DEFINE([sunos5], [1], [SunOS5])
  349. AC_DEFINE([OSVERSION], [509], [OS version])
  350. AC_DEFINE([_REENTRANT], [1], [_REENTRANT])
  351. AC_DEFINE([NO_DOMAINNAME], [1], [no getdomainname])
  352. AC_DEFINE([ATOMIC_64BIT_OPERATIONS], [1], [enabling atomic counter])
  353. dnl socket nsl and dl are required to link several programs and libdb
  354. LIBSOCKET=-lsocket
  355. AC_SUBST([LIBSOCKET], [$LIBSOCKET])
  356. LIBNSL=-lnsl
  357. AC_SUBST([LIBNSL], [$LIBNSL])
  358. LIBDL=-ldl
  359. AC_SUBST([LIBDL], [$LIBDL])
  360. dnl Cstd and Crun are required to link any C++ related code
  361. LIBCSTD=-lCstd
  362. AC_SUBST([LIBCSTD], [$LIBCSTD])
  363. LIBCRUN=-lCrun
  364. AC_SUBST([LIBCRUN], [$LIBCRUN])
  365. platform="solaris"
  366. # assume 64 bit
  367. perlexec='/opt/perl5x/bin/perl'
  368. # relative to sysconfdir
  369. initdir=/init.d
  370. ;;
  371. *)
  372. platform=""
  373. ;;
  374. esac
  375. AC_SUBST(initdir)
  376. AC_SUBST(perlexec)
  377. # set default initconfigdir if not already set
  378. # value will be set so as to be relative to $(sysconfdir)
  379. if test -z "$initconfigdir" ; then
  380. if test -d /etc/sysconfig ; then
  381. initconfigdir=/sysconfig
  382. elif test -d /etc/default ; then
  383. initconfigdir=/default
  384. else
  385. initconfigdir="/$PACKAGE_NAME/config"
  386. fi
  387. fi
  388. AC_SUBST(initconfigdir)
  389. AM_CONDITIONAL(HPUX,test "$platform" = "hpux")
  390. AM_CONDITIONAL(SOLARIS,test "$platform" = "solaris")
  391. # Check for library dependencies
  392. m4_include(m4/nspr.m4)
  393. m4_include(m4/nss.m4)
  394. m4_include(m4/mozldap.m4)
  395. m4_include(m4/db.m4)
  396. m4_include(m4/sasl.m4)
  397. m4_include(m4/svrcore.m4)
  398. m4_include(m4/icu.m4)
  399. m4_include(m4/netsnmp.m4)
  400. m4_include(m4/kerberos.m4)
  401. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  402. AC_SUBST(PACKAGE_BASE_VERSION)
  403. # set sasl_path for wrapper scripts
  404. if test -z "$sasl_libdir" ; then
  405. sasl_path="$libdir/sasl2"
  406. else
  407. sasl_path="$sasl_libdir/sasl2"
  408. fi
  409. # write out paths for binary components
  410. AC_SUBST(nspr_inc)
  411. AC_SUBST(nspr_lib)
  412. AC_SUBST(nspr_libdir)
  413. AC_SUBST(nss_inc)
  414. AC_SUBST(nss_lib)
  415. AC_SUBST(nss_libdir)
  416. AC_SUBST(ldapsdk_inc)
  417. AC_SUBST(ldapsdk_lib)
  418. AC_SUBST(ldapsdk_libdir)
  419. AC_SUBST(ldapsdk_bindir)
  420. AC_SUBST(db_inc)
  421. AC_SUBST(db_incdir)
  422. AC_SUBST(db_lib)
  423. AC_SUBST(db_libdir)
  424. AC_SUBST(db_bindir)
  425. AC_SUBST(db_libver)
  426. AC_SUBST(sasl_inc)
  427. AC_SUBST(sasl_lib)
  428. AC_SUBST(sasl_libdir)
  429. AC_SUBST(sasl_path)
  430. AC_SUBST(svrcore_inc)
  431. AC_SUBST(svrcore_lib)
  432. AC_SUBST(icu_lib)
  433. AC_SUBST(icu_inc)
  434. AC_SUBST(icu_bin)
  435. AC_SUBST(netsnmp_inc)
  436. AC_SUBST(netsnmp_lib)
  437. AC_SUBST(netsnmp_libdir)
  438. AC_SUBST(netsnmp_link)
  439. AC_SUBST(brand)
  440. AC_SUBST(capbrand)
  441. AC_SUBST(vendor)
  442. AC_DEFINE([LDAP_DEBUG], [1], [LDAP debug flag])
  443. AC_DEFINE([LDAP_DONT_USE_SMARTHEAP], [1], [Don't use smartheap])
  444. # libtool on fedora/rhel contains some gcc-isms which cause problems
  445. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  446. # we remove them here
  447. if test "$GCC" != yes ; then
  448. AC_MSG_NOTICE([Not using gcc - fixing libtool to remove gcc-isms . . .])
  449. cp -p libtool libtool.orig
  450. cp -p libtool libtool.tmp
  451. # dnl note the special chars @<:@ and @:>@ - since m4 treats [ and ] specially,
  452. # we have to use the quadrigraph @<:@ for [ and @:>@ for ] - and you thought
  453. # perl produced write-only code . . .
  454. sed -e '/^gcc_dir/ d' \
  455. -e '/^gcc_ver/ d' \
  456. -e 's/^predep_objects=.*echo \("@<:@^"@:>@*"\).*$/predep_objects=\1/' \
  457. -e 's/^postdep_objects=.*echo \("@<:@^"@:>@*"\).*$/postdep_objects=\1/' \
  458. -e 's/^compiler_lib_search_path=.*echo \("@<:@^"@:>@*"\).*$/compiler_lib_search_path=\1/' \
  459. -e 's/^sys_lib_search_path_spec=.*echo \("@<:@^"@:>@*"\).*$/sys_lib_search_path_spec=\1/' \
  460. libtool > libtool.tmp
  461. cp -p libtool.tmp libtool
  462. rm -f libtool.tmp
  463. fi
  464. AC_CONFIG_FILES([Makefile])
  465. AC_OUTPUT