From owner-freebsd-questions@FreeBSD.ORG Wed Jan 10 09:27:08 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9489916A415 for ; Wed, 10 Jan 2007 09:27:08 +0000 (UTC) (envelope-from coolzone@io.dk) Received: from dansknet.dk (smtp1.dansknet.dk [85.233.229.242]) by mx1.freebsd.org (Postfix) with SMTP id DE1B813C461 for ; Wed, 10 Jan 2007 09:27:07 +0000 (UTC) (envelope-from coolzone@io.dk) Received: (qmail 32500 invoked from network); 10 Jan 2007 09:55:52 -0000 Received: from 85233229074.switch.dansknet.dk (HELO dansknet.dk) (85.233.229.74) by dansknet.dk with SMTP; 10 Jan 2007 09:55:52 -0000 Date: Wed, 10 Jan 2007 10:29:30 +0100 From: Rico Secada To: freebsd-questions@freebsd.org Message-Id: <20070110102930.95c1d4e6.coolzone@io.dk> X-Mailer: Sylpheed 2.3.0 (GTK+ 2.10.7; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Problems using autoconf/automake X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2007 09:27:08 -0000 Hi I am using autoconf/automake to try to build portable makefiles for some software I wrote. I am a newbie in makefiles. If I don't add my man page, all works out fine. But as soon as I add my man page 2 problems arises. 1. I can't use make distcheck, I get the following error: make: don't know how to make myprg.1. Stop *** Error code 2 2. When I do "make", the man page gets installed in /usr/local/share/man/man1, and not in /usr/local/man/man1. How do I deal with this issue and at the same time maintain portability? My Makefile.am looks like this: bin_PROGRAMS = myprg salahtime_SOURCES = myprg.hpp myprg.cpp man_MANS = myprg.1 My configure.ac looks like this: AC_INIT(myprg.cpp) AM_INIT_AUTOMAKE(myprg,0.1) AC_PROG_CC AC_PROG_CXX AC_PROG_INSTALL AC_OUTPUT(Makefile) Any help would be appreciated. Best and kind regards, Rico