blob: d5e2f5c5d251176813748062ada59c69add0d879 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
--- configure.in.old 2005-10-25 10:37:27.000000000 -0300
+++ configure.in 2005-10-25 11:09:22.000000000 -0300
@@ -182,11 +182,20 @@
# netCDF Test
ac_netcdf_includes=""
ac_netcdf_libraries=""
-AC_ARG_WITH(netcdf,
- AC_HELP_STRING([--with-netcdf=DIR],[where the root of NetCDF is installed ]),
- [ ac_netcdf_includes="-I$withval/include"
- ac_netcdf_libraries="-L$withval/lib"
- ])
+
+AC_MSG_CHECKING(--enable-netcdf argument)
+AC_ARG_ENABLE(netcdf,
+ [ --enable-netcdf Enable netcdf support.],
+ [ enable_netcdf=$enableval ],
+ [ enable_netcdf="no" ])
+
+if test "$enable_netcdf" = "yes"; then
+ AC_ARG_WITH(netcdf,
+ AC_HELP_STRING([--with-netcdf=DIR],[where the root of NetCDF is installed ]),
+ [ ac_netcdf_includes="-I$withval/include"
+ ac_netcdf_libraries="-L$withval/lib"
+ ])
+fi
all_includes_save="$all_includes"
all_includes="$all_includes $ac_netcdf_includes"
|