On Wed, 23 May 2001, Gustavo Noronha Silva wrote: > I need help with stuff regarding a configure.in and a Makefile.am, I'm > stucked trying to find a way to make the 'make install' command > conditionally install some files.
Well, here's what one of my projects do: configure.in: ... AC_CHECK_LIB(ncurses, initscr) AM_CONDITIONAL(HAVE_LIBNCURSES, test "$ac_cv_lib_ncurses_initscr" = yes) ... Makefile.am: AUTOMAKE_OPTIONS = foreign if HAVE_LIBNCURSES NCURSES_CLIENT = ncurses-client else NCURSES_CLIENT = endif bin_PROGRAMS = $(NCURSES_CLIENT) ...other-clients... ...

