From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 13 13:32:41 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5B891065670 for ; Sat, 13 Jun 2009 13:32:41 +0000 (UTC) (envelope-from freebsd@akruijff.dds.nl) Received: from CPSMTPM-EML102.kpnxchange.com (cpsmtpm-eml102.kpnxchange.com [195.121.3.6]) by mx1.freebsd.org (Postfix) with ESMTP id 385B48FC1D for ; Sat, 13 Jun 2009 13:32:40 +0000 (UTC) (envelope-from freebsd@akruijff.dds.nl) Received: from ip51cc8423.speed.planet.nl ([81.204.132.35]) by CPSMTPM-EML102.kpnxchange.com with Microsoft SMTPSVC(7.0.6001.18000); Sat, 13 Jun 2009 15:32:39 +0200 Received: from Alex1.lan (localhost [127.0.0.1]) by ip51cc8423.speed.planet.nl (8.14.2/8.14.2) with ESMTP id n5DDWcQF046506; Sat, 13 Jun 2009 15:32:38 +0200 (CEST) (envelope-from freebsd@akruijff.dds.nl) Received: (from akruijff@localhost) by Alex1.lan (8.14.2/8.14.2/Submit) id n5DDWcnD046411; Sat, 13 Jun 2009 15:32:38 +0200 (CEST) (envelope-from freebsd@akruijff.dds.nl) X-Authentication-Warning: Alex1.lan: akruijff set sender to freebsd@akruijff.dds.nl using -f Date: Sat, 13 Jun 2009 15:32:38 +0200 From: Alex de Kruijff To: Andrey Simonenko Message-ID: <20090613133238.GC1462@Alex1.lan> References: <20090613110618.GA1462@Alex1.lan> <20090613120117.GA28947@pm513-1.comsys.ntu-kpi.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090613120117.GA28947@pm513-1.comsys.ntu-kpi.kiev.ua> User-Agent: Mutt/1.4.2.3i X-OriginalArrivalTime: 13 Jun 2009 13:32:39.0290 (UTC) FILETIME=[6BC9B5A0:01C9EC2B] Cc: freebsd-hackers@freebsd.org Subject: Re: Porting problem with gnu configure (c++ -V) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@akruijff.dds.nl List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jun 2009 13:32:42 -0000 On Sat, Jun 13, 2009 at 03:01:17PM +0300, Andrey Simonenko wrote: > Hello, > > On Sat, Jun 13, 2009 at 01:06:18PM +0200, Alex de Kruijff wrote: > > I'm converting my port samesame to use gnu configue, but came a cross a > > problem that is beond me. I'm able to run aclocal, autoconf, autoheader > > and automake --add-missing -c. I've read the docs for autoconf and > > automake and search the web, but dont know how to solve elegantly. I > > would proberbly be able to hack configure, but prevere to edit only the > > source files. Do other porters with more experiance have any tips for > > me? > > It's better to see your version for configure.ac, since without its > content it is hard to say something. Oke here it is: # Process this file with autoconf to produce a configure script. AC_PREREQ(2.61) AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([configure.h]) AC_CONFIG_HEADER([config.h]) # Checks for programs. AC_PROG_CXX #AC_PROG_CC AC_PROG_INSTALL AC_PROG_LN_S # Checks for libraries. # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h limits.h locale.h stddef.h stdint.h stdlib.h string.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_C_INLINE AC_TYPE_OFF_T AC_TYPE_PID_T AC_TYPE_SIZE_T AC_HEADER_TIME # Checks for library functions. AC_FUNC_LSTAT AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK AC_FUNC_MALLOC AC_FUNC_MEMCMP AC_FUNC_MMAP AC_TYPE_SIGNAL AC_FUNC_STAT AC_CHECK_FUNCS([gettimeofday localeconv memset mkdir munmap rmdir strstr]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT -- Alex Please copy the original recipients, otherwise I may not read your reply. http://samesame.kruijff.org/