Mercurial > noffle
annotate aclocal.m4 @ 484:d33568bb18ab noffle
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
docs/Makefile.in,packages/Makefile.in,packages/redhat/Makefile.in,
src/Makefile.in: Bump version to 1.2.0rc1.
author | bears |
---|---|
date | Fri, 22 Oct 2004 13:50:40 +0100 |
parents | a6e3b57fb035 |
children | d09bcf917ac9 |
rev | line source |
---|---|
484
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
1 dnl aclocal.m4 generated automatically by aclocal 1.4-p6 |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
2 |
484
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
3 dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
4 dnl This file is free software; the Free Software Foundation |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
5 dnl gives unlimited permission to copy and/or distribute it, |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
6 dnl with or without modifications, as long as this notice is preserved. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
7 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
8 dnl This program is distributed in the hope that it will be useful, |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
9 dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
10 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
11 dnl PARTICULAR PURPOSE. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
12 |
484
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
13 # lib-prefix.m4 serial 3 (gettext-0.13) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
14 dnl Copyright (C) 2001-2003 Free Software Foundation, Inc. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
15 dnl This file is free software, distributed under the terms of the GNU |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
16 dnl General Public License. As a special exception to the GNU General |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
17 dnl Public License, this file may be distributed as part of a program |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
18 dnl that contains a configuration script generated by Autoconf, under |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
19 dnl the same distribution terms as the rest of that program. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
20 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
21 dnl From Bruno Haible. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
22 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
23 dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
24 dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
25 dnl require excessive bracketing. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
26 ifdef([AC_HELP_STRING], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
27 [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
28 [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
29 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
30 dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
31 dnl to access previously installed libraries. The basic assumption is that |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
32 dnl a user will want packages to use other packages he previously installed |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
33 dnl with the same --prefix option. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
34 dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
35 dnl libraries, but is otherwise very convenient. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
36 AC_DEFUN([AC_LIB_PREFIX], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
37 [ |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
38 AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
39 AC_REQUIRE([AC_PROG_CC]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
40 AC_REQUIRE([AC_CANONICAL_HOST]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
41 AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
42 dnl By default, look in $includedir and $libdir. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
43 use_additional=yes |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
44 AC_LIB_WITH_FINAL_PREFIX([ |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
45 eval additional_includedir=\"$includedir\" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
46 eval additional_libdir=\"$libdir\" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
47 ]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
48 AC_LIB_ARG_WITH([lib-prefix], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
49 [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
50 --without-lib-prefix don't search for libraries in includedir and libdir], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
51 [ |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
52 if test "X$withval" = "Xno"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
53 use_additional=no |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
54 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
55 if test "X$withval" = "X"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
56 AC_LIB_WITH_FINAL_PREFIX([ |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
57 eval additional_includedir=\"$includedir\" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
58 eval additional_libdir=\"$libdir\" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
59 ]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
60 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
61 additional_includedir="$withval/include" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
62 additional_libdir="$withval/lib" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
63 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
64 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
65 ]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
66 if test $use_additional = yes; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
67 dnl Potentially add $additional_includedir to $CPPFLAGS. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
68 dnl But don't add it |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
69 dnl 1. if it's the standard /usr/include, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
70 dnl 2. if it's already present in $CPPFLAGS, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
71 dnl 3. if it's /usr/local/include and we are using GCC on Linux, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
72 dnl 4. if it doesn't exist as a directory. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
73 if test "X$additional_includedir" != "X/usr/include"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
74 haveit= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
75 for x in $CPPFLAGS; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
76 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
77 if test "X$x" = "X-I$additional_includedir"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
78 haveit=yes |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
79 break |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
80 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
81 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
82 if test -z "$haveit"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
83 if test "X$additional_includedir" = "X/usr/local/include"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
84 if test -n "$GCC"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
85 case $host_os in |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
86 linux*) haveit=yes;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
87 esac |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
88 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
89 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
90 if test -z "$haveit"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
91 if test -d "$additional_includedir"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
92 dnl Really add $additional_includedir to $CPPFLAGS. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
93 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
94 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
95 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
96 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
97 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
98 dnl Potentially add $additional_libdir to $LDFLAGS. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
99 dnl But don't add it |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
100 dnl 1. if it's the standard /usr/lib, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
101 dnl 2. if it's already present in $LDFLAGS, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
102 dnl 3. if it's /usr/local/lib and we are using GCC on Linux, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
103 dnl 4. if it doesn't exist as a directory. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
104 if test "X$additional_libdir" != "X/usr/lib"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
105 haveit= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
106 for x in $LDFLAGS; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
107 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
108 if test "X$x" = "X-L$additional_libdir"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
109 haveit=yes |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
110 break |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
111 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
112 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
113 if test -z "$haveit"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
114 if test "X$additional_libdir" = "X/usr/local/lib"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
115 if test -n "$GCC"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
116 case $host_os in |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
117 linux*) haveit=yes;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
118 esac |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
119 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
120 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
121 if test -z "$haveit"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
122 if test -d "$additional_libdir"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
123 dnl Really add $additional_libdir to $LDFLAGS. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
124 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
125 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
126 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
127 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
128 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
129 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
130 ]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
131 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
132 dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
133 dnl acl_final_exec_prefix, containing the values to which $prefix and |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
134 dnl $exec_prefix will expand at the end of the configure script. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
135 AC_DEFUN([AC_LIB_PREPARE_PREFIX], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
136 [ |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
137 dnl Unfortunately, prefix and exec_prefix get only finally determined |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
138 dnl at the end of configure. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
139 if test "X$prefix" = "XNONE"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
140 acl_final_prefix="$ac_default_prefix" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
141 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
142 acl_final_prefix="$prefix" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
143 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
144 if test "X$exec_prefix" = "XNONE"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
145 acl_final_exec_prefix='${prefix}' |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
146 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
147 acl_final_exec_prefix="$exec_prefix" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
148 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
149 acl_save_prefix="$prefix" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
150 prefix="$acl_final_prefix" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
151 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
152 prefix="$acl_save_prefix" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
153 ]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
154 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
155 dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
156 dnl variables prefix and exec_prefix bound to the values they will have |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
157 dnl at the end of the configure script. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
158 AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
159 [ |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
160 acl_save_prefix="$prefix" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
161 prefix="$acl_final_prefix" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
162 acl_save_exec_prefix="$exec_prefix" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
163 exec_prefix="$acl_final_exec_prefix" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
164 $1 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
165 exec_prefix="$acl_save_exec_prefix" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
166 prefix="$acl_save_prefix" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
167 ]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
168 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
169 # lib-link.m4 serial 4 (gettext-0.12) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
170 dnl Copyright (C) 2001-2003 Free Software Foundation, Inc. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
171 dnl This file is free software, distributed under the terms of the GNU |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
172 dnl General Public License. As a special exception to the GNU General |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
173 dnl Public License, this file may be distributed as part of a program |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
174 dnl that contains a configuration script generated by Autoconf, under |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
175 dnl the same distribution terms as the rest of that program. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
176 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
177 dnl From Bruno Haible. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
178 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
179 dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
180 dnl the libraries corresponding to explicit and implicit dependencies. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
181 dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
182 dnl augments the CPPFLAGS variable. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
183 AC_DEFUN([AC_LIB_LINKFLAGS], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
184 [ |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
185 AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
186 AC_REQUIRE([AC_LIB_RPATH]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
187 define([Name],[translit([$1],[./-], [___])]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
188 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
189 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
190 AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
191 AC_LIB_LINKFLAGS_BODY([$1], [$2]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
192 ac_cv_lib[]Name[]_libs="$LIB[]NAME" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
193 ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
194 ac_cv_lib[]Name[]_cppflags="$INC[]NAME" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
195 ]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
196 LIB[]NAME="$ac_cv_lib[]Name[]_libs" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
197 LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
198 INC[]NAME="$ac_cv_lib[]Name[]_cppflags" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
199 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
200 AC_SUBST([LIB]NAME) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
201 AC_SUBST([LTLIB]NAME) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
202 dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
203 dnl results of this search when this library appears as a dependency. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
204 HAVE_LIB[]NAME=yes |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
205 undefine([Name]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
206 undefine([NAME]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
207 ]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
208 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
209 dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
210 dnl searches for libname and the libraries corresponding to explicit and |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
211 dnl implicit dependencies, together with the specified include files and |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
212 dnl the ability to compile and link the specified testcode. If found, it |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
213 dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
214 dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
215 dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
216 dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
217 AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
218 [ |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
219 AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
220 AC_REQUIRE([AC_LIB_RPATH]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
221 define([Name],[translit([$1],[./-], [___])]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
222 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
223 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
224 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
225 dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
226 dnl accordingly. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
227 AC_LIB_LINKFLAGS_BODY([$1], [$2]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
228 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
229 dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
230 dnl because if the user has installed lib[]Name and not disabled its use |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
231 dnl via --without-lib[]Name-prefix, he wants to use it. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
232 ac_save_CPPFLAGS="$CPPFLAGS" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
233 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
234 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
235 AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
236 ac_save_LIBS="$LIBS" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
237 LIBS="$LIBS $LIB[]NAME" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
238 AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
239 LIBS="$ac_save_LIBS" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
240 ]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
241 if test "$ac_cv_lib[]Name" = yes; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
242 HAVE_LIB[]NAME=yes |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
243 AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
244 AC_MSG_CHECKING([how to link with lib[]$1]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
245 AC_MSG_RESULT([$LIB[]NAME]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
246 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
247 HAVE_LIB[]NAME=no |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
248 dnl If $LIB[]NAME didn't lead to a usable library, we don't need |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
249 dnl $INC[]NAME either. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
250 CPPFLAGS="$ac_save_CPPFLAGS" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
251 LIB[]NAME= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
252 LTLIB[]NAME= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
253 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
254 AC_SUBST([HAVE_LIB]NAME) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
255 AC_SUBST([LIB]NAME) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
256 AC_SUBST([LTLIB]NAME) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
257 undefine([Name]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
258 undefine([NAME]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
259 ]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
260 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
261 dnl Determine the platform dependent parameters needed to use rpath: |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
262 dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
263 dnl hardcode_direct, hardcode_minus_L. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
264 AC_DEFUN([AC_LIB_RPATH], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
265 [ |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
266 AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
267 AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
268 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
269 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
270 AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
271 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
272 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
273 . ./conftest.sh |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
274 rm -f ./conftest.sh |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
275 acl_cv_rpath=done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
276 ]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
277 wl="$acl_cv_wl" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
278 libext="$acl_cv_libext" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
279 shlibext="$acl_cv_shlibext" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
280 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
281 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
282 hardcode_direct="$acl_cv_hardcode_direct" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
283 hardcode_minus_L="$acl_cv_hardcode_minus_L" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
284 dnl Determine whether the user wants rpath handling at all. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
285 AC_ARG_ENABLE(rpath, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
286 [ --disable-rpath do not hardcode runtime library paths], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
287 :, enable_rpath=yes) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
288 ]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
289 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
290 dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
291 dnl the libraries corresponding to explicit and implicit dependencies. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
292 dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
293 AC_DEFUN([AC_LIB_LINKFLAGS_BODY], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
294 [ |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
295 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
296 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
297 dnl By default, look in $includedir and $libdir. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
298 use_additional=yes |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
299 AC_LIB_WITH_FINAL_PREFIX([ |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
300 eval additional_includedir=\"$includedir\" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
301 eval additional_libdir=\"$libdir\" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
302 ]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
303 AC_LIB_ARG_WITH([lib$1-prefix], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
304 [ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
305 --without-lib$1-prefix don't search for lib$1 in includedir and libdir], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
306 [ |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
307 if test "X$withval" = "Xno"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
308 use_additional=no |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
309 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
310 if test "X$withval" = "X"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
311 AC_LIB_WITH_FINAL_PREFIX([ |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
312 eval additional_includedir=\"$includedir\" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
313 eval additional_libdir=\"$libdir\" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
314 ]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
315 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
316 additional_includedir="$withval/include" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
317 additional_libdir="$withval/lib" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
318 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
319 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
320 ]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
321 dnl Search the library and its dependencies in $additional_libdir and |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
322 dnl $LDFLAGS. Using breadth-first-seach. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
323 LIB[]NAME= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
324 LTLIB[]NAME= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
325 INC[]NAME= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
326 rpathdirs= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
327 ltrpathdirs= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
328 names_already_handled= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
329 names_next_round='$1 $2' |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
330 while test -n "$names_next_round"; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
331 names_this_round="$names_next_round" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
332 names_next_round= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
333 for name in $names_this_round; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
334 already_handled= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
335 for n in $names_already_handled; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
336 if test "$n" = "$name"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
337 already_handled=yes |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
338 break |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
339 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
340 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
341 if test -z "$already_handled"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
342 names_already_handled="$names_already_handled $name" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
343 dnl See if it was already located by an earlier AC_LIB_LINKFLAGS |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
344 dnl or AC_LIB_HAVE_LINKFLAGS call. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
345 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
346 eval value=\"\$HAVE_LIB$uppername\" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
347 if test -n "$value"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
348 if test "$value" = yes; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
349 eval value=\"\$LIB$uppername\" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
350 test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
351 eval value=\"\$LTLIB$uppername\" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
352 test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
353 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
354 dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
355 dnl that this library doesn't exist. So just drop it. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
356 : |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
357 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
358 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
359 dnl Search the library lib$name in $additional_libdir and $LDFLAGS |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
360 dnl and the already constructed $LIBNAME/$LTLIBNAME. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
361 found_dir= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
362 found_la= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
363 found_so= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
364 found_a= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
365 if test $use_additional = yes; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
366 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
367 found_dir="$additional_libdir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
368 found_so="$additional_libdir/lib$name.$shlibext" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
369 if test -f "$additional_libdir/lib$name.la"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
370 found_la="$additional_libdir/lib$name.la" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
371 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
372 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
373 if test -f "$additional_libdir/lib$name.$libext"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
374 found_dir="$additional_libdir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
375 found_a="$additional_libdir/lib$name.$libext" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
376 if test -f "$additional_libdir/lib$name.la"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
377 found_la="$additional_libdir/lib$name.la" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
378 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
379 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
380 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
381 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
382 if test "X$found_dir" = "X"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
383 for x in $LDFLAGS $LTLIB[]NAME; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
384 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
385 case "$x" in |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
386 -L*) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
387 dir=`echo "X$x" | sed -e 's/^X-L//'` |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
388 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
389 found_dir="$dir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
390 found_so="$dir/lib$name.$shlibext" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
391 if test -f "$dir/lib$name.la"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
392 found_la="$dir/lib$name.la" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
393 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
394 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
395 if test -f "$dir/lib$name.$libext"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
396 found_dir="$dir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
397 found_a="$dir/lib$name.$libext" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
398 if test -f "$dir/lib$name.la"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
399 found_la="$dir/lib$name.la" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
400 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
401 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
402 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
403 ;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
404 esac |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
405 if test "X$found_dir" != "X"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
406 break |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
407 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
408 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
409 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
410 if test "X$found_dir" != "X"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
411 dnl Found the library. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
412 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
413 if test "X$found_so" != "X"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
414 dnl Linking with a shared library. We attempt to hardcode its |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
415 dnl directory into the executable's runpath, unless it's the |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
416 dnl standard /usr/lib. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
417 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
418 dnl No hardcoding is needed. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
419 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
420 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
421 dnl Use an explicit option to hardcode DIR into the resulting |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
422 dnl binary. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
423 dnl Potentially add DIR to ltrpathdirs. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
424 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
425 haveit= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
426 for x in $ltrpathdirs; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
427 if test "X$x" = "X$found_dir"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
428 haveit=yes |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
429 break |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
430 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
431 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
432 if test -z "$haveit"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
433 ltrpathdirs="$ltrpathdirs $found_dir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
434 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
435 dnl The hardcoding into $LIBNAME is system dependent. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
436 if test "$hardcode_direct" = yes; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
437 dnl Using DIR/libNAME.so during linking hardcodes DIR into the |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
438 dnl resulting binary. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
439 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
440 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
441 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
442 dnl Use an explicit option to hardcode DIR into the resulting |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
443 dnl binary. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
444 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
445 dnl Potentially add DIR to rpathdirs. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
446 dnl The rpathdirs will be appended to $LIBNAME at the end. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
447 haveit= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
448 for x in $rpathdirs; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
449 if test "X$x" = "X$found_dir"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
450 haveit=yes |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
451 break |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
452 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
453 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
454 if test -z "$haveit"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
455 rpathdirs="$rpathdirs $found_dir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
456 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
457 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
458 dnl Rely on "-L$found_dir". |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
459 dnl But don't add it if it's already contained in the LDFLAGS |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
460 dnl or the already constructed $LIBNAME |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
461 haveit= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
462 for x in $LDFLAGS $LIB[]NAME; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
463 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
464 if test "X$x" = "X-L$found_dir"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
465 haveit=yes |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
466 break |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
467 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
468 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
469 if test -z "$haveit"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
470 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
471 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
472 if test "$hardcode_minus_L" != no; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
473 dnl FIXME: Not sure whether we should use |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
474 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
475 dnl here. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
476 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
477 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
478 dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
479 dnl here, because this doesn't fit in flags passed to the |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
480 dnl compiler. So give up. No hardcoding. This affects only |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
481 dnl very old systems. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
482 dnl FIXME: Not sure whether we should use |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
483 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
484 dnl here. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
485 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
486 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
487 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
488 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
489 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
490 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
491 if test "X$found_a" != "X"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
492 dnl Linking with a static library. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
493 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
494 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
495 dnl We shouldn't come here, but anyway it's good to have a |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
496 dnl fallback. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
497 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
498 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
499 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
500 dnl Assume the include files are nearby. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
501 additional_includedir= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
502 case "$found_dir" in |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
503 */lib | */lib/) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
504 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
505 additional_includedir="$basedir/include" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
506 ;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
507 esac |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
508 if test "X$additional_includedir" != "X"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
509 dnl Potentially add $additional_includedir to $INCNAME. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
510 dnl But don't add it |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
511 dnl 1. if it's the standard /usr/include, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
512 dnl 2. if it's /usr/local/include and we are using GCC on Linux, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
513 dnl 3. if it's already present in $CPPFLAGS or the already |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
514 dnl constructed $INCNAME, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
515 dnl 4. if it doesn't exist as a directory. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
516 if test "X$additional_includedir" != "X/usr/include"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
517 haveit= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
518 if test "X$additional_includedir" = "X/usr/local/include"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
519 if test -n "$GCC"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
520 case $host_os in |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
521 linux*) haveit=yes;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
522 esac |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
523 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
524 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
525 if test -z "$haveit"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
526 for x in $CPPFLAGS $INC[]NAME; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
527 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
528 if test "X$x" = "X-I$additional_includedir"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
529 haveit=yes |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
530 break |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
531 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
532 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
533 if test -z "$haveit"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
534 if test -d "$additional_includedir"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
535 dnl Really add $additional_includedir to $INCNAME. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
536 INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
537 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
538 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
539 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
540 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
541 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
542 dnl Look for dependencies. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
543 if test -n "$found_la"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
544 dnl Read the .la file. It defines the variables |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
545 dnl dlname, library_names, old_library, dependency_libs, current, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
546 dnl age, revision, installed, dlopen, dlpreopen, libdir. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
547 save_libdir="$libdir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
548 case "$found_la" in |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
549 */* | *\\*) . "$found_la" ;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
550 *) . "./$found_la" ;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
551 esac |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
552 libdir="$save_libdir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
553 dnl We use only dependency_libs. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
554 for dep in $dependency_libs; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
555 case "$dep" in |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
556 -L*) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
557 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
558 dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
559 dnl But don't add it |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
560 dnl 1. if it's the standard /usr/lib, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
561 dnl 2. if it's /usr/local/lib and we are using GCC on Linux, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
562 dnl 3. if it's already present in $LDFLAGS or the already |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
563 dnl constructed $LIBNAME, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
564 dnl 4. if it doesn't exist as a directory. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
565 if test "X$additional_libdir" != "X/usr/lib"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
566 haveit= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
567 if test "X$additional_libdir" = "X/usr/local/lib"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
568 if test -n "$GCC"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
569 case $host_os in |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
570 linux*) haveit=yes;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
571 esac |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
572 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
573 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
574 if test -z "$haveit"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
575 haveit= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
576 for x in $LDFLAGS $LIB[]NAME; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
577 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
578 if test "X$x" = "X-L$additional_libdir"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
579 haveit=yes |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
580 break |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
581 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
582 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
583 if test -z "$haveit"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
584 if test -d "$additional_libdir"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
585 dnl Really add $additional_libdir to $LIBNAME. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
586 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
587 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
588 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
589 haveit= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
590 for x in $LDFLAGS $LTLIB[]NAME; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
591 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
592 if test "X$x" = "X-L$additional_libdir"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
593 haveit=yes |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
594 break |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
595 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
596 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
597 if test -z "$haveit"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
598 if test -d "$additional_libdir"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
599 dnl Really add $additional_libdir to $LTLIBNAME. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
600 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
601 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
602 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
603 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
604 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
605 ;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
606 -R*) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
607 dir=`echo "X$dep" | sed -e 's/^X-R//'` |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
608 if test "$enable_rpath" != no; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
609 dnl Potentially add DIR to rpathdirs. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
610 dnl The rpathdirs will be appended to $LIBNAME at the end. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
611 haveit= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
612 for x in $rpathdirs; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
613 if test "X$x" = "X$dir"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
614 haveit=yes |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
615 break |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
616 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
617 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
618 if test -z "$haveit"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
619 rpathdirs="$rpathdirs $dir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
620 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
621 dnl Potentially add DIR to ltrpathdirs. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
622 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
623 haveit= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
624 for x in $ltrpathdirs; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
625 if test "X$x" = "X$dir"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
626 haveit=yes |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
627 break |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
628 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
629 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
630 if test -z "$haveit"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
631 ltrpathdirs="$ltrpathdirs $dir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
632 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
633 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
634 ;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
635 -l*) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
636 dnl Handle this in the next round. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
637 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
638 ;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
639 *.la) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
640 dnl Handle this in the next round. Throw away the .la's |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
641 dnl directory; it is already contained in a preceding -L |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
642 dnl option. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
643 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
644 ;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
645 *) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
646 dnl Most likely an immediate library name. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
647 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
648 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
649 ;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
650 esac |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
651 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
652 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
653 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
654 dnl Didn't find the library; assume it is in the system directories |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
655 dnl known to the linker and runtime loader. (All the system |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
656 dnl directories known to the linker should also be known to the |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
657 dnl runtime loader, otherwise the system is severely misconfigured.) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
658 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
659 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
660 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
661 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
662 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
663 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
664 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
665 if test "X$rpathdirs" != "X"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
666 if test -n "$hardcode_libdir_separator"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
667 dnl Weird platform: only the last -rpath option counts, the user must |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
668 dnl pass all path elements in one option. We can arrange that for a |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
669 dnl single library, but not when more than one $LIBNAMEs are used. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
670 alldirs= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
671 for found_dir in $rpathdirs; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
672 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
673 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
674 dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
675 acl_save_libdir="$libdir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
676 libdir="$alldirs" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
677 eval flag=\"$hardcode_libdir_flag_spec\" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
678 libdir="$acl_save_libdir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
679 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
680 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
681 dnl The -rpath options are cumulative. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
682 for found_dir in $rpathdirs; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
683 acl_save_libdir="$libdir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
684 libdir="$found_dir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
685 eval flag=\"$hardcode_libdir_flag_spec\" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
686 libdir="$acl_save_libdir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
687 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
688 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
689 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
690 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
691 if test "X$ltrpathdirs" != "X"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
692 dnl When using libtool, the option that works for both libraries and |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
693 dnl executables is -R. The -R options are cumulative. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
694 for found_dir in $ltrpathdirs; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
695 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
696 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
697 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
698 ]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
699 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
700 dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
701 dnl unless already present in VAR. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
702 dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
703 dnl contains two or three consecutive elements that belong together. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
704 AC_DEFUN([AC_LIB_APPENDTOVAR], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
705 [ |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
706 for element in [$2]; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
707 haveit= |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
708 for x in $[$1]; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
709 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
710 if test "X$x" = "X$element"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
711 haveit=yes |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
712 break |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
713 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
714 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
715 if test -z "$haveit"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
716 [$1]="${[$1]}${[$1]:+ }$element" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
717 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
718 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
719 ]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
720 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
721 # lib-ld.m4 serial 3 (gettext-0.13) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
722 dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
723 dnl This file is free software, distributed under the terms of the GNU |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
724 dnl General Public License. As a special exception to the GNU General |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
725 dnl Public License, this file may be distributed as part of a program |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
726 dnl that contains a configuration script generated by Autoconf, under |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
727 dnl the same distribution terms as the rest of that program. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
728 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
729 dnl Subroutines of libtool.m4, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
730 dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
731 dnl with libtool.m4. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
732 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
733 dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
734 AC_DEFUN([AC_LIB_PROG_LD_GNU], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
735 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
736 [# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
737 case `$LD -v 2>&1 </dev/null` in |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
738 *GNU* | *'with BFD'*) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
739 acl_cv_prog_gnu_ld=yes ;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
740 *) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
741 acl_cv_prog_gnu_ld=no ;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
742 esac]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
743 with_gnu_ld=$acl_cv_prog_gnu_ld |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
744 ]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
745 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
746 dnl From libtool-1.4. Sets the variable LD. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
747 AC_DEFUN([AC_LIB_PROG_LD], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
748 [AC_ARG_WITH(gnu-ld, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
749 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
750 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
751 AC_REQUIRE([AC_PROG_CC])dnl |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
752 AC_REQUIRE([AC_CANONICAL_HOST])dnl |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
753 # Prepare PATH_SEPARATOR. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
754 # The user is always right. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
755 if test "${PATH_SEPARATOR+set}" != set; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
756 echo "#! /bin/sh" >conf$$.sh |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
757 echo "exit 0" >>conf$$.sh |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
758 chmod +x conf$$.sh |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
759 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
760 PATH_SEPARATOR=';' |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
761 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
762 PATH_SEPARATOR=: |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
763 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
764 rm -f conf$$.sh |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
765 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
766 ac_prog=ld |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
767 if test "$GCC" = yes; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
768 # Check if gcc -print-prog-name=ld gives a path. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
769 AC_MSG_CHECKING([for ld used by GCC]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
770 case $host in |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
771 *-*-mingw*) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
772 # gcc leaves a trailing carriage return which upsets mingw |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
773 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
774 *) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
775 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
776 esac |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
777 case $ac_prog in |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
778 # Accept absolute paths. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
779 [[\\/]* | [A-Za-z]:[\\/]*)] |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
780 [re_direlt='/[^/][^/]*/\.\./'] |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
781 # Canonicalize the path of ld |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
782 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
783 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
784 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
785 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
786 test -z "$LD" && LD="$ac_prog" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
787 ;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
788 "") |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
789 # If it fails, then pretend we aren't using GCC. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
790 ac_prog=ld |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
791 ;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
792 *) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
793 # If it is relative, then search for the first ld in PATH. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
794 with_gnu_ld=unknown |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
795 ;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
796 esac |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
797 elif test "$with_gnu_ld" = yes; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
798 AC_MSG_CHECKING([for GNU ld]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
799 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
800 AC_MSG_CHECKING([for non-GNU ld]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
801 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
802 AC_CACHE_VAL(acl_cv_path_LD, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
803 [if test -z "$LD"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
805 for ac_dir in $PATH; do |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
806 test -z "$ac_dir" && ac_dir=. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
807 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
808 acl_cv_path_LD="$ac_dir/$ac_prog" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
809 # Check to see if the program is GNU ld. I'd rather use --version, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
810 # but apparently some GNU ld's only accept -v. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
811 # Break only if it was the GNU/non-GNU ld that we prefer. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
812 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
813 *GNU* | *'with BFD'*) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
814 test "$with_gnu_ld" != no && break ;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
815 *) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
816 test "$with_gnu_ld" != yes && break ;; |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
817 esac |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
818 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
819 done |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
820 IFS="$ac_save_ifs" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
821 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
822 acl_cv_path_LD="$LD" # Let the user override the test with a path. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
823 fi]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
824 LD="$acl_cv_path_LD" |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
825 if test -n "$LD"; then |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
826 AC_MSG_RESULT($LD) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
827 else |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
828 AC_MSG_RESULT(no) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
829 fi |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
830 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
831 AC_LIB_PROG_LD_GNU |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
832 ]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
833 |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
834 # Like AC_CONFIG_HEADER, but automatically create stamp file. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
835 |
484
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
836 AC_DEFUN([AM_CONFIG_HEADER], |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
837 [AC_PREREQ([2.12]) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
838 AC_CONFIG_HEADER([$1]) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
839 dnl When config.status generates a header, we must update the stamp-h file. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
840 dnl This file resides in the same directory as the config header |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
841 dnl that is generated. We must strip everything past the first ":", |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
842 dnl and everything past the last "/". |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
843 AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
844 ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>, |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
845 <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>, |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
846 <<am_indx=1 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
847 for am_file in <<$1>>; do |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
848 case " <<$>>CONFIG_HEADERS " in |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
849 *" <<$>>am_file "*<<)>> |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
850 echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
851 ;; |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
852 esac |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
853 am_indx=`expr "<<$>>am_indx" + 1` |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
854 done<<>>dnl>>) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
855 changequote([,]))]) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
856 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
857 # Do all the work for Automake. This macro actually does too much -- |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
858 # some checks are only needed if your package does certain things. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
859 # But this isn't really a big deal. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
860 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
861 # serial 1 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
862 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
863 dnl Usage: |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
864 dnl AM_INIT_AUTOMAKE(package,version, [no-define]) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
865 |
484
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
866 AC_DEFUN([AM_INIT_AUTOMAKE], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
867 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
868 AC_REQUIRE([AC_PROG_INSTALL]) |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
869 PACKAGE=[$1] |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
870 AC_SUBST(PACKAGE) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
871 VERSION=[$2] |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
872 AC_SUBST(VERSION) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
873 dnl test to see if srcdir already configured |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
874 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
875 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
876 fi |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
877 ifelse([$3],, |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
878 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
879 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
880 AC_REQUIRE([AM_SANITY_CHECK]) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
881 AC_REQUIRE([AC_ARG_PROGRAM]) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
882 dnl FIXME This is truly gross. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
883 missing_dir=`cd $ac_aux_dir && pwd` |
484
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
884 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir) |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
885 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) |
484
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
886 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir) |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
887 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
888 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
889 AC_REQUIRE([AC_PROG_MAKE_SET])]) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
890 |
484
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
891 # Copyright 2002 Free Software Foundation, Inc. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
892 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
893 # This program is free software; you can redistribute it and/or modify |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
894 # it under the terms of the GNU General Public License as published by |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
895 # the Free Software Foundation; either version 2, or (at your option) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
896 # any later version. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
897 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
898 # This program is distributed in the hope that it will be useful, |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
899 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
900 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
901 # GNU General Public License for more details. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
902 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
903 # You should have received a copy of the GNU General Public License |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
904 # along with this program; if not, write to the Free Software |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
905 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
906 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
907 # AM_AUTOMAKE_VERSION(VERSION) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
908 # ---------------------------- |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
909 # Automake X.Y traces this macro to ensure aclocal.m4 has been |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
910 # generated from the m4 files accompanying Automake X.Y. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
911 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
912 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
913 # AM_SET_CURRENT_AUTOMAKE_VERSION |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
914 # ------------------------------- |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
915 # Call AM_AUTOMAKE_VERSION so it can be traced. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
916 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
917 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
918 [AM_AUTOMAKE_VERSION([1.4-p6])]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
919 |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
920 # |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
921 # Check to make sure that the build environment is sane. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
922 # |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
923 |
484
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
924 AC_DEFUN([AM_SANITY_CHECK], |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
925 [AC_MSG_CHECKING([whether build environment is sane]) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
926 # Just in case |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
927 sleep 1 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
928 echo timestamp > conftestfile |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
929 # Do `set' in a subshell so we don't clobber the current shell's |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
930 # arguments. Must try -L first in case configure is actually a |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
931 # symlink; some systems play weird games with the mod time of symlinks |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
932 # (eg FreeBSD returns the mod time of the symlink's containing |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
933 # directory). |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
934 if ( |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
935 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
936 if test "[$]*" = "X"; then |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
937 # -L didn't work. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
938 set X `ls -t $srcdir/configure conftestfile` |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
939 fi |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
940 if test "[$]*" != "X $srcdir/configure conftestfile" \ |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
941 && test "[$]*" != "X conftestfile $srcdir/configure"; then |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
942 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
943 # If neither matched, then we have a broken ls. This can happen |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
944 # if, for instance, CONFIG_SHELL is bash and it inherits a |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
945 # broken ls alias from the environment. This has actually |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
946 # happened. Such a system could not be considered "sane". |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
947 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
948 alias in your environment]) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
949 fi |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
950 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
951 test "[$]2" = conftestfile |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
952 ) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
953 then |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
954 # Ok. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
955 : |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
956 else |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
957 AC_MSG_ERROR([newly created file is older than distributed files! |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
958 Check your system clock]) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
959 fi |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
960 rm -f conftest* |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
961 AC_MSG_RESULT(yes)]) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
962 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
963 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
964 dnl The program must properly implement --version. |
484
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
965 AC_DEFUN([AM_MISSING_PROG], |
43
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
966 [AC_MSG_CHECKING(for working $2) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
967 # Run test in a subshell; some versions of sh will print an error if |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
968 # an executable is not found, even if stderr is redirected. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
969 # Redirect stdin to placate older versions of autoconf. Sigh. |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
970 if ($2 --version) < /dev/null > /dev/null 2>&1; then |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
971 $1=$2 |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
972 AC_MSG_RESULT(found) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
973 else |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
974 $1="$3/missing $2" |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
975 AC_MSG_RESULT(missing) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
976 fi |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
977 AC_SUBST($1)]) |
2842f50feb55
[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
uh1763
parents:
diff
changeset
|
978 |
484
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
979 # isc-posix.m4 serial 2 (gettext-0.11.2) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
980 dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
981 dnl This file is free software, distributed under the terms of the GNU |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
982 dnl General Public License. As a special exception to the GNU General |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
983 dnl Public License, this file may be distributed as part of a program |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
984 dnl that contains a configuration script generated by Autoconf, under |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
985 dnl the same distribution terms as the rest of that program. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
986 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
987 # This file is not needed with autoconf-2.53 and newer. Remove it in 2005. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
988 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
989 # This test replaces the one in autoconf. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
990 # Currently this macro should have the same name as the autoconf macro |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
991 # because gettext's gettext.m4 (distributed in the automake package) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
992 # still uses it. Otherwise, the use in gettext.m4 makes autoheader |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
993 # give these diagnostics: |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
994 # configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
995 # configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
996 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
997 undefine([AC_ISC_POSIX]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
998 |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
999 AC_DEFUN([AC_ISC_POSIX], |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
1000 [ |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
1001 dnl This test replaces the obsolescent AC_ISC_POSIX kludge. |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
1002 AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
1003 ] |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
1004 ) |
d33568bb18ab
[svn] * Makefile.in,NEWS,README,aclocal.m4,configure,configure.in,
bears
parents:
438
diff
changeset
|
1005 |