Skip to content

Commit bfc70e7

Browse files
committed
Removed double configure.ac
1 parent b605096 commit bfc70e7

File tree

5 files changed

+109
-39
lines changed

5 files changed

+109
-39
lines changed

.gitignore

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Generic auto-generated build files
2+
*~
3+
*.a
4+
*.la
5+
*.lai
6+
*.lo
7+
*.Plo
8+
*.Po
9+
*.o
10+
*.so
11+
*.so.[0-9][0-9]*
12+
*.so.[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*
13+
*.Tpo
14+
.deps
15+
.libs
16+
INSTALL
17+
Makefile
18+
Makefile.in
19+
stamp-h1
20+
21+
# Specific auto-generated build files
22+
/ABOUT-NLS
23+
/aclocal.m4
24+
/ar-lib
25+
/autom4te.cache/
26+
/config.guess
27+
/config.h.in
28+
/config.log
29+
/config.rpath
30+
/config.status
31+
/config.sub
32+
/configure
33+
/depcomp
34+
/install-sh
35+
/libtool
36+
/ltmain.sh
37+
/missing
38+
/ylwrap
39+
/m4/codeset.m4
40+
/m4/fcntl-o.m4
41+
/m4/gettext.m4
42+
/m4/glibc2.m4
43+
/m4/glibc21.m4
44+
/m4/iconv.m4
45+
/m4/intdiv0.m4
46+
/m4/intl.m4
47+
/m4/intldir.m4
48+
/m4/intlmacosx.m4
49+
/m4/intmax.m4
50+
/m4/inttypes-pri.m4
51+
/m4/inttypes_h.m4
52+
/m4/lcmessage.m4
53+
/m4/lib-ld.m4
54+
/m4/lib-link.m4
55+
/m4/lib-prefix.m4
56+
/m4/libtool.m4
57+
/m4/lock.m4
58+
/m4/longlong.m4
59+
/m4/ltoptions.m4
60+
/m4/ltsugar.m4
61+
/m4/ltversion.m4
62+
/m4/lt~obsolete.m4
63+
/m4/progtest.m4
64+
/m4/printf-posix.m4
65+
/m4/size_max.m4
66+
/m4/stdint_h.m4
67+
/m4/threadlib.m4
68+
/m4/uintmax_t.m4
69+
/m4/visibility.m4
70+
/m4/wchar_t.m4
71+
/m4/wint_t.m4
72+
/m4/xsize.m4
73+
74+
# Project specific files
75+
/yara
76+
/yarac

bootstrap.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ autogen() {
3434

3535
echo "aclocal..."
3636
if test x$ACLOCAL = x; then
37-
ACLOCAL=`locate_binary aclocal-1.11 aclocal-1.10 aclocal-1.9 aclocal19 aclocal-1.7 aclocal17 aclocal-1.5 aclocal15 aclocal`
37+
ACLOCAL=`locate_binary aclocal aclocal-1.11 aclocal-1.10 aclocal-1.9 aclocal19 aclocal-1.7 aclocal17 aclocal-1.5 aclocal15`
3838
if test x$ACLOCAL = x; then
3939
die "Did not find a supported aclocal"
4040
fi
@@ -47,7 +47,7 @@ autogen() {
4747

4848
echo "automake..."
4949
if test x$AUTOMAKE = x; then
50-
AUTOMAKE=`locate_binary automake-1.14 automake-1.3 automake-1.12 automake-1.11 automake-1.10 automake-1.9 automake-1.7 automake`
50+
AUTOMAKE=`locate_binary automake automake-1.14 automake-1.3 automake-1.12 automake-1.11 automake-1.10 automake-1.9 automake-1.7`
5151
if test x$AUTOMAKE = x; then
5252
die "Did not find a supported automake"
5353
fi
@@ -62,7 +62,3 @@ autogen() {
6262

6363
echo "== bootstraping yara"
6464
autogen
65-
echo "== bootstraping libyara"
66-
cd libyara
67-
autogen
68-
cd ..

config.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
/* config.h. Generated from config.h.in by configure. */
22
/* config.h.in. Generated from configure.ac by autoheader. */
33

4+
/* enable dmalloc */
5+
/* #undef DMALLOC */
6+
47
/* Define to 1 if you have the <dlfcn.h> header file. */
58
#define HAVE_DLFCN_H 1
69

710
/* Define to 1 if you have the <inttypes.h> header file. */
811
#define HAVE_INTTYPES_H 1
912

13+
/* Define to 1 if you have the `dmalloc' library (-ldmalloc). */
14+
/* #undef HAVE_LIBDMALLOC */
15+
1016
/* Define to 1 if you have the `pthread' library (-lpthread). */
1117
#define HAVE_LIBPTHREAD 1
1218

@@ -53,6 +59,9 @@
5359
/* Define to the one symbol short name of this package. */
5460
#define PACKAGE_TARNAME "yara"
5561

62+
/* Define to the home page for this package. */
63+
#define PACKAGE_URL ""
64+
5665
/* Define to the version of this package. */
5766
#define PACKAGE_VERSION "2.0"
5867

@@ -61,3 +70,7 @@
6170

6271
/* Version number of package */
6372
#define VERSION "2.0"
73+
74+
/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
75+
`char[]'. */
76+
/* #undef YYTEXT_POINTER */

configure.ac

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,35 @@
11
AC_INIT([yara], [2.0], [vmalvarez@virustotal.com])
22

3+
AC_CONFIG_SRCDIR([yara.c])
4+
5+
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
6+
7+
AC_CONFIG_MACRO_DIR([m4])
8+
39
${CFLAGS=""}
410

511
# automake 1.12 seems to require AM_PROG_AR, but automake 1.11 doesn't
612
# recognize it
7-
813
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
914

10-
LT_INIT
11-
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
1215
AC_PROG_CC
16+
AM_PROG_LEX
17+
AC_PROG_YACC
18+
19+
LT_INIT
1320
AC_PROG_LIBTOOL
14-
AC_CONFIG_MACRO_DIR([m4])
15-
AC_CONFIG_HEADERS([config.h])
16-
AC_CONFIG_FILES([Makefile])
17-
AC_CONFIG_SUBDIRS([libyara])
18-
AC_CHECK_LIB(pthread, pthread_create)
21+
1922
AC_ARG_ENABLE([dmalloc],
2023
[AS_HELP_STRING([--enable-dmalloc], [enable dmalloc to debug heap-related issues])],
2124
[if test x$enableval = xyes; then
2225
AC_CHECK_LIB(dmalloc, dmalloc_malloc,, AC_MSG_ERROR(please install dmalloc library))
2326
AC_DEFINE([DMALLOC], [], [enable dmalloc])
2427
fi])
28+
29+
AC_CHECK_LIB(pthread, pthread_create)
30+
31+
AC_CONFIG_FILES([Makefile])
32+
AC_CONFIG_FILES([libyara/Makefile])
33+
AC_CONFIG_HEADERS([config.h])
34+
2535
AC_OUTPUT

libyara/configure.ac

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)