From: <as...@us...> - 2002-10-28 11:02:40
|
Update of /cvsroot/libexif/exif In directory usw-pr-cvs1:/tmp/cvs-serv676 Modified Files: configure.in Log Message: check for popt Index: configure.in =================================================================== RCS file: /cvsroot/libexif/exif/configure.in,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- configure.in 25 Oct 2002 18:14:33 -0000 1.12 +++ configure.in 28 Oct 2002 11:02:35 -0000 1.13 @@ -26,6 +26,31 @@ AC_CHECK_HEADERS(locale.h) dnl --------------------------------------------------------------------------- +dnl popt.h: Simplifies handling of command-line options enormously. +dnl --------------------------------------------------------------------------- +popt_msg="no (Note that popt is mandatory, so exif won't compile)" +try_popt=true +have_popt=false +AC_ARG_WITH(popt, [ --without-popt Don't use popt.h], + if test "x${withval}" = "xno"; then + try_popt=false + popt_msg="no (not requested)" + fi +) +if $try_popt; then + AC_CHECK_HEADER(popt.h, [ + POPT_CFLAGS="" + POPT_LIBS="-lpopt" + have_popt=true + popt_msg=yes + AC_DEFINE(HAVE_POPT,1,[whether we use popt])], + [rl_msg="no (couldn't link against it or version too old)"]) +fi +AM_CONDITIONAL(HAVE_POPT, $have_popt) +AC_SUBST(POPT_LIBS) +AC_SUBST(POPT_CFLAGS) + +dnl --------------------------------------------------------------------------- dnl Warnings: If we have GCC, be paranoid. dnl --------------------------------------------------------------------------- if test "x$GCC" = "xyes"; then |