Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Autoconf include M4 file

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
vdboor
Guru
Guru
User avatar
Posts: 592
Joined: Wed Dec 03, 2003 9:31 am
Location: The Netherlands
Contact:
Contact vdboor
Website

Autoconf include M4 file

  • Quote

Post by vdboor » Tue Jul 19, 2005 12:45 pm

Is it possible to include another M4 file with autoconf? I'd want to include a M4 Macro from configure.in
Googling from autoconf include didn't help much off course.. ;)
The best way to accelerate a windows server is by 9.81M/S²
Linux user #311670 and Yet Another Perl Programmer

[ screenies | Coding on KMess ]
Top
elephant
n00b
n00b
Posts: 39
Joined: Wed Jun 08, 2005 10:06 pm
Location: Serbia

  • Quote

Post by elephant » Tue Jul 19, 2005 1:35 pm

If you're writing your own macro, you should create a macros subdir and put it in some .m4 file there. After just put it in configure.ac, or .in.
If that's what you're asking...
I suggest you download Autoconf (there's a chapter "Writing your Autoconf macros") and Automake manuals from the GNU web site - I think tutorials are not enough when you're creating your own Autotools project from scratch.
Top
vdboor
Guru
Guru
User avatar
Posts: 592
Joined: Wed Dec 03, 2003 9:31 am
Location: The Netherlands
Contact:
Contact vdboor
Website

  • Quote

Post by vdboor » Tue Jul 19, 2005 3:07 pm

The code is in a configure.in.in file currently, this does work indeed.

I'm looking for a include function because I've copy-pasted the code from "binreloc.m4". Having a separate file I can upgrade is easier to maintain.
The best way to accelerate a windows server is by 9.81M/S²
Linux user #311670 and Yet Another Perl Programmer

[ screenies | Coding on KMess ]
Top
elephant
n00b
n00b
Posts: 39
Joined: Wed Jun 08, 2005 10:06 pm
Location: Serbia

  • Quote

Post by elephant » Tue Jul 19, 2005 3:28 pm

I have only recently started learning autotools, but I think that there is no include function, that 'macros' is a standard name and that if you have macros/misc.m4 with MY_MACRO defined, you can just put a line MY_MACRO(args...) in configure.in. In Makefile.am though, you need a line like:
dist_macros = macros/misc.m4
Although I haven't done this, this is just from other source code I've seen. Maybe a line like -I macros needs to be put somewhere in autogen.sh, but I don't know that, sorry.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic