Re: Autoconf issue

Jukka Zitting <[email protected]> Tue, 14 Feb 2006 21:39:34 +0200
Newsgroups gmane.comp.web.midgard.devel
Message-ID <[email protected]>
Hi,

On 2/14/06, Piotras <[email protected]> wrote:
> What I want to do is to try compile piece of code with MySQL 4.1 only function
> and return error if that fails. Or get somehow MySQL installed version number.

How about something like this?

    case `"$MYSQL_CONFIG" --version` in
      3.*|4.0.*)
        AC_MSG_ERROR([MySQL version is less than 4.1!. You should
upgrade MySQL])
        ;;
    esac

BR,

Jukka Zitting

--
Yukatan - http://yukatan.fi/ - [email protected]
Software craftmanship, JCR consulting, and Java development