Changeset 2129 for trunk/m4/gsl.m4


Ignore:
Timestamp:
Dec 23, 2009, 5:58:30 AM (12 years ago)
Author:
Peter
Message:

New configure option 'with-gsl=DIR'. This option also accepts 'no' as
an argument or equivalently '--without-gsl' in which case no check for
GSL will be performed. The old --with-gsl-prefix and
--with-gsl-exec-prefix are deprecated.

fixes #544

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/m4/gsl.m4

    r2103 r2129  
    55AC_DEFUN([AX_PATH_GSL],
    66[
    7 AC_ARG_WITH(gsl-prefix,[  --with-gsl-prefix=PFX   Prefix where GSL is installed (optional)],
    8             gsl_prefix="$withval", gsl_prefix="")
    9 AC_ARG_WITH(gsl-exec-prefix,[  --with-gsl-exec-prefix=PFX Exec prefix where GSL is installed (optional)],
    10             gsl_exec_prefix="$withval", gsl_exec_prefix="")
     7AC_ARG_WITH([gsl-prefix],[],
     8            [AC_MSG_WARN([option --with-gsl-prefix is deprecated])
     9             gsl_prefix="$withval"], [gsl_prefix=""])
     10
     11AC_ARG_WITH([gsl-exec-prefix],[],
     12            [AC_MSG_WARN([option --with-gsl-exec-prefix is deprecated])
     13             gsl_exec_prefix="$withval"], [gsl_exec_prefix=""])
    1114
    1215  if test "x${GSL_CONFIG+set}" != xset ; then
     
    1619     if test "x$gsl_exec_prefix" != x ; then
    1720        GSL_CONFIG="$gsl_exec_prefix/bin/gsl-config"
     21     fi
     22     if test "x$with_gsl" != x ; then
     23        GSL_CONFIG="$with_gsl/bin/gsl-config"
    1824     fi
    1925  fi
Note: See TracChangeset for help on using the changeset viewer.