10
10
dnl Get the cflags and libraries
12
AC_ARG_WITH(ogg,[ --with-ogg=PFX Prefix where libogg is installed (optional)], ogg_prefix="$withval", ogg_prefix="")
13
AC_ARG_WITH(ogg-libraries,[ --with-ogg-libraries=DIR Directory where libogg library is installed (optional)], ogg_libraries="$withval", ogg_libraries="")
14
AC_ARG_WITH(ogg-includes,[ --with-ogg-includes=DIR Directory where libogg header files are installed (optional)], ogg_includes="$withval", ogg_includes="")
15
AC_ARG_ENABLE(oggtest, [ --disable-oggtest Do not try to compile and run a test Ogg program],, enable_oggtest=yes)
12
AC_ARG_WITH(ogg,AC_HELP_STRING([--with-ogg=PFX],[Prefix where libogg is installed (optional)]), ogg_prefix="$withval", ogg_prefix="")
13
AC_ARG_WITH(ogg-libraries,AC_HELP_STRING([--with-ogg-libraries=DIR],[Directory where libogg library is installed (optional)]), ogg_libraries="$withval", ogg_libraries="")
14
AC_ARG_WITH(ogg-includes,AC_HELP_STRING([--with-ogg-includes=DIR],[Directory where libogg header files are installed (optional)]), ogg_includes="$withval", ogg_includes="")
15
AC_ARG_ENABLE(oggtest,AC_HELP_STRING([--disable-oggtest],[Do not try to compile and run a test Ogg program]),, enable_oggtest=yes)
17
17
if test "x$ogg_libraries" != "x" ; then
18
18
OGG_LIBS="-L$ogg_libraries"
19
elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
19
21
elif test "x$ogg_prefix" != "x" ; then
20
22
OGG_LIBS="-L$ogg_prefix/lib"
21
23
elif test "x$prefix" != "xNONE" ; then
22
24
OGG_LIBS="-L$prefix/lib"
25
OGG_LIBS="$OGG_LIBS -logg"
27
if test "x$ogg_prefix" != "xno" ; then
28
OGG_LIBS="$OGG_LIBS -logg"
27
31
if test "x$ogg_includes" != "x" ; then
28
32
OGG_CFLAGS="-I$ogg_includes"
33
elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
29
35
elif test "x$ogg_prefix" != "x" ; then
30
36
OGG_CFLAGS="-I$ogg_prefix/include"
31
37
elif test "x$prefix" != "xNONE"; then