Pardon me for jumping in, but I think you can resolve the problem by "hiding" your libopts generated files until you are sure you need them at which point you can install them.
Assuming that your libopts files are shipped with a .txt extension (which you'll have to add after they are generated), you could do something like this: if [ test "$NEED_LIBOPTS_DIR" = "true" ];then dnl install libopts-generated files for f in \ ${srcdir}/src/ocserv-args.c ${srcdir}/src/ocserv-args.h \ ${srcdir}/src/ocpasswd-args.c ${srcdir}/src/ocpasswd-args.h ; do mv ${f}.txt $f done fi Rather than using a file extension, you can also place them in a separate directory and copy them into place, etc. Regards -Gyepi On Sat, Nov 09, 2013 at 09:36:46AM +0100, Nikos Mavrogiannopoulos wrote: > On Fri, 2013-11-08 at 08:28 -0800, Bruce Korb wrote: > > > Hmmm. OK. I'll pull your sources and if you'd send me your > > fiddlings (patch), I'll look into what makes sense. I'll try > > to do something reasonable with your code, but fix my own and > > re-release if necessary. > > I have not done something special and I don't think what I have can be > easily generalized. What I've done (see also [0]) is: > > ========================code=========================== > AC_CHECK_PROG([AUTOGEN], [autogen], [autogen], [/bin/true]) > > if test x"$AUTOGEN" = "x/bin/true"; then > AC_MSG_WARN([[ > *** > *** autogen not found. Will not link against libopts. > *** ]]) > NEED_LIBOPTS_DIR=true > fi > > LIBOPTS_CHECK([libopts]) > if [ test "$NEED_LIBOPTS_DIR" != "true" ];then > dnl delete libopts-generated files (to force regeneration) > rm -f ${srcdir}/src/ocserv-args.c ${srcdir}/src/ocserv-args.h > rm -f ${srcdir}/src/ocpasswd-args.c ${srcdir}/src/ocpasswd-args.h > fi > ========================code=========================== > > regards, > Nikos > > [0]. http://git.infradead.org/ocserv.git/tree ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ Autogen-users mailing list Autogen-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/autogen-users