bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

No way to override default localstatedir in configure.ac


From: Basin Ilya
Subject: No way to override default localstatedir in configure.ac
Date: Thu, 24 Dec 2015 14:44:25 +0300
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

Autoconf has `AC_PREFIX_DEFAULT` macro to override default prefix. User
can still pass a different --prefix on ./configure command line.

Other "Installation directory options" cannot be changed.

>From general.m4:

    AC_SUBST([localstatedir],  ['${prefix}/var'])dnl
    ...
      case $ac_dashdash$ac_option in
      -localstatedir | --localstatedir | --localstatedi | --localstated \
      | --localstate | --localstat | --localsta | --localst | --locals)
        ac_prev=localstatedir ;;


There's no way to assign a different value to localstatedir after
'${prefix}/var', but before arguments are parsed.

autoconf version 2.69



reply via email to

[Prev in Thread] Current Thread [Next in Thread]