-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
2908 lines (2371 loc) · 70.3 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
%#
# $Id: configure.ac 2300 2014-04-29 14:16:46Z shackle $
#
# Process this file with autoconf to produce a configure script.
AC_INIT(libposemath, 2014.04.29, philosophicaldaemon@gmail.com, libposemath)
AM_INIT_AUTOMAKE([subdir-objects])
AC_CONFIG_SRCDIR([src/posemath/posemath.h])
AC_CONFIG_HEADERS([config.h])
AM_MAINTAINER_MODE
AC_CONFIG_MACRO_DIR([m4])
AC_MSG_NOTICE([PLEASE READ THE INSTALL FILE])
AC_MSG_NOTICE([ CPPFLAGS = ${CPPFLAGS} ])
AC_MSG_NOTICE([ CFLAGS = ${CFLAGS} ])
AC_MSG_NOTICE([ CXXFLAGS = ${CXXFLAGS} ])
AC_MSG_NOTICE([ LDFLAGS = ${LDFLAGS} ])
AC_MSG_NOTICE([ LIBS = ${LIBS} ])
AC_MSG_NOTICE([ CC = ${CC} ])
AC_MSG_NOTICE([ CXX = ${CXX} ])
AC_MSG_NOTICE([ AR = ${AR} ])
if echo "x${CFLAGS}" | grep -- '-Werror' >/dev/null 2>/dev/null ; then
AC_MSG_NOTICE([CFLAGS contains -Werror : this frequently causes problems with configure])
AC_MSG_NOTICE([add this option to CFLAGS= on the make command line instead.])
CFLAGS=`echo " ${CFLAGS}" | sed s/-Werror//`
fi
if echo "x${CXXFLAGS}" | grep -- '-Werror' >/dev/null 2>/dev/null ; then
AC_MSG_NOTICE([CXXFLAGS contains -Werror : this frequently causes problems with configure])
AC_MSG_NOTICE([add this option to CXXFLAGS= on the make command line instead.])
CXXFLAGS=`echo " ${CXXFLAGS}" | sed s/-Werror//`
fi
AC_MSG_NOTICE([ CFLAGS = ${CFLAGS} ])
AC_MSG_NOTICE([ CXXFLAGS = ${CXXFLAGS} ])
if echo "x${LDFLAGS} | grep 'L~' ; then
AC_MSG_WARN([LDFLAGS=${LDFLAGS} : tilde expansion for this variable is not fully supported. -- it is recommended that you rerun configure with only full absolute paths in LDFLAGS])
fi
if echo "x${CPPFLAGS} | grep 'I~' ; then
AC_MSG_WARN([CPPFLAGS=${CPPFLAGS} : tilde expansion for this variable is not fully supported. -- it is recommended that you rerun configure with only full absolute paths in CPPFLAGS])
fi
CONFIGURED_PROGRAMS='nmltest$(EXEEXT) nmlcfg$(EXEEXT) nmlclean$(EXEEXT) nml_packed_file_to_csv$(EXEEXT)'
#CONFIGURED_STATIC_LIBRARIES=""
CONFIGURED_SUBDIRS=
CONFIGURED_TESTS=
CONFIGURED_EXTRA_INCLUDES=
RCSLIB_EXTRA_OBJS=
RCSRTAILIB_EXTRA_OBJS=
RCSRTLLIB_EXTRA_OBJS=
# Checks for programs.
AC_PROG_CXX(QCC g++ c++ CC cl cxx KCC cc++ egcs gcc cc)
AC_PROG_AWK
AC_PROG_CC(qcc gcc cc egcs cl)
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
AM_PROG_CC_C_O
AC_ARG_WITH(posix_ipc,
[AC_HELP_STRING([--with-posix-ipc],
[Use POSIX IPC if both POSIX and System V are available (default=no)])],
[with_posix_ipc=$withval;
AC_MSG_NOTICE([with_posix_ipc=${with_posix_ipc}])],
[with_posix_ipc=no])
AC_ARG_WITH(snprintf,
[AC_HELP_STRING([--with-snprintf],
[Use snprintf instead of sprintf. (default=yes)])],
[with_snprintf=$withval;
AC_MSG_NOTICE([with_snprintf=${with_snprintf}])],
[with_snprintf=yes])
AC_ARG_WITH(filio,
[AC_HELP_STRING([--with-filio],
[Include filio.h (default=yes)])],
[with_filio=$withval;
AC_MSG_NOTICE([with_filio=${with_filio}])],
[with_filio=yes])
AC_ARG_WITH(winsock,
[AC_HELP_STRING([--with-winsock],
[Use winsock if available (default=yes)])],
[with_winsock=$withval;
AC_MSG_NOTICE([with_winsock=${with_winsock}])],
[with_winsock=yes])
AC_ARG_WITH(windows,
[AC_HELP_STRING([--with-windows],
[Use MS Windows headers and functions if available (default=yes)])],
[with_windows=$withval;
AC_MSG_NOTICE([with_windows=${with_windows}])],
[with_windows=yes])
AC_ARG_WITH(winsock2,
[AC_HELP_STRING([--with-winsock2],
[Use winsock2 if available (default=yes)])],
[with_winsock2=$withval;
AC_MSG_NOTICE([with_winsock2=${with_winsock2}])],
[with_winsock2=yes])
AC_ARG_WITH(iostream,
[AC_HELP_STRING([--with-iostream],
[Use iostreams for printing posemath objects.(default=yes)])],
[with_iostream=$withval;
AC_MSG_NOTICE([with_iostream=${with_iostream}])],
[with_iostream=yes])
AC_ARG_WITH(sys_v_ipc,
[AC_HELP_STRING([--with-sys-v-ipc],
[Use System V IPC if both POSIX and System V are available (default=yes)])],
[with_sys_v_ipc=$withval;
AC_MSG_NOTICE([with_sys_v_ipc=${with_sys_v_ipc}])],
[with_sys_v_ipc=yes])
#AC_ARG_WITH(rtl_rtai,
# [AC_HELP_STRING([--with-rtl-rtai],
# [Check for rtlinux or rtai and provide support if found. (default=no)])],
# [with_rtl_rtai=$withval;
# AC_MSG_NOTICE([with_rtl_rtai=${with_rtl_rtai}])],
# [with_rtl_rtai=default_to_no])
AC_ARG_WITH(librt,
[AC_HELP_STRING([--with-librt],
[Check for librt and use if found. On some systems it provides clock_gettime() which may be more accurate than gettimeofday(). (default=yes)])],
[with_librt=$withval;
AC_MSG_NOTICE([with_librt=${with_librt}])],
[with_librt=yes])
AC_ARG_WITH(posix_threads,
[AC_HELP_STRING([--with-posix_threads],
[Check for POSIX threads and use if found. (default=yes)])],
[with_posix_threads=$withval;
AC_MSG_NOTICE([with_posix_threads=${with_posix_threads}])],
[with_posix_threads=yes]
)
AC_ARG_ENABLE(ALL,
[AC_HELP_STRING([--enable-ALL],
[Enable/Disable all the other features in one command. (default=no)])],
[
enable_all=${enableval};
AC_MSG_NOTICE([set_--enable-ALL = ${enableval}])
],
[enable_all=notset])
AC_ARG_ENABLE(force_ipc_rm,
[AC_HELP_STRING([--enable-force_ipc_rm],
[Enable code to force IPC resources to be removed, during cleanup.(default=no)])],
[enable_force_ipc_rm=$enableval;
AC_MSG_NOTICE([set_--enable-force_ipc_rm=$enableval])],
[enable_force_ipc_rm=yes])
if test "x${ac_cv_exeext}" != "x" ; then
enable_tty_default=no;
else
enable_tty_default=no;
if ( uname -s | grep -i linux ) >/dev/null 2>/dev/null ; then
enable_tty_default=yes;
fi
fi
# test "x${ac_cv_exeext}" != "x" ; then
AC_ARG_ENABLE(shmem,
[AC_HELP_STRING([--enable-shmem],
[Add shared memory support to CMS (default=yes)])],
[enable_shmem=$enableval;
AC_MSG_NOTICE([set_--enable-shmem=$enableval])],
[enable_shmem=default_to_yes])
# GLOBMEM is usually built only for VXWORKS using the old makefiles that
# do not use autoconf/configure, the only reason for the option here is for
# testing on Linux. In production only SHMEM should likely be used on
# linux.
AC_ARG_ENABLE(globmem,
[AC_HELP_STRING([--enable-globmem],
[Add shared memory support to CMS (default=no)])],
[enable_globmem=$enableval;
AC_MSG_NOTICE([set_--enable-globmem=$enableval])],
[enable_globmem=default_to_no])
AC_ARG_ENABLE(filemem,
[AC_HELP_STRING([--enable-filemem],
[Add filemem support to CMS (default=no)])],
[enable_filemem=$enableval;
AC_MSG_NOTICE([set_--enable-filemem=$enableval])],
[enable_filemem=default_to_no])
AC_ARG_ENABLE(rtlmem,
[AC_HELP_STRING([--enable-rtlmem],
[Add rtlmem support to CMS (default=no)])],
[enable_rtlmem=$enableval;
AC_MSG_NOTICE([set_--enable-rtlmem=$enableval])],
[enable_rtlmem=default_to_no])
AC_ARG_ENABLE(locmem,
[AC_HELP_STRING([--enable-locmem],
[Add locmem support to CMS (default=no)])],
[enable_locmem=$enableval;
AC_MSG_NOTICE([set_--enable-locmem=$enableval])],
[enable_locmem=default_to_no])
# output variables
BLAS_CFLAGS=
LAPACK_CFLAGS=
ATLAS_CFLAGS=
ATLAS_LDFLAGS=
AC_CHECK_HEADERS([atlas/atlas_buildinfo.h])
AC_CHECK_HEADERS([atlas/atlas_csysinfo.h])
AC_CHECK_HEADERS([atlas/cblas.h])
AC_CHECK_HEADERS([atlas/clapack.h])
AC_CHECK_HEADERS([atlas/clapack.h])
ax_atlas_save_LIBS="$LIBS"
#
# FOR FEDORA 20
#ATLAS_CFLAGS=$(pkg-config --cflags atlas)
#ATLAS_LDFLAGS=$(pkg-config --libs atlas)
# FOR UBUNTU 15
BLAS_CFLAGS= $(pkg-config --cflags blas)
LAPACK_CFLAGS= $(pkg-config --cflags lapack)
ATLAS_CFLAGS=$(pkg-config --cflags atlas)
ATLAS_LDFLAGS=$(pkg-config --libs atlas)
AC_SUBST(BLAS_CFLAGS)
AC_SUBST(LAPACK_CFLAGS)
AC_SUBST(ATLAS_CFLAGS)
AC_SUBST(ATLAS_LDFLAGS)
if test "x${enable_xdr}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_xdr=yes;
fi
if test "x${enable_packed}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_packed=yes;
fi
if test "x${enable_long_long}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_long_long=yes;
fi
if test "x${enable_packedl64}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_packedl64=yes;
fi
if test "x${enable_disp}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_disp=yes;
fi
if test "x${enable_diag}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_diag=yes;
fi
if test "x${enable_print}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_print=yes;
fi
if test "x${enable_debug_print}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_debug_print=yes;
fi
if test "x${enable_nmlqr}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_nmlqr=yes;
fi
if test "x${enable_cms_mrpq}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_cms_mrpq=yes;
fi
if test "x${enable_xsd2nmlh}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_xsd2nmlh=yes;
fi
if test "x${enable_nmlcfgsvr}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_nmlcfgsvr=yes;
fi
if test "x${enable_oedm_xml2nmlh}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_oedm_xml2nmlh=yes;
fi
if test "x${enable_locmem}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_locmem=yes;
fi
if test "x${enable_phantom}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_phantom=yes;
fi
if test "x${enable_shmem}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_shmem=yes;
fi
if test "x${enable_globmem}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_globmem=yes;
fi
if test "x${enable_stcp}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_stcp=yes;
fi
if test "x${enable_tcp}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_tcp=yes;
fi
if test "x${enable_udp}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_udp=yes;
fi
if test "x${enable_tty}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_tty=yes;
fi
if test "x${enable_crypt}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_crypt=yes;
fi
if test "x${enable_http}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_http=yes;
fi
if test "x${enable_nmlmod}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_nmlmod=yes;
fi
if test "x${enable_server}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_server=yes;
fi
if test "x${enable_sokintrf}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_sokintrf=yes;
fi
if test "x${enable_oe_intrf}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_oe_intrf=no;
fi
if test "x${enable_rtlmem}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_rtlmem=yes;
fi
if test "x${enable_inifile}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_inifile=yes;
fi
if test "x${enable_c_binding}" = "xdefault_to_no" -a "x${enable_all}" = "xyes" ; then
enable_c_binding=yes;
fi
if test "x${enable_rcs_jar}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_rcs_jar=no;
fi
if test "x${enable_codegen_jar}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_codegen_jar=no;
fi
if test "x${enable_rcsdesign_jar}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_rcsdesign_jar=no;
fi
if test "x${enable_codegencmdline_jar}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_codegencmdline_jar=no;
fi
if test "x${enable_diag_NB_jar}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_diag_NB_jar=no;
fi
if test "x${enable_filemem}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_filemem=no;
fi
if test "x${enable_xml}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_xml=no;
fi
if test "x${enable_xdr}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_xdr=no;
fi
if test "x${enable_packed}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_packed=no;
fi
if test "x${enable_long_long}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_long_long=no;
fi
if test "x${enable_packedl64}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_packedl64=no;
fi
if test "x${enable_disp}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_disp=no;
fi
if test "x${enable_diag}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_diag=no;
fi
if test "x${enable_print}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_print=no;
fi
if test "x${enable_debug_print}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_debug_print=no;
fi
if test "x${enable_nmlqr}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_nmlqr=no;
fi
if test "x${enable_cms_mrpq}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_cms_mrpq=no;
fi
if test "x${enable_xsd2nmlh}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_xsd2nmlh=no;
fi
if test "x${enable_nmlcfgsvr}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_nmlcfgsvr=no;
fi
if test "x${enable_oedm_xml2nmlh}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_oedm_xml2nmlh=no;
fi
if test "x${enable_locmem}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_locmem=no;
fi
if test "x${enable_phantom}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_phantom=no;
fi
if test "x${enable_shmem}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_shmem=no;
fi
if test "x${enable_globmem}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_globmem=no;
fi
if test "x${enable_stcp}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_stcp=no;
fi
if test "x${enable_tcp}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_tcp=no;
fi
if test "x${enable_udp}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_udp=no;
fi
if test "x${enable_tty}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_tty=no;
fi
if test "x${enable_crypt}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_crypt=no;
fi
if test "x${enable_http}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_http=no;
fi
if test "x${enable_nmlmod}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_nmlmod=no;
fi
if test "x${enable_server}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_server=no;
fi
if test "x${enable_sokintrf}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_sokintrf=no;
fi
if test "x${enable_oe_intrf}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_oe_intrf=no;
fi
if test "x${enable_rtlmem}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_rtlmem=no;
fi
if test "x${enable_inifile}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_inifile=yes;
fi
if test "x${enable_c_binding}" = "xdefault_to_yes" -a "x${enable_all}" = "xno" ; then
enable_c_binding=yes;
fi
if test "x${enable_rcs_jar}" = "xdefault_to_yes" ; then
enable_rcs_jar=yes;
fi
if test "x${enable_codegen_jar}" = "xdefault_to_yes" ; then
enable_codegen_jar=yes;
fi
if test "x${enable_rcsdesign_jar}" = "xdefault_to_yes" ; then
enable_rcsdesign_jar=yes;
fi
if test "x${enable_codegencmdline_jar}" = "xdefault_to_yes" ; then
enable_codegencmdline_jar=yes;
fi
#if test "x${enable_diagapplet_jar}" = "xdefault_to_yes" ; then
# enable_diagapplet_jar=yes;
#fi
if test "x${enable_diag_NB_jar}" = "xdefault_to_yes" ; then
enable_diag_NB_jar=yes;
fi
if test "x${enable_filemem}" = "xdefault_to_yes" ; then
enable_filemem=yes;
fi
if test "x${enable_xml}" = "xdefault_to_yes" ; then
enable_xml=yes;
fi
if test "x${enable_xdr}" = "xdefault_to_yes" ; then
enable_xdr=yes;
fi
if test "x${enable_packed}" = "xdefault_to_yes" ; then
enable_packed=yes;
fi
if test "x${enable_packedl64}" = "xdefault_to_yes" ; then
enable_packedl64=yes;
fi
if test "x${enable_long_long}" = "xdefault_to_yes" ; then
enable_long_long=yes;
fi
if test "x${enable_disp}" = "xdefault_to_yes" ; then
enable_disp=yes;
fi
if test "x${enable_diag}" = "xdefault_to_yes" ; then
enable_diag=yes;
fi
if test "x${enable_print}" = "xdefault_to_yes" ; then
enable_print=yes;
fi
if test "x${enable_debug_print}" = "xdefault_to_yes" ; then
enable_debug_print=yes;
fi
if test "x${enable_nmlqr}" = "xdefault_to_yes" ; then
enable_nmlqr=yes;
fi
if test "x${enable_cms_mrpq}" = "xdefault_to_yes" ; then
enable_cms_mrpq=yes;
fi
if test "x${enable_xsd2nmlh}" = "xdefault_to_yes" ; then
enable_xsd2nmlh=yes;
fi
if test "x${enable_nmlcfgsvr}" = "xdefault_to_yes" ; then
enable_nmlcfgsvr=yes;
fi
if test "x${enable_oedm_xml2nmlh}" = "xdefault_to_yes" ; then
enable_oedm_xml2nmlh=yes;
fi
if test "x${enable_locmem}" = "xdefault_to_yes" ; then
enable_locmem=yes;
fi
if test "x${enable_phantom}" = "xdefault_to_yes" ; then
enable_phantom=yes;
fi
if test "x${enable_shmem}" = "xdefault_to_yes" ; then
enable_shmem=yes;
fi
if test "x${enable_globmem}" = "xdefault_to_yes" ; then
enable_globmem=yes;
fi
if test "x${enable_stcp}" = "xdefault_to_yes" ; then
enable_stcp=yes;
fi
if test "x${enable_tcp}" = "xdefault_to_yes" ; then
enable_tcp=yes;
fi
if test "x${enable_udp}" = "xdefault_to_yes" ; then
enable_udp=yes;
fi
if test "x${enable_tty}" = "xdefault_to_yes" ; then
enable_tty=yes;
fi
if test "x${enable_crypt}" = "xdefault_to_yes" ; then
enable_crypt=yes;
fi
if test "x${enable_http}" = "xdefault_to_yes" ; then
enable_http=yes;
fi
if test "x${enable_posemath_in_rcslib}" = "xdefault_to_yes" ; then
enable_posemath_in_rcslib=yes;
fi
if test "x${enable_nmlmod}" = "xdefault_to_yes" ; then
enable_nmlmod=yes;
fi
if test "x${enable_server}" = "xdefault_to_yes" ; then
enable_server=yes;
fi
if test "x${enable_sokintrf}" = "xdefault_to_yes" ; then
enable_sokintrf=yes;
fi
if test "x${enable_oe_intrf}" = "xdefault_to_yes" ; then
enable_oe_intrf=yes;
fi
if test "x${enable_rtlmem}" = "xdefault_to_yes" ; then
enable_rtlmem=yes;
fi
if test "x${enable_inifile}" = "xdefault_to_yes" ; then
enable_inifile=yes;
fi
if test "x${enable_c_binding}" = "xdefault_to_yes" ; then
enable_c_binding=yes;
fi
if test "x${enable_rcs_jar}" = "xdefault_to_no" ; then
enable_rcs_jar=no;
fi
if test "x${enable_codegen_jar}" = "xdefault_to_no" ; then
enable_codegen_jar=no;
fi
if test "x${enable_rcsdesign_jar}" = "xdefault_to_no" ; then
enable_rcsdesign_jar=no;
fi
if test "x${enable_codegencmdline_jar}" = "xdefault_to_no" ; then
enable_codegencmdline_jar=no;
fi
#if test "x${enable_diagapplet_jar}" = "xdefault_to_no" ; then
# enable_diagapplet_jar=no;
#fi
if test "x${enable_diag_NB_jar}" = "xdefault_to_no" ; then
enable_diag_NB_jar=no;
fi
if test "x${enable_filemem}" = "xdefault_to_no" ; then
enable_filemem=no;
fi
if test "x${enable_xml}" = "xdefault_to_no" ; then
enable_xml=no;
fi
if test "x${enable_xdr}" = "xdefault_to_no" ; then
enable_xdr=no;
fi
if test "x${enable_packed}" = "xdefault_to_no" ; then
enable_packed=no;
fi
if test "x${enable_packedl64}" = "xdefault_to_no" ; then
enable_packedl64=no;
fi
if test "x${enable_long_long}" = "xdefault_to_no" ; then
enable_long_long=no;
fi
if test "x${enable_disp}" = "xdefault_to_no" ; then
enable_disp=no;
fi
if test "x${enable_diag}" = "xdefault_to_no" ; then
enable_diag=no;
fi
if test "x${enable_print}" = "xdefault_to_no" ; then
enable_print=no;
fi
if test "x${enable_debug_print}" = "xdefault_to_no" ; then
enable_debug_print=no;
fi
if test "x${enable_nmlqr}" = "xdefault_to_no" ; then
enable_nmlqr=no;
fi
if test "x${enable_cms_mrpq}" = "xdefault_to_no" ; then
enable_cms_mrpq=no;
fi
if test "x${enable_xsd2nmlh}" = "xdefault_to_no" ; then
enable_xsd2nmlh=no;
fi
if test "x${enable_nmlcfgsvr}" = "xdefault_to_no" ; then
enable_nmlcfgsvr=no;
fi
if test "x${enable_oedm_xml2nmlh}" = "xdefault_to_no" ; then
enable_oedm_xml2nmlh=no;
fi
if test "x${enable_locmem}" = "xdefault_to_no" ; then
enable_locmem=no;
fi
if test "x${enable_phantom}" = "xdefault_to_no" ; then
enable_phantom=no;
fi
if test "x${enable_shmem}" = "xdefault_to_no" ; then
enable_shmem=no;
fi
if test "x${enable_globmem}" = "xdefault_to_no" ; then
enable_globmem=no;
fi
if test "x${enable_stcp}" = "xdefault_to_no" ; then
enable_stcp=no;
fi
if test "x${enable_tcp}" = "xdefault_to_no" ; then
enable_tcp=no;
fi
if test "x${enable_udp}" = "xdefault_to_no" ; then
enable_udp=no;
fi
if test "x${enable_tty}" = "xdefault_to_no" ; then
enable_tty=no;
fi
if test "x${enable_crypt}" = "xdefault_to_no" ; then
enable_crypt=no;
fi
if test "x${enable_http}" = "xdefault_to_no" ; then
enable_http=no;
fi
if test "x${enable_posemath_in_rcslib}" = "xdefault_to_no" ; then
enable_posemath_in_rcslib=no;
fi
if test "x${enable_nmlmod}" = "xdefault_to_no" ; then
enable_nmlmod=no;
fi
if test "x${enable_server}" = "xdefault_to_no" ; then
enable_server=no;
fi
if test "x${enable_sokintrf}" = "xdefault_to_no" ; then
enable_sokintrf=no;
fi
if test "x${enable_oe_intrf}" = "xdefault_to_no" ; then
enable_oe_intrf=no;
fi
if test "x${enable_rtlmem}" = "xdefault_to_no" ; then
enable_rtlmem=no;
fi
if test "x${enable_inifile}" = "xdefault_to_no" ; then
enable_inifile=no;
fi
if test "x${enable_c_binding}" = "xdefault_to_no" ; then
enable_c_binding=no;
fi
if test "x${enable_print}" != "xyes" ; then
enable_xsd2nmlh=no;
AC_MSG_NOTICE([Disabling xs2dnmlh since enable_print not set.])
fi
if test "x${enable_xsd2nmlh}" = "xyes" ; then
CONFIGURED_PROGRAMS="${CONFIGURED_PROGRAMS} "'xsd2nmlh$(EXEEXT)'
AC_MSG_NOTICE([CONFIGURED_PROGRAMS=${CONFIGURED_PROGRAMS}])
fi
## Do we have pkg-config?
## If we're cross-compiling, pretend we don't have pkg-config, because it
## will do the wrong thing (i.e., identify packages on the build systems
## instead of the host system).
if test "$host" = "$build"; then
AC_CHECK_PROG(have_pkg_config,pkg-config,yes,no)
else
have_pkg_config=no
fi
if test "x$have_pkg_config" != "xno"; then
## Also, add /usr/local/lib/pkgconfig, because on
## some platforms, pkg-config won't look there by default.
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
fi
if test "x${enable_filemem}" = "xyes" ; then
RCSLIB_EXTRA_OBJS="${RCSLIB_EXTRA_OBJS} filemem.lo"
## AC_MSG_NOTICE([RCSLIB_EXTRA_OBJS : ${RCSLIB_EXTRA_OBJS}])
AC_DEFINE(ENABLE_RCS_FILEMEM,1,[Define to 1 if filemem is enabled.])
CONFIGURED_TESTS="${CONFIGURED_TESTS} \$(srcdir)/etc/check_testnml_filemem.sh"
fi
if test "x${enable_shmem}" = "xyes" ; then
RCSLIB_EXTRA_OBJS="${RCSLIB_EXTRA_OBJS} shmem.lo _shm.lo shm.lo sem.lo memsem.lo autokey.lo"
## AC_MSG_NOTICE([RCSLIB_EXTRA_OBJS : ${RCSLIB_EXTRA_OBJS}])
AC_DEFINE(ENABLE_RCS_SHMEM,1,[Define to 1 if shmem is enabled.])
CONFIGURED_TESTS="${CONFIGURED_TESTS} \$(srcdir)/etc/check_testnml_shmem.sh"
fi
# GLOBMEM is usually built only for VXWORKS using the old makefiles that
# do not use autoconf/configure, the only reason for the option here is for
# testing on Linux. In production only SHMEM should likely be used on
# linux.
if test "x${enable_globmem}" = "xyes" ; then
RCSLIB_EXTRA_OBJS="${RCSLIB_EXTRA_OBJS} globmem.lo"
## AC_MSG_NOTICE([RCSLIB_EXTRA_OBJS : ${RCSLIB_EXTRA_OBJS}])
AC_DEFINE(ENABLE_RCS_GLOBMEM,1,[Define to 1 if globmem is enabled.])
# CONFIGURED_TESTS="${CONFIGURED_TESTS} \$(srcdir)/etc/check_testnml_globmem.sh"
fi
AC_MSG_NOTICE([CONFIGURED_PROGRAMS : ${CONFIGURED_PROGRAMS}])
AC_HEADER_STDC
AC_CHECK_HEADERS([stdio.h stdarg.h stdlib.h stddef.h math.h errno.h time.h sys/errno.h ctype.h limits.h values.h float.h signal.h memory.h string.h strings.h])
AC_HEADER_DIRENT
if test "x${CC}" = "xgcc" ; then
if echo "x${CFLAGS}" | grep -v -- '-O' >/dev/null 2>/dev/null ; then
CFLAGS="${CFLAGS} -O2"
fi
fi
if test "x${CXX}" = "xg++" ; then
if echo "x${CXXFLAGS}" | grep -v -- '-O' >/dev/null 2>/dev/null ; then
CXXFLAGS="${CXXFLAGS} -O2"
fi
fi
if test "x${enable_oe_intrf}" = "xyes" -a "x${enable_shared}" = "xyes" ; then
AC_MSG_ERROR([Building shared libraries must be disabled with --disable-shared when the OE interface is enabled.])
fi
if test "x${enable_oe_intrf}" = "xyes" -a "x${enable_static}" != "xyes" ; then
AC_MSG_ERROR([Building static libraries must be enabled with --enable-static when the OE interface is enabled.])
fi
check_for_windows_stuff=no
AC_MSG_NOTICE([with_windows : ${with_windows}])
if test "x${with_windows}" = "xyes" ; then
AC_CHECK_HEADER([windows.h],[check_for_windows_stuff=yes])
fi
AC_MSG_NOTICE([check_for_windows_stuff : ${check_for_windows_stuff}])
if test "x${check_for_windows_stuff}" = "xyes" ; then
AC_DEFINE(HAVE_WINDOWS_H,1,[Define to 1 if you have windows.h])
if test "x${enable_sokintrf}" = "xyes" ; then
ORIG_LIBS=${LIBS}
AC_MSG_NOTICE([with_winsock2 : ${with_winsock2}])
if test "x${with_winsock2}" = "xyes" ; then
if test "x${build_os}" = "xcygwin" ; then
ac_cv_have_winsock2=yes;
LIBS="${LIBS} -lws2_32";
ac_cv_can_link_ws2_32=yes;
# the test for having winsock2.h will fail because of stupid
# unistd problem but we need it anyway.
else
AC_CHECK_HEADER([winsock2.h],
[
LIBS="${LIBS} -lws2_32"
AC_CACHE_CHECK([can link ws2_32],
ac_cv_can_link_ws2_32,
[
AC_TRY_LINK(
[
#include <windows.h>
#include <winsock2.h>
],
[
short winsock_version;
WSADATA startup_data;
winsock_version = MAKEWORD (2, 0);
WSAStartup(winsock_version, &startup_data);
WSAGetLastError();
socket (AF_INET, SOCK_STREAM, 0);
],
[
ac_cv_can_link_ws2_32=yes;
],
[
ac_cv_can_link_ws2_32=no;
]
)
ac_cv_have_winsock2=${ac_cv_can_link_ws2_32};
])
],
[ac_cv_have_winsock2=no]
)
fi
else
ac_cv_have_winsock2=no;
fi
# if test "${with_winsock2}" = "xyes" ; then
## AC_MSG_NOTICE([ac_cv_have_winsock2=${ac_cv_have_winsock2}])
if test "x${ac_cv_have_winsock2}" = "xyes" ; then
AC_DEFINE(HAVE_WINSOCK2_H,1,[Define to 1 you have a working winsock2.h and ws2_32.lib system.])
## AC_MSG_NOTICE([LIBS=${LIBS}])
else
AC_MSG_NOTICE([with_winsock : ${with_winsock}])
if test "x${with_winsock}" = "xyes" ; then
LIBS=${ORIG_LIBS}
AC_CHECK_HEADER([winsock.h],