-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
4111 lines (3579 loc) · 126 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
dnl SXEmacs config script for autoconf >=2.60
dnl -------------------------------------------------------------------------
dnl Overrides of standard autoconf macros.
m4_include([sxemacs_version.m4])
dnl -------------------------------------------------------------------------
dnl Autoconf startup.
dnl -------------------------------------------------------------------------
AC_PREREQ([2.62])
AC_INIT([SXEmacs], [SXEM4CS_VERSION], [http://issues.sxemacs.org/])
AC_CONFIG_HEADER([src/config.h])
AC_CONFIG_SRCDIR([src/lisp.h])
AC_CONFIG_AUX_DIR([.])
AC_CONFIG_MACRO_DIR([m4])
dnl -------------------------------------------------------------------------
dnl Local copyright notices.
dnl -------------------------------------------------------------------------
AC_COPYRIGHT(
[#### Configuration script for SXEmacs. Largely divergent from FSF.
#### Guess values for system-dependent variables and create Makefiles.
#### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
#### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
#### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
#### Copyright (C) 1995, 1996, 2002, 2003, 2004 Ben Wing.
#### Copyright (C) 2000, 2001 Martin Buchholz.
#### Copyright (C) 1998, 1999 J. Kean Johnston.
#### Copyright (C) 2005 Malcolm Purvis.
#### Copyright (C) 2005, 2006, 2007 Steve Youngs.
#### Copyright (C) 2006, 2007, 2008 Sebastian Freundt.
#### Copyright (C) 2007, 2010, 2011, 2012 Nelson Ferreira
### Don't edit this script!
### This script was automatically generated by the `autoconf' program
### from the file `./configure.ac'.
### To rebuild it, execute the command
### autoconf
### in the this directory.
### This file is part of SXEmacs.
### SXEmacs is free software: you can redistribute it and/or modify
### it under the terms of the GNU General Public License as published by
### the Free Software Foundation, either version 3 of the License, or
### (at your option) any later version.
### SXEmacs is distributed in the hope that it will be useful,
### but WITHOUT ANY WARRANTY; without even the implied warranty of
### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
### GNU General Public License for more details.
### You should have received a copy of the GNU General Public License
### along with this program. If not, see <http://www.gnu.org/licenses/>.
### Parts of SXEmacs are also distributed under a BSD-like licence.
### Check file headers for more information.
### For usage, run `./configure --help'
### For more detailed information on building and installing SXEmacs,
### read the file `INSTALL'.
###
### If configure succeeds, it leaves its status in config.status.
### A log of configuration tests can be found in config.log.
### If configure fails after disturbing the status quo,
### config.status is removed.
])
AC_REVISION([SXEM4CS_GIT_VERSION])
dnl Build Options
dnl =============
OG_OPTION_GROUP(Build Options)
OG_ARG_WITH([prefix],
AS_HELP_STRING([--with-prefix@<:@=ARG@:>@],
[Whether to compile the value of --prefix into the executable.]),
[yes], [YES (DO compile prefix into the executable)])
OG_ARG_WITH([sitemoduledir],
AS_HELP_STRING([--with-sitemoduledir=DIR],
[Directory for loadable modules that are not part of
the SXEmacs core distribution (3rd party emodules).]),
[none], [$prefix/lib/sxemacs/$build/site-modules], [og_any],
[AC_DEFINE([SITEMODULEDIR_USER_DEFINED], [1],
[sitemoduledir has been specified on the configure line.])],
[with_sitemoduledir='${libdir}/${PROGNAME}/${configuration}/site-modules'])
OG_ARG_WITH([site-includes],
AS_HELP_STRING([--with-site-includes=PATH],
[Colon separated list of _extra_ include directories
to search for headers.]),
[none], [None], [og_any])
OG_ARG_WITH([site-libraries],
AS_HELP_STRING([--with-site-libraries=PATH],
[Colon separated list of extra lib directories to
search for libraries. (Default: None)]),
[none], [None], [og_any])
OG_ARG_WITH([site-prefixes],
AS_HELP_STRING([--with-site-prefixes=PATH],
[Colon separated list of extra prefix directories to
search for headers and libraries. Sometimes this can
be used instead of specifying both
--with-site-includes and
--with-site-libraries.]),
[none], [None], [og_any])
OG_ARG_WITH([lispdir],
AS_HELP_STRING([--with-lispdir=DIR],
[Where to install core lisp files.]),
[none], [$prefix/lib/sxemacs-$version/lisp], [og_any],
[AC_DEFINE([LISPDIR_USER_DEFINED], [1],
[lispdir has been specified on the configure line.])],
[with_lispdir='${datadir}/${instvardir}/lisp'])
OG_ARG_WITH([archlibdir],
AS_HELP_STRING([--with-archlibdir=DIR],
[Directory for arch-dependent files.]),
[none], [$prefix/lib/sxemacs-$version/$build], [og_any],
[AC_DEFINE([ARCHLIBDIR_USER_DEFINED], [1],
[archlibdir has been specified on the configure line.])],
[with_archlibdir='${libdir}/${instvardir}/${configuration}'])
OG_ARG_WITH([moduledir],
AS_HELP_STRING([--with-moduledir=DIR],
[Directory for loadable modules.]),
[none], [$prefix/lib/sxemacs-$version/$build/modules], [og_any],
[AC_DEFINE([MODULEDIR_USER_DEFINED], [1],
[moduledir has been specified on the configure line.])],
[with_moduledir='${libdir}/${instvardir}/${configuration}/modules'])
OG_ARG_WITH([etcdir],
AS_HELP_STRING([--with-etcdir=DIR],
[]),
[none], [$prefix/lib/sxemacs-$version/etc], [og_any],
[AC_DEFINE([ETCDIR_USER_DEFINED], [1],
[etcdir has been specified on the configure line.])],
[with_etcdir='${datadir}/${instvardir}/etc'])
OG_ARG_WITH([infopath],
AS_HELP_STRING([--with-infopath=PATH],
[Colon separated list of directories to use as
the info search path. This is not normally needed.]),
[none], [None], [og_any],
[AC_DEFINE([INFOPATH_USER_DEFINED], [1],
[inforpath has been specified on the configure line.])], [])
OG_ARG_WITH([docdir],
AS_HELP_STRING([--with-docdir=DIR],
[Where it store certain doc files (not info or man).]),
[none], [$prefix/lib/sxemacs-$version/$build], [og_any],
[AC_DEFINE([DOCDIR_USER_DEFINED], [1],
[docdir has been specified on the configure line.])],
[with_docdir='${archlibdir}'])
OG_ARG_WITH([site-runtime-libraries],
AS_HELP_STRING([--with-site-runtime-libraries=PATH],
[Colon separated list of directories to search for
libraries at run time. This isn't normally needed.]),
[none], [None], [og_any])
OG_ARG_WITH([module-path],
AS_HELP_STRING([--with-module-path=PATH],
[Search path to the emodules directories.
A colon separated list of directories. Normally, there is
no need to set this.]),
[none], [None], [og_any],
[AC_DEFINE([MODULE_PATH_USER_DEFINED], [1],
[module-path has been specified on the configure line.])],
[])
OG_ARG_WITH([package-prefix],
AS_HELP_STRING([--with-package-prefix=PATH],
[What to use as a prefix to the system-wide package
directories. It doesn't affect the package directories
under the user's home directory, and is totally ignored if
--with-package-path is set.
Normally, you would not need to set this.]),
[none], [None], [og_any],
[AC_DEFINE([PACKAGE_PREFIX_USER_DEFINED], [1],
[package-prefix has been specified on the configure line.])],
[])
OG_ARG_WITH([package-path],
AS_HELP_STRING([--with-package-path=PATH],
[Search path to the package directories.
This path is made up of 3 separate "path elements",
each element is a colon separated list of directories,
with the boundary between elements being a double
colon. The 3 path elements are for "early", "late",
and "last" package directories. If only a single
element is specified it is "late". Example:
early1:early2::late1:late2::last1:last2. Setting this
overrides --with-package-prefix. Normally, there is
no need to set this.]),
[none], [None], [og_any],
[AC_DEFINE([PACKAGE_PATH_USER_DEFINED], [1],
[package-path has been specified on the configure line.])],
[])
dnl stupid option, innit?
OG_ARG_WITH([quick-build],
AS_HELP_STRING([--with-quick-build],
[Speed up the build cycle by leaving out steps where
SXEmacs will still work (more or less) without them.
Potentially dangerous if you don't know what you're
doing. This (1) doesn't garbage-collect after loading
each file during dumping, (2) doesn't automatically
rebuild the DOC file (remove it by hand to get it
rebuilt), (3) Removes config.h lisp.h and associated
files from the dependency lists so changes to these
files don't automatically cause all .c files
to be rebuilt.]),
[no], [No], [])
OG_ARG_WITH([compiler],
AS_HELP_STRING([--with-compiler=COMPILER],
[Do not use me! Use CC=<your-compiler> instead!
C compiler to use.
Note: SXEmacs _CANNOT_ be built with a C++ compiler.]),
[none], [None], [og_any], [
OG_WARN_OBSOLETE_OPTION([--with-compiler], [CC=<your-cc>])])
OG_ARG_WITH([cflags],
AS_HELP_STRING([--with-cflags],
[Do not use me! Use CFLAGS=<your flags> instead!
Compiler flags (such as -O); setting this overrides
all default compiler flags except those that control
warnings. Most people wouldn't need to set
this.]),
[none], [None], [og_any], [
OG_WARN_OBSOLETE_OPTION([--with-cflags], [CFLAGS=<your flags>])])
OG_ARG_WITH([cflags-warning],
AS_HELP_STRING([--with-cflags-warning],
[Do not use me! I will disappear soon!]),
[none], [None], [og_any])
OG_ARG_WITH([cpp],
AS_HELP_STRING([--with-cpp],
[Do not use me! Use CPP=<your-cpp> instead!]),
[none], [None], [og_any], [
OG_WARN_OBSOLETE_OPTION([--with-cpp], [CPP=<your-cpp>])
CPP="$with_cpp"])
OG_ARG_WITH([cppflags],
AS_HELP_STRING([--with-cppflags],
[Do not use me! Use CPPFLAGS=<your flags> instead!]),
[none], [None], [og_any], [
OG_WARN_OBSOLETE_OPTION([--with-cppflags], [CPPFLAGS=<your flags>])
CPPFLAGS="$with_cppflags"])
OG_ARG_WITH([libs],
AS_HELP_STRING([--with-libs],
[Do not use me! Use LIBS=<your libs> instead!]),
[none], [None], [og_any], [
OG_WARN_OBSOLETE_OPTION([--with-libs], [LIBS=<your libs>])
LIBS="$with_libs"])
OG_ARG_WITH([ldflags],
AS_HELP_STRING([--with-ldflags],
[Do not use me! Use LDFLAGS=<your flags> instead!]),
[none], [None], [og_any], [
OG_WARN_OBSOLETE_OPTION([--with-ldflags], [LDFLAGS=<your flags>])
LDFLAGS="$with_ldflags"])
OG_ARG_WITH([ridiculously-aggressive-optimisations],
AS_HELP_STRING([--with-ridiculously-aggressive-optimisations],
[Whether to try all possible optimisations]),
[no], [No])
OG_ARG_WITH([maximum-warning-output],
AS_HELP_STRING([--with-maximum-warning-output],
[Whether to output as many warnings as possible]),
[no], [No])
dnl Internal Options
dnl ================
OG_OPTION_GROUP(Internal Options)
OG_ARG_WITH([dynamic],
AS_HELP_STRING([--with-dynamic],
[Link dynamically if supported by system.
'NO' forces static linking.]),
[auto], [Autodetect])
OG_ARG_WITH([rel-alloc],
AS_HELP_STRING([--with-rel-alloc],
[Relocating allocator for buffers.]),
[default], [Autodetect])
OG_ARG_WITH([dlmalloc],
AS_HELP_STRING([--with-dlmalloc],
[Use Doug Lea's malloc.]),
[default], [Autodetect])
OG_ARG_WITH([debug-malloc],
AS_HELP_STRING([--with-debug-malloc],
[Use a debugging malloc.]),
[no], [NO])
OG_ARG_WITH([system-malloc],
AS_HELP_STRING([--with-system-malloc],
[Use a system malloc instead of GNU.]),
[default], [YES if using quantify or purify; NO otherwise])
OG_ARG_WITH([regex-malloc],
AS_HELP_STRING([--with-regex-malloc],
[Use malloc for regex failure stack.]),
[yes], [YES])
OG_ARG_WITH([ffi],
AS_HELP_STRING([--with-ffi],
[Compile in experimental support for
Foreign Function Interface.]),
[yes], [YES])
OG_ARG_WITH([module-support],
AS_HELP_STRING([--with-module-support],
[Compile in experimental support for dynamically
loaded libraries (Dynamic Shared Objects).]),
[yes], [YES if shared libraries are supported])
OG_MULTIARG_WITH([modules], [dnl
AS_HELP_STRING([--with-modules], [
Which modules to compile and install.])],
[all], [all], [dnl
OG_MULTIARG_ITEM([ase], [ase], [algebraic structures])
OG_MULTIARG_ITEM([cl], [cl], [fast Common Lisp implementation])
OG_MULTIARG_ITEM([dbus], [dbus], [D-BUS bindings])
])
OG_MULTIARG_WITH([static-modules], [dnl
AS_HELP_STRING([--with-static-modules], [
Which modules to compile as archives to link their
functionality statically into the SXEmacs binary.])
AS_HELP_STRING([], [
You should regard this as a proof of concept.])],
[none], [NONE], [dnl
OG_MULTIARG_ITEM([ase], [ase], [algebraic structures])
OG_MULTIARG_ITEM([cl], [cl], [fast Common Lisp implementation])
OG_MULTIARG_ITEM([dbus], [dbus], [D-BUS bindings])
])
OG_MULTIARG_WITH([ent], [dnl
AS_HELP_STRING([--with-ent], [
Compile in support for enhanced number types,
using internal and external libraries.])],
[none int fpfloat indef gmp], [int fpfloat indef gmp], [dnl
OG_MULTIARG_ITEM([int], [int], [native integer arithmetics])
OG_MULTIARG_ITEM([fpfloat], [fpfloat], [native fixed precision floats])
OG_MULTIARG_ITEM([indef], [indef], [native abstract indefinites])
OG_MULTIARG_ITEM([gmp], [GMP], [GNU multiprecision library])
OG_MULTIARG_ITEM([mpfr], [MPFR], [Multiprecision Floats with correct Rounding])
OG_MULTIARG_ITEM([mpc], [MPC], [Multiprecision Complex numbers (C/R)])
OG_MULTIARG_ITEM([pseug], [pseudoG], [native Gaussian Numbers (Z+Z)])
OG_MULTIARG_ITEM([pseuc], [pseudoC], [native Complex Numbers (C/R)])
OG_MULTIARG_ITEM([quatern], [Quaternions], [native Quaternions (Z+Z+Z+Z)])
OG_MULTIARG_ITEM([ecm], [ECM], [factorisations per Elliptic Curve Method])
OG_MULTIARG_MUTEX([mpz], [Arbitrary precision integers], [gmp mp])
OG_MULTIARG_MUTEX([complex], [Complex numbers as in C/R], [mpc pseuc])
])
OG_MULTIARG_WITH([ase], [dnl
AS_HELP_STRING([--with-ase], [
Compile in support for algebraic structures based on ENT,
using internal and external libraries.])],
[none], [none], [dnl
OG_MULTIARG_ITEM([cart], [cartesian], [Cartesian Products of ENT and ASE objects])
OG_MULTIARG_ITEM([dig], [digraph], [Directed 2-ary Graphs with Colours])
OG_MULTIARG_ITEM([intv], [interval], [Intervals of comparable or normed ENT and ASE objects])
OG_MULTIARG_ITEM([metric], [metric], [Metric Spaces])
OG_MULTIARG_ITEM([nbhood], [neighbourhood], [Neighbourhoods of comparable or normed ENT and ASE objects])
OG_MULTIARG_ITEM([perm], [permutation], [Permutations])
OG_MULTIARG_ITEM([resclass], [resclass], [Residue Class Rings and Classes])
])
OG_ARG_WITH([compre],
AS_HELP_STRING([--with-compre],[
Provide exhaustive caching of compiled regexps. This will
mean that frequently used regexps will be faster to use
since the compile step will not be needed after first use.]),
[yes], [By default do cache compiled regexps.])
OG_MULTIARG_WITH([experimental-features], [dnl
AS_HELP_STRING([--with-experimental-features], [
Activate experimental code, that is code which is
considered useful but whose effects in conjunction with
the variety of elisp projects cannot be foreseen.])
AS_HELP_STRING([], [
During the beta phase of SXEmacs all experimental code
will be unconditionally enabled. However, if you plan
to use this SXEmacs in a production environment you
can switch off some portions.])],
[all nobdwgc], [ALL but bdwgc], [dnl
OG_MULTIARG_ITEM([bdwgc], [bdwgc], [the Boehm-Demers-Weiser collector])
OG_MULTIARG_ITEM([asyneq], [asyneq], [asynchronous event queues])
])
dnl stop that pom stuff
dnl OG_MULTIARG_ITEM([pom], [pom], [thread-safe objects])
OG_ARG_WITH([event-driver],
AS_HELP_STRING([--with-event-driver], [
Which event routines to use.
Events control the way how external `sources' are
incorporated into SXEmacs. Sources hereby are user inputs,
such as key strokes, mouse moves, pedalling, slapping the
monitor, etc.; but there are manifold further sources, such as
process signals, data on a socket, focussing an X window,
lapsing a timeout, and so forth.])
AS_HELP_STRING([], [
An event driver can cope with all (or most) of these in a
uniform and abstract way. SXEmacs can either be driven
using its built-in event handlers, or using one of the
external systems.]),
[auto], [Autodetect], [auto built-in libevent liboop glib])
dnl Debugging Options
dnl ================
OG_OPTION_GROUP(Debugging Options)
OG_ARG_WITH([debug],
AS_HELP_STRING([--with-debug],
[Compile with extra debugging code.
This will turn on: --with-assertions
and --with-memory-usage-stats.]),
[yes], [YES for beta; NO for release])
OG_ARG_WITH([memory-usage-stats],
AS_HELP_STRING([--with-memory-usage-stats],
[Compile with support for statistics about memory usage at runtime.]),
[yes], [YES for beta])
OG_MULTIARG_WITH([error-checking], [dnl
AS_HELP_STRING([--with-error-checking=TYPE], [
Compile with internal error-checking added.])
AS_HELP_STRING([], [
WARNING: Causes noticeable loss of speed!])],
[all], [ALL for beta; NONE otherwise], [dnl
OG_MULTIARG_ITEM([extents], [extents], [checks on extents])
OG_MULTIARG_ITEM([types], [types], [checks on types])
OG_MULTIARG_ITEM([gc], [gc], [checks on garbage collection])
OG_MULTIARG_ITEM([malloc], [malloc], [checks on memory allocation])
OG_MULTIARG_ITEM([byte_code], [byte_code], [checks on byte compiled code])
OG_MULTIARG_ITEM([bufpos], [bufpos], [checks on buffer position])
OG_MULTIARG_ITEM([glyphs], [glyphs], [checks on glyph data])
OG_MULTIARG_ITEM([stack], [stack], [checks on stack barriers])
OG_MULTIARG_ITEM([malldbg], [malldbg], [malloc debugging code])
])
OG_ARG_WITH([purify],
AS_HELP_STRING([--with-purify],
[Add support for memory debugging using Purify.]),
[no], [NO])
OG_ARG_WITH([quantify],
AS_HELP_STRING([--with-quantify],
[Add support for performance debugging using Quantify.]),
[no], [NO])
dnl Window System Features
dnl ======================
OG_OPTION_GROUP(Window System Features)
OG_ARG_WITH([toolbars],
AS_HELP_STRING([--with-toolbars],
[Compile in toolbar support.]),
[yes], [YES])
OG_ARG_WITH([external-widget],
AS_HELP_STRING([--with-external-widget],
[Enable the "external widget" interface,
which allows a SXEmacs frame to appear as a widget in
another application.
To date, we haven't heard of anyone who has actually done this.
Consider this EXPERIMENTAL.]),
[no], [NO])
OG_ARG_WITH([menubars],
AS_HELP_STRING([--with-menubars=TYPE],
[Type of menubars to use. The Lucid menubars emulate
Motif (mostly) but are faster.]),
[lucid], [Lucid], [lucid no])
OG_ARG_WITH([scrollbars],
AS_HELP_STRING([--with-scrollbars=TYPE],
[Type of scrollbars to use.
*WARNING* The Motif scrollbars are currently broken.]),
[lucid], [Lucid], [lucid motif athena no])
OG_ARG_WITH([dialogs],
AS_HELP_STRING([--with-dialogs=TYPE],
[Type of dialog boxes to use. Athena dialogs will
be used if Athena can be found.]),
[athena], [], [athena motif no])
OG_ARG_WITH([widgets],
AS_HELP_STRING([--with-widgets=TYPE],
[Type of native widgets to use. Athena widgets will
be used if Athena can be found.]),
[athena], [], [athena motif no])
OG_ARG_WITH([athena],
AS_HELP_STRING([--with-athena=TYPE],
[Type of Athena widgets to use.]),
[auto], [Autodetect], [auto xaw 3d next 95 xpm no])
OG_ARG_WITH([xim],
AS_HELP_STRING([--with-xim],
[Type of Mule input method to use.]),
[auto], [Autodetect], [yes no xlib motif])
OG_ARG_WITH([wmcommand],
AS_HELP_STRING([--with-wmcommand],
[Compile with realized leader window which will
keep the WM_COMMAND property.]),
[yes], [YES])
OG_ARG_WITH([xmu],
AS_HELP_STRING([--with-xmu],
[For those unfortunates whose vendors don't ship Xmu.]),
[auto], [Autodetect])
OG_ARG_WITH([xfs],
AS_HELP_STRING([--with-xfs],
[Compile with XFontSet support for internationalized
menubar. Incompatible with `--with-xim=motif'.
`--with-menubars=lucid' (the default) is desirable.]),
[no], [NO])
dnl TTY Options
dnl ================
OG_OPTION_GROUP(TTY options)
OG_ARG_WITH([tty],
AS_HELP_STRING([--with-tty],
[Add support for ttys.]),
[auto], [Autodetect])
OG_ARG_WITH([ncurses],
AS_HELP_STRING([--with-ncurses],
[Use the ncurses library for tty support.]),
[auto], [Autodetect])
OG_ARG_WITH([curses],
AS_HELP_STRING([--with-curses],
[Use the curses library for tty support.]),
[auto], [Autodetect])
OG_ARG_WITH([terminfo],
AS_HELP_STRING([--with-terminfo],
[Use the terminfo library for tty support.]),
[auto], [Autodetect])
OG_ARG_WITH([termlib],
AS_HELP_STRING([--with-termlib],
[Use the termlib library for tty support.]),
[auto], [Autodetect])
OG_ARG_WITH([termcap],
AS_HELP_STRING([--with-termcap],
[Use the termcap library for tty support.]),
[auto], [Autodetect])
OG_ARG_WITH([gpm],
AS_HELP_STRING([--with-gpm],
[Compile in GPM mouse support for ttys.]),
[auto], [Autodetect])
dnl Database Options
dnl ================
OG_OPTION_GROUP(Database options)
OG_MULTIARG_WITH([database], [dnl
AS_HELP_STRING([--with-database=TYPE],
[Compile with database support.])],
[auto], [Autodetect], [dnl
OG_MULTIARG_ITEM([berkdb], [berkdb], [Berkeley DB support])
OG_MULTIARG_ITEM([dbm], [dbm], [DBM database support])
OG_MULTIARG_ITEM([gdbm], [gdbm], [GNU DBM support])
])
OG_ARG_WITH([ldap],
AS_HELP_STRING([--with-ldap],
[Compile with support for the LDAP protocol.]),
[no], [NO])
OG_ARG_WITH([postgresql],
AS_HELP_STRING([--with-postgresql],
[Compile with support for the PostgreSQL RDBMS.]),
[yes], [Autodetect])
dnl Multimedia Options
dnl ==================
OG_OPTION_GROUP(Multimedia options)
OG_MULTIARG_WITH([image], [dnl
AS_HELP_STRING([--with-image=TYPE],
[Compile with image support.])],
[auto], [Autodetect all image support], [dnl
OG_MULTIARG_ITEM([gif], [GIF], [GIF image format])
OG_MULTIARG_ITEM([xpm], [XPM], [X PixMap image format])
OG_MULTIARG_ITEM([png], [PNG], [Portable Network Graphic format])
OG_MULTIARG_ITEM([jpeg], [JPEG], [jpeg image format])
OG_MULTIARG_ITEM([tiff], [TIFF], [TIFF image format])
OG_MULTIARG_ITEM([xface], [xface], [base64 encoded xbm])
])
OG_MULTIARG_WITH([sound], [dnl
AS_HELP_STRING([--with-sound=TYPE],
[Compile with sound support.])],
[auto], [Autodetect all sound support], [dnl
OG_MULTIARG_ITEM([alsa], [ALSA], [kernel-based linux sound standard])
OG_MULTIARG_ITEM([ao], [ao], [generic audio output layer])
OG_MULTIARG_ITEM([esd], [ESD], [Enlightenment Sound Daemon])
OG_MULTIARG_ITEM([jack], [Jack], [a low-latency audio server])
OG_MULTIARG_ITEM([nas], [NAS], [Network Audio System])
OG_MULTIARG_ITEM([oss], [OSS], [Open Sound System])
OG_MULTIARG_ITEM([pulse], [PulseAudio], [PulseAudio Sound Server])
])
OG_MULTIARG_WITH([media], [dnl
AS_HELP_STRING([--with-media=TYPE],
[Compile with media stream support.])],
[auto], [Autodetect all media stream support libraries], [dnl
OG_MULTIARG_ITEM([ffmpeg], [FFmpeg], [media streams handled by ffmpeg])
OG_MULTIARG_ITEM([internal], [internal], [media streams handled internally])
OG_MULTIARG_ITEM([mad], [Mad], [media streams handled by mad])
OG_MULTIARG_ITEM([sndfile], [sndfile], [media streams handled by sndfile])
OG_MULTIARG_ITEM([sox], [SoX], [media streams handled by sox])
OG_MULTIARG_ITEM([magic], [magic], [file/libmagic support])
])
dnl Cryptography Options
dnl ====================
OG_OPTION_GROUP(Cryptography options)
OG_ARG_WITH([openssl],
AS_HELP_STRING([--with-openssl],
[Compile in experimental support for
OpenSSL libcrypto and libssl.]),
[yes], [YES])
OG_ARG_WITH([gnutls],
AS_HELP_STRING([--with-gnutls],
[Compile in experimental support for
GnuTLS transport security.]),
[no], [NO])
dnl Networking Options
dnl ==================
OG_OPTION_GROUP(Networking options)
OG_ARG_WITH([dnet],
AS_HELP_STRING([--with-dnet],
[Compile with support for DECnet.]),
[no], [NO])
OG_ARG_WITH([socks],
AS_HELP_STRING([--with-socks],
[Compile with support for SOCKS (an Internet proxy).]),
[auto], [Autodetect])
OG_ARG_WITH([ipv6-cname],
AS_HELP_STRING([--with-ipv6-cname],
[Try IPv6 information first when canonicalizing host names.
This option has no effect unless system supports
getaddrinfo(3) and getnameinfo(3).]),
[no], [NO])
OG_ARG_WITH([pop],
AS_HELP_STRING([--with-pop],
[Support POP for mail retrieval.]),
[no], [NO])
OG_ARG_WITH([kerberos],
AS_HELP_STRING([--with-kerberos],
[Support Kerberos-authenticated POP.]),
[no], [NO])
OG_ARG_WITH([hesiod],
AS_HELP_STRING([--with-hesiod],
[Support Hesiod to get the POP server host.]),
[no], [NO])
dnl File-related Options
dnl ====================
OG_OPTION_GROUP(File-related options)
OG_ARG_WITH([clash-detection],
AS_HELP_STRING([--with-clash-detection],
[Use lock files to detect multiple edits
of the same file.]),
[no], [NO])
OG_ARG_WITH([mail-locking],
AS_HELP_STRING([--with-mail-locking=TYPE],
[Specify the locking to be used by movemail to prevent
concurrent updates of mail spool files. Valid types
are `lockf' `flock' `file' `locking' `pop' or `mmdf'.]),
[auto], [Autodetect], [lockf flock file locking mmdf pop no])
dnl Internationalisation Options
dnl ============================
OG_OPTION_GROUP(Internationalisation options)
OG_ARG_WITH([mule],
AS_HELP_STRING([--with-mule],
[Compile with Mule (MUlti-Lingual Emacs) support
needed to support non-Latin-1 (including Asian)
languages.]),
[yes], [YES])
OG_ARG_WITH([canna],
AS_HELP_STRING([--with-canna],
[Compile with support for Canna (a Japanese input method
used in conjunction with Mule support).]),
[auto], [Autodetect when Mule is enabled])
OG_ARG_WITH([wnn],
AS_HELP_STRING([--with-wnn],
[Compile with support for Wnn (a multi-language input
method used in conjunction with Mule support).]),
[auto], [Autodetect when Mule is enabled])
OG_ARG_WITH([wnn6],
AS_HELP_STRING([--with-wnn6],
[Compile with support for the commercial package Wnn6.]),
[auto], [Autodetect when Mule is enabled])
dnl dnl Other Options
dnl dnl =============
dnl OG_OPTION_GROUP(Other options)
dnl
## -------------------------------------------------------------------------
## Check for users who regularly forget about running autoconf
## -------------------------------------------------------------------------
AS_IF([test -f "$0.ac" -a "$0.ac" -nt "$0"],
AC_MSG_ERROR([What are you doing? RUN autoreconf NOW!!!]))
#
# Turn off core generation. We are already verifying the program fails, no need
# poluting the workspace. Of course if you are a SXEmacs developer you may want
# to comemnt this on occasion :-)
ulimit -c 0
## initialise our nestable msg funs
SXE_INIT_MSG_LEVEL
dnl Small snippet to make echo -n work on solaris
ECHO_N= ECHO_C=
case `echo -n x` in
-n*)
case `echo 'x\c'` in
*c*)
;;
*)
ECHO_C='\c'
;;
esac
;;
*)
ECHO_N='-n'
;;
esac
echo
echo "Preparing the build chain"
echo "========================="
## We should brag about ourselves, no?
AC_DEFINE([XEMACS], [1], [Pretend to be an XEmacs])
AC_DEFINE([SXEMACS], [1], [Why not? It's the truth!])
dnl -------------------------------------------------------------------------
dnl Command line argument processing.
dnl -------------------------------------------------------------------------
dnl Check for bogus options
dnl -------------------------------------------------------------------------
SXE_CHECK_COMMAND_LINE
AM_INIT_AUTOMAKE([foreign -Wall])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
SXE_CHECK_BUILDCHAIN
AC_SUBST(EGREP)
progname=$0
progbasename=$(basename $progname)
progdirname=$(dirname $progname)
## Build Options
## =============
echo
echo "Build and System Specific Options"
echo "================================="
SXE_EXPLORE_BUILD_ENVIRONMENT
dnl ----------------------------------------
dnl Find out which version of SXEmacs this is
dnl ----------------------------------------
AC_CHECK_PROG([have_git], [git], [yes], [no])
AC_MSG_CHECKING([for SXEmacs version])
AC_MSG_RESULT([SXEmacs SXEM4CS_VERSION])
dnl Must do the following first to determine verbosity for AC_DEFINE
AS_IF([test -n "[]SXEM4CS_BETA_P[]"],beta=yes,beta=no)
: "${extra_verbose=$beta}"
AC_MSG_CHECKING([for SXEmacs patchlevel])
CURDIR=$(pwd)
cd "$sxe_srcdir"
AS_IF([test "$have_git" = "yes"],
[sxemacs_git_version=`git describe 2> /dev/null | head -1`])
AS_IF([test -z "$sxemacs_git_version"],
sxemacs_git_version="[]SXEM4CS_GIT_VERSION[]")
AC_MSG_RESULT([$sxemacs_git_version])
version="$sxemacs_git_version"
cd "$CURDIR"
main_version="$sxemacs_git_version"
AC_DEFINE_UNQUOTED([EMACS_MAJOR_VERSION], [SXEM4CS_MAJOR_VERSION], [Description here!])
AC_DEFINE_UNQUOTED([EMACS_MINOR_VERSION], [SXEM4CS_MINOR_VERSION], [Description here!])
old_version=[]SXEM4CS_VERSION[]
if test -n "[]SXEM4CS_BETA_VERSION[]"; then
AC_MSG_CHECKING([if we are a beta version])
if test "$beta" = "yes"; then
AC_MSG_RESULT([yes])
AC_DEFINE_UNQUOTED([EMACS_BETA_VERSION], [SXEM4CS_BETA_VERSION],
[Description here!])
else
AC_MSG_RESULT([no])
AC_DEFINE_UNQUOTED([EMACS_PATCH_LEVEL], [SXEM4CS_BETA_VERSION],
[Description here!])
fi
fi
AC_DEFINE_UNQUOTED([SXEMACS_CODENAME], ["[]SXEM4CS_CODENAME[]"], [Description here!])
AC_DEFINE_UNQUOTED([EMACS_VERSION], ["$version"], [Description here!])
AC_DEFINE_UNQUOTED([SXEMACS_GIT_VERSION], ["$sxemacs_git_version"],
[Description here!])
PROGNAME=sxemacs
AC_DEFINE_UNQUOTED([EMACS_PROGNAME], ["$PROGNAME"], [Description here!])
## build stuff in lib-src unconditionally
SXE_APPEND([lib-src], [MAKE_SUBDIR])
SXE_APPEND([lib-src], [INSTALL_ARCH_DEP_SUBDIR])
## C compiler build chain
AC_USE_SYSTEM_EXTENSIONS
AC_LANG([C])
AS_MESSAGE([Let's look for the entire C build chain])
SXE_CHECK_CC
SXE_CHECK_CFLAGS
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
## check machine chars
AS_MESSAGE([Let's have a detailed glance at your machine])
SXE_PROC_CPUID
SXE_PROC_VENDORID
SXE_NPROCESSORS
SXE_CHECK_PROC_GOODNESS
## Debugging Options
## =================
## echo
## echo "Debugging Options"
## echo "================="
dnl ----------------------------------
dnl Error checking and debugging flags
dnl ----------------------------------
dnl Error checking default to "yes" in beta versions, to "no" in releases.
dnl Same goes for --enable-debug and --extra-verbosity.
if test "$with_error_checking_extents" = yes; then
have_error_checking_extents="yes"
AC_DEFINE([ERROR_CHECK_EXTENTS], [1], [Description here!])
AC_DEFINE([USE_ASSERTIONS], [1], [Description here!])
fi
if test "$with_error_checking_types" = yes; then
have_error_checking_types="yes"
AC_DEFINE([ERROR_CHECK_TYPECHECK], [1], [Description here!])
AC_DEFINE_UNQUOTED([type_checking_assert(assertion)],
[assert (assertion)], [
Make sure that all X... macros are dereferencing the correct type,
and that all XSET... macros (as much as possible) are setting the
correct type of structure. Highly recommended for all
development work.])
AC_DEFINE([USE_ASSERTIONS], [1], [Description here!])
else
AC_DEFINE_UNQUOTED([type_checking_assert(assertion)], [], [])
fi
if test "$with_error_checking_bufpos" = yes; then
have_error_checking_bufpos="yes"
AC_DEFINE([ERROR_CHECK_BUFPOS], [1], [Description here!])
AC_DEFINE_UNQUOTED([bufpos_checking_assert(assertion)],
[assert (assertion)], [dnl
Make sure valid buffer positions are passed to BUF_* macros])
AC_DEFINE([USE_ASSERTIONS], [1], [Description here!])
else
AC_DEFINE_UNQUOTED([bufpos_checking_assert(assertion)], [], [])
fi
if test "$with_error_checking_gc" = yes; then
have_error_checking_gc="yes"
AC_DEFINE([ERROR_CHECK_GC], [1], [Description here!])
AC_DEFINE_UNQUOTED([gc_checking_assert(assertion)],
[assert (assertion)], [dnl
Attempt to catch bugs related to garbage collection
(e.g. not GCPRO'ing)])
AC_DEFINE([USE_ASSERTIONS], [1], [Description here!])
else
AC_DEFINE_UNQUOTED([gc_checking_assert(assertion)], [], [])
fi
if test "$with_error_checking_malloc" = yes; then
have_error_checking_malloc="yes"
AC_DEFINE([ERROR_CHECK_MALLOC], [1], [Description here!])
AC_DEFINE([USE_ASSERTIONS], [1], [Description here!])
fi
if test "$with_error_checking_byte_code" = yes; then
have_error_checking_byte_code="yes"
AC_DEFINE([ERROR_CHECK_BYTE_CODE], [1], [Description here!])
AC_DEFINE([USE_ASSERTIONS], [1], [Description here!])
fi
if test "$with_error_checking_glyphs" = yes; then
have_error_checking_glyphs="yes"
AC_DEFINE([ERROR_CHECK_GLYPHS], [1], [Description here!])
AC_DEFINE([USE_ASSERTIONS], [1], [Description here!])
fi
dnl enable_debug=yes must be set when error checking is present. This should be
dnl fixed up.
dnl with_debug implies other options
if test "${with_debug:=$beta}" = "yes"; then
with_memory_usage_stats=yes
SXE_ADD_CRUFT_OBJS([debug.o])
SXE_ADD_CRUFT_OBJS([tests.o])
AC_DEFINE([DEBUG_SXEMACS], [1], [Description here!])
fi
if test "$with_memory_usage_stats" = "yes"; then
AC_DEFINE([MEMORY_USAGE_STATS], [1], [Description here!])
fi
dnl --------------------------------------------------------------
dnl $opsys detection complete; defaults depending on $opsys follow
dnl --------------------------------------------------------------
dnl --------------------------------------------------------------
dnl WooHoo! pdump is ON always and everywhere! --SY.
dnl --------------------------------------------------------------
with_pdump=yes
if test "$with_dynamic" != "no"; then
case "$opsys" in
hpux* | sunos4* )
with_dynamic=no
;;
*)
with_dynamic=yes
;;
esac
fi
if test "$with_dynamic" = "yes"; then
case "$opsys" in
hpux* | sunos4* | sco5 )
opsys="${opsys}-shr"
;;
decosf* )
ld_call_shared="-call_shared"
;;
darwin* )
AC_DEFINE([DLSYM_NEEDS_UNDERSCORE], [1], [Description here!])
if test "x$have_ld_no_pie" != "x"; then
SXE_PREPEND_LINKER_FLAG([-no_pie], [ld_switch_site])
fi
;;
esac