--- psiconv/trunk/configure.in 2004/01/09 22:20:03 185 +++ psiconv/trunk/configure.in 2004/01/09 22:31:16 186 @@ -189,7 +189,11 @@ dnl Checks for library functions. AC_FUNC_VPRINTF AC_REPLACE_FUNCS(strdup) -AC_CHECK_FUNCS(getopt_long,,AC_LIBOBJ([getopt]);AC_LIBOBJ([getopt1])) +AC_CHECK_FUNC(getopt_long,getopt=yes,getopt=no) +if test $getopt = no; then + AC_LIBOBJ([getopt]) + AC_LIBOBJ([getopt1]) +fi AC_ARG_ENABLE(dmalloc, [ --enable-dmalloc Enable dmalloc for developers (default:off)],