AM_INIT_AUTOMAKE([no-define]) vs. AC_PACKAGE_*
Hi, Using the new AC_INIT syntax breaks AM_INIT_AUTOMAKE([no-define]) rsp. its triple-argument form AM_INIT_AUTOMAKE(,,no): Given such kind of configure.ac [..] AC_INIT([foo],[0.1],[[EMAIL PROTECTED]]) AM_INIT_AUTOMAKE([no-define]) [..] AM_CONFIG_HEADER(config.h) [..] Using this, PACKAGE and VERSION will not be inserted into config.h, however PACKAGE_BUGREPORT, PACKAGE_NAME, PACKAGE_STRING, PACKAGE_TARNAME, PACKAGE_VERSION will always be added to config.h. This causes conflicts with other config-headers for packages which * share config-headers either from neighboring config-subdirs or external sources [1]. * import one or more of these defines from other packages' headers. Potential fixes: 1. Abandon the 3rd argument and [no-define]. Using the autoconf-2.5x's new AC_INIT syntax, they have become pretty much non-applicable [1] 2. Let automake diagnose that using the new AC_INIT syntax conflicts with the triple-arg AM_INIT_AUTOMAKE. 3. Let autoconf pass the PACKAGE_*-defines on the command line only instead of AC_DEFINE-ing and therehy put them into config-headers. These values then would not be exported outside a build-/source-tree in general. 4. Let automake purge them from being put into config-header. 5. Don't let autoconf define them. Ralf [1] I know, exporting config-headers is considered bad design and should not be applied, but IIRC, this once was the actual reason for having added the 3rd arg to AM_INIT_AUTOMAKE.
Re: Newbie: Shared library with subdirs & convenience libs
> >> From the autobook: > >> `_LIBADD': Like `_LDADD', but used for static libraries and not > >> programs. > > At first I thought this was a bug in the book. > Then it looked like a bug, and then like an undocumented change. > > But now I think maybe the docs (both book and automake.texi) have > simply been wrong since the beginning. > > Akim, do you remember anything in this area? > > Tom The exact point where I read this is section 7.4 (Programs and libraries), rith at the end of the section. It may be that I misunderstood something so you might want to take a look. Also, I am using version 1.3 of the autobook (hopefully it's not very outdated). The footer of the pages mentions "This document was generated by Gary V. Vaughan on May, 24 2001 using texi2html".
Re: Newbie: Shared library with subdirs & convenience libs
> >> I have found a workaround. It seems that automake generates a rule > >> to build a library, only if XXX_la_SOURCES is defined. > >> > >> libgather_la_SOURCES = gather.c > >> The gather.c is an empty file (created with "touch gather.c"). > >> Is there a way to make this work without the gather.c file? > > Try: > > libgather_la_SOURCES = > > I suspect but am not certain that this is fixed in 1.5. > If not, I'll try to fix it. > > T This is what I was using since the beginning. I just tried it once again to make sure, but it fails. Note however that I am using version 1.4 of automake. I'll grab a copy of 1.5 in the following days and try it. If it doesn't work, I'll send you a tgz with my sample project's dir structure so that you can check it out. --- CUT HERE --- ... make[2]: Entering directory `/offline/MyWork/Code/C/gnu_build_sys/src' rpath /usr/local/lib lib1/libgoodbye1.la lib2/libgoodbye2.la make[2]: rpath: Command not found make[2]: [libgather.la] Error 127 (ignored) ... --- CUT HERE ---
Re: Newbie: Shared library with subdirs & convenience libs
&Sgr;&tgr;&igr;&sfgr; &Sgr;&aacgr;&bgr;&bgr;&agr;&tgr;&ogr; 02 &PHgr;&egr;&bgr;&rgr;&ogr;&ugr;&aacgr;&rgr;&igr;&ogr;&sfgr; 2002 09:19, &ogr;/&eegr; Tom Tromey &eacgr;&ggr;&rgr;&agr;&psgr;&egr;: > > ">" == =?iso-8859-7?b?wevd7uHt5PHv8iDK4fH18N/k5/I=?= (Alexandros > > Karypidis) writes: > >> > >> make[2]: rpath: Command not found > > This means some macro, I think $(LIBTOOL), didn't get defined. > > What version of automake are you using? > > Tom It's 1.4-p5: --- CUT HERE --- user@host:~> automake --version automake (GNU automake) 1.4-p5 Copyright (C) 1999, 2001 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Tom Tromey <[EMAIL PROTECTED]> --- CUT HERE ---
Newbie: Automake installation directories
Hello all, I'm trying to install my header files in the directory "/usr/local/include/PACKAGE/". Using a very simple "sampleproject" which I created I tried using: "pkgincludedir_HEADERS = header1.h header2.h" This fails during make install because mkin "/bin/sh ../config/mkinstalldirs /tmp/k/include/" and subsequently copy commands fail because /tmp/k/include/sampleproject" does not exists. I also tried: nobase_include_HEADERS = sampleprocject/header1.h sampleproject2.h but then automake fails with: src/Makefile.am:8: invalid variable `nobase_include_HEADERS' Any pointers anyone?
Re: Newbie: Automake installation directories
Please not that for testing I run: ./configure --prefix=/tmp/k > Hello all, > > I'm trying to install my header files in the directory > "/usr/local/include/PACKAGE/". Using a very simple "sampleproject" which I > created I tried using: > > "pkgincludedir_HEADERS = header1.h header2.h" > > This fails during make install because mkin > > "/bin/sh ../config/mkinstalldirs /tmp/k/include/" > > and subsequently copy commands fail because /tmp/k/include/sampleproject" > does not exists. > > I also tried: > > nobase_include_HEADERS = sampleprocject/header1.h sampleproject2.h > > but then automake fails with: > > src/Makefile.am:8: invalid variable `nobase_include_HEADERS' > > Any pointers anyone?
Newbie: "undefined reference" error; cannot link to existing library
Hello all, Any help on this would be very much appreciated as I am completely stuck. I am having trouble repackaging a shared library using the Automake, libtool, and Autoconf. I have been able to successfully build a distribution that installs the shared library correctly, but when I try to compile a test program that uses the library, the following error occurs: [jks@saba newsmdi]$ gcc -g -lsmdi -o test firsttest.c /usr/local/lib/libsmdi.so: undefined reference to `pthread_create' collect2: ld returned 1 exit status The shared library uses functions from the pthreads library, so I tried adding LDADD= pthread, libsmdi_la_LTLDADD = pthread, and some other variations to my Makefile.am, and none of them worked. It seems that the shared library is being built but not properly linked to the other libraries that it depends on. Will someone please let me know what I need to do to portably link to an existing library (Makefile.am and configure.in listed below). Thanks in advance for the help; I have looked through the docs and searched the net with no luck. Thanks, John - Makefile.am: ## Process this file with automake to produce Makefile.in lib_LTLIBRARIES = libsmdi.la libsmdi_la_SOURCES = smdi.c aspi.linux.c libsmdi_la_LDFLAGS = -version-info 0:5:0 libsmdi_la_LTLDADD = pthread include_HEADERS = aspi.h smdi.h - configure.in dnl Process this file with autoconf to produce a configure script. dnl From Autoconf manual: dnl Autoconf requirements dnl AC_INIT(package, version, bug-report-address) dnl information on the package dnl checks for programs dnl checks for libraries dnl checks for header files dnl checks for types dnl checks for structures dnl checks for compiler characteristics dnl checks for library functions dnl checks for system services dnl AC_CONFIG_FILES([file...]) dnl AC_OUTPUT AC_INIT(aspi.linux.c) AM_INIT_AUTOMAKE(opensmdi, 0.0.5) AM_PROG_LIBTOOL dnl Checks for programs. dnl Checks for libraries. dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(sys/file.h) dnl Checks for typedefs, structures, and compiler characteristics. dnl Checks for library functions. AC_FUNC_MEMCMP AC_OUTPUT(Makefile)
Free Report
FREE REPORT Amazingly Powerful Advertising, Marketing, Direct Marketing, Customer/Client Attraction and Persuasion Strategies Revealed. The 6 KEY Marketing Componets That NO Business Owner, Corporate CEO, Sales Manager, Business to Business Marketer, Real Estate Professional, Retailer, Sales Professional, Doctor, Accountant, Financial Planner, or Professionals Involved in "Practice Building" Should Be Without. To Receive The FREE REPORT, Simply Return This Message With the Words "FREE REPORT" Written in The Subject Box. -You are receiving this message, as you were referred to our company as a person interested in business and marketing strategies. If you are receiving this in error, please do not reply, as you will receive the report automatically via autoresponder, and accept our apologies. This IS a one time mailing.
Leasing Pays
Title: Discount Capital Corp. www.discountcapital.net Time sensitive material> Leasing Pays! No loans fees with all new applications processed during January, 2002 · Let us put together a custom program for 100% financing on any New and Used equipment. · Refinance all your existing commercial loans and leases. · Lower your organizations monthly debt and increase your profits! Important Leasing Information: Too often the after-tax benefits of leasing are overlooked, even though they can provide a company with greater savings than other forms of asset-based financing. If a company leases equipment, it can deduct 100% of the lease payments against its taxable income. As a result, leasing almost always results in a lower after-tax cost for the company than any alternative form of financing. Call our Experts to Get More Information on Any Financial Questions You May Have. Quick App Legal Business Name Phone Fax _ Street Address City, State, Zip Tax ID No. _ Owner(s) S.S # % ownership _ Home Address _ Owner(s) S.S # % ownership _ Home Address _ Corporation ‘ Partnership ‘ Proprietorship ‘ In Business Since__ Bank Reference Account # Open Since Contact Phone # _ $$$ Amount Requested: Purpose of Funds: _ I hereby certify that all information submitted to Discount Capital Corp., herewithin or at any other time is true and complete. I authorize Discount Capital Corp., its agents and assignees, to investigate and verify this information. This constitutes an application only. I hereby authorize the references listed herein to release any necessary information. __ __ Signature Date 10101 Slater Ave. Suite 123, Fountain Valley CA 92708 Ph: (877)346-MONY(6669) Fax: (714) 593-0326