Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

autoconf on windows ignores autotool macros provided by ports #20573

Closed
wrobelda opened this issue Oct 7, 2021 · 1 comment
Closed

autoconf on windows ignores autotool macros provided by ports #20573

wrobelda opened this issue Oct 7, 2021 · 1 comment
Assignees
Labels
category:question This issue is a question

Comments

@wrobelda
Copy link
Contributor

wrobelda commented Oct 7, 2021

Describe the bug
I am working on getting gwenhywfar port to build on Windows, which requires AUTOCONFIG option. The upstream configure.ac uses autotool macros provided by the lib's dependencies. ~~This works fine on Linux/macOS, but not on Windows. ~~ Apparently this fails on Linux, too. And it only worked on my macOS because of the libgcrypt package installed by brew.

Environment

  • OS: All

To Reproduce
Steps to reproduce the behavior:

  1. Checkout [libgwenhywfar] Update to 5.7.3, Fix static consumers, enable Windows #20572
  2. ./vcpkg install libgwenhywfar
  3. See error

Expected behavior
Autoconfig on Windows should include the macros provided by ports

Failure logs

configure.ac:681: error: possibly undefined macro: AM_PATH_LIBGCRYPT
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
@Neumann-A
Copy link
Contributor

uses autotool macros provided by the lib's dependencies

a) the macros need to be installed and autoconfig needs to be setup by the port to consume it.
b) the only way vcpkg could provide a consistent m4 behavior is to supply all of the m4 scripts itself instead of using msys

So according to the file list you have/need:
libgcrypt:/share/libgcrypt/aclocal/libgcrypt.m4

the solution is in #9966 add:
set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/libgcrypt/aclocal/\"")
to the portfile of gwenhywfar

@PhoebeHui PhoebeHui self-assigned this Oct 8, 2021
@PhoebeHui PhoebeHui added the category:question This issue is a question label Oct 8, 2021
@microsoft microsoft locked and limited conversation to collaborators Oct 9, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

3 participants