… | |
… | |
89 | AC_MSG_ERROR([no, cannot load module $module]) |
89 | AC_MSG_ERROR([no, cannot load module $module]) |
90 | fi |
90 | fi |
91 | done |
91 | done |
92 | |
92 | |
93 | dnl check for some other programs |
93 | dnl check for some other programs |
94 | AC_PATH_PROG(LATEX, latex) |
|
|
95 | AC_PATH_PROG(GZIP, gzip) |
|
|
96 | AC_PATH_PROG(BZIP, bzip2) |
|
|
97 | AC_PATH_PROG(TAR, tar) |
94 | AC_PATH_PROG(TAR, tar) |
98 | AC_PATH_PROG(BASENAME, basename) |
95 | AC_PATH_PROG(BASENAME, basename) |
99 | |
96 | |
100 | AC_PATH_PROG(GPERF, gperf) |
97 | AC_PATH_PROG(GPERF, gperf) |
101 | if test -z "$GPERF"; then |
98 | if test -z "$GPERF"; then |
102 | AC_MSG_ERROR([we need gperf, the GNU perfect hash generator]) |
99 | AC_MSG_ERROR([we need gperf, the GNU perfect hash generator]) |
103 | fi |
100 | fi |
104 | |
101 | |
105 | GUNZIP="$GZIP -c" |
|
|
106 | BUNZIP="$BZIP -c" |
|
|
107 | |
|
|
108 | if test -z "$COMPRESS" -a -z "$GZIP" -a -z "$BZIP" ; then |
|
|
109 | echo "Unable to find either compress, bzip2, or gzip - hope you don't plan on compressing"; |
|
|
110 | echo "any files."; |
|
|
111 | fi; |
|
|
112 | |
|
|
113 | AC_CHECK_LIB(nsl, main) |
102 | AC_CHECK_LIB(nsl, main) |
114 | AC_CHECK_LIB(socket, main) |
103 | AC_CHECK_LIB(socket, main) |
115 | |
104 | |
116 | dnl Checks for libraries. |
105 | dnl Checks for libraries. |
117 | AC_CHECK_LIB(m, main) |
106 | AC_CHECK_LIB(m, main) |
|
|
107 | |
|
|
108 | echo "checking for google sparsehash (see http://code.google.com/p/google-sparsehash/)" |
|
|
109 | AC_CHECK_HEADER(google/dense_hash_map) |
118 | |
110 | |
119 | AC_CHECK_HEADER(tr1/unordered_map,[],[AC_MSG_ERROR([Your compiler must support the Library Technical Report 1 extensions.])]) |
111 | AC_CHECK_HEADER(tr1/unordered_map,[],[AC_MSG_ERROR([Your compiler must support the Library Technical Report 1 extensions.])]) |
120 | |
112 | |
121 | AC_CHECK_SIZEOF(long) |
113 | AC_CHECK_SIZEOF(long) |
122 | AC_CHECK_SIZEOF(long long) |
114 | AC_CHECK_SIZEOF(long long) |
… | |
… | |
148 | AC_SUBST(X11LIBS) |
140 | AC_SUBST(X11LIBS) |
149 | |
141 | |
150 | AC_SUBST(pkgstatedir,$localstatedir/$PACKAGE) |
142 | AC_SUBST(pkgstatedir,$localstatedir/$PACKAGE) |
151 | AC_SUBST(pkgconfdir,$sysconfdir/$PACKAGE) |
143 | AC_SUBST(pkgconfdir,$sysconfdir/$PACKAGE) |
152 | |
144 | |
153 | AC_DEFINE_UNQUOTED(COMPRESS,"${COMPRESS}",[Path to the compress binary]) |
|
|
154 | AC_DEFINE_UNQUOTED(UNCOMPRESS,"${UNCOMPRESS}",[Path to the uncompress binary]) |
|
|
155 | AC_DEFINE_UNQUOTED(GZIP,"${GZIP}",[Path to the gzip binary]) |
|
|
156 | AC_DEFINE_UNQUOTED(GUNZIP,"${GUNZIP}",[Path to the gunzip binary]) |
|
|
157 | AC_DEFINE_UNQUOTED(BZIP,"${BZIP}",[Path to the bzip binary]) |
|
|
158 | AC_DEFINE_UNQUOTED(BUNZIP,"${BUNZIP}",[Path to the bunzip binary]) |
|
|
159 | |
|
|
160 | AC_OUTPUT([Makefile |
145 | AC_OUTPUT([Makefile |
161 | include/Makefile lib/Makefile pod/Makefile random_maps/Makefile socket/Makefile |
146 | include/Makefile lib/Makefile pod/Makefile random_maps/Makefile socket/Makefile |
162 | server/Makefile src/Makefile utils/Makefile ext/Makefile |
147 | server/Makefile src/Makefile utils/Makefile ext/Makefile |
163 | lib/checkarch.pl lib/collect.pl utils/add_throw.perl |
148 | lib/checkarch.pl lib/collect.pl utils/add_throw.perl |
164 | utils/crossloop.tmpl utils/crossloop.pl.tmpl utils/metaserver.pl |
149 | utils/crossloop.tmpl utils/crossloop.pl.tmpl utils/metaserver.pl |