forked from sonic-net/sonic-swss
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using autotools (autoreconf) to build SwSS project. Usage: ./autogen.sh ./configure --prefix=out [--enable-debug] make -j `nproc` && make install Signed-off-by: Elad Raz <eladr@mellanox.com>
- Loading branch information
Showing
5 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
if [ `uname` == "Darwin" ]; then | ||
LIBTOOLIZE=glibtoolize | ||
else | ||
LIBTOOLIZE=libtoolize | ||
fi | ||
|
||
touch NEWS README AUTHORS COPYING ChangeLog | ||
$LIBTOOLIZE --force --copy && | ||
autoreconf --force --install -I m4 | ||
rm -Rf autom4te.cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Ignore everything in this directory | ||
* | ||
# Except this file | ||
!.gitignore | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
AC_INIT([sonic-swss],[1.0]) | ||
AC_CONFIG_SRCDIR([]) | ||
AC_CONFIG_AUX_DIR(config) | ||
AM_CONFIG_HEADER(config.h) | ||
AM_INIT_AUTOMAKE | ||
AC_LANG_C | ||
AC_LANG([C++]) | ||
AC_PROG_CC | ||
AC_PROG_CXX | ||
AC_PROG_LIBTOOL | ||
AC_HEADER_STDC | ||
|
||
AC_CHECK_LIB([hiredis], [redisConnect]) | ||
AC_CHECK_LIB([nl-genl-3], [genl_connect]) | ||
|
||
AC_ARG_ENABLE(debug, | ||
[ --enable-debug Compile with debugging flags], | ||
[case "${enableval}" in | ||
yes) debug=true ;; | ||
no) debug=false ;; | ||
*) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;; | ||
esac],[debug=false]) | ||
AM_CONDITIONAL(DEBUG, test x$debug = xtrue) | ||
|
||
CFLAGS_COMMON="-std=c++11 -Wall -fPIC -Wno-write-strings -I/usr/include/libnl3" | ||
AC_SUBST(CFLAGS_COMMON) | ||
|
||
AC_CONFIG_FILES([ | ||
Makefile | ||
]) | ||
|
||
AC_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Ignore everything in this directory | ||
* | ||
# Except this file | ||
!.gitignore | ||
|