You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-gfx/openexr_viewers/files/openexr_viewers-2.3.0--with...

24 lines
811 B

diff --git a/m4/path.cb.m4 b/m4/path.cb.m4
index 7e38708..b5675b1 100644
--- a/m4/path.cb.m4
+++ b/m4/path.cb.m4
@@ -10,9 +10,17 @@ dnl
AC_ARG_WITH(cg-prefix,[ --with-cg-prefix=PFX Prefix where Cg is installed (optional)],
cg_prefix="$withval", cg_prefix="")
+AC_ARG_WITH(cg-libdir, [ --with-cg-libdir=PATH Directory where Cg libraries are installed (optional)],
+ cg_libdir="$withval", cg_libdir="")
+
if test x$cg_prefix != x ; then
CG_CXXFLAGS="-I$cg_prefix/include"
- CG_LDFLAGS="-L$cg_prefix/lib -lGL -lCg -lCgGL -lGLU -lpthread -lglut"
+ if test x$cg_libdir != x; then
+ CG_LDFLAGS="-L$cg_libdir"
+ else
+ CG_LDFLAGS="-L$cg_prefix/lib"
+ fi
+ CG_LDFLAGS="$CG_LDFLAGS -lGL -lCg -lCgGL -lGLU -lpthread -lglut"
else
case $host_os in
darwin*)