Forums

Skip to content

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

econf help needed

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
1 post • Page 1 of 1
Author
Message
jthomps
n00b
n00b
Posts: 1
Joined: Wed Feb 09, 2005 6:55 am

econf help needed

  • Quote

Post by jthomps » Mon Jan 02, 2006 7:09 am

Hi, I'm trying to modify an ebuild for qmailadmin. I need to have the resulting configure look as follows:

./configure --enable-modify-spam --enable-spam-command="|preline maildrop /etc/maildroprc"

I planned on building qmailadmin with these two options when the use flag "maildrop" is specified, so my first attempt looked like:

Code: Select all

    econf ${myopts} \
        --enable-valias \
        --enable-vpopmaildir=${dir_vpopmail} \
        --enable-htmldir=${dir_htdocs} \
        --enable-imageurl=${url_htdocs_images} \
        --enable-imagedir=${dir_htdocs_images} \
        --enable-htmllibdir=${dir_htdocs_htmlib} \
        --enable-qmaildir=${dir_qmail} \
        --enable-true-path=${bin_true} \
        --enable-ezmlmdir=${dir_ezmlm} \
        --enable-cgibindir=${dir_cgibin} \
        --enable-cgipath=${url_cgibin} \
        --enable-autoresponder-path=${dir_autorespond} \
        --enable-domain-autofill \
        --enable-modify-quota \
        --enable-no-cache \
        --enable-maxusersperpage=50 \
        --enable-maxaliasesperpage=50 \
        --enable-vpopuser=vpopmail \
        --enable-vpopgroup=vpopmail \
        $(use_enable maildrop modify-spam) \
        $(use_enable maildrop spam-command "|preline maildrop /etc/maildroprc") \
        || die "econf failed"
>>> Source unpacked.
* econf: updating qmailadmin-1.2.1/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating qmailadmin-1.2.1/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-valias --enable-vpopmaildir=/var/vpopmail --enable-htmldir=/var/www/localhost/htdocs/qmailadmin --enable-imageurl=/qmailadmin/images --enable-imagedir=/var/www/localhost/htdocs/qmailadmin/images --enable-htmllibdir=/usr/share/qmailadmin/htmllib --enable-qmaildir=/var/qmail --enable-true-path=/bin/true --enable-ezmlmdir=/usr/bin --enable-cgibindir=/var/www/localhost/cgi-bin --enable-cgipath=/cgi-bin/qmailadmin --enable-autoresponder-path=/var/qmail/bin --enable-domain-autofill --enable-modify-quota --enable-no-cache --enable-maxusersperpage=50 --enable-maxaliasesperpage=50 --enable-vpopuser=vpopmail --enable-vpopgroup=vpopmail --enable-modify-spam --enable-spam-command=|preline maildrop /etc/maildroprc --build=i686-pc-linux-gnu
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /etc/maildroprc


As you can see, the quotes are stripped when passed to configure. The same thing happens with single quotes. The odd thing is, if I "hardcode" the two options, including quotes, econf seems to work ok as shown below:

Code: Select all

    econf ${myopts} \
        --enable-valias \
        --enable-vpopmaildir=${dir_vpopmail} \
        --enable-htmldir=${dir_htdocs} \
        --enable-imageurl=${url_htdocs_images} \
        --enable-imagedir=${dir_htdocs_images} \
        --enable-htmllibdir=${dir_htdocs_htmlib} \
        --enable-qmaildir=${dir_qmail} \
        --enable-true-path=${bin_true} \
        --enable-ezmlmdir=${dir_ezmlm} \
        --enable-cgibindir=${dir_cgibin} \
        --enable-cgipath=${url_cgibin} \
        --enable-autoresponder-path=${dir_autorespond} \
        --enable-domain-autofill \
        --enable-modify-quota \
        --enable-no-cache \
        --enable-maxusersperpage=50 \
        --enable-maxaliasesperpage=50 \
        --enable-vpopuser=vpopmail \
        --enable-vpopgroup=vpopmail \
        --enable-modify-spam \
        --enable-spam-command="|preline maildrop /etc/maildroprc" \
        || die "econf failed"
Here's the configure output that shows what's being passed to configure:

./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-valias --enable-vpopmaildir=/var/vpopmail --enable-htmldir=/var/www/localhost/htdocs/qmailadmin --enable-imageurl=/qmailadmin/images --enable-imagedir=/var/www/localhost/htdocs/qmailadmin/images --enable-htmllibdir=/usr/share/qmailadmin/htmllib --enable-qmaildir=/var/qmail --enable-true-path=/bin/true --enable-ezmlmdir=/usr/bin --enable-cgibindir=/var/www/localhost/cgi-bin --enable-cgipath=/cgi-bin/qmailadmin --enable-autoresponder-path=/var/qmail/bin --enable-domain-autofill --enable-modify-quota --enable-no-cache --enable-maxusersperpage=50 --enable-maxaliasesperpage=50 --enable-vpopuser=vpopmail --enable-vpopgroup=vpopmail --enable-modify-spam --enable-spam-command=|preline maildrop /etc/maildroprc --build=i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes

Both versions look like they pass the same thing to configure, however, when I try to use any form of use_enable or pass a variable that contains quotes, configure doesn't like the value passed to it and it results in three different things being passed instead of one variable with embedded spaces.

Can someone help me figure out how to pass a quoted value to econf?

Thanks,

jthomps
Top
Post Reply
1 post • 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