-
Notifications
You must be signed in to change notification settings - Fork 21
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
Why does configure's --with-swig option require the directory instead of the binary itself? #1085
Comments
@dbankieris you can set the SWIG environment variable to /usr/bin/swig3.0 and configure will use that one instead. I can easily update --with-swig to be a path to the executable as well if you want me to make that change, or I can add a new option to preserve other people's swig configurations |
@dbankieris you wrote the code that uses the SWIG directory instead of the executable by the way, so maybe you can answer your own question... |
Well, I wrote it, but then you updated it. It was a team effort. I'm looking at the code I wrote 2 years ago and rolling my eyes. |
Ah, yes. We now use I'm going to slowly back away and pretend I never created this issue... |
It's not that hard to hack. Just have --with-swig set SWIG in configure's environment. Then AX_PKG_SWIG will use SWIG instead of PATH |
@alexlin0
Under Ubuntu 20.04,
apt-get install swig
installs SWIG 4.0 at/usr/bin/swig4.0
and links/usr/bin/swig
to it. Trick is incompatible with SWIG 4.0 (#768), and installing SWIG 3.0 yields/usr/bin/swig3.0
. I have no idea what's going on in autoconf, butconfigure
's--with-swig
option uses SWIG 4.0 no matter what I give it. Can we not require specification of the binary instead of its directory?The text was updated successfully, but these errors were encountered: