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

configure fails with "ENABLE_SK was never defined" #37

Closed
tribut opened this issue Nov 3, 2013 · 11 comments

Comments

Projects
None yet
7 participants
@tribut
Copy link

commented Nov 3, 2013

Hi,

trying to build mdbtools on Ubuntu 13.10. However, ./configure bails with the following message:

configure: error: conditional "ENABLE_SK" was never defined.
Usually this means the macro was only invoked conditionally.

A quick search suggested that maybe gnome-doc-utils had to be installed. However, this did not fix the problem.

Regards

@roytam1

This comment has been minimized.

Copy link

commented Nov 26, 2013

I quick hack for fixing this issue:

--- configure.ac.orig  2013-10-25 03:48:51.000000000 +0800
+++ configure.ac       2013-11-26 11:19:11.300378900 +0800
@@ -194,10 +194,12 @@
     enable_gtk_doc=no
   fi
 fi

 AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
+AM_CONDITIONAL(HAVE_GNOME_DOC_UTILS, test x$enable_gtk_doc = xyes)
+AM_CONDITIONAL(ENABLE_SK, test x$enable_scrollkeeper = xyes)

 ##################################################
 # Check for txt2man
 ##################################################


@mmacpherson

This comment has been minimized.

Copy link

commented Nov 26, 2013

Thanks @roytam1 -- worked for me.

@geithman

This comment has been minimized.

Copy link

commented Dec 10, 2013

  • installed " gnome-doc-utils"
  • added changes to configure.ac, that @roytam1 suggested

But I still get

configure: error: conditional "ENABLE_SK" was never defined.
Usually this means the macro was only invoked conditionally.

@roytam1

This comment has been minimized.

Copy link

commented Dec 10, 2013

configure: error: conditional "ENABLE_SK" was never defined.
Usually this means the macro was only invoked conditionally.

did you regenerate configure after modifying configure.ac?

@geithman

This comment has been minimized.

Copy link

commented Dec 10, 2013

So I have to run
autoreconf -i -f
again ?
Yes! And this fixes the problem.
Thanks @roytam1 !

@Jan-E

This comment has been minimized.

Copy link

commented Dec 19, 2013

Thanks. This patch enabled me to compile mdbtools with cygwin, so I can use it in Windows 7. No need to start my Ubuntu anymore.

@cameel

This comment has been minimized.

Copy link

commented Jan 7, 2014

So, aside from this quick fix, what is the correct solution? Is there a way to build this without having to patch the source? I tried to disable doc generation with ./configure --enable-gtk-doc=no and ./configure --disable-gtk-doc but it keeps complaining about missing ENABLE_SK.

@cameel

This comment has been minimized.

Copy link

commented Jan 7, 2014

I see that m4/gnome-doc-utils.m4 does set ENABLE_SK and this file get included by aclocal.m4 but it does not show up in the output of autoreconf -i -f for some reason.

davidhicks added a commit to davidhicks/mdbtools that referenced this issue Jun 28, 2014

davidhicks added a commit to davidhicks/mdbtools that referenced this issue Jun 28, 2014

davidhicks added a commit to davidhicks/mdbtools that referenced this issue Jun 28, 2014

davidhicks added a commit to davidhicks/mdbtools that referenced this issue Jun 28, 2014

davidhicks added a commit to davidhicks/mdbtools that referenced this issue Jun 28, 2014

davidhicks added a commit to davidhicks/mdbtools that referenced this issue Jun 28, 2014

davidhicks added a commit to davidhicks/mdbtools that referenced this issue Jun 28, 2014

Fix brianb#37: configure error for ENABLE_SK conditional not being de…
…fined

Suggested fix by roytam1 at:
brianb#37 (comment)

Signed-off-by: David Hicks <david@hicks.id.au>
@cameel

This comment has been minimized.

Copy link

commented Sep 12, 2014

The strange thing that it builds for me (on Arch Linux) without the patch since March. And it should be since ENABLE_SK is defined. But it still does not work for others as reported here: https://aur.archlinux.org/packages/mdbtools-git/. Maybe it's a problem with older versions of autoconf? I'm currently at autoconf 2.69.

@nirgal

This comment has been minimized.

Copy link
Collaborator

commented Oct 17, 2014

FYI, I could reproduce that bug when scroolkeeper is enabled but gnome is disabled, for exemple by using --disable-gmdb2 or when a dependency is missing (gtk+-2.0 >= 2.14 libglade-2.0 libgnomeui-2.0).

@nirgal

This comment has been minimized.

Copy link
Collaborator

commented Oct 17, 2014

GNOME_DOC_INIT has been moved out of HAVE_GNOME test, so this should be fixed in commit 157f4f4

@nirgal nirgal closed this Oct 17, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.