From: Nathan Phillip Brink <binki@gentoo.org>
Subject: Drop some automatic probing of /usr/local and /opt and etc., Gentoo users know to use CPPFLAGS/CFLAGS/LDFLAGS.
Date: 2014-08-30

--- a/configure.in
+++ b/configure.in
@@ -33,58 +33,6 @@
 AC_AIX
 
 dnl ----------------------------------------------------------
-AC_MSG_CHECKING([for an extra library directory])
-AC_ARG_WITH([localdir],
-[  --with-localdir=/usr/local An extra directory to look for stuff.],[
-   if test "x$withval" = "x" ; then
-      if test -d /usr/local/lib ; then
-	withval="/usr/local"
-      elif test -d /usr/pkg/lib ; then
-	withval="/usr/pkg"
-      elif test -d /opt/lib ; then
-	withval="/opt"
-      else
-        with_extra_libdir="no"
-      fi
-   elif test -d "$withval" ; then
-      with_extra_libdir="yes"
-   else
-      with_extra_libdir="no"
-   fi
-
-   if test "x$withval" != "x" ; then
-      LIBS="-L$withval/lib $LIBS"
-      CFLAGS="-I$withval/include/ $CFLAGS"
-      localdir=$withdir
-      with_extra_libdir="yes"
-   else
-      with_extra_libdir="no"
-   fi
-],[
-   if test "x$withval" = "x" ; then
-      if test -d /usr/local/lib ; then
-	withval="/usr/local"
-      elif test -d /usr/pkg/lib ; then
-	withval="/usr/pkg"
-      elif test -d /opt/lib ; then
-	withval="/opt"
-      else
-        with_extra_libdir="no"
-      fi
-   fi
-
-   if test "x$withval" != "x" ; then
-      LIBS="-L$withval/lib $LIBS"
-      CFLAGS="-I$withval/include/ $CFLAGS"
-      localdir=$withdir
-      with_extra_libdir="yes"
-   else
-      with_extra_libdir="no"
-   fi
-])
-AC_MSG_RESULT([$with_extra_libdir, $withval])
-
-dnl ----------------------------------------------------------
 dnl ----------------------------------------------------------
 dnl
 dnl System specific checks

