[xiph-cvs] cvs commit: speex acinclude.m4
Jean-Marc Valin
jm at xiph.org
Tue Jan 14 09:24:45 PST 2003
jm 03/01/14 12:24:45
Modified: . acinclude.m4
Log:
remove useless stuff
Revision Changes Path
1.2 +0 -128 speex/acinclude.m4
Index: acinclude.m4
===================================================================
RCS file: /usr/local/cvsroot/speex/acinclude.m4,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- acinclude.m4 23 Aug 2002 04:38:22 -0000 1.1
+++ acinclude.m4 14 Jan 2003 17:24:45 -0000 1.2
@@ -82,131 +82,3 @@
])
-AC_DEFUN(AC_PATH_OGG,
-[
-LIBOGG="-logg"
-
-AC_MSG_CHECKING([for libogg])
-
-LIBOGG="$LIBOGG"
-ac_ogg_includes=NO ac_ogg_libraries=NO ac_ogg_bindir=NO
-ogg_libraries=""
-ogg_includes=""
-AC_ARG_WITH(ogg-dir,
- [ --with-ogg-dir=DIR where the root of OGG is installed ],
- [ ac_ogg_includes="$withval"/include
- ac_ogg_libraries="$withval"/lib
- ac_ogg_bindir="$withval"/bin
- ])
-
-AC_ARG_WITH(ogg-includes,
- [ --with-ogg-includes=DIR where the OGG includes are. ],
- [
- ac_ogg_includes="$withval"
- ])
-
-ogg_libs_given=no
-
-AC_ARG_WITH(ogg-libraries,
- [ --with-ogg-libraries=DIR where the OGG library is installed.],
- [ ac_ogg_libraries="$withval"
- ogg_libs_given=yes
- ])
-AC_CACHE_VAL(ac_cv_have_ogg,
-[#try to guess OGG locations
-
-ogg_incdirs="/usr/lib/ogg/include /opt/include /usr/local/ogg/include /usr/include/ogg /usr/include /usr/local/include $OGGINC"
-test -n "$OGGDIR" && ogg_incdirs="$OGGDIR/include $OGGDIR $ogg_incdirs"
-ogg_incdirs="$ac_ogg_includes $ogg_incdirs"
-AC_FIND_FILE(ogg/ogg.h, $ogg_incdirs, ogg_incdir)
-echo $ogg_incdir
-ac_ogg_includes="$ogg_incdir"
-
-ogg_libdirs="/usr/lib/ogg/lib /usr/lib /opt/lib /usr/local/ogg/lib /usr/local/lib /usr/lib/ogg /usr/local/lib $OGGLIB"
-test -n "$OGGDIR" && ogg_libdirs="$OGGDIR/lib $OGGDIR $ogg_libdirs"
-if test ! "$ac_ogg_libraries" = "NO"; then
- ogg_libdirs="$ac_ogg_libraries $ogg_libdirs"
-fi
-
-test=NONE
-ogg_libdir=NONE
-for dir in $ogg_libdirs; do
- try="ls -1 $dir/libogg*"
- if test=`eval $try 2> /dev/null`; then ogg_libdir=$dir; break; else echo "tried $dir" >&AC_FD_CC ; fi
-done
-
-ac_ogg_libraries="$ogg_libdir"
-
-ac_cxxflags_safe="$CXXFLAGS"
-ac_ldflags_safe="$LDFLAGS"
-ac_libs_safe="$LIBS"
-
-INCLUDE="$INCLUDE -I$ogg_incdir $all_includes"
-LDFLAGS="-L$ogg_libdir $all_libraries"
-#LIBS="$LIBS $LIBOGG"
-
-CXXFLAGS="$ac_cxxflags_safe"
-LDFLAGS="$ac_ldflags_safe"
-#LIBS="$ac_libs_safe"
-
-if test "$ac_ogg_includes" = NO || test "$ac_ogg_libraries" = NO; then
- ac_cv_have_ogg="have_ogg=no"
- ac_ogg_notfound=""
- if test "$ac_ogg_includes" = NO; then
- if test "$ac_ogg_libraries" = NO; then
- ac_ogg_notfound="(headers and libraries)";
- else
- ac_ogg_notfound="(headers)";
- fi
- else
- ac_ogg_notfound="(libraries)";
- fi
-
-else
- have_ogg="yes"
-fi
-])
-
-eval "$ac_cv_have_ogg"
-
-if test "$have_ogg" != yes; then
- AC_MSG_RESULT([$have_ogg]);
-else
- ac_cv_have_ogg="have_ogg=yes \
- ac_ogg_includes=$ac_ogg_includes ac_ogg_libraries=$ac_ogg_libraries"
- AC_MSG_RESULT([libraries $ac_ogg_libraries, headers $ac_ogg_includes])
-
- ogg_libraries="$ac_ogg_libraries"
- ogg_includes="$ac_ogg_includes"
- AC_DEFINE(HAVE_LIBOGG)
-fi
-
-dnl if test ! "$ogg_libs_given" = "yes"; then
-dnl CHECK_OGG_DIRECT(ogg_libraries= ,[])
-dnl fi
-
-AC_SUBST(ogg_libraries)
-AC_SUBST(ogg_includes)
-
-if test "$ogg_includes" = "/usr/include" || "$ogg_includes" = "$x_includes" || test -z "$ogg_includes"; then
- OGG_INCLUDES="";
-else
- OGG_INCLUDES="-I$ogg_includes"
- all_includes="$OGG_INCLUDES $all_includes"
-fi
-
-if test "$ogg_libraries" = "$x_libraries" || test -z "$ogg_libraries"; then
- OGG_LDFLAGS=""
-LIBOGG=""
-else
- OGG_LDFLAGS="-L$ogg_libraries"
-LIBOGG='-logg'
- all_libraries="$OGG_LDFLAGS $all_libraries"
-fi
-
-AC_SUBST(OGG_INCLUDES)
-AC_SUBST(OGG_LDFLAGS)
-
-AC_SUBST(LIBOGG)
-
-])
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list