Skip to content

Commit 5dc4a61

Browse files
committed
Add /usr/local/include and /usr/local/lib to CPPFLAGS and LDFLAGS
This allows to avoid extra options for BSDs and strangle Linux systems, where some libraries may be installed under "/usr/local" prefix.
1 parent f3fb958 commit 5dc4a61

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

‎configure

+4
Original file line numberDiff line numberDiff line change
@@ -3171,6 +3171,10 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
31713171
ac_compiler_gnu=$ac_cv_c_compiler_gnu
31723172

31733173

3174+
# BSD locations for headers and libraries from packages, Linux locations for self-compiled stuff.
3175+
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3176+
LDFLAGS="$LDFLAGS -L/usr/local/lib"
3177+
31743178
# Checks for libraries.
31753179

31763180
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5

‎configure.ac

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ m4_include([ax_lua.m4])
88
# Checks for programs.
99
AC_PROG_CC
1010

11+
# BSD locations for headers and libraries from packages, Linux locations for self-compiled stuff.
12+
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
13+
LDFLAGS="$LDFLAGS -L/usr/local/lib"
14+
1115
# Checks for libraries.
1216
AC_CHECK_LIB([m], [sqrt])
1317
AC_SEARCH_LIBS([clock_gettime], [rt])

0 commit comments

Comments
 (0)