Skip to content

Commit 3600066

Browse files
Adjusted ogg.m4 to not add -L/usr/lib and -I/usr/include as build argument.
Test for prefix /usr drop adding -L/usr/lib to linker arguments and -I/usr/include as compiler argument if it is set. Patch from SuSe and their m4.patch.
1 parent c922070 commit 3600066

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ogg.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ AC_ARG_ENABLE(oggtest,AS_HELP_STRING([--disable-oggtest],[Do not try to compile
2020
OGG_LIBS=""
2121
elif test "x$ogg_prefix" != "x" ; then
2222
OGG_LIBS="-L$ogg_prefix/lib"
23-
elif test "x$prefix" != "xNONE" ; then
23+
elif test "x$prefix" != "xNONE" && test "x$prefix" != "x/usr" ; then
2424
OGG_LIBS="-L$prefix/lib"
2525
fi
2626
@@ -34,7 +34,7 @@ AC_ARG_ENABLE(oggtest,AS_HELP_STRING([--disable-oggtest],[Do not try to compile
3434
OGG_CFLAGS=""
3535
elif test "x$ogg_prefix" != "x" ; then
3636
OGG_CFLAGS="-I$ogg_prefix/include"
37-
elif test "x$prefix" != "xNONE"; then
37+
elif test "x$prefix" != "xNONE" && test "x$prefix" != "x/usr" ; then
3838
OGG_CFLAGS="-I$prefix/include"
3939
fi
4040

0 commit comments

Comments
 (0)