Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove extraneous whitespace to make ifelse() work #97

Merged
merged 1 commit into from
Oct 5, 2016

Conversation

stapelberg
Copy link
Contributor

I noticed this when trying to figure out what this macro is useful for. I have to admit that I still don’t know…? Could you explain what the intended use-case is?

I was hoping it could be used for defining a C preprocessor macro (via AC_DEFINE) that contained an expanded ${sysconfdir}, but — even with the necessary bugfixes — the description says the macro will merely replace ${prefix} with a dotslash.

In the end, I resorted to using:

AC_DEFINE_UNQUOTED(SYSCONFDIR, "`eval echo $sysconfdir`", [Location of system configuration files])

Also, should we consider deleting the macro entirely instead of merging this pull request? As per https://codesearch.debian.net/search?q=AX_DEFINE_SUB_PATH and https://codesearch.debian.net/search?q=AC_DEFINE_SUB_PATH and a quick Google search, there are no users of this macro (not surprising as it’s broken, but nobody cared enough to submit a fix until now).

@peti peti merged commit f8cb59f into autoconf-archive:master Oct 5, 2016
peti added a commit that referenced this pull request Oct 5, 2016
@peti
Copy link
Collaborator

peti commented Oct 5, 2016

I've marked the macro obsolete in a66131f. Thank you for the suggestion!

@stapelberg
Copy link
Contributor Author

Thanks!

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request Dec 4, 2019
Change log:

* Noteworthy changes in release 2019.01.06 (2019-01-06) [stable]

  The Autoconf Archive now has its own organization on Github. Therefore, the
  mirror has moved to https://github.com/autoconf-archive/autoconf-archive. The
  old location, https://github.com/peti/autoconf-archive redirects there.

  The macro AX_CODE_COVERAGE was modified to use AX_ADD_AM_MACRO_STATIC,
  and thus unfortunately usage was changed.

* Noteworthy changes in release 2018.03.13 (2018-03-13) [stable]

  The macros AX_R_PACKAGE and AX_PROG_DATE have been added. Many other macros
  have received updates.

* Noteworthy changes in release 2017.09.28 (2017-09-28) [stable]

  The macros AX_PROG_HELP2MAN, AX_RECURSIVE_EVAL, AX_SUBDIRS_CONFIGURE,
  AX_ELISP, and AX_PROG_EMACS have been added.

  Various macros have received updates. Please check the ChangeLog file or the
  history of the git repository for further details.

* Noteworthy changes in release 2017.03.21 (2017-03-21) [stable]

  Obsolete macros AX_CXX_COMPILER_VENDOR, AX_GCC_LIBRARIES_DIR, AX_GCC_VERSION,
  and AX_HAVE_OPENGL have been removed from the archive.

  AX_DEFINE_SUB_PATH has been marked obsolete as suggested in
  autoconf-archive/autoconf-archive#97.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants