Changeset 2129 for trunk/m4/yat_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/yat_gsl.m4

    r2093 r2129  
    3232  AC_PREREQ([2.63]) dnl we use YAT_CHECK_GSL_HEADER
    3333  yat_gsl_status="ok"
    34   AX_PATH_GSL([$1],,[yat_gsl_status="no"])
     34  AC_ARG_WITH([gsl],
     35              [AS_HELP_STRING([--with-gsl=DIR], [prefix for gsl installation])])
     36
     37  AS_IF([with_gsl], [no], [yat_gsl_status=skip])       
     38
     39  AS_IF([test "x$yat_gsl_status" = "xok"], [
     40           AX_PATH_GSL([$1],,[yat_gsl_status="no"])
     41        ])
    3542
    3643  AS_IF([test "x$yat_gsl_status" = "xok"],
     
    4754        ])
    4855
    49   AS_IF([test "x$yat_gsl_status" = "xok"],
    50         [m4_default([$2], [:])],
    51         [m4_default([$3], [:])])
     56  AS_CASE([$yat_gsl_status],
     57          [ok], [m4_default([$2], [:])],
     58          [skip], [:],
     59          [m4_default([$3], [:])])
    5260
    5361
Note: See TracChangeset for help on using the changeset viewer.