-
Notifications
You must be signed in to change notification settings - Fork 24
/
configure.ac
1442 lines (1144 loc) · 54 KB
/
configure.ac
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([MET], [m4_esyscmd_s(echo ${MET_BUILD_VERSION:-development})], [https://github.com/dtcenter/METplus/discussions], [], [http://dtcenter.org/community-code/model-evaluation-tools-met])
AC_CONFIG_SRCDIR([src/tools/tc_utils/tc_dland/tc_dland.cc])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.9 foreign])
# OpenMP
AC_OPENMP()
CPPFLAGS="${CPPFLAGS} ${OPENMP_CFLAGS}"
LDFLAGS="${LDFLAGS} ${OPENMP_CFLAGS}"
#
# Look for a specified C++ Standard
#
# Configure the variable. The help text will appear if the user uses "configure --help".
AC_ARG_VAR([MET_CXX_STANDARD], [Specify the version of the supported C++ standard. Values may be 11, 14, or 17. Default value is 17.])
# Set a default value
if (test -z "$MET_CXX_STANDARD"); then
MET_CXX_STANDARD=17
AC_MSG_NOTICE([c++17 will be used as the C++ standard])
elif (test -n "$MET_CXX_STANDARD"); then
MET_CXX_STANDARD=${MET_CXX_STANDARD}
AC_MSG_NOTICE([MET_CXX_STANDARD will be set])
fi
#
# Look for the Proj library.
#
# Configure the variables. The help text will appear if the user uses "configure --help".
AC_ARG_VAR([MET_PROJ], [Where proj lib and include subdirectories are located. If they are installed in /usr/local, you don't have to specify them.])
AC_ARG_VAR([MET_PROJINC], [Where proj include files are located. Use if the libraries and include files are not under the same main proj directory. If used, MET_PROJLIB must also be defined and MET_PROJ will be ignored.])
AC_ARG_VAR([MET_PROJLIB], [Where proj libraries are located. Use if the libraries and include files are not under the same main proj directory. If used, MET_PROJINC must also be defined and MET_PROJ will be ignored.])
# Ensure that both or neither are specified.
if (test -n "$MET_PROJLIB" && test -z "$MET_PROJINC"); then
AC_MSG_ERROR([MET_PROJLIB environment variable set, but MET_PROJINC not set. If one of these variables is set, then both must be set.])
elif (test -n "$MET_PROJINC" && test -z "$MET_PROJLIB"); then
AC_MSG_ERROR([MET_PROJINC environment variable set, but MET_PROJLIB not set. If one of these variables is set, then both must be set.])
fi
# Use the main Proj directory if individual locations were not specified.
if (test -n "$MET_PROJ" && test -z "$MET_PROJLIB"); then
MET_PROJINC='${MET_PROJ}/include'
MET_PROJLIB='${MET_PROJ}/lib'
fi
# AC_SUBST command line variables.
if (test -n "$MET_PROJLIB"); then
CPPFLAGS="${CPPFLAGS} -I${MET_PROJINC}"
LDFLAGS="${LDFLAGS} -L${MET_PROJLIB}"
fi
#
# Look for the Atlas library.
#
# Configure the variables. The help text will appear if the user uses "configure --help".
AC_ARG_VAR([MET_ATLAS], [Where Atlas lib and include subdirectories are located. If they are installed in /usr/local, you don't have to specify them.])
AC_ARG_VAR([MET_ATLASINC], [Where Atlas include files are located. Use if the libraries and include files are not under the same main Atlas directory. If used, MET_ATLASLIB must also be defined and MET_ATLAS will be ignored.])
AC_ARG_VAR([MET_ATLASLIB], [Where Atlas libraries are located. Use if the libraries and include files are not under the same main Atlas directory. If used, MET_ATLASINC must also be defined and MET_ATLAS will be ignored.])
# Ensure that both or neither are specified.
if (test -n "$MET_ATLASLIB" && test -z "$MET_ATLASINC"); then
AC_MSG_ERROR([MET_ATLASLIB environment variable set, but MET_ATLASINC not set. If one of these variables is set, then both must be set.])
elif (test -n "$MET_ATLASINC" && test -z "$MET_ATLASLIB"); then
AC_MSG_ERROR([MET_ATLASINC environment variable set, but MET_ATLASLIB not set. If one of these variables is set, then both must be set.])
fi
# Use the main Atlas directory if individual locations were not specified.
if (test -n "$MET_ATLAS" && test -z "$MET_ATLASLIB"); then
MET_ATLASINC='${MET_ATLAS}/include'
MET_ATLASLIB='${MET_ATLAS}/lib'
fi
# AC_SUBST command line variables.
if (test -n "$MET_ATLASLIB"); then
CPPFLAGS="${CPPFLAGS} -I${MET_ATLASINC}"
LDFLAGS="${LDFLAGS} -L${MET_ATLASLIB}"
fi
#
# Look for the ecKit library.
#
# Configure the variables. The help text will appear if the user uses "configure --help".
AC_ARG_VAR([MET_ECKIT], [Where ecKit lib and include subdirectories are located. If they are installed in /usr/local, you don't have to specify them.])
AC_ARG_VAR([MET_ECKITINC], [Where ecKit include files are located. Use if the libraries and include files are not under the same main ecKit directory. If used, MET_ECKITLIB must also be defined and MET_ECKIT will be ignored.])
AC_ARG_VAR([MET_ECKITLIB], [Where ecKit libraries are located. Use if the libraries and include files are not under the same main ecKit directory. If used, MET_ECKITINC must also be defined and MET_ECKIT will be ignored.])
# Ensure that both or neither are specified.
if (test -n "$MET_ECKITLIB" && test -z "$MET_ECKITINC"); then
AC_MSG_ERROR([MET_ECKITLIB environment variable set, but MET_ECKITINC not set. If one of these variables is set, then both must be set.])
elif (test -n "$MET_ECKITINC" && test -z "$MET_ECKITLIB"); then
AC_MSG_ERROR([MET_ECKITINC environment variable set, but MET_ECKITLIB not set. If one of these variables is set, then both must be set.])
fi
# Use the main Eckit directory if individual locations were not specified.
if (test -n "$MET_ECKIT" && test -z "$MET_ECKITLIB"); then
MET_ECKITINC='${MET_ECKIT}/include'
MET_ECKITLIB='${MET_ECKIT}/lib'
fi
# AC_SUBST command line variables.
if (test -n "$MET_ECKITLIB"); then
CPPFLAGS="${CPPFLAGS} -I${MET_ECKITINC}"
LDFLAGS="${LDFLAGS} -L${MET_ECKITLIB}"
fi
#
# Look for the NetCDF library.
#
# Configure the variables. The help text will appear if the user uses "configure --help".
AC_ARG_VAR([MET_NETCDF], [Where netcdf lib and include subdirectories are located. If they are installed in /usr/local, you don't have to specify them.])
AC_ARG_VAR([MET_NETCDFINC], [Where netcdf include files are located. Use if the libraries and include files are not under the same main netcdf directory. If used, MET_NETCDFLIB must also be defined and MET_NETCDF will be ignored.])
AC_ARG_VAR([MET_NETCDFLIB], [Where netcdf libraries are located. Use if the libraries and include files are not under the same main netcdf directory. If used, MET_NETCDFINC must also be defined and MET_NETCDF will be ignored.])
# Ensure that both or neither are specified.
if (test -n "$MET_NETCDFLIB" && test -z "$MET_NETCDFINC"); then
AC_MSG_ERROR([MET_NETCDFLIB environment variable set, but MET_NETCDFINC not set. If one of these variables is set, then both must be set.])
elif (test -n "$MET_NETCDFINC" && test -z "$MET_NETCDFLIB"); then
AC_MSG_ERROR([MET_NETCDFINC environment variable set, but MET_NETCDFLIB not set. If one of these variables is set, then both must be set.])
fi
# Use the main NetCDF directory if individual locations were not specified.
if (test -n "$MET_NETCDF" && test -z "$MET_NETCDFLIB"); then
MET_NETCDFINC='${MET_NETCDF}/include'
MET_NETCDFLIB='${MET_NETCDF}/lib'
fi
# AC_SUBST command line variables.
if (test -n "$MET_NETCDFLIB"); then
CPPFLAGS="${CPPFLAGS} -I${MET_NETCDFINC}"
LDFLAGS="${LDFLAGS} -L${MET_NETCDFLIB}"
fi
#
# Look for the HDF5 library.
#
# Configure the variables. The help text will appear if the user uses "configure --help".
AC_ARG_VAR([MET_HDF5], [Where hdf5 lib and include subdirectories are located. If they are installed in /usr/local, you don't have to specify them.])
AC_ARG_VAR([MET_HDF5INC], [Where hdf5 include files are located. Use if the libraries and include files are not under the same main hdf5 directory. If used, MET_HDF5LIB must also be defined and MET_HDF5 will be ignored.])
AC_ARG_VAR([MET_HDF5LIB], [Where hdf5 libraries are located. Use if the libraries and include files are not under the same main hdf5 directory. If used, MET_HDF5INC must also be defined and MET_HDF5 will be ignored.])
# Ensure that both or neither are specified.
if (test -n "$MET_HDF5LIB" && test -z "$MET_HDF5INC"); then
AC_MSG_ERROR([MET_HDF5LIB environment variable set, but MET_HDF5INC not set. If one of these variables is set, then both must be set.])
elif (test -n "$MET_HDF5INC" && test -z "$MET_HDF5LIB"); then
AC_MSG_ERROR([MET_HDF5INC environment variable set, but MET_HDF5LIB not set. If one of these variables is set, then both must be set.])
fi
# Use the main HDF5 directory if individual locations were not specified.
if (test -n "$MET_HDF5" && test -z "$MET_HDF5LIB"); then
MET_HDF5INC='${MET_HDF5}/include'
MET_HDF5LIB='${MET_HDF5}/lib'
fi
# AC_SUBST command line variables.
if (test -n "$MET_HDF5LIB"); then
CPPFLAGS="${CPPFLAGS} -I${MET_HDF5INC}"
LDFLAGS="${LDFLAGS} -L${MET_HDF5LIB}"
fi
#
# Look for the GRIB2C library
#
# Configure the variables. The help text will appear if the user uses "configure --help".
AC_ARG_VAR([MET_GRIB2C], [Where grib2c lib and include subdirectories are located. If they are installed in /usr/local, you don't have to specify them.])
AC_ARG_VAR([MET_GRIB2CINC], [Where grib2c include files are located. Use if the libraries and include files are not under the same main grib2c directory. If used, MET_GRIB2CLIB must also be defined and MET_GRIB2C will be ignored.])
AC_ARG_VAR([MET_GRIB2CLIB], [Where grib2c libraries are located. Use if the libraries and include files are not under the same main grib2c directory. If used, MET_GRIB2CINC must also be defined and MET_GRIB2C will be ignored.])
AC_ARG_VAR([GRIB2CLIB_NAME], [Name of grib2c library to link with. For example, -lgrib2c_v1.6.0 or -lgrib2c, etc. If it is -lgrib2c, you don't have to specify it.])
# Ensure that both or neither are specified.
if (test -n "$MET_GRIB2CLIB" && test -z "$MET_GRIB2CINC"); then
AC_MSG_ERROR([MET_GRIB2CLIB environment variable set, but MET_GRIB2CINC not set. If one of these variables is set, then both must be set.])
elif (test -n "$MET_GRIB2CINC" && test -z "$MET_GRIB2CLIB"); then
AC_MSG_ERROR([MET_GRIB2CINC environment variable set, but MET_GRIB2CLIB not set. If one of these variables is set, then both must be set.])
fi
# Use the main GRIB2C directory if individual locations were not specified.
if (test -n "$MET_GRIB2C" && test -z "$MET_GRIB2CLIB"); then
MET_GRIB2CINC='${MET_GRIB2C}/include'
MET_GRIB2CLIB='${MET_GRIB2C}/lib'
fi
# AC_SUBST command line variables.
if (test -n "$MET_GRIB2CLIB"); then
CPPFLAGS="${CPPFLAGS} -I${MET_GRIB2CINC}"
LDFLAGS="${LDFLAGS} -L${MET_GRIB2CLIB}"
fi
#
# Look for the PYTHON executable and library.
#
# Configure the variables. The help text will appear if the user uses "configure --help".
AC_ARG_VAR([MET_PYTHON_BIN_EXE], [Full path to the Python executable corresponding to MET_PYTHON_CC and MET_PYTHON_LD, e.g. /usr/bin/python3.])
AC_ARG_VAR([MET_PYTHON_CC], [Where the Python header files are located, e.g. -I<include dir>. Set to the output of 'python3-config --cflags'.])
AC_ARG_VAR([MET_PYTHON_LD], [Where the Python library files are located, e.g. -L<lib dir>, followed by the Python library names, e.g. -l<library>. Set to the output of 'python3-config --ldflags'.])
# Ensure that all or none are specified.
if (test -n "$MET_PYTHON_BIN_EXE" || \
test -n "$MET_PYTHON_CC" || \
test -n "$MET_PYTHON_LD"); then
if (test -z "$MET_PYTHON_BIN_EXE"); then
AC_MSG_ERROR([MET_PYTHON_CC or MET_PYTHON_LD environment variable set, but MET_PYTHON_BIN_EXE not set. If one of these variables is set, then all must be set.])
elif (test -z "$MET_PYTHON_CC"); then
AC_MSG_ERROR([MET_PYTHON_BIN_EXE or MET_PYTHON_LD environment variable set, but MET_PYTHON_CC not set. If one of these variables is set, then all must be set.])
elif (test -z "$MET_PYTHON_LD"); then
AC_MSG_ERROR([MET_PYTHON_BIN_EXE or MET_PYTHON_CC environment variable set, but MET_PYTHON_LD not set. If one of these variables is set, then all must be set.])
fi
fi
# Add MET_PYTHON_BIN_EXE to the CPPFLAGS
if (test -n "$MET_PYTHON_BIN_EXE"); then
CPPFLAGS=$CPPFLAGS' -DMET_PYTHON_BIN_EXE="\"${MET_PYTHON_BIN_EXE}\""'
fi
if (test -n "$MET_PYTHON_CC"); then
CPPFLAGS="${CPPFLAGS} -I../../basic/vx_log -I../../basic/vx_util ${MET_PYTHON_CC}"
fi
if (test -n "$MET_PYTHON_LD"); then
LDFLAGS="${LDFLAGS} ${MET_PYTHON_LD}"
fi
#
# Look for the GSL library.
#
# Configure the variables. The help text will appear if the user uses "configure --help".
AC_ARG_VAR([MET_GSL], [Where gsl lib and include subdirectories are located. If they are installed in /usr/local, you don't have to specify them.])
AC_ARG_VAR([MET_GSLINC], [Where gsl include files are located. Use if the libraries and include files are not under the same main gsl directory. If used, MET_GSLLIB must also be defined and MET_GSL will be ignored.])
AC_ARG_VAR([MET_GSLLIB], [Where gsl libraries are located. Use if the libraries and include files are not under the same main gsl directory. If used, MET_GSLINC must also be defined and MET_GSL will be ignored.])
# Ensure that both or neither are specified.
if (test -n "$MET_GSLLIB" && test -z "$MET_GSLINC"); then
AC_MSG_ERROR([MET_GSLLIB environment variable set, but MET_GSLINC not set. If one of these variables is set, then both must be set.])
elif (test -n "$MET_GSLINC" && test -z "$MET_GSLLIB"); then
AC_MSG_ERROR([MET_GSLINC environment variable set, but MET_GSLLIB not set. If one of these variables is set, then both must be set.])
fi
# Use the main GSL directory if individual locations were not specified.
if (test -n "$MET_GSL" && test -z "$MET_GSLLIB"); then
MET_GSLINC='${MET_GSL}/include'
MET_GSLLIB='${MET_GSL}/lib'
fi
# AC_SUBST command line variables.
if (test -n "$MET_GSLLIB"); then
CPPFLAGS="${CPPFLAGS} -I${MET_GSLINC}"
LDFLAGS="${LDFLAGS} -L${MET_GSLLIB}"
fi
#
# Look for the BUFR library.
#
# Configure the variables. The help text will appear if the user uses "configure --help".
AC_ARG_VAR([MET_BUFR], [Where bufr lib subdirectory is located. If it is installed in /usr/local, you don't have to specify it.])
AC_ARG_VAR([MET_BUFRLIB], [Where bufr libraries are located. Use if the library files are not in a bin subdirectory. If used MET_BUFR will be ignored.])
# If the individual locations weren't specified, then the main Bufr directory
# must be specified. If it isn't, let the user know they need to supply one.
if (test -n "$MET_BUFR" && test -z "$MET_BUFRLIB"); then
MET_BUFRLIB='${MET_BUFR}/lib'
fi
# AC_SUBST command line variables.
if (test -n "$MET_BUFRLIB"); then
LDFLAGS="${LDFLAGS} -L${MET_BUFRLIB}"
fi
# Configure the variables. The help text will appear if the user uses "configure --help".
AC_ARG_VAR([BUFRLIB_NAME], [Name of bufr library to link with. For example, -lbufr_v11.3.0_4_64 or -lbufr, etc. If it is -lbufr, you don't have to specify it.])
AC_SUBST([BUFRLIB_NAME])
AM_CONDITIONAL([BUFRLIB_NAME_SET], [test ! -z "$BUFRLIB_NAME"])
AC_MSG_NOTICE([BUFRLIB_NAME will be set])
#
# Look for the HDF library.
#
# Configure the variables. The help text will appear if the user uses "configure --help".
AC_ARG_VAR([MET_HDF], [Where hdf version 4 lib and include subdirectories are located. If they are installed in /usr/local, you don't have to specify them. HDF version 4 is only needed if you are building the MODIS utility.])
AC_ARG_VAR([MET_HDFINC], [Where hdf version 4 include files are located. Use if the libraries and include files are not under the same main hdf directory. If used, MET_HDFLIB must also be defined and MET_HDF will be ignored.])
AC_ARG_VAR([MET_HDFLIB], [Where hdf version 4 libraries are located. Use if the libraries and include files are not under the same main hdf directory. If used, MET_HDFINC must also be defined and MET_HDF will be ignored.])
# Ensure that both or neither are specified.
if (test -n "$MET_HDFLIB" && test -z "$MET_HDFINC"); then
AC_MSG_ERROR([MET_HDFLIB environment variable set, but MET_HDFINC not set. If one of these variables is set, then both must be set.])
elif (test -n "$MET_HDFINC" && test -z "$MET_HDFLIB"); then
AC_MSG_ERROR([MET_HDFINC environment variable set, but MET_HDFLIB not set. If one of these variables is set, then both must be set.])
fi
# Use the main HDF directory if individual locations were not specified.
if (test -n "$MET_HDF" && test -z "$MET_HDFLIB"); then
MET_HDFINC='${MET_HDF}/include'
MET_HDFLIB='${MET_HDF}/lib'
fi
# AC_SUBST command line variables.
if (test -n "$MET_HDFLIB"); then
CPPFLAGS="${CPPFLAGS} -I${MET_HDFINC}"
LDFLAGS="${LDFLAGS} -L${MET_HDFLIB}"
fi
#
# Look for the HDFEOS library.
#
# Configure the variables. The help text will appear if the user uses "configure --help".
AC_ARG_VAR([MET_HDFEOS], [Where hdfeos version 2 lib and include subdirectories are located. If they are installed in /usr/local, you don't have to specify them. HDF-EOS version 2 is only needed if you are building the MODIS utility.])
AC_ARG_VAR([MET_HDFEOSINC], [Where hdfeos version 2 include files are located. Use if the libraries and include files are not under the same main hdfeos directory. If used, MET_HDFEOSLIB must also be defined and MET_HDFEOS will be ignored.])
AC_ARG_VAR([MET_HDFEOSLIB], [Where hdfeos version 2 libraries are located. Use if the libraries and include files are not under the same main hdfeos directory. If used, MET_HDFEOSINC must also be defined and MET_HDFEOS will be ignored.])
# Ensure that both or neither are specified.
if (test -n "$MET_HDFEOSLIB" && test -z "$MET_HDFEOSINC"); then
AC_MSG_ERROR([MET_HDFEOSLIB environment variable set, but MET_HDFEOSINC not set. If one of these variables is set, then both must be set.])
elif (test -n "$MET_HDFEOSINC" && test -z "$MET_HDFEOSLIB"); then
AC_MSG_ERROR([MET_HDFEOSINC environment variable set, but MET_HDFEOSLIB not set. If one of these variables is set, then both must be set.])
fi
# Use the main HDFEOS directory if individual locations were not specified.
if (test -n "$MET_HDFEOS" && test -z "$MET_HDFEOSLIB"); then
MET_HDFEOSINC='${MET_HDFEOS}/include'
MET_HDFEOSLIB='${MET_HDFEOS}/lib'
fi
# AC_SUBST command line variables.
if (test -n "$MET_HDFEOSLIB"); then
CPPFLAGS="${CPPFLAGS} -I${MET_HDFEOSINC}"
LDFLAGS="${LDFLAGS} -L${MET_HDFEOSLIB}"
fi
#
# Look for the Cairo library
#
# Configure the variables. The help text will appear if the user uses "configure --help".
AC_ARG_VAR([MET_CAIRO], [Where cairo lib and include subdirectories are located. If they are installed in /usr/local, you don't have to specify them. Cairo is only needed if you are building the mode_graphics utility.])
AC_ARG_VAR([MET_CAIROINC], [Where cairo include files are located. Use if the libraries and include files are not under the same main cairo directory. If used, MET_CAIROLIB must also be defined and MET_CAIRO will be ignored.])
AC_ARG_VAR([MET_CAIROLIB], [Where cairo libraries are located. Use if the libraries and include files are not under the same main cairo directory. If used, MET_CAIROINC must also be defined and MET_CAIRO will be ignored.])
# Ensure that both or neither are specified.
if (test -n "$MET_CAIROLIB" && test -z "$MET_CAIROINC"); then
AC_MSG_ERROR([MET_CAIROLIB environment variable set, but MET_CAIROINC not set. If one of these variables is set, then both must be set.])
elif (test -n "$MET_CAIROINC" && test -z "$MET_CAIROLIB"); then
AC_MSG_ERROR([MET_CAIROINC environment variable set, but MET_CAIROLIB not set. If one of these variables is set, then both must be set.])
fi
# Use the main Cairo directory if individual locations were not specified.
if (test -n "$MET_CAIRO" && test -z "$MET_CAIROLIB"); then
MET_CAIROINC='${MET_CAIRO}/include'
MET_CAIROLIB='${MET_CAIRO}/lib'
fi
# AC_SUBST command line variables.
if (test -n "$MET_CAIROLIB"); then
CPPFLAGS="${CPPFLAGS} -I${MET_CAIROINC}"
LDFLAGS="${LDFLAGS} -L${MET_CAIROLIB}"
fi
#
# Look for the Freetype library
#
# Configure the variables. The help text will appear if the user uses "configure --help".
AC_ARG_VAR([MET_FREETYPE], [Where freetype lib and include subdirectories are located. If they are installed in /usr/local, you don't have to specify them. Freetype is only needed if you are building the mode_graphics utility.])
AC_ARG_VAR([MET_FREETYPEINC], [Where freetype include files are located. Use if the libraries and include files are not under the same main freetype directory. If used, MET_FREETYPELIB must also be defined and MET_FREETYPE will be ignored.])
AC_ARG_VAR([MET_FREETYPELIB], [Where freetype libraries are located. Use if the libraries and include files are not under the same main freetype directory. If used, MET_FREETYPEINC must also be defined and MET_FREETYPE will be ignored.])
# Ensure that both or neither are specified.
if (test -n "$MET_FREETYPELIB" && test -z "$MET_FREETYPEINC"); then
AC_MSG_ERROR([MET_FREETYPELIB environment variable set, but MET_FREETYPEINC not set. If one of these variables is set, then both must be set.])
elif (test -n "$MET_FREETYPEINC" && test -z "$MET_FREETYPELIB"); then
AC_MSG_ERROR([MET_FREETYPEINC environment variable set, but MET_FREETYPELIB not set. If one of these variables is set, then both must be set.])
fi
# Use the main Freetype directory if individual locations were not specified.
if (test -z "$MET_FREETYPELIB" && test -n "$MET_FREETYPE"); then
MET_FREETYPEINC='${MET_FREETYPE}/include'
MET_FREETYPELIB='${MET_FREETYPE}/lib'
fi
# AC_SUBST command line variables.
if (test -n "$MET_FREETYPELIB"); then
CPPFLAGS="${CPPFLAGS} -I${MET_FREETYPEINC}"
LDFLAGS="${LDFLAGS} -L${MET_FREETYPELIB}"
fi
#
# Process any enable flags specified by the user
#
# Enable all compilation options
AC_ARG_ENABLE(all,
[AS_HELP_STRING([--enable-all], [Enable compilation options --enable-grib2 --enable-python --enable-ugrid --enable-lidar2nc --enable-modis --enable-mode_graphics])],
[case "${enableval}" in
yes | no ) ENABLE_ALL="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-all) ;;
esac],
[ENABLE_ALL="no"]
)
AM_CONDITIONAL([ENABLE_ALL], [test "x$ENABLE_ALL" = "xyes"])
if test "x$ENABLE_ALL" = "xyes"; then
AC_MSG_NOTICE([all options will be compiled])
fi
# BLOCK4
AC_ARG_ENABLE(block4,
[AS_HELP_STRING([--disable-block4], [Disable use of BLOCK4 in the compilation. Use this if you have trouble using PrepBufr files.])],
[case "${enableval}" in
yes | no ) ENABLE_BLOCK4="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-block4) ;;
esac],
[ENABLE_BLOCK4="yes"]
)
AM_CONDITIONAL([ENABLE_BLOCK4], [test "x$ENABLE_BLOCK4" = "xyes"])
if test "x$ENABLE_BLOCK4" = "xyes"; then
CPPFLAGS="${CPPFLAGS} -DBLOCK4"
AC_MSG_NOTICE([-DBLOCK4 will be used in the compiles])
else
AC_MSG_NOTICE([-DBLOCK4 will not be used in the compiles])
fi
# static linking
AC_ARG_ENABLE(static_linking,
[AS_HELP_STRING([--enable-static_linking], [Enable static linking of the applications])],
[case "${enableval}" in
yes | no ) ENABLE_STATIC_LINKING="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-static_linking) ;;
esac],
[ENABLE_STATIC_LINKING="no"]
)
AM_CONDITIONAL([ENABLE_STATIC_LINKING], [test "x$ENABLE_STATIC_LINKING" = "xyes"])
if test "x$ENABLE_STATIC_LINKING" = "xyes"; then
LDFLAGS="${LDFLAGS} -static"
AC_MSG_NOTICE([Static linking will be used in the compiles])
else
AC_MSG_NOTICE([Dynamic linking will not be used in the compiles])
fi
# ascii2nc
AC_ARG_ENABLE(ascii2nc,
[AS_HELP_STRING([--disable-ascii2nc], [Disable compilation of ascii2nc])],
[case "${enableval}" in
yes | no ) ENABLE_ASCII2NC="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-ascii2nc) ;;
esac],
[ENABLE_ASCII2NC="yes"]
)
AM_CONDITIONAL([ENABLE_ASCII2NC], [test "x$ENABLE_ASCII2NC" = "xyes"])
if test "x$ENABLE_ASCII2NC" = "xyes"; then
AC_DEFINE([ENABLE_ASCII2NC], [], ["build ascii2nc"])
AC_MSG_NOTICE([ascii2nc will be compiled])
else
AC_MSG_NOTICE([ascii2nc will not be compiled])
fi
# lidar2nc
AC_ARG_ENABLE(lidar2nc,
[AS_HELP_STRING([--enable-lidar2nc], [Enable compilation of lidar2nc])],
[case "${enableval}" in
yes | no ) ENABLE_LIDAR2NC="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-lidar2nc) ;;
esac],
[ENABLE_LIDAR2NC="no"]
)
AM_CONDITIONAL([ENABLE_LIDAR2NC], [test "x$ENABLE_LIDAR2NC" = "xyes" || test "x$ENABLE_ALL" = "xyes"])
if test "x$ENABLE_LIDAR2NC" = "xyes" || test "x$ENABLE_ALL" = "xyes"; then
AC_DEFINE([ENABLE_LIDAR2NC], [], ["build lidar2nc"])
AC_MSG_NOTICE([lidar2nc will be compiled])
else
AC_MSG_NOTICE([lidar2nc will not be compiled])
fi
# ensemble_stat
AC_ARG_ENABLE(ensemble_stat,
[AS_HELP_STRING([--disable-ensemble_stat], [Disable compilation of ensemble_stat])],
[case "${enableval}" in
yes | no ) ENABLE_ENSEMBLE_STAT="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-ensemble_stat) ;;
esac],
[ENABLE_ENSEMBLE_STAT="yes"]
)
AM_CONDITIONAL([ENABLE_ENSEMBLE_STAT], [test "x$ENABLE_ENSEMBLE_STAT" = "xyes"])
if test "x$ENABLE_ENSEMBLE_STAT" = "xyes"; then
AC_DEFINE([ENABLE_ENSEMBLE_STAT], [], ["build ensemble_stat"])
AC_MSG_NOTICE([ensemble_stat will be compiled])
else
AC_MSG_NOTICE([ensemble_stat will not be compiled])
fi
# gen_ens_prod
AC_ARG_ENABLE(gen_ens_prod,
[AS_HELP_STRING([--disable-gen_ens_prod], [Disable compilation of gen_ens_prod])],
[case "${enableval}" in
yes | no ) ENABLE_GEN_ENS_PROD="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-gen_ens_prod) ;;
esac],
[ENABLE_GEN_ENS_PROD="yes"]
)
AM_CONDITIONAL([ENABLE_GEN_ENS_PROD], [test "x$ENABLE_GEN_ENS_PROD" = "xyes"])
if test "x$ENABLE_GEN_ENS_PROD" = "xyes"; then
AC_DEFINE([ENABLE_GEN_ENS_PROD], [], ["build gen_ens_prod"])
AC_MSG_NOTICE([gen_ens_prod will be compiled])
else
AC_MSG_NOTICE([gen_ens_prod will not be compiled])
fi
# gen_vx_mask
AC_ARG_ENABLE(gen_vx_mask,
[AS_HELP_STRING([--disable-gen_vx_mask], [Disable compilation of gen_vx_mask])],
[case "${enableval}" in
yes | no ) ENABLE_GEN_VX_MASK="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-gen_vx_mask) ;;
esac],
[ENABLE_GEN_VX_MASK="yes"]
)
AM_CONDITIONAL([ENABLE_GEN_VX_MASK], [test "x$ENABLE_GEN_VX_MASK" = "xyes"])
if test "x$ENABLE_GEN_VX_MASK" = "xyes"; then
AC_DEFINE([ENABLE_GEN_VX_MASK], [], ["build gen_vx_mask"])
AC_MSG_NOTICE([gen_vx_mask will be compiled])
else
AC_MSG_NOTICE([gen_vx_mask will not be compiled])
fi
# gis_utils
AC_ARG_ENABLE(gis_utils,
[AS_HELP_STRING([--disable-gis_utils], [Disable compilation of gis_utils])],
[case "${enableval}" in
yes | no ) ENABLE_GIS_UTILS="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-gis_utils) ;;
esac],
[ENABLE_GIS_UTILS="yes"]
)
AM_CONDITIONAL([ENABLE_GIS_UTILS], [test "x$ENABLE_GIS_UTILS" = "xyes"])
if test "x$ENABLE_GIS_UTILS" = "xyes"; then
AC_DEFINE([ENABLE_GIS_UTILS], [], ["build gis_utils"])
AC_MSG_NOTICE([gis_utils will be compiled])
else
AC_MSG_NOTICE([gis_utils will not be compiled])
fi
# grid_stat
AC_ARG_ENABLE(grid_stat,
[AS_HELP_STRING([--disable-grid_stat], [Disable compilation of grid_stat])],
[case "${enableval}" in
yes | no ) ENABLE_GRID_STAT="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-grid_stat) ;;
esac],
[ENABLE_GRID_STAT="yes"]
)
AM_CONDITIONAL([ENABLE_GRID_STAT], [test "x$ENABLE_GRID_STAT" = "xyes"])
if test "x$ENABLE_GRID_STAT" = "xyes"; then
AC_DEFINE([ENABLE_GRID_STAT], [], ["build grid_stat"])
AC_MSG_NOTICE([grid_stat will be compiled])
else
AC_MSG_NOTICE([grid_stat will not be compiled])
fi
# ioda2nc
AC_ARG_ENABLE(ioda2nc,
[AS_HELP_STRING([--disable-ioda2nc], [Disable compilation of ioda2nc])],
[case "${enableval}" in
yes | no ) ENABLE_IODA2NC="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-ioda2nc) ;;
esac],
[ENABLE_IODA2NC="yes"]
)
AM_CONDITIONAL([ENABLE_IODA2NC], [test "x$ENABLE_IODA2NC" = "xyes"])
if test "x$ENABLE_IODA2NC" = "xyes"; then
AC_DEFINE([ENABLE_IODA2NC], [], ["build ioda2nc"])
AC_MSG_NOTICE([ioda2nc will be compiled])
else
AC_MSG_NOTICE([ioda2nc will not be compiled])
fi
# madis2nc
AC_ARG_ENABLE(madis2nc,
[AS_HELP_STRING([--disable-madis2nc], [Disable compilation of madis2nc])],
[case "${enableval}" in
yes | no ) ENABLE_MADIS2NC="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-madis2nc) ;;
esac],
[ENABLE_MADIS2NC="yes"]
)
AM_CONDITIONAL([ENABLE_MADIS2NC], [test "x$ENABLE_MADIS2NC" = "xyes"])
if test "x$ENABLE_MADIS2NC" = "xyes"; then
AC_DEFINE([ENABLE_MADIS2NC], [], ["build madis2nc"])
AC_MSG_NOTICE([madis2nc will be compiled])
else
AC_MSG_NOTICE([madis2nc will not be compiled])
fi
# mode
AC_ARG_ENABLE(mode,
[AS_HELP_STRING([--disable-mode], [Disable compilation of mode])],
[case "${enableval}" in
yes | no ) ENABLE_MODE="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-mode) ;;
esac],
[ENABLE_MODE="yes"]
)
AM_CONDITIONAL([ENABLE_MODE], [test "x$ENABLE_MODE" = "xyes"])
if test "x$ENABLE_MODE" = "xyes"; then
AC_DEFINE([ENABLE_MODE], [], ["build mode"])
AC_MSG_NOTICE([mode will be compiled])
else
AC_MSG_NOTICE([mode will not be compiled])
fi
# mode_analysis
AC_ARG_ENABLE(mode_analysis,
[AS_HELP_STRING([--disable-mode_analysis], [Disable compilation of mode_analysis])],
[case "${enableval}" in
yes | no ) ENABLE_MODE_ANALYSIS="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-mode_analysis) ;;
esac],
[ENABLE_MODE_ANALYSIS="yes"]
)
AM_CONDITIONAL([ENABLE_MODE_ANALYSIS], [test "x$ENABLE_MODE_ANALYSIS" = "xyes"])
if test "x$ENABLE_MODE_ANALYSIS" = "xyes"; then
AC_DEFINE([ENABLE_MODE_ANALYSIS], [], ["build mode_analysis"])
AC_MSG_NOTICE([mode_analysis will be compiled])
else
AC_MSG_NOTICE([mode_analysis will not be compiled])
fi
# pb2nc
AC_ARG_ENABLE(pb2nc,
[AS_HELP_STRING([--disable-pb2nc], [Disable compilation of pb2nc])],
[case "${enableval}" in
yes | no ) ENABLE_PB2NC="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-pb2nc) ;;
esac],
[ENABLE_PB2NC="yes"]
)
AM_CONDITIONAL([ENABLE_PB2NC], [test "x$ENABLE_PB2NC" = "xyes"])
if test "x$ENABLE_PB2NC" = "xyes"; then
AC_DEFINE([ENABLE_PB2NC], [], ["build pb2nc"])
AC_MSG_NOTICE([pb2nc will be compiled])
else
AC_MSG_NOTICE([pb2nc will not be compiled])
fi
# pcp_combine
AC_ARG_ENABLE(pcp_combine,
[AS_HELP_STRING([--disable-pcp_combine], [Disable compilation of pcp_combine])],
[case "${enableval}" in
yes | no ) ENABLE_PCP_COMBINE="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-pcp_combine) ;;
esac],
[ENABLE_PCP_COMBINE="yes"]
)
AM_CONDITIONAL([ENABLE_PCP_COMBINE], [test "x$ENABLE_PCP_COMBINE" = "xyes"])
if test "x$ENABLE_PCP_COMBINE" = "xyes"; then
AC_DEFINE([ENABLE_PCP_COMBINE], [], ["build pcp_combine"])
AC_MSG_NOTICE([pcp_combine will be compiled])
else
AC_MSG_NOTICE([pcp_combine will not be compiled])
fi
# plot_data_plane
AC_ARG_ENABLE(plot_data_plane,
[AS_HELP_STRING([--disable-plot_data_plane], [Disable compilation of plot_data_plane])],
[case "${enableval}" in
yes | no ) ENABLE_PLOT_DATA_PLANE="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-plot_data_plane) ;;
esac],
[ENABLE_PLOT_DATA_PLANE="yes"]
)
AM_CONDITIONAL([ENABLE_PLOT_DATA_PLANE], [test "x$ENABLE_PLOT_DATA_PLANE" = "xyes"])
if test "x$ENABLE_PLOT_DATA_PLANE" = "xyes"; then
AC_DEFINE([ENABLE_PLOT_DATA_PLANE], [], ["build plot_data_plane"])
AC_MSG_NOTICE([plot_data_plane will be compiled])
else
AC_MSG_NOTICE([plot_data_plane will not be compiled])
fi
# regrid_data_plane
AC_ARG_ENABLE(regrid_data_plane,
[AS_HELP_STRING([--disable-regrid_data_plane], [Disable compilation of regrid_data_plane])],
[case "${enableval}" in
yes | no ) ENABLE_REGRID_DATA_PLANE="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-regrid_data_plane) ;;
esac],
[ENABLE_REGRID_DATA_PLANE="yes"]
)
AM_CONDITIONAL([ENABLE_REGRID_DATA_PLANE], [test "x$ENABLE_REGRID_DATA_PLANE" = "xyes"])
if test "x$ENABLE_REGRID_DATA_PLANE" = "xyes"; then
AC_DEFINE([ENABLE_REGRID_DATA_PLANE], [], ["build regrid_data_plane"])
AC_MSG_NOTICE([regrid_data_plane will be compiled])
else
AC_MSG_NOTICE([regrid_data_plane will not be compiled])
fi
# point2grid
AC_ARG_ENABLE(point2grid,
[AS_HELP_STRING([--disable-point2grid], [Disable compilation of point2grid])],
[case "${enableval}" in
yes | no ) ENABLE_POINT2GRID="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-point2grid) ;;
esac],
[ENABLE_POINT2GRID="yes"]
)
AM_CONDITIONAL([ENABLE_POINT2GRID], [test "x$ENABLE_POINT2GRID" = "xyes"])
if test "x$ENABLE_POINT2GRID" = "xyes"; then
AC_DEFINE([ENABLE_POINT2GRID], [], ["build point2grid"])
AC_MSG_NOTICE([point2grid will be compiled])
else
AC_MSG_NOTICE([point2grid will not be compiled])
fi
# shift_data_plane
AC_ARG_ENABLE(shift_data_plane,
[AS_HELP_STRING([--disable-shift_data_plane], [Disable compilation of shift_data_plane])],
[case "${enableval}" in
yes | no ) ENABLE_SHIFT_DATA_PLANE="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-shift_data_plane) ;;
esac],
[ENABLE_SHIFT_DATA_PLANE="yes"]
)
AM_CONDITIONAL([ENABLE_SHIFT_DATA_PLANE], [test "x$ENABLE_SHIFT_DATA_PLANE" = "xyes"])
if test "x$ENABLE_SHIFT_DATA_PLANE" = "xyes"; then
AC_DEFINE([ENABLE_SHIFT_DATA_PLANE], [], ["build shift_data_plane"])
AC_MSG_NOTICE([shift_data_plane will be compiled])
else
AC_MSG_NOTICE([shift_data_plane will not be compiled])
fi
# plot_point_obs
AC_ARG_ENABLE(plot_point_obs,
[AS_HELP_STRING([--disable-plot_point_obs], [Disable compilation of plot_point_obs])],
[case "${enableval}" in
yes | no ) ENABLE_PLOT_POINT_OBS="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-plot_point_obs) ;;
esac],
[ENABLE_PLOT_POINT_OBS="yes"]
)
AM_CONDITIONAL([ENABLE_PLOT_POINT_OBS], [test "x$ENABLE_PLOT_POINT_OBS" = "xyes"])
if test "x$ENABLE_PLOT_POINT_OBS" = "xyes"; then
AC_DEFINE([ENABLE_PLOT_POINT_OBS], [], ["build plot_point_obs"])
AC_MSG_NOTICE([plot_point_obs will be compiled])
else
AC_MSG_NOTICE([plot_point_obs will not be compiled])
fi
# point_stat
AC_ARG_ENABLE(point_stat,
[AS_HELP_STRING([--disable-point_stat], [Disable compilation of point_stat])],
[case "${enableval}" in
yes | no ) ENABLE_POINT_STAT="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-point_stat) ;;
esac],
[ENABLE_POINT_STAT="yes"]
)
AM_CONDITIONAL([ENABLE_POINT_STAT], [test "x$ENABLE_POINT_STAT" = "xyes"])
if test "x$ENABLE_POINT_STAT" = "xyes"; then
AC_DEFINE([ENABLE_POINT_STAT], [], ["build point_stat"])
AC_MSG_NOTICE([point_stat will be compiled])
else
AC_MSG_NOTICE([point_stat will not be compiled])
fi
# stat_analysis
AC_ARG_ENABLE(stat_analysis,
[AS_HELP_STRING([--disable-stat_analysis], [Disable compilation of stat_analysis])],
[case "${enableval}" in
yes | no ) ENABLE_STAT_ANALYSIS="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-stat_analysis) ;;
esac],
[ENABLE_STAT_ANALYSIS="yes"]
)
AM_CONDITIONAL([ENABLE_STAT_ANALYSIS], [test "x$ENABLE_STAT_ANALYSIS" = "xyes"])
if test "x$ENABLE_STAT_ANALYSIS" = "xyes"; then
AC_DEFINE([ENABLE_STAT_ANALYSIS], [], ["build stat_analysis"])
AC_MSG_NOTICE([stat_analysis will be compiled])
else
AC_MSG_NOTICE([stat_analysis will not be compiled])
fi
# wavelet_stat
AC_ARG_ENABLE(wavelet_stat,
[AS_HELP_STRING([--disable-wavelet_stat], [Disable compilation of wavelet_stat])],
[case "${enableval}" in
yes | no ) ENABLE_WAVELET_STAT="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-wavelet_stat) ;;
esac],
[ENABLE_WAVELET_STAT="yes"]
)
AM_CONDITIONAL([ENABLE_WAVELET_STAT], [test "x$ENABLE_WAVELET_STAT" = "xyes"])
if test "x$ENABLE_WAVELET_STAT" = "xyes"; then
AC_DEFINE([ENABLE_WAVELET_STAT], [], ["build wavelet_stat"])
AC_MSG_NOTICE([wavelet_stat will be compiled])
else
AC_MSG_NOTICE([wavelet_stat will not be compiled])
fi
# series_analysis
AC_ARG_ENABLE(series_analysis,
[AS_HELP_STRING([--disable-series_analysis], [Disable compilation of series_analysis])],
[case "${enableval}" in
yes | no ) ENABLE_SERIES_ANALYSIS="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-series_analysis) ;;
esac],
[ENABLE_SERIES_ANALYSIS="yes"]
)
AM_CONDITIONAL([ENABLE_SERIES_ANALYSIS], [test "x$ENABLE_SERIES_ANALYSIS" = "xyes"])
if test "x$ENABLE_SERIES_ANALYSIS" = "xyes"; then
AC_DEFINE([ENABLE_SERIES_ANALYSIS], [], ["build series_analysis"])
AC_MSG_NOTICE([series_analysis will be compiled])
else
AC_MSG_NOTICE([series_analysis will not be compiled])
fi
# wwmca
AC_ARG_ENABLE(wwmca,
[AS_HELP_STRING([--disable-wwmca], [Disable compilation of wwmca])],
[case "${enableval}" in
yes | no ) ENABLE_WWMCA="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-wwmca) ;;
esac],
[ENABLE_WWMCA="yes"]
)
AM_CONDITIONAL([ENABLE_WWMCA], [test "x$ENABLE_WWMCA" = "xyes"])
if test "x$ENABLE_WWMCA" = "xyes"; then
AC_DEFINE([ENABLE_WWMCA], [], ["build wwmca"])
AC_MSG_NOTICE([wwmca will be compiled])
else
AC_MSG_NOTICE([wwmca will not be compiled])
fi
# modis
AC_ARG_ENABLE(modis,
[AS_HELP_STRING([--enable-modis], [Enable compilation of modis])],
[case "${enableval}" in
yes | no ) ENABLE_MODIS="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-modis) ;;
esac],
[ENABLE_MODIS="no"]
)
AM_CONDITIONAL([ENABLE_MODIS], [test "x$ENABLE_MODIS" = "xyes" || test "x$ENABLE_ALL" = "xyes"])
if test "x$ENABLE_MODIS" = "xyes" || test "x$ENABLE_ALL" = "xyes"; then
AC_DEFINE([ENABLE_MODIS], [], ["build modis"])
AC_MSG_NOTICE([modis will be compiled])
else
AC_MSG_NOTICE([modis will not be compiled])
fi