3 # Patch managed by http://www.holgerschurig.de/patcher.html
6 --- ncurses-5.4/ncurses/Makefile.in~visibility.patch
7 +++ ncurses-5.4/ncurses/Makefile.in
9 CFLAGS_NORMAL = $(CCFLAGS)
10 CFLAGS_DEBUG = $(CCFLAGS) @CC_G_OPT@ -DTRACE
11 CFLAGS_PROFILE = $(CCFLAGS) -pg
12 -CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@
13 +CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@ @LIBOPTS@
15 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
17 --- ncurses-5.4/panel/Makefile.in~visibility.patch
18 +++ ncurses-5.4/panel/Makefile.in
20 CFLAGS_NORMAL = $(CCFLAGS)
21 CFLAGS_DEBUG = $(CCFLAGS) @CC_G_OPT@ -DTRACE
22 CFLAGS_PROFILE = $(CCFLAGS) -pg
23 -CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@
24 +CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@ @LIBOPTS@
26 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
28 --- ncurses-5.4/menu/Makefile.in~visibility.patch
29 +++ ncurses-5.4/menu/Makefile.in
31 CFLAGS_NORMAL = $(CCFLAGS)
32 CFLAGS_DEBUG = $(CCFLAGS) @CC_G_OPT@ -DTRACE
33 CFLAGS_PROFILE = $(CCFLAGS) -pg
34 -CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@
35 +CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@ @LIBOPTS@
37 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
39 --- ncurses-5.4/c++/Makefile.in~visibility.patch
40 +++ ncurses-5.4/c++/Makefile.in
42 CFLAGS_NORMAL = $(CCFLAGS)
43 CFLAGS_DEBUG = $(CCFLAGS) @CXX_G_OPT@ -DTRACE
44 CFLAGS_PROFILE = $(CCFLAGS) -pg
45 -CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@
46 +CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@ @LIBOPTS@
48 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
50 --- ncurses-5.4/form/Makefile.in~visibility.patch
51 +++ ncurses-5.4/form/Makefile.in
53 CFLAGS_NORMAL = $(CCFLAGS)
54 CFLAGS_DEBUG = $(CCFLAGS) @CC_G_OPT@ -DTRACE
55 CFLAGS_PROFILE = $(CCFLAGS) -pg
56 -CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@
57 +CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@ @LIBOPTS@
59 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
61 --- ncurses-5.4/configure.in~visibility.patch
62 +++ ncurses-5.4/configure.in
64 dnl See http://invisible-island.net/autoconf/ for additional information.
66 dnl ---------------------------------------------------------------------------
67 -AC_PREREQ(2.13.20020210)
69 AC_REVISION($Revision: 1.312 $)
70 -AC_INIT(ncurses/base/lib_initscr.c)
72 +AC_CONFIG_SRCDIR([ncurses/base/lib_initscr.c])
73 AC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin)
75 +m4_include([m4/templates.m4])
77 CF_SUBST_NCURSES_VERSION
79 CF_WITH_REL_VERSION(NCURSES)
82 -CF_CHECK_CACHE([AC_CANONICAL_SYSTEM])
83 +CF_CHECK_CACHE([AC_CANONICAL_TARGET([])])
84 AC_ARG_WITH(system-type,
85 [ --with-system-type=XXX test: override derived host system-type],
86 [AC_MSG_WARN(overriding system type to $withval)
91 - GXX=""; CXX=""; ac_cv_prog_gxx=no
92 + GXX=""; CXX=""; ac_cv_cxx_compiler_gnu=no
94 AC_MSG_WARN(templates do not work)
99 ###############################################################################
100 -CF_HELP_MESSAGE(Build-Tools Needed to Compile Temporary Applications for Cross-compiling:)
101 # If we're cross-compiling, allow the user to override the tools and their
102 # options. The configure script is oriented toward identifying the host
103 # compiler, etc., but we need a build compiler to generate parts of the source.
105 AC_SUBST(BUILD_EXEEXT)
107 ###############################################################################
108 -CF_HELP_MESSAGE(Options to Specify the Libraries Built/Used:)
110 ### Options to allow the user to specify the set of libraries which are used.
111 ### Use "--without-normal --with-shared" to allow the default model to be
112 @@ -343,11 +344,11 @@
114 AC_MSG_CHECKING(for default loader flags)
115 case $DFT_LWR_MODEL in
116 -libtool) LD_MODEL='' ;;
117 +libtool) LD_MODEL=''; LIBOPTS="-DNCURSES_DLL" ;;
118 normal) LD_MODEL='' ;;
119 debug) LD_MODEL=$CC_G_OPT ;;
120 profile) LD_MODEL='-pg';;
121 -shared) LD_MODEL='' ;;
122 +shared) LD_MODEL=''; LIBOPTS="-DNCURSES_DLL" ;;
124 AC_SUBST(LD_MODEL)dnl the type of link (e.g., -g or -pg)
125 AC_MSG_RESULT($LD_MODEL)
126 @@ -363,14 +364,14 @@
127 if test "$CC_SHARED_OPTS" = "unknown"; then
128 for model in $cf_list_models; do
129 if test "$model" = "shared"; then
130 - AC_ERROR(Shared libraries are not supported in this version)
131 + AC_MSG_ERROR([Shared libraries are not supported in this version])
136 -###############################################################################
137 -CF_HELP_MESSAGE(Fine-Tuning Your Configuration:)
140 +###############################################################################
141 ### use option --disable-overwrite to leave out the link to -lcurses
142 AC_MSG_CHECKING(if you wish to install ncurses overwriting curses)
143 AC_ARG_ENABLE(overwrite,
145 AC_ARG_ENABLE(big-core,
146 [ --disable-big-core assume machine has little memory],
147 [with_big_core=$enableval],
149 + [AC_RUN_IFELSE([AC_LANG_SOURCE([[
158 - [with_big_core=yes],
159 - [with_big_core=no],
160 - [with_big_core=no])])
161 +}]])],[with_big_core=yes],[with_big_core=no],[with_big_core=no])])
162 AC_MSG_RESULT($with_big_core)
163 test "$with_big_core" = "yes" && AC_DEFINE(HAVE_BIG_CORE)
166 if test "$with_termcap" != "yes" ; then
167 if test "$use_database" = no ; then
168 if test -z "$with_fallback" ; then
169 - AC_ERROR(You have disabled the database w/o specifying fallbacks)
170 + AC_MSG_ERROR([You have disabled the database w/o specifying fallbacks])
173 AC_DEFINE(PURE_TERMINFO)
174 @@ -614,10 +612,10 @@
175 test "$with_rcs_ids" = yes && AC_DEFINE(USE_RCS_IDS)
177 ###############################################################################
179 CF_MAN_PAGES([ captoinfo clear infocmp infotocap tic toe tput ])
181 ###############################################################################
182 -CF_HELP_MESSAGE(Extensions:)
184 ### Note that some functions (such as const) are normally disabled anyway.
185 AC_MSG_CHECKING(if you want to build with function extensions)
188 ###############################################################################
189 # These options are relatively safe to experiment with.
190 -CF_HELP_MESSAGE(Development Code:)
191 AC_MSG_CHECKING(if you want all development code)
193 [ --with-develop enable all development options],
196 ###############################################################################
197 # These are just experimental, probably should not be in a package:
198 -CF_HELP_MESSAGE(Experimental Code:)
200 AC_MSG_CHECKING(if you do not want to assume colors are white-on-black)
201 AC_ARG_ENABLE(assumed-color,
203 AC_SUBST(TERMINFO_CAPS)
205 ###############################################################################
206 -CF_HELP_MESSAGE(Testing/development Options:)
208 ### use option --disable-echo to suppress full display compiling commands
209 AC_MSG_CHECKING(if you want to display full commands during build)
213 ### Checks for header files.
222 ### checks for compiler characteristics
227 test "$ac_cv_c_inline" != no && AC_DEFINE(CC_HAS_INLINE_FUNCS)
228 @@ -1040,7 +1035,7 @@
230 # Check for C++ compiler characteristics (and ensure that it's there!)
231 if test -n "$CXX" ; then
237 @@ -1135,7 +1130,6 @@
239 AC_SUBST(USE_CXX_BOOL)
241 -CF_HELP_MESSAGE(Ada95 Binding Options:)
243 dnl Check for availability of GNU Ada Translator (GNAT).
244 dnl At the moment we support no other Ada95 compiler.
245 @@ -1309,15 +1303,16 @@
247 ################################################################################
248 test "$use_database" = yes && SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
251 include/MKterm.h.awk \
252 include/curses.head:include/curses.h.in \
258 +AC_CONFIG_COMMANDS([default],[
262 ### Special initialization commands, used to pass information from the
263 ### configuration-run into config.status
265 @@ -1348,5 +1343,6 @@
272 ${MAKE-make} preinstall
273 --- ncurses-5.4/include/ncurses_dll.h~visibility.patch
274 +++ ncurses-5.4/include/ncurses_dll.h
276 /* but this structure may be useful at some point for an MSVC build */
277 /* so, for now unconditionally define the important flags */
278 /* "the right way" for proper static and dll+auto-import behavior */
280 -#define NCURSES_STATIC
281 +//#undef NCURSES_DLL
282 +//#define NCURSES_STATIC
284 #if defined(__CYGWIN__)
285 # if defined(NCURSES_DLL)
288 # define NCURSES_API __cdecl
289 # define NCURSES_EXPORT(type) NCURSES_IMPEXP type NCURSES_API
290 -# define NCURSES_EXPORT_VAR(type) NCURSES_IMPEXP type
291 +# define NCURSES_EXPORT_VAR(var) var NCURSES_IMPEXP
294 /* Take care of non-cygwin platforms */
295 #if !defined(NCURSES_IMPEXP)
296 -# define NCURSES_IMPEXP /* nothing */
297 +# if defined(GCC_HASCLASSVISIBILITY)
298 +# if defined(NCURSES_DLL)
299 +# define NCURSES_IMPEXP __attribute__ ((visibility("default")))
301 +# define NCURSES_IMPEXP /* nothing */
304 +# define NCURSES_IMPEXP /* nothing */
307 #if !defined(NCURSES_API)
308 # define NCURSES_API /* nothing */
310 # define NCURSES_EXPORT(type) NCURSES_IMPEXP type NCURSES_API
312 #if !defined(NCURSES_EXPORT_VAR)
313 -# define NCURSES_EXPORT_VAR(type) NCURSES_IMPEXP type
314 +# define NCURSES_EXPORT_VAR(var) var NCURSES_IMPEXP
317 #endif /* NCURSES_DLL_H_incl */
318 --- ncurses-5.4/form/fty_alnum.c~visibility.patch
319 +++ ncurses-5.4/form/fty_alnum.c
324 -NCURSES_EXPORT_VAR(FIELDTYPE*) TYPE_ALNUM = &typeALNUM;
325 +FIELDTYPE* NCURSES_EXPORT_VAR(TYPE_ALNUM) = &typeALNUM;
327 /* fty_alnum.c ends here */
328 --- ncurses-5.4/form/fty_alpha.c~visibility.patch
329 +++ ncurses-5.4/form/fty_alpha.c
334 -NCURSES_EXPORT_VAR(FIELDTYPE*) TYPE_ALPHA = &typeALPHA;
335 +FIELDTYPE* NCURSES_EXPORT_VAR(TYPE_ALPHA) = &typeALPHA;
337 /* fty_alpha.c ends here */
338 --- ncurses-5.4/form/fld_newftyp.c~visibility.patch
339 +++ ncurses-5.4/form/fld_newftyp.c
341 NULL /* enumerate previous function */
344 -NCURSES_EXPORT_VAR(const FIELDTYPE*) _nc_Default_FieldType = &default_fieldtype;
345 +const FIELDTYPE* NCURSES_EXPORT_VAR(_nc_Default_FieldType) = &default_fieldtype;
347 /*---------------------------------------------------------------------------
348 | Facility : libnform
349 --- ncurses-5.4/form/form.h~visibility.patch
350 +++ ncurses-5.4/form/form.h
351 @@ -248,24 +248,24 @@
352 /*************************
353 * standard field types *
354 *************************/
355 -extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_ALPHA;
356 -extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_ALNUM;
357 -extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_ENUM;
358 -extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_INTEGER;
359 -extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_NUMERIC;
360 -extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_REGEXP;
361 +extern FIELDTYPE * NCURSES_EXPORT_VAR(TYPE_ALPHA);
362 +extern FIELDTYPE * NCURSES_EXPORT_VAR(TYPE_ALNUM);
363 +extern FIELDTYPE * NCURSES_EXPORT_VAR(TYPE_ENUM);
364 +extern FIELDTYPE * NCURSES_EXPORT_VAR(TYPE_INTEGER);
365 +extern FIELDTYPE * NCURSES_EXPORT_VAR(TYPE_NUMERIC);
366 +extern FIELDTYPE * NCURSES_EXPORT_VAR(TYPE_REGEXP);
368 /************************************
369 * built-in additional field types *
370 * They are not defined in SVr4 *
371 ************************************/
372 -extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_IPV4; /* Internet IP Version 4 address */
373 +extern FIELDTYPE * NCURSES_EXPORT_VAR(TYPE_IPV4); /* Internet IP Version 4 address */
375 /***********************
377 ***********************/
378 -extern NCURSES_EXPORT_VAR(FORM *) _nc_Default_Form;
379 -extern NCURSES_EXPORT_VAR(FIELD *) _nc_Default_Field;
380 +extern FORM * NCURSES_EXPORT_VAR(_nc_Default_Form);
381 +extern FIELD * NCURSES_EXPORT_VAR(_nc_Default_Field);
384 /***********************
385 --- ncurses-5.4/form/fty_int.c~visibility.patch
386 +++ ncurses-5.4/form/fty_int.c
391 -NCURSES_EXPORT_VAR(FIELDTYPE*) TYPE_INTEGER = &typeINTEGER;
392 +FIELDTYPE* NCURSES_EXPORT_VAR(TYPE_INTEGER) = &typeINTEGER;
394 /* fty_int.c ends here */
395 --- ncurses-5.4/form/fty_num.c~visibility.patch
396 +++ ncurses-5.4/form/fty_num.c
401 -NCURSES_EXPORT_VAR(FIELDTYPE*) TYPE_NUMERIC = &typeNUMERIC;
402 +FIELDTYPE* NCURSES_EXPORT_VAR(TYPE_NUMERIC) = &typeNUMERIC;
404 /* fty_num.c ends here */
405 --- ncurses-5.4/form/fty_regex.c~visibility.patch
406 +++ ncurses-5.4/form/fty_regex.c
411 -NCURSES_EXPORT_VAR(FIELDTYPE*) TYPE_REGEXP = &typeREGEXP;
412 +FIELDTYPE* NCURSES_EXPORT_VAR(TYPE_REGEXP) = &typeREGEXP;
414 /* fty_regex.c ends here */
415 --- ncurses-5.4/form/frm_def.c~visibility.patch
416 +++ ncurses-5.4/form/frm_def.c
421 -NCURSES_EXPORT_VAR(FORM *) _nc_Default_Form = &default_form;
422 +FORM * NCURSES_EXPORT_VAR(_nc_Default_Form) = &default_form;
424 /*---------------------------------------------------------------------------
425 | Facility : libnform
426 --- ncurses-5.4/form/fld_def.c~visibility.patch
427 +++ ncurses-5.4/form/fld_def.c
429 (char *)0 /* usrptr */
432 -NCURSES_EXPORT_VAR(FIELD *) _nc_Default_Field = &default_field;
433 +FIELD * NCURSES_EXPORT_VAR(_nc_Default_Field) = &default_field;
435 /*---------------------------------------------------------------------------
436 | Facility : libnform
437 --- ncurses-5.4/form/fty_enum.c~visibility.patch
438 +++ ncurses-5.4/form/fty_enum.c
443 -NCURSES_EXPORT_VAR(FIELDTYPE*) TYPE_ENUM = &typeENUM;
444 +FIELDTYPE* NCURSES_EXPORT_VAR(TYPE_ENUM) = &typeENUM;
446 /* fty_enum.c ends here */
447 --- ncurses-5.4/form/fty_ipv4.c~visibility.patch
448 +++ ncurses-5.4/form/fty_ipv4.c
453 -NCURSES_EXPORT_VAR(FIELDTYPE*) TYPE_IPV4 = &typeIPV4;
454 +FIELDTYPE* NCURSES_EXPORT_VAR(TYPE_IPV4) = &typeIPV4;
456 /* fty_ipv4.c ends here */
457 --- ncurses-5.4/form/form.priv.h~visibility.patch
458 +++ ncurses-5.4/form/form.priv.h
461 #define is_blank(c) ((c)==C_BLANK)
463 -extern NCURSES_EXPORT_VAR(const FIELDTYPE *) _nc_Default_FieldType;
464 +extern const FIELDTYPE * NCURSES_EXPORT_VAR(_nc_Default_FieldType);
466 extern NCURSES_EXPORT(TypeArgument *) _nc_Make_Argument (const FIELDTYPE*,va_list*,int*);
467 extern NCURSES_EXPORT(TypeArgument *) _nc_Copy_Argument (const FIELDTYPE*,const TypeArgument*, int*);
468 --- ncurses-5.4/include/tic.h~visibility.patch
469 +++ ncurses-5.4/include/tic.h
471 #define DEBUG(n, a) /*nothing*/
474 -extern NCURSES_EXPORT_VAR(unsigned) _nc_tracing;
475 +extern unsigned NCURSES_EXPORT_VAR(_nc_tracing);
476 extern NCURSES_EXPORT(void) _nc_tracef (char *, ...) GCC_PRINTFLIKE(1,2);
477 extern NCURSES_EXPORT(const char *) _nc_visbuf (const char *);
478 extern NCURSES_EXPORT(const char *) _nc_visbuf2 (int, const char *);
480 char *tk_valstring; /* value of capability (if a string) */
483 -extern NCURSES_EXPORT_VAR(struct token) _nc_curr_token;
484 +extern struct token NCURSES_EXPORT_VAR(_nc_curr_token);
487 * List of keynames with their corresponding code.
492 -extern NCURSES_EXPORT_VAR(const struct kn) _nc_key_names[];
493 +extern const struct kn NCURSES_EXPORT_VAR(_nc_key_names[]);
496 * Offsets to string capabilities, with the corresponding functionkey
501 -extern NCURSES_EXPORT_VAR(struct tinfo_fkeys) _nc_tinfo_fkeys[];
502 +extern struct tinfo_fkeys NCURSES_EXPORT_VAR(_nc_tinfo_fkeys[]);
506 @@ -204,11 +204,11 @@
510 -extern NCURSES_EXPORT_VAR(const struct name_table_entry * const) _nc_info_hash_table[];
511 -extern NCURSES_EXPORT_VAR(const struct name_table_entry * const) _nc_cap_hash_table[];
512 +extern const struct name_table_entry * const NCURSES_EXPORT_VAR(_nc_info_hash_table[]);
513 +extern const struct name_table_entry * const NCURSES_EXPORT_VAR(_nc_cap_hash_table[]);
515 -extern NCURSES_EXPORT_VAR(const struct alias) _nc_capalias_table[];
516 -extern NCURSES_EXPORT_VAR(const struct alias) _nc_infoalias_table[];
517 +extern const struct alias NCURSES_EXPORT_VAR(_nc_capalias_table[]);
518 +extern const struct alias NCURSES_EXPORT_VAR(_nc_infoalias_table[]);
520 extern NCURSES_EXPORT(const struct name_table_entry *) _nc_get_table (bool);
521 extern NCURSES_EXPORT(const struct name_table_entry * const *) _nc_get_hash_table (bool);
522 @@ -255,13 +255,13 @@
523 extern NCURSES_EXPORT(void) _nc_panic_mode (char);
524 extern NCURSES_EXPORT(void) _nc_push_token (int);
525 extern NCURSES_EXPORT(void) _nc_reset_input (FILE *, char *);
526 -extern NCURSES_EXPORT_VAR(int) _nc_curr_col;
527 -extern NCURSES_EXPORT_VAR(int) _nc_curr_line;
528 -extern NCURSES_EXPORT_VAR(int) _nc_syntax;
529 -extern NCURSES_EXPORT_VAR(long) _nc_comment_end;
530 -extern NCURSES_EXPORT_VAR(long) _nc_comment_start;
531 -extern NCURSES_EXPORT_VAR(long) _nc_curr_file_pos;
532 -extern NCURSES_EXPORT_VAR(long) _nc_start_line;
533 +extern int NCURSES_EXPORT_VAR(_nc_curr_col);
534 +extern int NCURSES_EXPORT_VAR(_nc_curr_line);
535 +extern int NCURSES_EXPORT_VAR(_nc_syntax);
536 +extern long NCURSES_EXPORT_VAR(_nc_comment_end);
537 +extern long NCURSES_EXPORT_VAR(_nc_comment_start);
538 +extern long NCURSES_EXPORT_VAR(_nc_curr_file_pos);
539 +extern long NCURSES_EXPORT_VAR(_nc_start_line);
540 #define SYN_TERMINFO 0
541 #define SYN_TERMCAP 1
544 extern NCURSES_EXPORT(void) _nc_syserr_abort (const char *const,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
545 extern NCURSES_EXPORT(void) _nc_err_abort (const char *const,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
546 extern NCURSES_EXPORT(void) _nc_warning (const char *const,...) GCC_PRINTFLIKE(1,2);
547 -extern NCURSES_EXPORT_VAR(bool) _nc_suppress_warnings;
548 +extern bool NCURSES_EXPORT_VAR(_nc_suppress_warnings);
550 /* comp_expand.c: expand string into readable form */
551 extern NCURSES_EXPORT(char *) _nc_tic_expand (const char *, bool, int);
552 @@ -287,12 +287,12 @@
556 -extern NCURSES_EXPORT_VAR(int) _nc_tparm_err;
557 +extern int NCURSES_EXPORT_VAR(_nc_tparm_err);
559 extern NCURSES_EXPORT(int) _nc_tparm_analyze(const char *string, char *p_is_s[NUM_PARM], int *popcount);
562 -extern NCURSES_EXPORT_VAR(int) _nc_nulls_sent; /* Add one for every null sent */
563 +extern int NCURSES_EXPORT_VAR(_nc_nulls_sent); /* Add one for every null sent */
565 /* comp_main.c: compiler main */
566 extern const char * _nc_progname;
567 --- ncurses-5.4/include/MKterm.h.awk.in~visibility.patch
568 +++ ncurses-5.4/include/MKterm.h.awk.in
570 print " char * _termname; /* used for termname() */"
573 - print "extern NCURSES_EXPORT_VAR(TERMINAL *) cur_term;"
574 + print "extern TERMINAL * NCURSES_EXPORT_VAR(cur_term);"
576 - print "#if BROKEN_LINKER"
577 + print "#if defined(BROKEN_LINKER)"
578 print "#define boolnames _nc_boolnames()"
579 print "#define boolcodes _nc_boolcodes()"
580 print "#define boolfnames _nc_boolfnames()"
581 @@ -253,15 +253,15 @@
585 - print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolnames[];"
586 - print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolcodes[];"
587 - print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolfnames[];"
588 - print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) numnames[];"
589 - print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) numcodes[];"
590 - print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) numfnames[];"
591 - print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strnames[];"
592 - print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strcodes[];"
593 - print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strfnames[];"
594 + print "extern NCURSES_CONST char * const NCURSES_EXPORT_VAR(boolnames[]);"
595 + print "extern NCURSES_CONST char * const NCURSES_EXPORT_VAR(boolcodes[]);"
596 + print "extern NCURSES_CONST char * const NCURSES_EXPORT_VAR(boolfnames[]);"
597 + print "extern NCURSES_CONST char * const NCURSES_EXPORT_VAR(numnames[]);"
598 + print "extern NCURSES_CONST char * const NCURSES_EXPORT_VAR(numcodes[]);"
599 + print "extern NCURSES_CONST char * const NCURSES_EXPORT_VAR(numfnames[]);"
600 + print "extern NCURSES_CONST char * const NCURSES_EXPORT_VAR(strnames[]);"
601 + print "extern NCURSES_CONST char * const NCURSES_EXPORT_VAR(strcodes[]);"
602 + print "extern NCURSES_CONST char * const NCURSES_EXPORT_VAR(strfnames[]);"
607 print "#if !defined(__NCURSES_H)"
608 print "extern NCURSES_EXPORT(char *) tigetstr (NCURSES_CONST char *);"
609 print "extern NCURSES_EXPORT(char *) tparm (NCURSES_CONST char *, ...);"
610 - print "extern NCURSES_EXPORT_VAR(char) ttytype[];"
611 + print "extern char NCURSES_EXPORT_VAR(ttytype[]);"
612 print "extern NCURSES_EXPORT(int) putp (const char *);"
613 print "extern NCURSES_EXPORT(int) tigetflag (NCURSES_CONST char *);"
614 print "extern NCURSES_EXPORT(int) tigetnum (NCURSES_CONST char *);"
615 --- ncurses-5.4/include/termcap.h.in~visibility.patch
616 +++ ncurses-5.4/include/termcap.h.in
618 #undef NCURSES_OSPEED
619 #define NCURSES_OSPEED @NCURSES_OSPEED@
621 -extern NCURSES_EXPORT_VAR(char) PC;
622 -extern NCURSES_EXPORT_VAR(char *) UP;
623 -extern NCURSES_EXPORT_VAR(char *) BC;
624 -extern NCURSES_EXPORT_VAR(NCURSES_OSPEED) ospeed;
625 +extern char NCURSES_EXPORT_VAR(PC);
626 +extern char * NCURSES_EXPORT_VAR(UP);
627 +extern char * NCURSES_EXPORT_VAR(BC);
628 +extern NCURSES_OSPEED NCURSES_EXPORT_VAR(ospeed);
630 #if !defined(NCURSES_TERM_H_incl)
631 extern NCURSES_EXPORT(char *) tgetstr (NCURSES_CONST char *, char **);
632 --- ncurses-5.4/include/term_entry.h~visibility.patch
633 +++ ncurses-5.4/include/term_entry.h
635 #define ExtNumname(tp,i,names) EXT_NAMES(tp, i, NUMCOUNT, (i - (tp->num_Numbers - tp->ext_Numbers)) + tp->ext_Booleans, names)
636 #define ExtStrname(tp,i,names) EXT_NAMES(tp, i, STRCOUNT, (i - (tp->num_Strings - tp->ext_Strings)) + (tp->ext_Numbers + tp->ext_Booleans), names)
638 -extern NCURSES_EXPORT_VAR(ENTRY *) _nc_head;
639 -extern NCURSES_EXPORT_VAR(ENTRY *) _nc_tail;
640 +extern ENTRY * NCURSES_EXPORT_VAR(_nc_head);
641 +extern ENTRY * NCURSES_EXPORT_VAR(_nc_tail);
642 #define for_entry_list(qp) for (qp = _nc_head; qp; qp = qp->next)
647 /* parse_entry.c: entry-parsing code */
649 -extern NCURSES_EXPORT_VAR(bool) _nc_user_definable;
650 -extern NCURSES_EXPORT_VAR(bool) _nc_disable_period;
651 +extern bool NCURSES_EXPORT_VAR(_nc_user_definable);
652 +extern bool NCURSES_EXPORT_VAR(_nc_disable_period);
654 extern NCURSES_EXPORT(int) _nc_parse_entry (ENTRY *, int, bool);
655 extern NCURSES_EXPORT(int) _nc_capcmp (const char *, const char *);
656 --- ncurses-5.4/include/curses.h.in~visibility.patch
657 +++ ncurses-5.4/include/curses.h.in
659 #define WA_VERTICAL A_VERTICAL
662 -extern NCURSES_EXPORT_VAR(int) COLORS;
663 -extern NCURSES_EXPORT_VAR(int) COLOR_PAIRS;
664 +extern int NCURSES_EXPORT_VAR(COLORS);
665 +extern int NCURSES_EXPORT_VAR(COLOR_PAIRS);
667 #define COLOR_BLACK 0
669 @@ -186,10 +186,10 @@
673 -extern NCURSES_EXPORT_VAR(chtype*) _nc_acs_map(void);
674 +extern chtype* NCURSES_EXPORT_VAR(_nc_acs_map)(void);
675 #define acs_map (_nc_acs_map())
677 -extern NCURSES_EXPORT_VAR(chtype) acs_map[];
678 +extern chtype NCURSES_EXPORT_VAR(acs_map[]);
681 #define NCURSES_ACS(c) (acs_map[(unsigned char)c])
682 @@ -369,20 +369,20 @@
686 -extern NCURSES_EXPORT_VAR(WINDOW *) stdscr;
687 -extern NCURSES_EXPORT_VAR(WINDOW *) curscr;
688 -extern NCURSES_EXPORT_VAR(WINDOW *) newscr;
689 +extern WINDOW * NCURSES_EXPORT_VAR(stdscr);
690 +extern WINDOW * NCURSES_EXPORT_VAR(curscr);
691 +extern WINDOW * NCURSES_EXPORT_VAR(newscr);
693 -extern NCURSES_EXPORT_VAR(int) LINES;
694 -extern NCURSES_EXPORT_VAR(int) COLS;
695 -extern NCURSES_EXPORT_VAR(int) TABSIZE;
696 +extern int NCURSES_EXPORT_VAR(LINES);
697 +extern int NCURSES_EXPORT_VAR(COLS);
698 +extern int NCURSES_EXPORT_VAR(TABSIZE);
701 * This global was an undocumented feature under AIX curses.
703 -extern NCURSES_EXPORT_VAR(int) ESCDELAY; /* ESC expire time in milliseconds */
704 +extern int NCURSES_EXPORT_VAR(ESCDELAY); /* ESC expire time in milliseconds */
706 -extern NCURSES_EXPORT_VAR(char) ttytype[]; /* needed for backward compatibility */
707 +extern char NCURSES_EXPORT_VAR(ttytype[]); /* needed for backward compatibility */
710 * These functions are extensions - not in XSI Curses.
711 --- ncurses-5.4/include/curses.tail~visibility.patch
712 +++ ncurses-5.4/include/curses.tail
714 #define TRACE_MAXIMUM ((1 << TRACE_SHIFT) - 1) /* maximum trace level */
716 #if defined(TRACE) || defined(NCURSES_TEST)
717 -extern NCURSES_EXPORT_VAR(int) _nc_optimize_enable; /* enable optimizations */
718 +extern int NCURSES_EXPORT_VAR(_nc_optimize_enable); /* enable optimizations */
719 #ifdef _XOPEN_SOURCE_EXTENDED
720 extern NCURSES_EXPORT(const char *) _nc_viswbuf(const wchar_t *);
722 --- ncurses-5.4/include/curses.wide~visibility.patch
723 +++ ncurses-5.4/include/curses.wide
726 /* $Id: curses.wide,v 1.28 2004/01/03 20:35:14 tom Exp $ */
728 -extern NCURSES_EXPORT_VAR(cchar_t *) _nc_wacs;
729 +extern cchar_t * NCURSES_EXPORT_VAR(_nc_wacs);
731 #define NCURSES_WACS(c) (&_nc_wacs[(unsigned char)c])
733 --- ncurses-5.4/menu/menu.priv.h~visibility.patch
734 +++ ncurses-5.4/menu/menu.priv.h
739 -extern NCURSES_EXPORT_VAR(ITEM) _nc_Default_Item;
740 -extern NCURSES_EXPORT_VAR(MENU) _nc_Default_Menu;
741 +extern ITEM NCURSES_EXPORT_VAR(_nc_Default_Item);
742 +extern MENU NCURSES_EXPORT_VAR(_nc_Default_Menu);
744 /* Normalize item to default if none was given */
745 #define Normalize_Item( item ) ((item)=(item)?(item):&_nc_Default_Item)
746 --- ncurses-5.4/menu/m_global.c~visibility.patch
747 +++ ncurses-5.4/menu/m_global.c
750 static char mark[] = "-";
752 -NCURSES_EXPORT_VAR(MENU) _nc_Default_Menu = {
753 +MENU NCURSES_EXPORT_VAR(_nc_Default_Menu) = {
754 16, /* Nr. of chars high */
755 1, /* Nr. of chars wide */
756 16, /* Nr. of items high */
761 -NCURSES_EXPORT_VAR(ITEM) _nc_Default_Item = {
762 +ITEM NCURSES_EXPORT_VAR(_nc_Default_Item) = {
763 { (char *)0, 0 }, /* name */
764 { (char *)0, 0 }, /* description */
765 (MENU *)0, /* Pointer to parent menu */
766 --- ncurses-5.4/ncurses/tty/lib_mvcur.c~visibility.patch
767 +++ ncurses-5.4/ncurses/tty/lib_mvcur.c
771 #if defined(TRACE) || defined(NCURSES_TEST)
772 -NCURSES_EXPORT_VAR(int) _nc_optimize_enable = OPTIMIZE_ALL;
773 +int NCURSES_EXPORT_VAR(_nc_optimize_enable) = OPTIMIZE_ALL;
776 #if defined(MAIN) || defined(NCURSES_TEST)
779 #include <dump_entry.h>
781 -NCURSES_EXPORT_VAR(const char *) _nc_progname = "mvcur";
782 +const char * NCURSES_EXPORT_VAR(_nc_progname) = "mvcur";
784 static unsigned long xmits;
786 --- ncurses-5.4/ncurses/tty/hardscroll.c~visibility.patch
787 +++ ncurses-5.4/ncurses/tty/hardscroll.c
791 # define screen_lines MAXLINES
792 -NCURSES_EXPORT_VAR(int)
794 +int NCURSES_EXPORT_VAR(oldnums[MAXLINES]);
795 # define OLDNUM(n) oldnums[n]
796 # define _tracef printf
799 /* OLDNUM(n) indicates which line will be shifted to the position n.
800 if OLDNUM(n) == _NEWINDEX, then the line n in new, not shifted from
802 -NCURSES_EXPORT_VAR(int *)
804 +int * NCURSES_EXPORT_VAR(_nc_oldnums) = 0;
807 static int oldnums_allocated = 0;
808 --- ncurses-5.4/ncurses/base/lib_getch.c~visibility.patch
809 +++ ncurses-5.4/ncurses/base/lib_getch.c
812 #include <fifo_defs.h>
814 -NCURSES_EXPORT_VAR(int)
815 -ESCDELAY = 1000; /* max interval betw. chars in funkeys, in millisecs */
816 +int NCURSES_EXPORT_VAR(ESCDELAY) = 1000; /* max interval betw. chars in funkeys, in millisecs */
818 #ifdef NCURSES_WGETCH_EVENTS
820 --- ncurses-5.4/ncurses/base/lib_slk.c~visibility.patch
821 +++ ncurses-5.4/ncurses/base/lib_slk.c
823 * We'd like to move these into the screen context structure, but cannot,
824 * because slk_init() is called before initscr()/newterm().
826 -NCURSES_EXPORT_VAR(int)
827 -_nc_slk_format = 0; /* one more than format specified in slk_init() */
828 +int NCURSES_EXPORT_VAR(_nc_slk_format) = 0; /* one more than format specified in slk_init() */
831 * Paint the info line for the PC style SLK emulation.
832 --- ncurses-5.4/ncurses/base/lib_color.c~visibility.patch
833 +++ ncurses-5.4/ncurses/base/lib_color.c
835 * historical reasons. So we assign them in start_color() and also in
836 * set_term()'s screen-switching logic.
838 -NCURSES_EXPORT_VAR(int) COLOR_PAIRS = 0;
839 -NCURSES_EXPORT_VAR(int) COLORS = 0;
840 +int NCURSES_EXPORT_VAR(COLOR_PAIRS) = 0;
841 +int NCURSES_EXPORT_VAR(COLORS) = 0;
843 #define DATA(r,g,b) {r,g,b, 0,0,0, 0}
845 --- ncurses-5.4/ncurses/tinfo/lib_termcap.c~visibility.patch
846 +++ ncurses-5.4/ncurses/tinfo/lib_termcap.c
849 #define SHIFT_OUT 017 /* ^N */
851 -NCURSES_EXPORT_VAR(char *) UP = 0;
852 -NCURSES_EXPORT_VAR(char *) BC = 0;
853 +char * NCURSES_EXPORT_VAR(UP) = 0;
854 +char * NCURSES_EXPORT_VAR(BC) = 0;
856 static char *fix_me = 0;
858 --- ncurses-5.4/ncurses/tinfo/lib_cur_term.c~visibility.patch
859 +++ ncurses-5.4/ncurses/tinfo/lib_cur_term.c
862 MODULE_ID("$Id: lib_cur_term.c,v 1.13 2003/12/27 18:21:30 tom Exp $")
864 -NCURSES_EXPORT_VAR(TERMINAL *) cur_term = 0;
865 +TERMINAL * NCURSES_EXPORT_VAR(cur_term) = 0;
867 NCURSES_EXPORT(TERMINAL *)
868 set_curterm(TERMINAL * termp)
869 --- ncurses-5.4/ncurses/tinfo/lib_setup.c~visibility.patch
870 +++ ncurses-5.4/ncurses/tinfo/lib_setup.c
875 -NCURSES_EXPORT_VAR(char) ttytype[NAMESIZE] = "";
876 -NCURSES_EXPORT_VAR(int) LINES = 0;
877 -NCURSES_EXPORT_VAR(int) COLS = 0;
878 -NCURSES_EXPORT_VAR(int) TABSIZE = 0;
879 +char NCURSES_EXPORT_VAR(ttytype[NAMESIZE]) = "";
880 +int NCURSES_EXPORT_VAR(LINES) = 0;
881 +int NCURSES_EXPORT_VAR(COLS) = 0;
882 +int NCURSES_EXPORT_VAR(TABSIZE) = 0;
884 static int _use_env = TRUE;
886 --- ncurses-5.4/ncurses/tinfo/MKnames.awk~visibility.patch
887 +++ ncurses-5.4/ncurses/tinfo/MKnames.awk
889 print "#include <term.h>" > "namehdr"
890 print "#define DCL(it) static IT data##it[]" > "namehdr"
891 print "#else" > "namehdr"
892 - print "#define DCL(it) NCURSES_EXPORT_VAR(IT) it[]" > "namehdr"
893 + print "#define DCL(it) IT NCURSES_EXPORT_VAR(it[])" > "namehdr"
894 print "#endif" > "namehdr"
896 print "/*" > "boolnames"
897 --- ncurses-5.4/ncurses/tinfo/lib_tparm.c~visibility.patch
898 +++ ncurses-5.4/ncurses/tinfo/lib_tparm.c
903 -NCURSES_EXPORT_VAR(int) _nc_tparm_err = 0;
904 +int NCURSES_EXPORT_VAR(_nc_tparm_err) = 0;
906 static stack_frame stack[STACKSIZE];
907 static int stack_ptr;
908 --- ncurses-5.4/ncurses/tinfo/lib_tputs.c~visibility.patch
909 +++ ncurses-5.4/ncurses/tinfo/lib_tputs.c
912 MODULE_ID("$Id: lib_tputs.c,v 1.62 2003/08/23 21:39:20 tom Exp $")
914 -NCURSES_EXPORT_VAR(char) PC = 0; /* used by termcap library */
915 -NCURSES_EXPORT_VAR(NCURSES_OSPEED) ospeed = 0; /* used by termcap library */
916 +char NCURSES_EXPORT_VAR(PC) = 0; /* used by termcap library */
917 +NCURSES_OSPEED NCURSES_EXPORT_VAR(ospeed) = 0; /* used by termcap library */
919 -NCURSES_EXPORT_VAR(int) _nc_nulls_sent = 0; /* used by 'tack' program */
920 +int NCURSES_EXPORT_VAR(_nc_nulls_sent) = 0; /* used by 'tack' program */
922 static int (*my_outch) (int c) = _nc_outch;
924 --- ncurses-5.4/ncurses/tinfo/comp_error.c~visibility.patch
925 +++ ncurses-5.4/ncurses/tinfo/comp_error.c
928 MODULE_ID("$Id: comp_error.c,v 1.25 2002/09/07 20:05:07 tom Exp $")
930 -NCURSES_EXPORT_VAR(bool) _nc_suppress_warnings = FALSE;
931 -NCURSES_EXPORT_VAR(int) _nc_curr_line = 0; /* current line # in input */
932 -NCURSES_EXPORT_VAR(int) _nc_curr_col = 0; /* current column # in input */
933 +bool NCURSES_EXPORT_VAR(_nc_suppress_warnings) = FALSE;
934 +int NCURSES_EXPORT_VAR(_nc_curr_line) = 0; /* current line # in input */
935 +int NCURSES_EXPORT_VAR(_nc_curr_col) = 0; /* current column # in input */
937 static const char *sourcename;
938 static char *termtype;
939 --- ncurses-5.4/ncurses/tinfo/free_ttype.c~visibility.patch
940 +++ ncurses-5.4/ncurses/tinfo/free_ttype.c
945 -NCURSES_EXPORT_VAR(bool) _nc_user_definable = TRUE;
946 +bool NCURSES_EXPORT_VAR(_nc_user_definable) = TRUE;
949 use_extended_names(bool flag)
950 --- ncurses-5.4/ncurses/tinfo/comp_parse.c~visibility.patch
951 +++ ncurses-5.4/ncurses/tinfo/comp_parse.c
956 -NCURSES_EXPORT_VAR(ENTRY *) _nc_head = 0;
957 -NCURSES_EXPORT_VAR(ENTRY *) _nc_tail = 0;
958 +ENTRY * NCURSES_EXPORT_VAR(_nc_head) = 0;
959 +ENTRY * NCURSES_EXPORT_VAR(_nc_tail) = 0;
963 --- ncurses-5.4/ncurses/tinfo/comp_scan.c~visibility.patch
964 +++ ncurses-5.4/ncurses/tinfo/comp_scan.c
967 #define iswhite(ch) (ch == ' ' || ch == '\t')
969 -NCURSES_EXPORT_VAR(int)
970 -_nc_syntax = 0; /* termcap or terminfo? */
971 -NCURSES_EXPORT_VAR(long)
972 -_nc_curr_file_pos = 0; /* file offset of current line */
973 -NCURSES_EXPORT_VAR(long)
974 -_nc_comment_start = 0; /* start of comment range before name */
975 -NCURSES_EXPORT_VAR(long)
976 -_nc_comment_end = 0; /* end of comment range before name */
977 -NCURSES_EXPORT_VAR(long)
978 -_nc_start_line = 0; /* start line of current entry */
979 +int NCURSES_EXPORT_VAR(_nc_syntax) = 0; /* termcap or terminfo? */
980 +long NCURSES_EXPORT_VAR(_nc_curr_file_pos) = 0; /* file offset of current line */
981 +long NCURSES_EXPORT_VAR(_nc_comment_start) = 0; /* start of comment range before name */
982 +long NCURSES_EXPORT_VAR(_nc_comment_end) = 0; /* end of comment range before name */
983 +long NCURSES_EXPORT_VAR(_nc_start_line) = 0; /* start line of current entry */
985 -NCURSES_EXPORT_VAR(struct token)
987 +struct token NCURSES_EXPORT_VAR(_nc_curr_token) =
992 static char *pushname;
994 #if NCURSES_EXT_FUNCS
995 -NCURSES_EXPORT_VAR(bool)
996 -_nc_disable_period = FALSE; /* used by tic -a option */
997 +bool NCURSES_EXPORT_VAR(_nc_disable_period) = FALSE; /* used by tic -a option */
1000 static bool end_of_stream(void);
1001 --- ncurses-5.4/ncurses/tinfo/lib_acs.c~visibility.patch
1002 +++ ncurses-5.4/ncurses/tinfo/lib_acs.c
1004 MODULE_ID("$Id: lib_acs.c,v 1.25 2002/12/28 16:26:46 tom Exp $")
1007 -NCURSES_EXPORT_VAR(chtype *)
1009 +chtype * NCURSES_EXPORT_VAR(_nc_acs_map)(void)
1011 static chtype *the_map = 0;
1017 -NCURSES_EXPORT_VAR(chtype) acs_map[ACS_LEN] =
1018 +chtype NCURSES_EXPORT_VAR(acs_map[ACS_LEN]) =
1022 --- ncurses-5.4/ncurses/tinfo/lib_data.c~visibility.patch
1023 +++ ncurses-5.4/ncurses/tinfo/lib_data.c
1025 * OS/2's native linker complains if we don't initialize public data when
1026 * constructing a dll (reported by J.J.G.Ripoll).
1028 -NCURSES_EXPORT_VAR(WINDOW *)
1030 -NCURSES_EXPORT_VAR(WINDOW *)
1032 -NCURSES_EXPORT_VAR(WINDOW *)
1034 +WINDOW * NCURSES_EXPORT_VAR(stdscr) = 0;
1035 +WINDOW * NCURSES_EXPORT_VAR(curscr) = 0;
1036 +WINDOW * NCURSES_EXPORT_VAR(newscr) = 0;
1038 -NCURSES_EXPORT_VAR(SCREEN *) _nc_screen_chain = 0;
1039 +SCREEN * NCURSES_EXPORT_VAR(_nc_screen_chain) = 0;
1042 * The variable 'SP' will be defined as a function on systems that cannot link
1047 -NCURSES_EXPORT_VAR(SCREEN *) SP = NULL; /* Some linkers require initialized data... */
1048 +SCREEN * NCURSES_EXPORT_VAR(SP) = NULL; /* Some linkers require initialized data... */
1050 --- ncurses-5.4/ncurses/trace/lib_trace.c~visibility.patch
1051 +++ ncurses-5.4/ncurses/trace/lib_trace.c
1054 MODULE_ID("$Id: lib_trace.c,v 1.53 2003/11/23 00:39:30 tom Exp $")
1056 -NCURSES_EXPORT_VAR(unsigned) _nc_tracing = 0; /* always define this */
1057 +unsigned NCURSES_EXPORT_VAR(_nc_tracing) = 0; /* always define this */
1060 -NCURSES_EXPORT_VAR(const char *) _nc_tputs_trace = "";
1061 -NCURSES_EXPORT_VAR(long) _nc_outchars = 0;
1062 +const char * NCURSES_EXPORT_VAR(_nc_tputs_trace) = "";
1063 +long NCURSES_EXPORT_VAR(_nc_outchars) = 0;
1065 static FILE *tracefp = 0; /* default to writing to stderr */
1067 --- ncurses-5.4/ncurses/curses.priv.h~visibility.patch
1068 +++ ncurses-5.4/ncurses/curses.priv.h
1073 -extern NCURSES_EXPORT_VAR(SCREEN *) _nc_screen_chain;
1074 +extern SCREEN * NCURSES_EXPORT_VAR(_nc_screen_chain);
1076 #if NCURSES_NOMACROS
1077 #include <nomacros.h>
1079 extern NCURSES_EXPORT(int) _nc_retrace_int (int);
1080 extern NCURSES_EXPORT(unsigned) _nc_retrace_unsigned (unsigned);
1081 extern NCURSES_EXPORT(void) _nc_fifo_dump (void);
1082 -extern NCURSES_EXPORT_VAR(const char *) _nc_tputs_trace;
1083 -extern NCURSES_EXPORT_VAR(long) _nc_outchars;
1084 -extern NCURSES_EXPORT_VAR(unsigned) _nc_tracing;
1085 +extern const char * NCURSES_EXPORT_VAR(_nc_tputs_trace);
1086 +extern long NCURSES_EXPORT_VAR(_nc_outchars);
1087 +extern unsigned NCURSES_EXPORT_VAR(_nc_tracing);
1089 #if USE_WIDEC_SUPPORT
1090 extern NCURSES_EXPORT(const char *) _nc_viswbuf2 (int, const wchar_t *);
1091 @@ -1055,7 +1055,7 @@
1094 /* scroll indices */
1095 -extern NCURSES_EXPORT_VAR(int *) _nc_oldnums;
1096 +extern int * NCURSES_EXPORT_VAR(_nc_oldnums);
1098 #define USE_SETBUF_0 0
1100 @@ -1074,7 +1074,7 @@
1101 extern NCURSES_EXPORT(void) _nc_set_screen (SCREEN *);
1103 /* current screen is private data; avoid possible linking conflicts too */
1104 -extern NCURSES_EXPORT_VAR(SCREEN *) SP;
1105 +extern SCREEN * NCURSES_EXPORT_VAR(SP);
1106 #define _nc_alloc_screen() ((SP = typeCalloc(SCREEN, 1)) != 0)
1107 #define _nc_set_screen(sp) SP = sp
1109 @@ -1087,7 +1087,7 @@
1110 #define screen_lines SP->_lines
1111 #define screen_columns SP->_columns
1113 -extern NCURSES_EXPORT_VAR(int) _nc_slk_format; /* != 0 if slk_init() called */
1114 +extern int NCURSES_EXPORT_VAR(_nc_slk_format); /* != 0 if slk_init() called */
1115 extern NCURSES_EXPORT(int) _nc_slk_initialize (WINDOW *, int);
1119 +++ ncurses-5.4/m4/cf.m4
1121 +dnl***************************************************************************
1122 +dnl Copyright (c) 1998-2003,2004 Free Software Foundation, Inc. *
1124 +dnl Permission is hereby granted, free of charge, to any person obtaining a *
1125 +dnl copy of this software and associated documentation files (the *
1126 +dnl "Software"), to deal in the Software without restriction, including *
1127 +dnl without limitation the rights to use, copy, modify, merge, publish, *
1128 +dnl distribute, distribute with modifications, sublicense, and/or sell *
1129 +dnl copies of the Software, and to permit persons to whom the Software is *
1130 +dnl furnished to do so, subject to the following conditions: *
1132 +dnl The above copyright notice and this permission notice shall be included *
1133 +dnl in all copies or substantial portions of the Software. *
1135 +dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
1136 +dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
1137 +dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
1138 +dnl IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
1139 +dnl DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
1140 +dnl OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
1141 +dnl THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
1143 +dnl Except as contained in this notice, the name(s) of the above copyright *
1144 +dnl holders shall not be used in advertising or otherwise to promote the *
1145 +dnl sale, use or other dealings in this Software without prior written *
1146 +dnl authorization. *
1147 +dnl***************************************************************************
1149 +dnl Author: Thomas E. Dickey 1995-2003
1151 +dnl $Id: aclocal.m4,v 1.333 2004/01/30 20:59:56 tom Exp $
1152 +dnl Macros used in NCURSES auto-configuration script.
1154 +dnl See http://invisible-island.net/autoconf/ for additional information.
1156 +dnl ---------------------------------------------------------------------------
1157 +dnl ---------------------------------------------------------------------------
1158 +dnl CF_ADA_INCLUDE_DIRS version: 4 updated: 2002/12/01 00:12:15
1159 +dnl -------------------
1160 +dnl Construct the list of include-options for the C programs in the Ada95
1162 +AC_DEFUN([CF_ADA_INCLUDE_DIRS],
1164 +ACPPFLAGS="-I. -I../../include $ACPPFLAGS"
1165 +if test "$srcdir" != "."; then
1166 + ACPPFLAGS="-I\$(srcdir)/../../include $ACPPFLAGS"
1168 +if test "$GCC" != yes; then
1169 + ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
1170 +elif test "$includedir" != "/usr/include"; then
1171 + if test "$includedir" = '${prefix}/include' ; then
1172 + if test $prefix != /usr ; then
1173 + ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
1176 + ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
1179 +AC_SUBST(ACPPFLAGS)
1181 +dnl ---------------------------------------------------------------------------
1182 +dnl CF_ADD_CFLAGS version: 5 updated: 2002/12/01 00:12:15
1184 +dnl Copy non-preprocessor flags to $CFLAGS, preprocessor flags to $CPPFLAGS
1185 +dnl The second parameter if given makes this macro verbose.
1186 +AC_DEFUN([CF_ADD_CFLAGS],
1190 +for cf_add_cflags in $1
1192 + case $cf_add_cflags in #(vi
1193 + -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
1194 + case "$CPPFLAGS" in
1195 + *$cf_add_cflags) #(vi
1198 + cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
1203 + cf_new_cflags="$cf_new_cflags $cf_add_cflags"
1208 +if test -n "$cf_new_cflags" ; then
1209 + ifelse($2,,,[CF_VERBOSE(add to \$CFLAGS $cf_new_cflags)])
1210 + CFLAGS="$CFLAGS $cf_new_cflags"
1213 +if test -n "$cf_new_cppflags" ; then
1214 + ifelse($2,,,[CF_VERBOSE(add to \$CPPFLAGS $cf_new_cppflags)])
1215 + CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
1219 +dnl ---------------------------------------------------------------------------
1220 +dnl CF_ANSI_CC_CHECK version: 9 updated: 2001/12/30 17:53:34
1221 +dnl ----------------
1222 +dnl This is adapted from the macros 'fp_PROG_CC_STDC' and 'fp_C_PROTOTYPES'
1223 +dnl in the sharutils 4.2 distribution.
1224 +AC_DEFUN([CF_ANSI_CC_CHECK],
1226 +AC_CACHE_CHECK(for ${CC-cc} option to accept ANSI C, cf_cv_ansi_cc,[
1228 +cf_save_CFLAGS="$CFLAGS"
1229 +cf_save_CPPFLAGS="$CPPFLAGS"
1230 +# Don't try gcc -ansi; that turns off useful extensions and
1231 +# breaks some systems' header files.
1232 +# AIX -qlanglvl=ansi
1233 +# Ultrix and OSF/1 -std1
1234 +# HP-UX -Aa -D_HPUX_SOURCE
1236 +# UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
1237 +for cf_arg in "-DCC_HAS_PROTOS" \
1242 + "-Aa -D_HPUX_SOURCE" \
1245 + CF_ADD_CFLAGS($cf_arg)
1248 +#ifndef CC_HAS_PROTOS
1249 +#if !defined(__STDC__) || (__STDC__ != 1)
1254 + int test (int i, double x);
1255 + struct s1 {int (*f) (int a);};
1256 + struct s2 {int (*f) (double a);};],
1257 + [cf_cv_ansi_cc="$cf_arg"; break])
1259 +CFLAGS="$cf_save_CFLAGS"
1260 +CPPFLAGS="$cf_save_CPPFLAGS"
1263 +if test "$cf_cv_ansi_cc" != "no"; then
1264 +if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
1265 + CF_ADD_CFLAGS($cf_cv_ansi_cc)
1267 + AC_DEFINE(CC_HAS_PROTOS)
1271 +dnl ---------------------------------------------------------------------------
1272 +dnl CF_ANSI_CC_REQD version: 3 updated: 1997/09/06 13:40:44
1273 +dnl ---------------
1274 +dnl For programs that must use an ANSI compiler, obtain compiler options that
1275 +dnl will make it recognize prototypes. We'll do preprocessor checks in other
1276 +dnl macros, since tools such as unproto can fake prototypes, but only part of
1277 +dnl the preprocessor.
1278 +AC_DEFUN([CF_ANSI_CC_REQD],
1279 +[AC_REQUIRE([CF_ANSI_CC_CHECK])
1280 +if test "$cf_cv_ansi_cc" = "no"; then
1282 +[Your compiler does not appear to recognize prototypes.
1283 +You have the following choices:
1284 + a. adjust your compiler options
1285 + b. get an up-to-date compiler
1286 + c. use a wrapper such as unproto])
1289 +dnl ---------------------------------------------------------------------------
1290 +dnl CF_BOOL_DECL version: 8 updated: 2004/01/30 15:51:18
1292 +dnl Test if 'bool' is a builtin type in the configured C++ compiler. Some
1293 +dnl older compilers (e.g., gcc 2.5.8) don't support 'bool' directly; gcc
1294 +dnl 2.6.3 does, in anticipation of the ANSI C++ standard.
1296 +dnl Treat the configuration-variable specially here, since we're directly
1297 +dnl substituting its value (i.e., 1/0).
1299 +dnl $1 is the shell variable to store the result in, if not $cv_cv_builtin_bool
1300 +AC_DEFUN([CF_BOOL_DECL],
1302 +AC_MSG_CHECKING(if we should include stdbool.h)
1304 +AC_CACHE_VAL(cf_cv_header_stdbool_h,[
1305 + AC_TRY_COMPILE([],[bool foo = false],
1306 + [cf_cv_header_stdbool_h=0],
1309 +#include <stdbool.h>
1311 +],[bool foo = false],
1312 + [cf_cv_header_stdbool_h=1],
1313 + [cf_cv_header_stdbool_h=0])])])
1315 +if test "$cf_cv_header_stdbool_h" = 1
1316 +then AC_MSG_RESULT(yes)
1317 +else AC_MSG_RESULT(no)
1320 +AC_MSG_CHECKING([for builtin bool type])
1322 +AC_CACHE_VAL(ifelse($1,,cf_cv_builtin_bool,[$1]),[
1325 +#include <sys/types.h>
1326 +],[bool x = false],
1327 + [ifelse($1,,cf_cv_builtin_bool,[$1])=1],
1328 + [ifelse($1,,cf_cv_builtin_bool,[$1])=0])
1331 +if test "$ifelse($1,,cf_cv_builtin_bool,[$1])" = 1
1332 +then AC_MSG_RESULT(yes)
1333 +else AC_MSG_RESULT(no)
1336 +dnl ---------------------------------------------------------------------------
1337 +dnl CF_BOOL_SIZE version: 10 updated: 2002/02/23 20:38:31
1339 +dnl Test for the size of 'bool' in the configured C++ compiler (e.g., a type).
1340 +dnl Don't bother looking for bool.h, since it's been deprecated.
1342 +dnl If the current compiler is C rather than C++, we get the bool definition
1343 +dnl from <stdbool.h>.
1344 +AC_DEFUN([CF_BOOL_SIZE],
1346 +AC_MSG_CHECKING([for size of bool])
1347 +AC_CACHE_VAL(cf_cv_type_of_bool,[
1350 +#include <stdlib.h>
1353 +#if defined(__cplusplus)
1355 +#ifdef HAVE_GXX_BUILTIN_H
1356 +#include <g++/builtin.h>
1357 +#elif HAVE_GPP_BUILTIN_H
1358 +#include <gpp/builtin.h>
1359 +#elif HAVE_BUILTIN_H
1360 +#include <builtin.h>
1365 +#if $cf_cv_header_stdbool_h
1366 +#include <stdbool.h>
1373 + FILE *fp = fopen("cf_test.out", "w");
1376 + if ((bool)(-x) >= 0)
1377 + fputs("unsigned ", fp);
1378 + if (sizeof(x) == sizeof(int)) fputs("int", fp);
1379 + else if (sizeof(x) == sizeof(char)) fputs("char", fp);
1380 + else if (sizeof(x) == sizeof(short))fputs("short",fp);
1381 + else if (sizeof(x) == sizeof(long)) fputs("long", fp);
1387 + [cf_cv_type_of_bool=`cat cf_test.out`
1388 + if test -z "$cf_cv_type_of_bool"; then
1389 + cf_cv_type_of_bool=unknown
1391 + [cf_cv_type_of_bool=unknown],
1392 + [cf_cv_type_of_bool=unknown])
1395 +AC_MSG_RESULT($cf_cv_type_of_bool)
1396 +if test "$cf_cv_type_of_bool" = unknown ; then
1397 + case .$NCURSES_BOOL in #(vi
1398 + .auto|.) NCURSES_BOOL=unsigned;;
1400 + AC_MSG_WARN(Assuming $NCURSES_BOOL for type of bool)
1401 + cf_cv_type_of_bool=$NCURSES_BOOL
1404 +dnl ---------------------------------------------------------------------------
1405 +dnl CF_CFG_DEFAULTS version: 6 updated: 2003/07/12 15:15:19
1406 +dnl ---------------
1407 +dnl Determine the default configuration into which we'll install ncurses. This
1408 +dnl can be overridden by the user's command-line options. There's two items to
1410 +dnl 1. the prefix (e.g., /usr)
1411 +dnl 2. the header files (e.g., /usr/include/ncurses)
1412 +dnl We'll look for a previous installation of ncurses and use the same defaults.
1414 +dnl We don't use AC_PREFIX_DEFAULT, because it gets evaluated too soon, and
1415 +dnl we don't use AC_PREFIX_PROGRAM, because we cannot distinguish ncurses's
1416 +dnl programs from a vendor's.
1417 +AC_DEFUN([CF_CFG_DEFAULTS],
1419 +AC_MSG_CHECKING(for prefix)
1420 +if test "x$prefix" = "xNONE" ; then
1421 + case "$cf_cv_system_name" in
1422 + # non-vendor systems don't have a conflict
1423 + openbsd*|netbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1426 + *) prefix=$ac_default_prefix
1430 +AC_MSG_RESULT($prefix)
1432 +if test "x$prefix" = "xNONE" ; then
1433 +AC_MSG_CHECKING(for default include-directory)
1434 +test -n "$verbose" && echo 1>&AC_FD_MSG
1437 + $includedir/ncurses \
1439 + $prefix/include/ncurses \
1440 + /usr/local/include \
1441 + /usr/local/include/ncurses \
1443 + /usr/include/ncurses
1445 + cf_dir=`eval echo $cf_symbol`
1446 + if test -f $cf_dir/curses.h ; then
1447 + if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1448 + includedir="$cf_symbol"
1449 + test -n "$verbose" && echo $ac_n " found " 1>&AC_FD_MSG
1453 + test -n "$verbose" && echo " tested $cf_dir" 1>&AC_FD_MSG
1455 +AC_MSG_RESULT($includedir)
1458 +dnl ---------------------------------------------------------------------------
1459 +dnl CF_CGETENT version: 3 updated: 2000/08/12 23:18:52
1461 +dnl Check if the terminal-capability database functions are available. If not,
1462 +dnl ncurses has a much-reduced version.
1463 +AC_DEFUN([CF_CGETENT],[
1464 +AC_MSG_CHECKING(for terminal-capability database functions)
1465 +AC_CACHE_VAL(cf_cv_cgetent,[
1467 +#include <stdlib.h>],[
1470 + char *db_array = temp;
1471 + cgetent(&buf, /* int *, */ &db_array, "vt100");
1472 + cgetcap(buf, "tc", '=');
1473 + cgetmatch(buf, "tc");
1475 + [cf_cv_cgetent=yes],
1476 + [cf_cv_cgetent=no])
1478 +AC_MSG_RESULT($cf_cv_cgetent)
1479 +test "$cf_cv_cgetent" = yes && AC_DEFINE(HAVE_BSD_CGETENT)
1481 +dnl ---------------------------------------------------------------------------
1482 +dnl CF_CHECK_CACHE version: 9 updated: 2004/01/30 15:59:13
1484 +dnl Check if we're accidentally using a cache from a different machine.
1485 +dnl Derive the system name, as a check for reusing the autoconf cache.
1487 +dnl If we've packaged config.guess and config.sub, run that (since it does a
1488 +dnl better job than uname). Normally we'll use AC_CANONICAL_HOST, but allow
1489 +dnl an extra parameter that we may override, e.g., for AC_CANONICAL_SYSTEM
1490 +dnl which is useful in cross-compiles.
1492 +dnl Note: we would use $ac_config_sub, but that is one of the places where
1493 +dnl autoconf 2.5x broke compatibility with autoconf 2.13
1494 +AC_DEFUN([CF_CHECK_CACHE],
1496 +if test -f $srcdir/config.guess ; then
1497 + ifelse([$1],,[AC_CANONICAL_HOST],[$1])
1498 + system_name="$host_os"
1500 + system_name="`(uname -s -r) 2>/dev/null`"
1501 + if test -z "$system_name" ; then
1502 + system_name="`(hostname) 2>/dev/null`"
1505 +test -n "$system_name" && AC_DEFINE_UNQUOTED(SYSTEM_NAME,"$system_name")
1506 +AC_CACHE_VAL(cf_cv_system_name,[cf_cv_system_name="$system_name"])
1508 +test -z "$system_name" && system_name="$cf_cv_system_name"
1509 +test -n "$cf_cv_system_name" && AC_MSG_RESULT(Configuring for $cf_cv_system_name)
1511 +if test ".$system_name" != ".$cf_cv_system_name" ; then
1512 + AC_MSG_RESULT(Cached system name ($system_name) does not agree with actual ($cf_cv_system_name))
1513 + AC_ERROR("Please remove config.cache and try again.")
1516 +dnl ---------------------------------------------------------------------------
1517 +dnl CF_CHECK_ERRNO version: 9 updated: 2001/12/30 18:03:23
1519 +dnl Check for data that is usually declared in <stdio.h> or <errno.h>, e.g.,
1520 +dnl the 'errno' variable. Define a DECL_xxx symbol if we must declare it
1523 +dnl $1 = the name to check
1524 +AC_DEFUN([CF_CHECK_ERRNO],
1526 +AC_CACHE_CHECK(if external $1 is declared, cf_cv_dcl_$1,[
1528 +#ifdef HAVE_STDLIB_H
1529 +#include <stdlib.h>
1532 +#include <sys/types.h>
1533 +#include <errno.h> ],
1534 + [long x = (long) $1],
1535 + [cf_cv_dcl_$1=yes],
1536 + [cf_cv_dcl_$1=no])
1539 +if test "$cf_cv_dcl_$1" = no ; then
1540 + CF_UPPER(cf_result,decl_$1)
1541 + AC_DEFINE_UNQUOTED($cf_result)
1544 +# It's possible (for near-UNIX clones) that the data doesn't exist
1545 +CF_CHECK_EXTERN_DATA($1,int)
1547 +dnl ---------------------------------------------------------------------------
1548 +dnl CF_CHECK_EXTERN_DATA version: 3 updated: 2001/12/30 18:03:23
1549 +dnl --------------------
1550 +dnl Check for existence of external data in the current set of libraries. If
1551 +dnl we can modify it, it's real enough.
1552 +dnl $1 = the name to check
1554 +AC_DEFUN([CF_CHECK_EXTERN_DATA],
1556 +AC_CACHE_CHECK(if external $1 exists, cf_cv_have_$1,[
1562 + [cf_cv_have_$1=yes],
1563 + [cf_cv_have_$1=no])
1566 +if test "$cf_cv_have_$1" = yes ; then
1567 + CF_UPPER(cf_result,have_$1)
1568 + AC_DEFINE_UNQUOTED($cf_result)
1572 +dnl ---------------------------------------------------------------------------
1573 +dnl CF_CPP_PARAM_INIT version: 4 updated: 2001/04/07 22:31:18
1574 +dnl -----------------
1575 +dnl Check if the C++ compiler accepts duplicate parameter initialization. This
1576 +dnl is a late feature for the standard and is not in some recent compilers
1578 +AC_DEFUN([CF_CPP_PARAM_INIT],
1580 +if test -n "$CXX"; then
1581 +AC_CACHE_CHECK(if $CXX accepts parameter initialization,cf_cv_cpp_param_init,[
1593 +TEST::TEST(int x = 1) // some compilers do not like second initializer
1599 + [cf_cv_cpp_param_init=yes],
1600 + [cf_cv_cpp_param_init=no],
1601 + [cf_cv_cpp_param_init=unknown])
1605 +test "$cf_cv_cpp_param_init" = yes && AC_DEFINE(CPP_HAS_PARAM_INIT)
1607 +dnl ---------------------------------------------------------------------------
1608 +dnl CF_CPP_VSCAN_FUNC version: 5 updated: 2001/12/02 01:39:28
1609 +dnl -----------------
1610 +dnl Check if the g++ compiler supports vscan function (not a standard feature).
1611 +AC_DEFUN([CF_CPP_VSCAN_FUNC],
1613 +if test -n "$CXX"; then
1617 +AC_CHECK_HEADERS(strstream.h)
1619 +AC_CACHE_CHECK(if $CXX supports vscan function,cf_cv_cpp_vscan_func,[
1620 + for cf_vscan_func in strstream strstream_cast stdio
1622 + case $cf_vscan_func in #(vi
1623 + stdio) cf_vscan_defs=USE_STDIO_VSCAN ;; #(vi
1624 + strstream) cf_vscan_defs=USE_STRSTREAM_VSCAN ;;
1625 + strstream_cast) cf_vscan_defs=USE_STRSTREAM_VSCAN_CAST ;;
1629 +#include <stdarg.h>
1630 +#define $cf_vscan_defs 1
1631 +#if defined(USE_STDIO_VSCAN)
1632 +#elif defined(HAVE_STRSTREAM_H) && defined(USE_STRSTREAM_VSCAN)
1633 +#include <strstream.h>
1636 +int scanw(const char* fmt, ...)
1642 + va_start(args, fmt);
1643 +#if defined(USE_STDIO_VSCAN)
1644 + if (::vsscanf(buf, fmt, args) != -1)
1646 +#elif defined(USE_STRSTREAM_VSCAN)
1647 + strstreambuf ss(buf, sizeof(buf));
1648 + if (ss.vscan(fmt, args) != -1)
1650 +#elif defined(USE_STRSTREAM_VSCAN_CAST)
1651 + strstreambuf ss(buf, sizeof(buf));
1652 + if (ss.vscan(fmt, (_IO_va_list)args) != -1)
1655 +#error case $cf_vscan_func failed
1660 +],[int tmp, foo = scanw("%d", &tmp)],
1661 + [cf_cv_cpp_vscan_func=$cf_vscan_func; break],
1662 + [cf_cv_cpp_vscan_func=no])
1663 + test "$cf_cv_cpp_vscan_func" != no && break
1670 +case $cf_cv_cpp_vscan_func in #(vi
1672 + AC_DEFINE(CPP_HAS_VSCAN_FUNC)
1673 + AC_DEFINE(USE_STDIO_VSCAN)
1676 + AC_DEFINE(CPP_HAS_VSCAN_FUNC)
1677 + AC_DEFINE(USE_STRSTREAM_VSCAN)
1680 + AC_DEFINE(CPP_HAS_VSCAN_FUNC)
1681 + AC_DEFINE(USE_STRSTREAM_VSCAN_CAST)
1685 +dnl ---------------------------------------------------------------------------
1686 +dnl CF_DIRNAME version: 4 updated: 2002/12/21 19:25:52
1688 +dnl "dirname" is not portable, so we fake it with a shell script.
1689 +AC_DEFUN([CF_DIRNAME],[$1=`echo $2 | sed -e 's%/[[^/]]*$%%'`])dnl
1690 +dnl ---------------------------------------------------------------------------
1691 +dnl CF_DIRS_TO_MAKE version: 3 updated: 2002/02/23 20:38:31
1692 +dnl ---------------
1693 +AC_DEFUN([CF_DIRS_TO_MAKE],
1696 +for cf_item in $cf_list_models
1698 + CF_OBJ_SUBDIR($cf_item,cf_subdir)
1699 + for cf_item2 in $DIRS_TO_MAKE
1701 + test $cf_item2 = $cf_subdir && break
1703 + test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
1705 +for cf_dir in $DIRS_TO_MAKE
1707 + test ! -d $cf_dir && mkdir $cf_dir
1709 +AC_SUBST(DIRS_TO_MAKE)
1711 +dnl ---------------------------------------------------------------------------
1712 +dnl CF_ERRNO version: 5 updated: 1997/11/30 12:44:39
1714 +dnl Check if 'errno' is declared in <errno.h>
1715 +AC_DEFUN([CF_ERRNO],
1717 +CF_CHECK_ERRNO(errno)
1719 +dnl ---------------------------------------------------------------------------
1720 +dnl CF_ETIP_DEFINES version: 3 updated: 2003/03/22 19:13:43
1721 +dnl ---------------
1722 +dnl Test for conflicting definitions of exception in gcc 2.8.0, etc., between
1723 +dnl math.h and builtin.h, only for ncurses
1724 +AC_DEFUN([CF_ETIP_DEFINES],
1726 +AC_MSG_CHECKING(for special defines needed for etip.h)
1727 +cf_save_CXXFLAGS="$CXXFLAGS"
1729 +for cf_math in "" MATH_H
1731 +for cf_excp in "" MATH_EXCEPTION
1733 + CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
1734 + test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
1735 + test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
1737 +#include <etip.h.in>
1739 + test -n "$cf_math" && AC_DEFINE_UNQUOTED(ETIP_NEEDS_${cf_math})
1740 + test -n "$cf_excp" && AC_DEFINE_UNQUOTED(ETIP_NEEDS_${cf_excp})
1741 + cf_result="$cf_math $cf_excp"
1746 +AC_MSG_RESULT($cf_result)
1747 +CXXFLAGS="$cf_save_CXXFLAGS"
1749 +dnl ---------------------------------------------------------------------------
1750 +dnl CF_FUNC_MEMMOVE version: 5 updated: 2000/08/12 23:18:52
1751 +dnl ---------------
1752 +dnl Check for memmove, or a bcopy that can handle overlapping copy. If neither
1753 +dnl is found, add our own version of memmove to the list of objects.
1754 +AC_DEFUN([CF_FUNC_MEMMOVE],
1756 +AC_CHECK_FUNC(memmove,,[
1757 +AC_CHECK_FUNC(bcopy,[
1758 + AC_CACHE_CHECK(if bcopy does overlapping moves,cf_cv_good_bcopy,[
1761 + static char data[] = "abcdefghijklmnopqrstuwwxyz";
1763 + bcopy(data, temp, sizeof(data));
1764 + bcopy(temp+10, temp, 15);
1765 + bcopy(temp+5, temp+15, 10);
1766 + exit (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
1769 + [cf_cv_good_bcopy=yes],
1770 + [cf_cv_good_bcopy=no],
1771 + [cf_cv_good_bcopy=unknown])
1773 + ],[cf_cv_good_bcopy=no])
1774 + if test "$cf_cv_good_bcopy" = yes ; then
1775 + AC_DEFINE(USE_OK_BCOPY)
1777 + AC_DEFINE(USE_MY_MEMMOVE)
1780 +dnl ---------------------------------------------------------------------------
1781 +dnl CF_FUNC_POLL version: 2 updated: 2000/02/06 01:38:04
1783 +dnl See if the poll function really works. Some platforms have poll(), but
1784 +dnl it does not work for terminals or files.
1785 +AC_DEFUN([CF_FUNC_POLL],[
1786 +AC_CACHE_CHECK(if poll really works,cf_cv_working_poll,[
1792 +#include <sys/poll.h>
1795 + struct pollfd myfds;
1799 + myfds.events = POLLIN;
1801 + ret = poll(&myfds, 1, 100);
1804 + [cf_cv_working_poll=yes],
1805 + [cf_cv_working_poll=no],
1806 + [cf_cv_working_poll=unknown])])
1807 +test "$cf_cv_working_poll" = "yes" && AC_DEFINE(HAVE_WORKING_POLL)
1809 +dnl ---------------------------------------------------------------------------
1810 +dnl CF_FUNC_TERMIOS version: 2 updated: 2000/07/22 23:37:24
1811 +dnl ---------------
1812 +dnl Some old/broken variations define tcgetattr() only as a macro in
1814 +AC_DEFUN([CF_FUNC_TERMIOS],[
1815 +AC_REQUIRE([CF_STRUCT_TERMIOS])
1816 +AC_CACHE_CHECK(for tcgetattr, cf_cv_have_tcgetattr,[
1818 +#include <sys/types.h>
1819 +#ifdef HAVE_UNISTD_H
1820 +#include <unistd.h>
1822 +#ifdef HAVE_TERMIOS_H
1823 +#include <termios.h>
1824 +#define TTY struct termios
1826 +#ifdef HAVE_TERMIO_H
1827 +#include <termio.h>
1828 +#define TTY struct termio
1833 +tcgetattr(1, &foo);],
1834 +[cf_cv_have_tcgetattr=yes],
1835 +[cf_cv_have_tcgetattr=no])])
1836 +test "$cf_cv_have_tcgetattr" = yes && AC_DEFINE(HAVE_TCGETATTR)
1838 +dnl ---------------------------------------------------------------------------
1839 +dnl CF_FUNC_VSSCANF version: 3 updated: 2001/12/19 00:50:10
1840 +dnl ---------------
1841 +dnl Check for vsscanf() function, which is in c9x but generally not in earlier
1842 +dnl versions of C. It is in the GNU C library, and can often be simulated by
1843 +dnl other functions.
1844 +AC_DEFUN([CF_FUNC_VSSCANF],
1846 +AC_CACHE_CHECK(for vsscanf function or workaround,cf_cv_func_vsscanf,[
1848 +#include <stdarg.h>
1849 +#include <stdio.h>],[
1851 + vsscanf("from", "%d", ap)],[cf_cv_func_vsscanf=vsscanf],[
1853 +#include <stdarg.h>
1854 +#include <stdio.h>],[
1856 + char *str = "from";
1858 + strbuf._flag = _IOREAD;
1859 + strbuf._ptr = strbuf._base = (unsigned char *) str;
1860 + strbuf._cnt = strlen(str);
1861 + strbuf._file = _NFILE;
1862 + return (vfscanf(&strbuf, "%d", ap))],[cf_cv_func_vsscanf=vfscanf],[
1864 +#include <stdarg.h>
1865 +#include <stdio.h>],[
1867 + char *str = "from";
1869 + strbuf._flag = _IOREAD;
1870 + strbuf._ptr = strbuf._base = (unsigned char *) str;
1871 + strbuf._cnt = strlen(str);
1872 + strbuf._file = _NFILE;
1873 + return (_doscan(&strbuf, "%d", ap))],[cf_cv_func_vsscanf=_doscan],[
1874 +cf_cv_func_vsscanf=no])])])])
1876 +case $cf_cv_func_vsscanf in #(vi
1877 +vsscanf) AC_DEFINE(HAVE_VSSCANF);; #(vi
1878 +vfscanf) AC_DEFINE(HAVE_VFSCANF);; #(vi
1879 +_doscan) AC_DEFINE(HAVE__DOSCAN);;
1883 +dnl ---------------------------------------------------------------------------
1884 +dnl CF_GCC_ATTRIBUTES version: 9 updated: 2002/12/21 19:25:52
1885 +dnl -----------------
1886 +dnl Test for availability of useful gcc __attribute__ directives to quiet
1887 +dnl compiler warnings. Though useful, not all are supported -- and contrary
1888 +dnl to documentation, unrecognized directives cause older compilers to barf.
1889 +AC_DEFUN([CF_GCC_ATTRIBUTES],
1891 +if test "$GCC" = yes
1893 +cat > conftest.i <<EOF
1895 +#define GCC_PRINTF 0
1898 +#define GCC_SCANF 0
1900 +#ifndef GCC_NORETURN
1901 +#define GCC_NORETURN /* nothing */
1904 +#define GCC_UNUSED /* nothing */
1907 +if test "$GCC" = yes
1909 + AC_CHECKING([for $CC __attribute__ directives])
1910 +cat > conftest.$ac_ext <<EOF
1911 +#line __oline__ "configure"
1912 +#include "confdefs.h"
1913 +#include "conftest.h"
1914 +#include "conftest.i"
1916 +#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
1918 +#define GCC_PRINTFLIKE(fmt,var) /*nothing*/
1921 +#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
1923 +#define GCC_SCANFLIKE(fmt,var) /*nothing*/
1925 +extern void wow(char *,...) GCC_SCANFLIKE(1,2);
1926 +extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
1927 +extern void foo(void) GCC_NORETURN;
1928 +int main(int argc GCC_UNUSED, char *argv[[]] GCC_UNUSED) { return 0; }
1930 + for cf_attribute in scanf printf unused noreturn
1932 + CF_UPPER(CF_ATTRIBUTE,$cf_attribute)
1933 + cf_directive="__attribute__(($cf_attribute))"
1934 + echo "checking for $CC $cf_directive" 1>&AC_FD_CC
1935 + case $cf_attribute in
1937 + cat >conftest.h <<EOF
1938 +#define GCC_$CF_ATTRIBUTE 1
1942 + cat >conftest.h <<EOF
1943 +#define GCC_$CF_ATTRIBUTE $cf_directive
1947 + if AC_TRY_EVAL(ac_compile); then
1948 + test -n "$verbose" && AC_MSG_RESULT(... $cf_attribute)
1949 + cat conftest.h >>confdefs.h
1953 + fgrep define conftest.i >>confdefs.h
1958 +dnl ---------------------------------------------------------------------------
1959 +dnl CF_GCC_VERSION version: 3 updated: 2003/09/06 19:16:57
1961 +dnl Find version of gcc
1962 +AC_DEFUN([CF_GCC_VERSION],[
1963 +AC_REQUIRE([AC_PROG_CC])
1965 +if test "$GCC" = yes ; then
1966 + AC_MSG_CHECKING(version of $CC)
1967 + GCC_VERSION="`${CC} --version|sed -e '2,$d' -e 's/^[[^0-9.]]*//' -e 's/[[^0-9.]].*//'`"
1968 + test -z "$GCC_VERSION" && GCC_VERSION=unknown
1969 + AC_MSG_RESULT($GCC_VERSION)
1972 +dnl ---------------------------------------------------------------------------
1973 +dnl CF_GCC_WARNINGS version: 15 updated: 2003/07/05 18:42:30
1974 +dnl ---------------
1975 +dnl Check if the compiler supports useful warning options. There's a few that
1976 +dnl we don't use, simply because they're too noisy:
1978 +dnl -Wconversion (useful in older versions of gcc, but not in gcc 2.7.x)
1979 +dnl -Wredundant-decls (system headers make this too noisy)
1980 +dnl -Wtraditional (combines too many unrelated messages, only a few useful)
1981 +dnl -Wwrite-strings (too noisy, but should review occasionally). This
1982 +dnl is enabled for ncurses using "--enable-const".
1985 +AC_DEFUN([CF_GCC_WARNINGS],
1987 +AC_REQUIRE([CF_GCC_VERSION])
1988 +if test "$GCC" = yes
1990 + cat > conftest.$ac_ext <<EOF
1991 +#line __oline__ "configure"
1992 +int main(int argc, char *argv[[]]) { return (argv[[argc-1]] == 0) ; }
1994 + AC_CHECKING([for $CC warning options])
1995 + cf_save_CFLAGS="$CFLAGS"
1996 + EXTRA_CFLAGS="-W -Wall"
1998 + test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
2000 + Wbad-function-cast \
2004 + Wmissing-declarations \
2005 + Wmissing-prototypes \
2009 + Wstrict-prototypes \
2010 + Wundef $cf_warn_CONST
2012 + CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
2013 + if AC_TRY_EVAL(ac_compile); then
2014 + test -n "$verbose" && AC_MSG_RESULT(... -$cf_opt)
2015 + case $cf_opt in #(vi
2017 + CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
2020 + case $GCC_VERSION in
2022 + CF_VERBOSE(feature is broken in gcc $GCC_VERSION)
2027 + EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
2031 + CFLAGS="$cf_save_CFLAGS"
2033 +AC_SUBST(EXTRA_CFLAGS)
2035 +dnl ---------------------------------------------------------------------------
2036 +dnl CF_GNAT_TRY_RUN version: 2 updated: 1998/07/19 00:25:18
2037 +dnl ---------------
2038 +dnl Verify that a test program compiles and runs with GNAT
2039 +dnl $cf_ada_make is set to the program that compiles/links
2040 +AC_DEFUN([CF_GNAT_TRY_RUN],
2043 +cat >>conftest.ads <<CF_EOF
2046 +cat >>conftest.adb <<CF_EOF
2049 +if ( $cf_ada_make conftest 1>&AC_FD_CC 2>&1 ) ; then
2050 + if ( ./conftest 1>&AC_FD_CC 2>&1 ) ; then
2051 +ifelse($3,, :,[ $3])
2060 +dnl ---------------------------------------------------------------------------
2061 +dnl CF_GNAT_VERSION version: 11 updated: 2003/09/06 19:42:09
2062 +dnl ---------------
2063 +dnl Verify version of GNAT.
2064 +AC_DEFUN([CF_GNAT_VERSION],
2066 +AC_MSG_CHECKING(for gnat version)
2067 +cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[[0-9]].[[0-9]][[0-9]]*' |\
2068 + sed -e '2,$d' -e 's/[[^0-9 \.]]//g' -e 's/^[[ ]]*//' -e 's/ .*//'`
2069 +AC_MSG_RESULT($cf_gnat_version)
2071 +case $cf_gnat_version in
2072 + 3.1[[1-9]]*|3.[[2-9]]*|[[4-9]].*)
2073 + cf_cv_prog_gnat_correct=yes
2075 + *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
2076 + cf_cv_prog_gnat_correct=no
2079 +case $cf_gnat_version in
2080 + 3.[[1-9]]*|[[4-9]].*)
2081 + cf_compile_generics=generics
2082 + cf_generic_objects="\$(GENOBJS)"
2084 + *) cf_compile_generics=
2085 + cf_generic_objects=
2089 +dnl ---------------------------------------------------------------------------
2090 +dnl CF_GNU_SOURCE version: 3 updated: 2000/10/29 23:30:53
2092 +dnl Check if we must define _GNU_SOURCE to get a reasonable value for
2093 +dnl _XOPEN_SOURCE, upon which many POSIX definitions depend. This is a defect
2094 +dnl (or misfeature) of glibc2, which breaks portability of many applications,
2095 +dnl since it is interwoven with GNU extensions.
2097 +dnl Well, yes we could work around it...
2098 +AC_DEFUN([CF_GNU_SOURCE],
2100 +AC_CACHE_CHECK(if we must define _GNU_SOURCE,cf_cv_gnu_source,[
2101 +AC_TRY_COMPILE([#include <sys/types.h>],[
2102 +#ifndef _XOPEN_SOURCE
2105 + [cf_cv_gnu_source=no],
2106 + [cf_save="$CPPFLAGS"
2107 + CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2108 + AC_TRY_COMPILE([#include <sys/types.h>],[
2109 +#ifdef _XOPEN_SOURCE
2112 + [cf_cv_gnu_source=no],
2113 + [cf_cv_gnu_source=yes])
2114 + CPPFLAGS="$cf_save"
2117 +test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2119 +dnl ---------------------------------------------------------------------------
2120 +dnl CF_GPP_LIBRARY version: 8 updated: 2003/02/02 01:41:46
2122 +dnl If we're trying to use g++, test if libg++ is installed (a rather common
2123 +dnl problem :-). If we have the compiler but no library, we'll be able to
2124 +dnl configure, but won't be able to build the c++ demo program.
2125 +AC_DEFUN([CF_GPP_LIBRARY],
2127 +cf_cxx_library=unknown
2128 +case $cf_cv_system_name in #(vi
2130 + cf_gpp_libname=gpp
2133 + cf_gpp_libname=g++
2136 +if test "$GXX" = yes; then
2137 + AC_MSG_CHECKING([for lib$cf_gpp_libname])
2139 + LIBS="$LIBS -l$cf_gpp_libname"
2141 +#include <$cf_gpp_libname/builtin.h>
2143 + [two_arg_error_handler_t foo2 = lib_error_handler],
2144 + [cf_cxx_library=yes
2145 + CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
2146 + if test "$cf_gpp_libname" = cpp ; then
2147 + AC_DEFINE(HAVE_GPP_BUILTIN_H)
2149 + AC_DEFINE(HAVE_GXX_BUILTIN_H)
2152 +#include <builtin.h>
2154 + [two_arg_error_handler_t foo2 = lib_error_handler],
2155 + [cf_cxx_library=yes
2156 + CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
2157 + AC_DEFINE(HAVE_BUILTIN_H)],
2158 + [cf_cxx_library=no])])
2160 + AC_MSG_RESULT($cf_cxx_library)
2163 +dnl ---------------------------------------------------------------------------
2164 +dnl CF_GXX_VERSION version: 3 updated: 2003/09/06 19:16:21
2166 +dnl Check for version of g++
2167 +AC_DEFUN([CF_GXX_VERSION],[
2168 +AC_REQUIRE([AC_PROG_CPP])
2170 +if test "$GXX" = yes; then
2171 + AC_MSG_CHECKING(version of g++)
2172 + GXX_VERSION="`${CXX-g++} --version|sed -e '2,$d'`"
2173 + AC_MSG_RESULT($GXX_VERSION)
2176 +dnl ---------------------------------------------------------------------------
2177 +dnl CF_INCLUDE_DIRS version: 4 updated: 2002/12/01 00:12:15
2178 +dnl ---------------
2179 +dnl Construct the list of include-options according to whether we're building
2180 +dnl in the source directory or using '--srcdir=DIR' option. If we're building
2181 +dnl with gcc, don't append the includedir if it happens to be /usr/include,
2182 +dnl since that usually breaks gcc's shadow-includes.
2183 +AC_DEFUN([CF_INCLUDE_DIRS],
2185 +CPPFLAGS="-I. -I../include $CPPFLAGS"
2186 +if test "$srcdir" != "."; then
2187 + CPPFLAGS="-I\$(srcdir)/../include $CPPFLAGS"
2189 +if test "$GCC" != yes; then
2190 + CPPFLAGS="$CPPFLAGS -I\$(includedir)"
2191 +elif test "$includedir" != "/usr/include"; then
2192 + if test "$includedir" = '${prefix}/include' ; then
2193 + if test $prefix != /usr ; then
2194 + CPPFLAGS="$CPPFLAGS -I\$(includedir)"
2197 + CPPFLAGS="$CPPFLAGS -I\$(includedir)"
2202 +dnl ---------------------------------------------------------------------------
2203 +dnl CF_ISASCII version: 3 updated: 2000/08/12 23:18:52
2205 +dnl Check if we have either a function or macro for 'isascii()'.
2206 +AC_DEFUN([CF_ISASCII],
2208 +AC_MSG_CHECKING(for isascii)
2209 +AC_CACHE_VAL(cf_cv_have_isascii,[
2210 + AC_TRY_LINK([#include <ctype.h>],[int x = isascii(' ')],
2211 + [cf_cv_have_isascii=yes],
2212 + [cf_cv_have_isascii=no])
2214 +AC_MSG_RESULT($cf_cv_have_isascii)
2215 +test "$cf_cv_have_isascii" = yes && AC_DEFINE(HAVE_ISASCII)
2217 +dnl ---------------------------------------------------------------------------
2218 +dnl CF_LIBUTF8 version: 2 updated: 2002/01/19 22:51:32
2220 +dnl Check for libutf8
2221 +AC_DEFUN([CF_LIBUTF8],
2223 +AC_CACHE_CHECK(for putwc in libutf8,cf_cv_libutf8,[
2224 + cf_save_LIBS="$LIBS"
2225 + LIBS="-lutf8 $LIBS"
2227 +#include <libutf8.h>],[putwc(0,0);],
2228 + [cf_cv_libutf8=yes],
2229 + [cf_cv_libutf8=no])
2230 + LIBS="$cf_save_LIBS"
2233 +if test "$cf_cv_libutf8" = yes ; then
2234 + AC_DEFINE(HAVE_LIBUTF8_H)
2235 + LIBS="-lutf8 $LIBS"
2238 +dnl ---------------------------------------------------------------------------
2239 +dnl CF_LIB_PREFIX version: 7 updated: 2001/01/12 01:23:48
2241 +dnl Compute the library-prefix for the given host system
2242 +dnl $1 = variable to set
2243 +AC_DEFUN([CF_LIB_PREFIX],
2245 + case $cf_cv_system_name in
2246 + OS/2*) LIB_PREFIX='' ;;
2247 + os2*) LIB_PREFIX='' ;;
2248 + *) LIB_PREFIX='lib' ;;
2250 +ifelse($1,,,[$1=$LIB_PREFIX])
2251 + AC_SUBST(LIB_PREFIX)
2253 +dnl ---------------------------------------------------------------------------
2254 +dnl CF_LIB_RULES version: 30 updated: 2004/01/10 15:50:50
2256 +dnl Append definitions and rules for the given models to the subdirectory
2257 +dnl Makefiles, and the recursion rule for the top-level Makefile. If the
2258 +dnl subdirectory is a library-source directory, modify the LIBRARIES list in
2259 +dnl the corresponding makefile to list the models that we'll generate.
2261 +dnl For shared libraries, make a list of symbolic links to construct when
2262 +dnl generating each library. The convention used for Linux is the simplest
2264 +dnl lib<name>.so ->
2265 +dnl lib<name>.so.<major> ->
2266 +dnl lib<name>.so.<maj>.<minor>
2267 +AC_DEFUN([CF_LIB_RULES],
2269 +CF_LIB_PREFIX(cf_prefix)
2270 +AC_REQUIRE([CF_SUBST_NCURSES_VERSION])
2271 +for cf_dir in $SRC_SUBDIRS
2273 + if test -f $srcdir/$cf_dir/modules; then
2278 + for cf_item in $CF_LIST_MODELS
2280 + CF_LIB_SUFFIX($cf_item,cf_suffix)
2281 + if test $cf_item = shared ; then
2282 + if test "$cf_cv_do_symlinks" = yes ; then
2283 + case "$cf_cv_shlib_version" in #(vi
2285 + case "$cf_cv_system_name" in #(vi
2286 + darwin*) cf_suffix='.$(REL_VERSION)'"$cf_suffix" ;; #(vi
2287 + *) cf_suffix="$cf_suffix"'.$(REL_VERSION)' ;;
2291 + case "$cf_cv_system_name" in #(vi
2292 + darwin*) cf_suffix='.$(ABI_VERSION)'"$cf_suffix" ;; #(vi
2293 + *) cf_suffix="$cf_suffix"'.$(ABI_VERSION)' ;;
2298 + # cygwin needs import library, and has unique naming convention
2299 + # use autodetected ${cf_prefix} for import lib and static lib, but
2300 + # use 'cyg' prefix for shared lib.
2301 + if test $cf_cv_shlib_version = cygdll ; then
2302 + SHARED_LIB="../lib/cyg${cf_dir}\$(ABI_VERSION).dll"
2303 + IMPORT_LIB="../lib/${cf_prefix}${cf_dir}.dll.a"
2304 + LIBS_TO_MAKE="$LIBS_TO_MAKE \$(SHARED_LIB) \$(IMPORT_LIB)"
2308 + LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
2311 + if test $cf_dir = ncurses ; then
2312 + cf_subsets="$LIB_SUBSETS"
2313 + cf_termlib=`echo "$cf_subsets" |sed -e 's/ .*$//'`
2314 + if test "$cf_termlib" != "$cf_subsets" ; then
2315 + cf_item=`echo $LIBS_TO_MAKE |sed -e s%$LIB_NAME%$TINFO_NAME%g`
2316 + LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
2319 + cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
2322 + sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
2323 + -e "s%@IMPORT_LIB@%$IMPORT_LIB%" \
2324 + -e "s%@SHARED_LIB@%$SHARED_LIB%" \
2325 + $cf_dir/Makefile >$cf_dir/Makefile.out
2326 + mv $cf_dir/Makefile.out $cf_dir/Makefile
2328 + $AWK -f $srcdir/mk-0th.awk \
2329 + libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
2330 + $srcdir/$cf_dir/modules >>$cf_dir/Makefile
2332 + for cf_subset in $cf_subsets
2335 + for cf_item in $CF_LIST_MODELS
2337 + echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
2338 + CF_UPPER(CF_ITEM,$cf_item)
2339 + CF_LIB_SUFFIX($cf_item,cf_suffix)
2340 + CF_OBJ_SUBDIR($cf_item,cf_subdir)
2342 + # These dependencies really are for development, not
2343 + # builds, but they are useful in porting, too.
2344 + cf_depend="../include/ncurses_cfg.h"
2345 + if test "$srcdir" = "."; then
2348 + cf_reldir="\$(srcdir)"
2351 + if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
2352 + cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
2353 + elif test -f $srcdir/$cf_dir/curses.priv.h; then
2354 + cf_depend="$cf_depend $cf_reldir/curses.priv.h"
2357 + $AWK -f $srcdir/mk-1st.awk \
2359 + traces=$LIB_TRACING \
2361 + model=$cf_subdir \
2362 + prefix=$cf_prefix \
2363 + suffix=$cf_suffix \
2364 + subset=$cf_subset \
2365 + ShlibVer=$cf_cv_shlib_version \
2366 + ShlibVerInfix=$cf_cv_shlib_version_infix \
2367 + DoLinks=$cf_cv_do_symlinks \
2368 + rmSoLocs=$cf_cv_rm_so_locs \
2369 + ldconfig="$LDCONFIG" \
2370 + overwrite=$WITH_OVERWRITE \
2371 + depend="$cf_depend" \
2373 + $srcdir/$cf_dir/modules >>$cf_dir/Makefile
2374 + for cf_subdir2 in $cf_subdirs lib
2376 + test $cf_subdir = $cf_subdir2 && break
2378 + test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
2379 + $AWK -f $srcdir/mk-2nd.awk \
2381 + traces=$LIB_TRACING \
2383 + model=$cf_subdir \
2384 + subset=$cf_subset \
2387 + $srcdir/$cf_dir/modules >>$cf_dir/Makefile
2388 + cf_subdirs="$cf_subdirs $cf_subdir"
2393 + echo ' cd '$cf_dir' && $(MAKE) $(CF_MFLAGS) [$]@' >>Makefile
2396 +for cf_dir in $SRC_SUBDIRS
2398 + if test -f $cf_dir/Makefile ; then
2401 + echo 'libs \' >> Makefile
2402 + echo 'install.libs \' >> Makefile
2403 + echo 'uninstall.libs ::' >> Makefile
2404 + echo ' cd '$cf_dir' && $(MAKE) $(CF_MFLAGS) [$]@' >> Makefile
2409 + if test -f $srcdir/$cf_dir/modules; then
2411 + if test -f $srcdir/$cf_dir/headers; then
2412 +cat >> Makefile <<CF_EOF
2413 +install.includes \\
2414 +uninstall.includes \\
2417 +if test "$cf_dir" != "c++" ; then
2418 +echo 'lint \' >> Makefile
2420 +cat >> Makefile <<CF_EOF
2426 +uninstall.$cf_dir ::
2427 + cd $cf_dir && \$(MAKE) \$(CF_MFLAGS) \[$]@
2429 + elif test -f $srcdir/$cf_dir/headers; then
2430 +cat >> Makefile <<CF_EOF
2435 +install.includes \\
2436 +uninstall.includes ::
2437 + cd $cf_dir && \$(MAKE) \$(CF_MFLAGS) \[$]@
2442 +cat >> Makefile <<CF_EOF
2446 +$MAKE_TERMINFO cd misc && \$(MAKE) \$(CF_MFLAGS) \[$]@
2450 + cd man && \$(MAKE) \$(CF_MFLAGS) \[$]@
2453 + rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
2454 + rm -f headers.sh headers.sed
2455 + rm -rf \$(DIRS_TO_MAKE)
2458 +# Special case: tack's manpage lives in its own directory.
2459 +if test -d tack ; then
2460 +if test -f $srcdir/$tack.h; then
2461 +cat >> Makefile <<CF_EOF
2465 + cd tack && \$(MAKE) \$(CF_MFLAGS) \[$]@
2470 +dnl If we're installing into a subdirectory of /usr/include, etc., we should
2471 +dnl prepend the subdirectory's name to the "#include" paths. It won't hurt
2472 +dnl anything, and will make it more standardized. It's awkward to decide this
2473 +dnl at configuration because of quoting, so we'll simply make all headers
2474 +dnl installed via a script that can do the right thing.
2476 +rm -f headers.sed headers.sh
2478 +dnl ( generating this script makes the makefiles a little tidier :-)
2479 +echo creating headers.sh
2480 +cat >headers.sh <<CF_EOF
2482 +# This shell script is generated by the 'configure' script. It is invoked in a
2483 +# subdirectory of the build tree. It generates a sed-script in the parent
2484 +# directory that is used to adjust includes for header files that reside in a
2485 +# subdirectory of /usr/include, etc.
2487 +while test \[$]# != 3
2489 +PRG="\$PRG \[$]1"; shift
2494 +TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
2495 +TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
2496 +echo installing \$SRC in \$DST
2498 +if test $WITH_CURSES_H = yes; then
2499 + cat >>headers.sh <<CF_EOF
2502 + END=\`basename \$DST\`
2503 + for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
2505 + NAME=\`basename \$i\`
2506 + echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
2510 + echo "" >> \$TMPSED
2515 + cat >>headers.sh <<CF_EOF
2518 + END=\`basename \$DST\`
2519 + for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
2521 + NAME=\`basename \$i\`
2522 + if test "\$NAME" = "curses.h"
2524 + echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
2527 + echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
2531 + echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
2536 +cat >>headers.sh <<CF_EOF
2538 +sed -f \$TMPSED \$SRC > \$TMPSRC
2539 +NAME=\`basename \$SRC\`
2541 +if test $WITH_CURSES_H != yes; then
2542 + cat >>headers.sh <<CF_EOF
2543 +test "\$NAME" = "curses.h" && NAME=ncurses.h
2546 +cat >>headers.sh <<CF_EOF
2547 +# Just in case someone gzip'd manpages, remove the conflicting copy.
2548 +test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
2550 +eval \$PRG \$TMPSRC \$DST/\$NAME
2551 +rm -f \$TMPSRC \$TMPSED
2554 +chmod 0755 headers.sh
2556 +for cf_dir in $SRC_SUBDIRS
2558 + if test -f $srcdir/$cf_dir/headers; then
2559 + cat >>$cf_dir/Makefile <<CF_EOF
2560 +\$(DESTDIR)\$(includedir) :
2561 + sh \$(srcdir)/../mkinstalldirs \[$]@
2565 +install.includes :: \$(AUTO_SRC) \$(DESTDIR)\$(includedir) \\
2568 + for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`
2570 + test -n "$j" && echo " $j \\" >>$cf_dir/Makefile
2573 + echo " $j" >>$cf_dir/Makefile
2574 + for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`
2576 + echo " @ (cd \$(DESTDIR)\$(includedir) && rm -f `basename $i`) ; ../headers.sh \$(INSTALL_DATA) \$(DESTDIR)\$(includedir) \$(srcdir) $i" >>$cf_dir/Makefile
2577 + test $i = curses.h && test $WITH_CURSES_H = yes && echo " @ (cd \$(DESTDIR)\$(includedir) && rm -f ncurses.h && \$(LN_S) curses.h ncurses.h)" >>$cf_dir/Makefile
2580 + cat >>$cf_dir/Makefile <<CF_EOF
2584 +uninstall.includes ::
2586 + for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`
2589 + echo " -@ (cd \$(DESTDIR)\$(includedir) && rm -f $i)" >>$cf_dir/Makefile
2590 + test $i = curses.h && echo " -@ (cd \$(DESTDIR)\$(includedir) && rm -f ncurses.h)" >>$cf_dir/Makefile
2594 + if test -f $srcdir/$cf_dir/modules; then
2595 + if test "$cf_dir" != "c++" ; then
2596 + cat >>$cf_dir/Makefile <<"CF_EOF"
2597 +depend : $(AUTO_SRC)
2598 + makedepend -- $(CPPFLAGS) -- $(C_SRC)
2600 +# DO NOT DELETE THIS LINE -- make depend depends on it.
2607 +dnl ---------------------------------------------------------------------------
2608 +dnl CF_LIB_SUFFIX version: 13 updated: 2003/11/01 16:09:07
2610 +dnl Compute the library file-suffix from the given model name
2611 +dnl $1 = model name
2612 +dnl $2 = variable to set
2613 +dnl The variable $LIB_SUFFIX, if set, prepends the variable to set.
2614 +AC_DEFUN([CF_LIB_SUFFIX],
2616 + AC_REQUIRE([CF_SUBST_NCURSES_VERSION])
2618 + libtool) $2='.la' ;;
2619 + normal) $2='.a' ;;
2620 + debug) $2='_g.a' ;;
2621 + profile) $2='_p.a' ;;
2623 + case $cf_cv_system_name in
2624 + cygwin*) $2='.dll' ;;
2625 + darwin*) $2='.dylib' ;;
2628 + ia64*) $2='.so' ;;
2635 + test -n "$LIB_SUFFIX" && $2="${LIB_SUFFIX}[$]{$2}"
2637 +dnl ---------------------------------------------------------------------------
2638 +dnl CF_LIB_TYPE version: 4 updated: 2000/10/20 22:57:49
2640 +dnl Compute the string to append to -library from the given model name
2641 +dnl $1 = model name
2642 +dnl $2 = variable to set
2643 +dnl The variable $LIB_SUFFIX, if set, prepends the variable to set.
2644 +AC_DEFUN([CF_LIB_TYPE],
2650 + profile) $2='_p' ;;
2653 + test -n "$LIB_SUFFIX" && $2="${LIB_SUFFIX}[$]{$2}"
2655 +dnl ---------------------------------------------------------------------------
2656 +dnl CF_LINK_DATAONLY version: 6 updated: 2003/02/02 01:41:46
2657 +dnl ----------------
2658 +dnl Some systems have a non-ANSI linker that doesn't pull in modules that have
2659 +dnl only data (i.e., no functions), for example NeXT. On those systems we'll
2660 +dnl have to provide wrappers for global tables to ensure they're linked
2662 +AC_DEFUN([CF_LINK_DATAONLY],
2664 +AC_MSG_CHECKING([if data-only library module links])
2665 +AC_CACHE_VAL(cf_cv_link_dataonly,[
2667 + cat >conftest.$ac_ext <<EOF
2668 +#line __oline__ "configure"
2669 +int testdata[[3]] = { 123, 456, 789 };
2671 + if AC_TRY_EVAL(ac_compile) ; then
2672 + mv conftest.o data.o && \
2673 + ( $AR $AR_OPTS conftest.a data.o ) 2>&AC_FD_CC 1>/dev/null
2675 + rm -f conftest.$ac_ext data.o
2676 + cat >conftest.$ac_ext <<EOF
2677 +#line __oline__ "configure"
2681 + exit(1); /* I'm told this linker is broken */
2683 + extern int testdata[[3]];
2684 + return testdata[[0]] == 123
2685 + && testdata[[1]] == 456
2686 + && testdata[[2]] == 789;
2690 + if AC_TRY_EVAL(ac_compile); then
2691 + mv conftest.o func.o && \
2692 + ( $AR $AR_OPTS conftest.a func.o ) 2>&AC_FD_CC 1>/dev/null
2694 + rm -f conftest.$ac_ext func.o
2695 + ( eval $RANLIB conftest.a ) 2>&AC_FD_CC >/dev/null
2696 + cf_saveLIBS="$LIBS"
2697 + LIBS="conftest.a $LIBS"
2701 + extern int testfunc();
2702 + exit (!testfunc());
2705 + [cf_cv_link_dataonly=yes],
2706 + [cf_cv_link_dataonly=no],
2707 + [cf_cv_link_dataonly=unknown])
2708 + LIBS="$cf_saveLIBS"
2710 +AC_MSG_RESULT($cf_cv_link_dataonly)
2712 +if test "$cf_cv_link_dataonly" = no ; then
2713 + AC_DEFINE(BROKEN_LINKER)
2718 +dnl ---------------------------------------------------------------------------
2719 +dnl CF_LINK_FUNCS version: 5 updated: 2003/02/02 01:41:46
2721 +dnl Most Unix systems have both link and symlink, a few don't have symlink.
2722 +dnl A few non-Unix systems implement symlink, but not link.
2723 +dnl A few non-systems implement neither (or have nonfunctional versions).
2724 +AC_DEFUN([CF_LINK_FUNCS],
2730 +if test "$cross_compiling" = yes ; then
2735 + AC_CACHE_CHECK(if link/symlink functions work,cf_cv_link_funcs,[
2737 + for cf_func in link symlink ; do
2739 +#include <sys/types.h>
2740 +#include <sys/stat.h>
2741 +#ifdef HAVE_UNISTD_H
2742 +#include <unistd.h>
2747 + char *src = "config.log";
2748 + char *dst = "conftest.chk";
2749 + struct stat src_sb;
2750 + struct stat dst_sb;
2752 + stat(src, &src_sb);
2753 + fail = ($cf_func("config.log", "conftest.chk") < 0)
2754 + || (stat(dst, &dst_sb) < 0)
2755 + || (dst_sb.st_mtime != src_sb.st_mtime);
2764 + cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
2765 + eval 'ac_cv_func_'$cf_func'=yes'],[
2766 + eval 'ac_cv_func_'$cf_func'=no'],[
2767 + eval 'ac_cv_func_'$cf_func'=error'])
2769 + test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
2771 + test "$ac_cv_func_link" = yes && AC_DEFINE(HAVE_LINK)
2772 + test "$ac_cv_func_symlink" = yes && AC_DEFINE(HAVE_SYMLINK)
2775 +dnl ---------------------------------------------------------------------------
2776 +dnl CF_MAKEFLAGS version: 9 updated: 2001/12/30 18:17:27
2778 +dnl Some 'make' programs support $(MAKEFLAGS), some $(MFLAGS), to pass 'make'
2779 +dnl options to lower-levels. It's very useful for "make -n" -- if we have it.
2780 +dnl (GNU 'make' does both, something POSIX 'make', which happens to make the
2781 +dnl $(MAKEFLAGS) variable incompatible because it adds the assignments :-)
2782 +AC_DEFUN([CF_MAKEFLAGS],
2784 +AC_CACHE_CHECK(for makeflags variable, cf_cv_makeflags,[
2785 + cf_cv_makeflags=''
2786 + for cf_option in '-$(MAKEFLAGS)' '$(MFLAGS)'
2788 + cat >cf_makeflags.tmp <<CF_EOF
2791 + @ echo '.$cf_option'
2793 + cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null`
2794 + case "$cf_result" in
2796 + cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
2797 + case "$cf_result" in
2798 + .*CC=*) cf_cv_makeflags=
2800 + *) cf_cv_makeflags=$cf_option
2805 + *) echo no match "$cf_result"
2809 + rm -f cf_makeflags.tmp
2812 +AC_SUBST(cf_cv_makeflags)
2814 +dnl ---------------------------------------------------------------------------
2815 +dnl CF_MAKE_TAGS version: 2 updated: 2000/10/04 09:18:40
2817 +dnl Generate tags/TAGS targets for makefiles. Do not generate TAGS if we have
2818 +dnl a monocase filesystem.
2819 +AC_DEFUN([CF_MAKE_TAGS],[
2820 +AC_REQUIRE([CF_MIXEDCASE_FILENAMES])
2821 +AC_CHECK_PROG(MAKE_LOWER_TAGS, ctags, yes, no)
2823 +if test "$cf_cv_mixedcase" = yes ; then
2824 + AC_CHECK_PROG(MAKE_UPPER_TAGS, etags, yes, no)
2826 + MAKE_UPPER_TAGS=no
2829 +if test "$MAKE_UPPER_TAGS" = yes ; then
2832 + MAKE_UPPER_TAGS="#"
2834 +AC_SUBST(MAKE_UPPER_TAGS)
2836 +if test "$MAKE_LOWER_TAGS" = yes ; then
2839 + MAKE_LOWER_TAGS="#"
2841 +AC_SUBST(MAKE_LOWER_TAGS)
2843 +dnl ---------------------------------------------------------------------------
2844 +dnl CF_MANPAGE_FORMAT version: 7 updated: 2003/12/20 19:30:34
2845 +dnl -----------------
2846 +dnl Option to allow user to override automatic configuration of manpage format.
2847 +dnl There are several special cases:
2849 +dnl gzip - man checks for, can display gzip'd files
2850 +dnl compress - man checks for, can display compressed files
2851 +dnl BSDI - files in the cat-directories are suffixed ".0"
2852 +dnl formatted - installer should format (put files in cat-directory)
2853 +dnl catonly - installer should only format, e.g., for a turnkey system.
2855 +dnl There are other configurations which this macro does not test, e.g., HPUX's
2856 +dnl compressed manpages (but uncompressed manpages are fine, and HPUX's naming
2857 +dnl convention would not match our use).
2858 +AC_DEFUN([CF_MANPAGE_FORMAT],
2860 +AC_REQUIRE([CF_PATHSEP])
2861 +AC_MSG_CHECKING(format of man-pages)
2863 +AC_ARG_WITH(manpage-format,
2864 + [ --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
2865 + optionally formatted/catonly, e.g., gzip,formatted],
2866 + [MANPAGE_FORMAT=$withval],
2867 + [MANPAGE_FORMAT=unknown])
2869 +test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
2870 +MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
2874 +case $MANPAGE_FORMAT in
2876 + if test -z "$MANPATH" ; then
2877 + MANPATH="/usr/man:/usr/share/man"
2880 + # look for the 'date' man-page (it's most likely to be installed!)
2886 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATHSEP}"
2887 + for cf_dir in $MANPATH; do
2888 + test -z "$cf_dir" && cf_dir=/usr/man
2889 + for cf_name in $cf_dir/man*/$cf_example.[[01]]* $cf_dir/cat*/$cf_example.[[01]]* $cf_dir/man*/$cf_example $cf_dir/cat*/$cf_example
2891 + cf_test=`echo $cf_name | sed -e 's/*//'`
2892 + if test "x$cf_test" = "x$cf_name" ; then
2894 + case "$cf_name" in
2895 + *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
2896 + *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
2897 + *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
2898 + *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
2901 + case "$cf_name" in
2912 + # if we found a match in either man* or cat*, stop looking
2913 + if test -n "$MANPAGE_FORMAT" ; then
2915 + test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
2916 + test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
2917 + case "$cf_name" in
2922 + test $cf_found=yes && break
2925 + # only check the first directory in $MANPATH where we find manpages
2926 + if test -n "$MANPAGE_FORMAT" ; then
2930 + # if we did not find the example, just assume it is normal
2931 + test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
2932 + IFS="$ac_save_ifs"
2935 + for cf_option in $MANPAGE_FORMAT; do
2936 + case $cf_option in #(vi
2937 + gzip|compress|BSDI|normal|formatted|catonly)
2940 + cf_unknown="$cf_unknown $cf_option"
2947 +AC_MSG_RESULT($MANPAGE_FORMAT)
2948 +if test -n "$cf_unknown" ; then
2949 + AC_MSG_WARN(Unexpected manpage-format $cf_unknown)
2952 +dnl ---------------------------------------------------------------------------
2953 +dnl CF_MANPAGE_RENAMES version: 6 updated: 2002/01/19 22:51:32
2954 +dnl ------------------
2955 +dnl The Debian people have their own naming convention for manpages. This
2956 +dnl option lets us override the name of the file containing renaming, or
2957 +dnl disable it altogether.
2958 +AC_DEFUN([CF_MANPAGE_RENAMES],
2960 +AC_MSG_CHECKING(for manpage renaming)
2962 +AC_ARG_WITH(manpage-renames,
2963 + [ --with-manpage-renames specify manpage-renaming],
2964 + [MANPAGE_RENAMES=$withval],
2965 + [MANPAGE_RENAMES=yes])
2967 +case ".$MANPAGE_RENAMES" in #(vi
2971 + # Debian 'man' program?
2972 + if test -f /etc/debian_version ; then
2973 + MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
2975 + MANPAGE_RENAMES=no
2980 +if test "$MANPAGE_RENAMES" != no ; then
2981 + if test -f $srcdir/man/$MANPAGE_RENAMES ; then
2982 + MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
2983 + elif test ! -f $MANPAGE_RENAMES ; then
2984 + AC_MSG_ERROR(not a filename: $MANPAGE_RENAMES)
2987 + test ! -d man && mkdir man
2989 + # Construct a sed-script to perform renaming within man-pages
2990 + if test -n "$MANPAGE_RENAMES" ; then
2991 + test ! -d man && mkdir man
2992 + sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >man/edit_man.sed
2996 +AC_MSG_RESULT($MANPAGE_RENAMES)
2997 +AC_SUBST(MANPAGE_RENAMES)
2999 +dnl ---------------------------------------------------------------------------
3000 +dnl CF_MANPAGE_SYMLINKS version: 4 updated: 2003/12/13 18:01:58
3001 +dnl -------------------
3002 +dnl Some people expect each tool to make all aliases for manpages in the
3003 +dnl man-directory. This accommodates the older, less-capable implementations
3004 +dnl of 'man', and is optional.
3005 +AC_DEFUN([CF_MANPAGE_SYMLINKS],
3007 +AC_MSG_CHECKING(if manpage aliases will be installed)
3009 +AC_ARG_WITH(manpage-aliases,
3010 + [ --with-manpage-aliases specify manpage-aliases using .so],
3011 + [MANPAGE_ALIASES=$withval],
3012 + [MANPAGE_ALIASES=yes])
3014 +AC_MSG_RESULT($MANPAGE_ALIASES)
3016 +if test "$LN_S" = "ln -s"; then
3017 + cf_use_symlinks=yes
3019 + cf_use_symlinks=no
3022 +MANPAGE_SYMLINKS=no
3023 +if test "$MANPAGE_ALIASES" = yes ; then
3024 +AC_MSG_CHECKING(if manpage symlinks should be used)
3026 +AC_ARG_WITH(manpage-symlinks,
3027 + [ --with-manpage-symlinks specify manpage-aliases using symlinks],
3028 + [MANPAGE_SYMLINKS=$withval],
3029 + [MANPAGE_SYMLINKS=$cf_use_symlinks])
3031 +if test "$$cf_use_symlinks" = no; then
3032 +if test "$MANPAGE_SYMLINKS" = yes ; then
3033 + AC_MSG_WARN(cannot make symlinks, will use .so files)
3034 + MANPAGE_SYMLINKS=no
3038 +AC_MSG_RESULT($MANPAGE_SYMLINKS)
3042 +dnl ---------------------------------------------------------------------------
3043 +dnl CF_MANPAGE_TBL version: 3 updated: 2002/01/19 22:51:32
3045 +dnl This option causes manpages to be run through tbl(1) to generate tables
3047 +AC_DEFUN([CF_MANPAGE_TBL],
3049 +AC_MSG_CHECKING(for manpage tbl)
3051 +AC_ARG_WITH(manpage-tbl,
3052 + [ --with-manpage-tbl specify manpage processing with tbl],
3053 + [MANPAGE_TBL=$withval],
3056 +AC_MSG_RESULT($MANPAGE_TBL)
3058 +dnl ---------------------------------------------------------------------------
3059 +dnl CF_MAN_PAGES version: 27 updated: 2003/12/20 20:39:45
3061 +dnl Try to determine if the man-pages on the system are compressed, and if
3062 +dnl so, what format is used. Use this information to construct a script that
3063 +dnl will install man-pages.
3064 +AC_DEFUN([CF_MAN_PAGES],
3068 +CF_MANPAGE_SYMLINKS
3071 + if test "$prefix" = "NONE" ; then
3072 + cf_prefix="$ac_default_prefix"
3074 + cf_prefix="$prefix"
3077 + case "$MANPAGE_FORMAT" in # (vi
3082 + *formatted*) # (vi
3092 +test ! -d man && mkdir man
3096 +case "$MANPAGE_FORMAT" in #(vi
3099 + cf_compress=compress
3107 +cf_edit_man=man/edit_man.sh
3109 +cat >$cf_edit_man <<CF_EOF
3111 +# this script is generated by the configure-script CF_MAN_PAGES macro.
3112 +prefix="$cf_prefix"
3114 +NCURSES_OSPEED="$NCURSES_OSPEED"
3115 +TERMINFO="$TERMINFO"
3116 +MKDIRS="sh `cd $srcdir && pwd`/mkinstalldirs"
3118 +INSTALL_DATA="$INSTALL_DATA"
3119 +transform="$program_transform_name"
3121 +TMP=\${TMPDIR-/tmp}/man\$\$
3122 +trap "rm -f \$TMP" 0 1 2 5 15
3136 +if test "\$form" = normal ; then
3137 + if test "$cf_format" = yes ; then
3138 + if test "$cf_inboth" = no ; then
3139 + sh \[$]0 format \$verb \$mandir \$srcdir \[$]*
3143 + cf_subdir=\$mandir/man
3144 + cf_tables=$MANPAGE_TBL
3146 + cf_subdir=\$mandir/cat
3150 +# process the list of source-files
3151 +for i in \[$]* ; do
3153 +*.orig|*.rej) ;; #(vi
3155 + section=\`expr "\$i" : '.*\\.\\([[0-9]]\\)[[xm]]*'\`;
3156 + if test \$verb = installing ; then
3157 + if test ! -d \$cf_subdir\${section} ; then
3158 + \$MKDIRS \$cf_subdir\$section
3162 + source=\`basename \$i\`
3164 + test ! -f \$inalias && inalias="\$srcdir/\$inalias"
3165 + if test ! -f \$inalias ; then
3166 + echo .. skipped \$source
3171 +if test "$MANPAGE_ALIASES" != no ; then
3172 +cat >>$cf_edit_man <<CF_EOF
3173 + aliases=\`sed -f \$srcdir/manlinks.sed \$inalias | sort -u\`
3177 +if test "$MANPAGE_RENAMES" = no ; then
3178 +cat >>$cf_edit_man <<CF_EOF
3179 + # perform program transformations for section 1 man pages
3180 + if test \$section = 1 ; then
3181 + target=\$cf_subdir\${section}/\`echo \$source|sed "\${transform}"\`
3183 + target=\$cf_subdir\${section}/\$source
3187 +cat >>$cf_edit_man <<CF_EOF
3188 + target=\`grep "^\$source" $MANPAGE_RENAMES | $AWK '{print \[$]2}'\`
3189 + if test -z "\$target" ; then
3190 + echo '? missing rename for '\$source
3193 + target="\$cf_subdir\${section}/\${target}"
3197 + # replace variables in man page
3201 +cat >>$cf_edit_man <<CF_EOF
3202 + prog_$cf_name=\`echo $cf_name|sed "\${transform}"\`
3206 +cat >>$cf_edit_man <<CF_EOF
3207 + sed -e "s,@DATADIR@,\$datadir," \\
3208 + -e "s,@TERMINFO@,\$TERMINFO," \\
3209 + -e "s,@NCURSES_OSPEED@,\$NCURSES_OSPEED," \\
3215 + cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3216 +cat >>$cf_edit_man <<CF_EOF
3217 + -e "s,@$cf_NAME@,\$prog_$cf_name," \\
3222 +if test -f $MANPAGE_RENAMES ; then
3223 +cat >>$cf_edit_man <<CF_EOF
3224 + < \$i | sed -f $srcdir/edit_man.sed >\$TMP
3227 +cat >>$cf_edit_man <<CF_EOF
3232 +cat >>$cf_edit_man <<CF_EOF
3233 +if test \$cf_tables = yes ; then
3234 + tbl \$TMP >\$TMP.out
3235 + mv \$TMP.out \$TMP
3239 +if test $with_curses_h != yes ; then
3240 +cat >>$cf_edit_man <<CF_EOF
3241 + sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
3242 + mv \$TMP.out \$TMP
3246 +cat >>$cf_edit_man <<CF_EOF
3247 + if test \$form = format ; then
3248 + nroff -man \$TMP >\$TMP.out
3249 + mv \$TMP.out \$TMP
3253 +if test -n "$cf_compress" ; then
3254 +cat >>$cf_edit_man <<CF_EOF
3255 + if test \$verb = installing ; then
3256 + if ( $cf_compress -f \$TMP )
3258 + mv \$TMP.$cf_so_strip \$TMP
3261 + target="\$target.$cf_so_strip"
3265 +case "$MANPAGE_FORMAT" in #(vi
3267 +cat >>$cf_edit_man <<CF_EOF
3268 + if test \$form = format ; then
3269 + # BSDI installs only .0 suffixes in the cat directories
3270 + target="\`echo \$target|sed -e 's/\.[[1-9]]\+[[a-z]]*/.0/'\`"
3276 +cat >>$cf_edit_man <<CF_EOF
3277 + suffix=\`basename \$target | sed -e 's%^[[^.]]*%%'\`
3278 + if test \$verb = installing ; then
3279 + echo \$verb \$target
3280 + \$INSTALL_DATA \$TMP \$target
3281 + test -n "\$aliases" && (
3282 + cd \$cf_subdir\${section} && (
3283 + source=\`echo \$target |sed -e 's%^.*/\([[^/]][[^/]]*/[[^/]][[^/]]*$\)%\1%'\`
3284 + test -n "$cf_so_strip" && source=\`echo \$source |sed -e 's%\.$cf_so_strip\$%%'\`
3285 + target=\`basename \$target\`
3286 + for cf_alias in \$aliases
3288 + if test \$section = 1 ; then
3289 + cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
3292 + if test "$MANPAGE_SYMLINKS" = yes ; then
3293 + if test -f \$cf_alias\${suffix} ; then
3294 + if ( cmp -s \$target \$cf_alias\${suffix} )
3299 + echo .. \$verb alias \$cf_alias\${suffix}
3300 + rm -f \$cf_alias\${suffix}
3301 + $LN_S \$target \$cf_alias\${suffix}
3302 + elif test "\$target" != "\$cf_alias\${suffix}" ; then
3303 + echo ".so \$source" >\$TMP
3305 +if test -n "$cf_compress" ; then
3306 +cat >>$cf_edit_man <<CF_EOF
3307 + if test -n "$cf_so_strip" ; then
3308 + $cf_compress -f \$TMP
3309 + mv \$TMP.$cf_so_strip \$TMP
3313 +cat >>$cf_edit_man <<CF_EOF
3314 + echo .. \$verb alias \$cf_alias\${suffix}
3315 + rm -f \$cf_alias\${suffix}
3316 + \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
3321 + elif test \$verb = removing ; then
3322 + echo \$verb \$target
3324 + test -n "\$aliases" && (
3325 + cd \$cf_subdir\${section} && (
3326 + for cf_alias in \$aliases
3328 + if test \$section = 1 ; then
3329 + cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
3332 + echo .. \$verb alias \$cf_alias\${suffix}
3333 + rm -f \$cf_alias\${suffix}
3345 +if test $cf_inboth = yes ; then
3346 +if test \$form != format ; then
3347 + sh \[$]0 format \$verb \$mandir \$srcdir \[$]*
3353 +chmod 755 $cf_edit_man
3356 +dnl ---------------------------------------------------------------------------
3357 +dnl CF_MATH_LIB version: 5 updated: 2000/05/28 01:39:10
3359 +dnl Checks for libraries. At least one UNIX system, Apple Macintosh
3360 +dnl Rhapsody 5.5, does not have -lm. We cannot use the simpler
3361 +dnl AC_CHECK_LIB(m,sin), because that fails for C++.
3362 +AC_DEFUN([CF_MATH_LIB],
3364 +AC_CACHE_CHECK(if -lm needed for math functions,
3367 + #include <stdio.h>
3370 + [double x = rand(); printf("result = %g\n", ]ifelse($2,,sin(x),$2)[)],
3371 + [cf_cv_need_libm=no],
3372 + [cf_cv_need_libm=yes])])
3373 +if test "$cf_cv_need_libm" = yes
3380 +dnl ---------------------------------------------------------------------------
3381 +dnl CF_MIXEDCASE_FILENAMES version: 3 updated: 2003/09/20 17:07:55
3382 +dnl ----------------------
3383 +dnl Check if the file-system supports mixed-case filenames. If we're able to
3384 +dnl create a lowercase name and see it as uppercase, it doesn't support that.
3385 +AC_DEFUN([CF_MIXEDCASE_FILENAMES],
3387 +AC_CACHE_CHECK(if filesystem supports mixed-case filenames,cf_cv_mixedcase,[
3388 +if test "$cross_compiling" = yes ; then
3389 + case $target_alias in #(vi
3390 + *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3391 + cf_cv_mixedcase=no
3394 + cf_cv_mixedcase=yes
3398 + rm -f conftest CONFTEST
3399 + echo test >conftest
3400 + if test -f CONFTEST ; then
3401 + cf_cv_mixedcase=no
3403 + cf_cv_mixedcase=yes
3405 + rm -f conftest CONFTEST
3408 +test "$cf_cv_mixedcase" = yes && AC_DEFINE(MIXEDCASE_FILENAMES)
3410 +dnl ---------------------------------------------------------------------------
3411 +dnl CF_MKSTEMP version: 3 updated: 2001/11/08 20:59:59
3413 +dnl Check for a working mkstemp. This creates two files, checks that they are
3414 +dnl successfully created and distinct (AmigaOS apparently fails on the last).
3415 +AC_DEFUN([CF_MKSTEMP],[
3416 +AC_CACHE_CHECK(for working mkstemp, cf_cv_func_mkstemp,[
3419 +#include <sys/types.h>
3420 +#include <stdlib.h>
3422 +#include <string.h>
3423 +#include <sys/stat.h>
3426 + char *tmpl = "conftestXXXXXX";
3434 + for (n = 0; n < 2; ++n) {
3435 + strcpy(name[n], tmpl);
3436 + if ((fd = mkstemp(name[n])) >= 0) {
3437 + if (!strcmp(name[n], tmpl)
3438 + || stat(name[n], &sb) != 0
3439 + || (sb.st_mode & S_IFMT) != S_IFREG
3440 + || (sb.st_mode & 077) != 0) {
3447 + && !strcmp(name[0], name[1]))
3451 +],[cf_cv_func_mkstemp=yes
3452 +],[cf_cv_func_mkstemp=no
3453 +],[AC_CHECK_FUNC(mkstemp)
3456 +if test "$cf_cv_func_mkstemp" = yes ; then
3457 + AC_DEFINE(HAVE_MKSTEMP)
3460 +dnl ---------------------------------------------------------------------------
3461 +dnl CF_NUMBER_SYNTAX version: 1 updated: 2003/09/20 18:12:49
3462 +dnl ----------------
3463 +dnl Check if the given variable is a number. If not, report an error.
3464 +dnl $1 is the variable
3465 +dnl $2 is the message
3466 +AC_DEFUN([CF_NUMBER_SYNTAX],[
3467 +if test -n "$1" ; then
3472 + AC_MSG_ERROR($2 is not a number: $1)
3476 + AC_MSG_ERROR($2 value is empty)
3479 +dnl ---------------------------------------------------------------------------
3480 +dnl CF_OBJ_SUBDIR version: 4 updated: 2002/02/23 20:38:31
3482 +dnl Compute the object-directory name from the given model name
3483 +AC_DEFUN([CF_OBJ_SUBDIR],
3486 + libtool) $2='obj_lo' ;;
3487 + normal) $2='objects' ;;
3488 + debug) $2='obj_g' ;;
3489 + profile) $2='obj_p' ;;
3491 + case $cf_cv_system_name in #(vi
3499 +dnl ---------------------------------------------------------------------------
3500 +dnl CF_PATHSEP version: 3 updated: 2001/01/12 01:23:53
3502 +dnl Provide a value for the $PATH and similar separator
3503 +AC_DEFUN([CF_PATHSEP],
3505 + case $cf_cv_system_name in
3506 + os2*) PATHSEP=';' ;;
3509 +ifelse($1,,,[$1=$PATHSEP])
3512 +dnl ---------------------------------------------------------------------------
3513 +dnl CF_PATH_SYNTAX version: 9 updated: 2002/09/17 23:03:38
3515 +dnl Check the argument to see that it looks like a pathname. Rewrite it if it
3516 +dnl begins with one of the prefix/exec_prefix variables, and then again if the
3517 +dnl result begins with 'NONE'. This is necessary to work around autoconf's
3518 +dnl delayed evaluation of those symbols.
3519 +AC_DEFUN([CF_PATH_SYNTAX],[
3520 +case ".[$]$1" in #(vi
3521 +.\[$]\(*\)*|.\'*\'*) #(vi
3525 +.[[a-zA-Z]]:[[\\/]]*) #(vi OS/2 EMX
3527 +.\[$]{*prefix}*) #(vi
3529 + case ".[$]$1" in #(vi
3531 + $1=`echo [$]$1 | sed -e s%NONE%$ac_default_prefix%`
3536 + $1=`echo [$]$1 | sed -e s%NONE%$ac_default_prefix%`
3539 + ifelse($2,,[AC_ERROR([expected a pathname, not \"[$]$1\"])],$2)
3543 +dnl ---------------------------------------------------------------------------
3544 +dnl CF_PREDEFINE version: 1 updated: 2003/07/26 17:53:56
3546 +dnl Add definitions to CPPFLAGS to ensure they're predefined for all compiles.
3548 +dnl $1 = symbol to test
3549 +dnl $2 = value (if any) to use for a predefinition
3550 +AC_DEFUN([CF_PREDEFINE],
3552 +AC_MSG_CHECKING(if we must define $1)
3553 +AC_TRY_COMPILE([#include <sys/types.h>
3557 +#endif],[cf_result=no],[cf_result=yes])
3558 +AC_MSG_RESULT($cf_result)
3560 +if test "$cf_result" = yes ; then
3561 + CPPFLAGS="$CPPFLAGS ifelse($2,,-D$1,[-D$1=$2])"
3562 +elif test "x$2" != "x" ; then
3563 + AC_MSG_CHECKING(checking for compatible value versus $2)
3564 + AC_TRY_COMPILE([#include <sys/types.h>
3568 +#endif],[cf_result=yes],[cf_result=no])
3569 + AC_MSG_RESULT($cf_result)
3570 + if test "$cf_result" = no ; then
3571 + # perhaps we can override it - try...
3572 + CPPFLAGS="$CPPFLAGS -D$1=$2"
3576 +dnl ---------------------------------------------------------------------------
3577 +dnl CF_PROG_EXT version: 10 updated: 2004/01/03 19:28:18
3579 +dnl Compute $PROG_EXT, used for non-Unix ports, such as OS/2 EMX.
3580 +AC_DEFUN([CF_PROG_EXT],
3582 +AC_REQUIRE([CF_CHECK_CACHE])
3583 +case $cf_cv_system_name in
3585 + CFLAGS="$CFLAGS -Zmt"
3586 + CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
3587 + CXXFLAGS="$CXXFLAGS -Zmt"
3588 + # autoconf's macro sets -Zexe and suffix both, which conflict:w
3589 + LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
3599 +test -n "$PROG_EXT" && AC_DEFINE_UNQUOTED(PROG_EXT,"$PROG_EXT")
3601 +dnl ---------------------------------------------------------------------------
3602 +dnl CF_PROG_INSTALL version: 5 updated: 2002/12/21 22:46:07
3603 +dnl ---------------
3604 +dnl Force $INSTALL to be an absolute-path. Otherwise, edit_man.sh and the
3605 +dnl misc/tabset install won't work properly. Usually this happens only when
3606 +dnl using the fallback mkinstalldirs script
3607 +AC_DEFUN([CF_PROG_INSTALL],
3613 + CF_DIRNAME(cf_dir,$INSTALL)
3614 + test -z "$cf_dir" && cf_dir=.
3615 + INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3619 +dnl ---------------------------------------------------------------------------
3620 +dnl CF_PROG_LDCONFIG version: 1 updated: 2003/09/20 17:07:55
3621 +dnl ----------------
3622 +dnl Check for ldconfig, needed to fixup shared libraries that would be built
3623 +dnl and then used in the install.
3624 +AC_DEFUN([CF_PROG_LDCONFIG],[
3625 +if test "$cross_compiling" = yes ; then
3628 +case "$cf_cv_system_name" in #(vi
3630 + test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
3632 +*) LDPATH=$PATH:/sbin:/usr/sbin
3633 + AC_PATH_PROG(LDCONFIG,ldconfig,,$LDPATH)
3639 +dnl ---------------------------------------------------------------------------
3640 +dnl CF_REGEX version: 3 updated: 1997/11/01 14:26:01
3642 +dnl Attempt to determine if we've got one of the flavors of regular-expression
3643 +dnl code that we can support.
3644 +AC_DEFUN([CF_REGEX],
3646 +AC_MSG_CHECKING([for regular-expression headers])
3647 +AC_CACHE_VAL(cf_cv_regex,[
3648 +AC_TRY_LINK([#include <sys/types.h>
3649 +#include <regex.h>],[
3651 + int x = regcomp(p, "", 0);
3652 + int y = regexec(p, "", 0, 0, 0);
3654 + ],[cf_cv_regex="regex.h"],[
3655 + AC_TRY_LINK([#include <regexp.h>],[
3656 + char *p = compile("", "", "", 0);
3657 + int x = step("", "");
3658 + ],[cf_cv_regex="regexp.h"],[
3659 + cf_save_LIBS="$LIBS"
3660 + LIBS="-lgen $LIBS"
3661 + AC_TRY_LINK([#include <regexpr.h>],[
3662 + char *p = compile("", "", "");
3663 + int x = step("", "");
3664 + ],[cf_cv_regex="regexpr.h"],[LIBS="$cf_save_LIBS"])])])
3666 +AC_MSG_RESULT($cf_cv_regex)
3667 +case $cf_cv_regex in
3668 + regex.h) AC_DEFINE(HAVE_REGEX_H_FUNCS) ;;
3669 + regexp.h) AC_DEFINE(HAVE_REGEXP_H_FUNCS) ;;
3670 + regexpr.h) AC_DEFINE(HAVE_REGEXPR_H_FUNCS) ;;
3673 +dnl ---------------------------------------------------------------------------
3674 +dnl CF_SHARED_OPTS version: 30 updated: 2003/12/27 20:48:07
3676 +dnl Attempt to determine the appropriate CC/LD options for creating a shared
3679 +dnl Note: $(LOCAL_LDFLAGS) is used to link executables that will run within the
3680 +dnl build-tree, i.e., by making use of the libraries that are compiled in ../lib
3681 +dnl We avoid compiling-in a ../lib path for the shared library since that can
3682 +dnl lead to unexpected results at runtime.
3683 +dnl $(LOCAL_LDFLAGS2) has the same intention but assumes that the shared libraries
3684 +dnl are compiled in ../../lib
3686 +dnl The variable 'cf_cv_do_symlinks' is used to control whether we configure
3687 +dnl to install symbolic links to the rel/abi versions of shared libraries.
3689 +dnl The variable 'cf_cv_shlib_version' controls whether we use the rel or abi
3690 +dnl version when making symbolic links.
3692 +dnl The variable 'cf_cv_shlib_version_infix' controls whether shared library
3693 +dnl version numbers are infix (ex: libncurses.<ver>.dylib) or postfix
3694 +dnl (ex: libncurses.so.<ver>).
3696 +dnl Some loaders leave 'so_locations' lying around. It's nice to clean up.
3697 +AC_DEFUN([CF_SHARED_OPTS],
3699 + AC_REQUIRE([CF_SUBST_NCURSES_VERSION])
3703 + INSTALL_LIB="-m 644"
3705 + cf_cv_do_symlinks=no
3707 + AC_MSG_CHECKING(if release/abi version should be used for shared libs)
3708 + AC_ARG_WITH(shlib-version,
3709 + [ --with-shlib-version=X Specify rel or abi version for shared libs],
3710 + [test -z "$withval" && withval=auto
3711 + case $withval in #(vi
3713 + cf_cv_shlib_version=auto
3715 + rel|abi|auto|no) #(vi
3716 + cf_cv_shlib_version=$withval
3719 + AC_ERROR([option value must be one of: rel, abi, auto or no])
3722 + ],[cf_cv_shlib_version=auto])
3723 + AC_MSG_RESULT($cf_cv_shlib_version)
3725 + cf_cv_rm_so_locs=no
3727 + # Some less-capable ports of gcc support only -fpic
3729 + if test "$GCC" = yes
3731 + AC_MSG_CHECKING(which $CC option to use)
3732 + cf_save_CFLAGS="$CFLAGS"
3733 + for CC_SHARED_OPTS in -fPIC -fpic ''
3735 + CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
3736 + AC_TRY_COMPILE([#include <stdio.h>],[int x = 1],[break],[])
3738 + AC_MSG_RESULT($CC_SHARED_OPTS)
3739 + CFLAGS="$cf_save_CFLAGS"
3742 + cf_cv_shlib_version_infix=no
3744 + case $cf_cv_system_name in
3746 + MK_SHARED_LIB='$(CC) -o $[@] -Xlinker -soname=`basename $[@]` -nostart -e 0'
3750 + MK_SHARED_LIB='$(CC) -shared -Wl,--out-implib=$(IMPORT_LIB) -Wl,--export-all-symbols -o $(SHARED_LIB)'
3751 + cf_cv_shlib_version=cygdll
3752 + cf_cv_shlib_version_infix=cygdll
3755 + EXTRA_CFLAGS="-no-cpp-precomp"
3756 + CC_SHARED_OPTS="-dynamic"
3757 + MK_SHARED_LIB='$(CC) -dynamiclib -install_name $(DESTDIR)$(libdir)/`basename $[@]` -compatibility_version $(ABI_VERSION) -current_version $(ABI_VERSION) -o $[@]'
3758 + test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
3759 + cf_cv_shlib_version_infix=yes
3762 + # (tested with gcc 2.7.2 -- I don't have c89)
3763 + if test "$GCC" = yes; then
3764 + LD_SHARED_OPTS='-Xlinker +b -Xlinker $(libdir)'
3766 + CC_SHARED_OPTS='+Z'
3767 + LD_SHARED_OPTS='-Wl,+b,$(libdir)'
3769 + MK_SHARED_LIB='$(LD) +b $(libdir) -b -o $[@]'
3770 + # HP-UX shared libraries must be executable, and should be
3771 + # readonly to exploit a quirk in the memory manager.
3772 + INSTALL_LIB="-m 555"
3775 + if test "$cf_cv_ld_rpath" = yes ; then
3776 + cf_ld_rpath_opt="-Wl,-rpath,"
3777 + EXTRA_LDFLAGS="-Wl,-rpath,\$(libdir) $EXTRA_LDFLAGS"
3779 + # tested with IRIX 5.2 and 'cc'.
3780 + if test "$GCC" != yes; then
3781 + CC_SHARED_OPTS='-KPIC'
3783 + MK_SHARED_LIB='$(LD) -shared -rdata_shared -soname `basename $[@]` -o $[@]'
3784 + cf_cv_rm_so_locs=yes
3786 + linux*|gnu*|k*bsd*-gnu)
3787 + if test "$DFT_LWR_MODEL" = "shared" ; then
3788 + LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
3789 + LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
3791 + if test "$cf_cv_ld_rpath" = yes ; then
3792 + cf_ld_rpath_opt="-Wl,-rpath,"
3793 + EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
3795 + test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
3796 + MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $[@] .$(REL_VERSION)`.$(ABI_VERSION),-stats,-lc -o $[@]'
3799 + CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
3800 + MK_SHARED_LIB='$(LD) -Bshareable -soname,`basename $[@].$(ABI_VERSION)` -o $[@]'
3803 + CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
3804 + MK_SHARED_LIB='$(LD) -Bshareable -soname=`basename $[@]` -o $[@]'
3805 + test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
3807 +# This doesn't work - I keep getting spurious references to needing
3808 +# libncurses.so.5.3 when ldd says it's resolved. LOCAL_LDFLAGS2 seems to be
3809 +# no longer used anyway. And the rpath logic isn't relative - so I have to
3810 +# add the local and install lib-directories:
3812 +# if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
3813 +# LOCAL_LDFLAGS="-rpath `pwd`/lib"
3814 +# LOCAL_LDFLAGS2="-rpath \$(libdir) $LOCAL_LDFLAGS"
3815 +# cf_ld_rpath_opt="-rpath "
3816 +# EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
3819 + openbsd*|freebsd*)
3820 + CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
3821 + MK_SHARED_LIB='$(LD) -Bshareable -o $[@]'
3822 + test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
3825 + CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
3826 + test "$cf_cv_ld_rpath" = yes && cf_ld_rpath_opt="-Wl,-rpath,"
3827 + if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
3828 + LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
3829 + LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
3830 + EXTRA_LDFLAGS="-Wl,-rpath,\$(libdir) $EXTRA_LDFLAGS"
3831 + MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $[@] .$(REL_VERSION)`.$(ABI_VERSION) -o $[@]'
3832 + if test "$cf_cv_shlib_version" = auto; then
3833 + if test ! -f /usr/libexec/ld.elf_so; then
3834 + cf_cv_shlib_version=rel
3838 + MK_SHARED_LIB='$(LD) -Bshareable -o $[@]'
3842 + # tested with OSF/1 V3.2 and 'cc'
3843 + # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
3844 + # link with shared libs).
3845 + MK_SHARED_LIB='$(LD) -set_version $(REL_VERSION):$(ABI_VERSION) -expect_unresolved "*" -shared -soname `basename $[@]`'
3848 + MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
3851 + MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $[@]'
3852 + if test "$DFT_LWR_MODEL" = "shared" ; then
3853 + LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
3854 + LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
3856 + if test "$cf_cv_ld_rpath" = yes ; then
3857 + cf_ld_rpath_opt="-rpath"
3858 + # EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
3860 + cf_cv_rm_so_locs=yes
3862 + sco3.2v5*) # (also uw2* and UW7) hops 13-Apr-98
3863 + # tested with osr5.0.5
3864 + if test "$GCC" != yes; then
3865 + CC_SHARED_OPTS='-belf -KPIC'
3867 + MK_SHARED_LIB='$(LD) -dy -G -h `basename $[@] .$(REL_VERSION)`.$(ABI_VERSION) -o [$]@'
3868 + if test "$cf_cv_ld_rpath" = yes ; then
3869 + # only way is to set LD_RUN_PATH but no switch for it
3872 + test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
3873 + LINK_PROGS='LD_RUN_PATH=$(libdir)'
3874 + LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
3877 + # tested with SunOS 4.1.1 and gcc 2.7.0
3878 + if test "$GCC" != yes; then
3879 + CC_SHARED_OPTS='-KPIC'
3881 + MK_SHARED_LIB='$(LD) -assert pure-text -o $[@]'
3882 + test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
3885 + # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
3886 + if test "$GCC" != yes; then
3887 + CC_SHARED_OPTS='-KPIC'
3889 + MK_SHARED_LIB='$(LD) -dy -G -h `basename $[@] .$(REL_VERSION)`.$(ABI_VERSION) -o $[@]'
3890 + if test "$DFT_LWR_MODEL" = "shared" ; then
3891 + LOCAL_LDFLAGS="-R `pwd`/lib:\$(libdir)"
3892 + LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
3894 + if test "$cf_cv_ld_rpath" = yes ; then
3895 + cf_ld_rpath_opt="-R"
3896 + EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
3898 + test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
3900 + sysv5uw7*|unix_sv*)
3901 + # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
3902 + if test "$GCC" != yes; then
3903 + CC_SHARED_OPTS='-KPIC'
3905 + MK_SHARED_LIB='$(LD) -d y -G -o [$]@'
3908 + CC_SHARED_OPTS='unknown'
3909 + MK_SHARED_LIB='echo unknown'
3913 + # This works if the last tokens in $MK_SHARED_LIB are the -o target.
3914 + case "$cf_cv_shlib_version" in #(vi
3916 + case "$MK_SHARED_LIB" in #(vi
3918 + test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
3921 + AC_MSG_WARN(ignored --with-shlib-version)
3927 + if test -n "$cf_ld_rpath_opt" ; then
3928 + AC_MSG_CHECKING(if we need a space after rpath option)
3929 + cf_save_LIBS="$LIBS"
3930 + LIBS="$LIBS ${cf_ld_rpath_opt}$libdir"
3931 + AC_TRY_LINK(, , cf_rpath_space=no, cf_rpath_space=yes)
3932 + LIBS="$cf_save_LIBS"
3933 + AC_MSG_RESULT($cf_rpath_space)
3934 + test "$cf_rpath_space" = yes && cf_ld_rpath_opt="$cf_ld_rpath_opt "
3935 + MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\$(libdir)"
3938 + AC_SUBST(CC_SHARED_OPTS)
3939 + AC_SUBST(LD_SHARED_OPTS)
3940 + AC_SUBST(MK_SHARED_LIB)
3941 + AC_SUBST(LINK_PROGS)
3942 + AC_SUBST(LINK_TESTS)
3943 + AC_SUBST(EXTRA_LDFLAGS)
3944 + AC_SUBST(LOCAL_LDFLAGS)
3945 + AC_SUBST(LOCAL_LDFLAGS2)
3946 + AC_SUBST(INSTALL_LIB)
3948 +dnl ---------------------------------------------------------------------------
3949 +dnl CF_SIZECHANGE version: 8 updated: 2000/11/04 12:22:16
3951 +dnl Check for definitions & structures needed for window size-changing
3952 +dnl FIXME: check that this works with "snake" (HP-UX 10.x)
3953 +AC_DEFUN([CF_SIZECHANGE],
3955 +AC_REQUIRE([CF_STRUCT_TERMIOS])
3956 +AC_CACHE_CHECK(declaration of size-change, cf_cv_sizechange,[
3957 + cf_cv_sizechange=unknown
3958 + cf_save_CPPFLAGS="$CPPFLAGS"
3960 +for cf_opts in "" "NEED_PTEM_H"
3963 + CPPFLAGS="$cf_save_CPPFLAGS"
3964 + test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
3965 + AC_TRY_COMPILE([#include <sys/types.h>
3966 +#ifdef HAVE_TERMIOS_H
3967 +#include <termios.h>
3969 +#ifdef HAVE_TERMIO_H
3970 +#include <termio.h>
3974 +/* This is a workaround for SCO: they neglected to define struct winsize in
3975 + * termios.h -- it's only in termio.h and ptem.h
3977 +#include <sys/stream.h>
3978 +#include <sys/ptem.h>
3980 +#if !defined(sun) || !defined(HAVE_TERMIOS_H)
3981 +#include <sys/ioctl.h>
3985 + struct ttysize win; /* FIXME: what system is this? */
3986 + int y = win.ts_lines;
3987 + int x = win.ts_cols;
3990 + struct winsize win;
3991 + int y = win.ws_row;
3992 + int x = win.ws_col;
3994 + no TIOCGSIZE or TIOCGWINSZ
3995 +#endif /* TIOCGWINSZ */
3996 +#endif /* TIOCGSIZE */
3998 + [cf_cv_sizechange=yes],
3999 + [cf_cv_sizechange=no])
4001 + CPPFLAGS="$cf_save_CPPFLAGS"
4002 + if test "$cf_cv_sizechange" = yes ; then
4003 + echo "size-change succeeded ($cf_opts)" >&AC_FD_CC
4004 + test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
4009 +if test "$cf_cv_sizechange" != no ; then
4010 + AC_DEFINE(HAVE_SIZECHANGE)
4011 + case $cf_cv_sizechange in #(vi
4013 + AC_DEFINE_UNQUOTED($cf_cv_sizechange )
4018 +dnl ---------------------------------------------------------------------------
4019 +dnl CF_SRC_MODULES version: 15 updated: 2004/01/10 16:05:16
4021 +dnl For each parameter, test if the source-directory exists, and if it contains
4022 +dnl a 'modules' file. If so, add to the list $cf_cv_src_modules which we'll
4023 +dnl use in CF_LIB_RULES.
4025 +dnl This uses the configured value to make the lists SRC_SUBDIRS and
4026 +dnl SUB_MAKEFILES which are used in the makefile-generation scheme.
4027 +AC_DEFUN([CF_SRC_MODULES],
4029 +AC_MSG_CHECKING(for src modules)
4031 +# dependencies and linker-arguments for test-programs
4032 +TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
4033 +if test "$DFT_LWR_MODEL" = "libtool"; then
4034 + TEST_ARGS="${TEST_DEPS}"
4036 + TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
4039 +# dependencies and linker-arguments for utility-programs
4040 +test "$with_termlib" != yes && PROG_ARGS="$TEST_ARGS"
4045 + if test -f $srcdir/$cf_dir/modules; then
4047 + # We may/may not have tack in the distribution, though the
4049 + if test $cf_dir = tack ; then
4050 + if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
4055 + if test -z "$cf_cv_src_modules"; then
4056 + cf_cv_src_modules=$cf_dir
4058 + cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
4061 + # Make the ncurses_cfg.h file record the library interface files as
4062 + # well. These are header files that are the same name as their
4063 + # directory. Ncurses is the only library that does not follow
4065 + if test $cf_dir = tack ; then
4067 + elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
4068 + CF_UPPER(cf_have_include,$cf_dir)
4069 + AC_DEFINE_UNQUOTED(HAVE_${cf_have_include}_H)
4070 + AC_DEFINE_UNQUOTED(HAVE_LIB${cf_have_include})
4071 + TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
4072 + if test "$DFT_LWR_MODEL" = "libtool"; then
4073 + TEST_ARGS="${TEST_DEPS}"
4075 + TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
4080 +AC_MSG_RESULT($cf_cv_src_modules)
4081 +TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
4082 +AC_SUBST(TEST_DEPS)
4083 +AC_SUBST(TEST_ARGS)
4085 +PROG_ARGS="-L${LIB_DIR} $PROG_ARGS"
4086 +AC_SUBST(PROG_ARGS)
4088 +SRC_SUBDIRS="man include"
4089 +for cf_dir in $cf_cv_src_modules
4091 + SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
4093 +SRC_SUBDIRS="$SRC_SUBDIRS test"
4094 +test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
4095 +test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
4098 +if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
4099 + SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
4100 + ADA_SUBDIRS="gen src samples"
4104 +for cf_dir in $SRC_SUBDIRS
4106 + SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
4109 +if test -n "$ADA_SUBDIRS"; then
4110 + for cf_dir in $ADA_SUBDIRS
4112 + SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
4114 + AC_SUBST(ADA_SUBDIRS)
4117 +dnl ---------------------------------------------------------------------------
4118 +dnl CF_STDCPP_LIBRARY version: 5 updated: 2000/08/12 23:18:52
4119 +dnl -----------------
4120 +dnl Check for -lstdc++, which is GNU's standard C++ library.
4121 +AC_DEFUN([CF_STDCPP_LIBRARY],
4123 +if test -n "$GXX" ; then
4124 +case $cf_cv_system_name in #(vi
4126 + cf_stdcpp_libname=stdcpp
4129 + cf_stdcpp_libname=stdc++
4132 +AC_CACHE_CHECK(for library $cf_stdcpp_libname,cf_cv_libstdcpp,[
4134 + LIBS="$LIBS -l$cf_stdcpp_libname"
4136 +#include <strstream.h>],[
4138 +strstreambuf foo(buf, sizeof(buf))
4140 + [cf_cv_libstdcpp=yes],
4141 + [cf_cv_libstdcpp=no])
4144 +test "$cf_cv_libstdcpp" = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
4147 +dnl ---------------------------------------------------------------------------
4148 +dnl CF_STRIP_G_OPT version: 3 updated: 2002/12/21 19:25:52
4150 +dnl Remove "-g" option from the compiler options
4151 +AC_DEFUN([CF_STRIP_G_OPT],
4152 +[$1=`echo ${$1} | sed -e 's%-g %%' -e 's%-g$%%'`])dnl
4153 +dnl ---------------------------------------------------------------------------
4154 +dnl CF_STRUCT_SIGACTION version: 3 updated: 2000/08/12 23:18:52
4155 +dnl -------------------
4156 +dnl Check if we need _POSIX_SOURCE defined to use struct sigaction. We'll only
4157 +dnl do this if we've found the sigaction function.
4159 +dnl If needed, define SVR4_ACTION.
4160 +AC_DEFUN([CF_STRUCT_SIGACTION],[
4161 +if test "$ac_cv_func_sigaction" = yes; then
4162 +AC_MSG_CHECKING(whether sigaction needs _POSIX_SOURCE)
4164 +#include <sys/types.h>
4165 +#include <signal.h>],
4166 + [struct sigaction act],
4170 +#define _POSIX_SOURCE
4171 +#include <sys/types.h>
4172 +#include <signal.h>],
4173 + [struct sigaction act],
4175 + AC_DEFINE(SVR4_ACTION)],
4176 + [sigact_bad=unknown])])
4177 +AC_MSG_RESULT($sigact_bad)
4180 +dnl ---------------------------------------------------------------------------
4181 +dnl CF_STRUCT_TERMIOS version: 5 updated: 2000/11/04 12:22:46
4182 +dnl -----------------
4183 +dnl Some machines require _POSIX_SOURCE to completely define struct termios.
4184 +dnl If so, define SVR4_TERMIO
4185 +AC_DEFUN([CF_STRUCT_TERMIOS],[
4186 +AC_CHECK_HEADERS( \
4191 +if test "$ISC" = yes ; then
4192 + AC_CHECK_HEADERS( sys/termio.h )
4194 +if test "$ac_cv_header_termios_h" = yes ; then
4195 + case "$CFLAGS $CPPFLAGS" in
4196 + *-D_POSIX_SOURCE*)
4197 + termios_bad=dunno ;;
4198 + *) termios_bad=maybe ;;
4200 + if test "$termios_bad" = maybe ; then
4201 + AC_MSG_CHECKING(whether termios.h needs _POSIX_SOURCE)
4202 + AC_TRY_COMPILE([#include <termios.h>],
4203 + [struct termios foo; int x = foo.c_iflag],
4206 +#define _POSIX_SOURCE
4207 +#include <termios.h>],
4208 + [struct termios foo; int x = foo.c_iflag],
4209 + termios_bad=unknown,
4210 + termios_bad=yes AC_DEFINE(SVR4_TERMIO))
4212 + AC_MSG_RESULT($termios_bad)
4216 +dnl ---------------------------------------------------------------------------
4217 +dnl CF_SUBST version: 2 updated: 1997/09/06 23:41:28
4219 +dnl Shorthand macro for substituting things that the user may override
4220 +dnl with an environment variable.
4222 +dnl $1 = long/descriptive name
4223 +dnl $2 = environment variable
4224 +dnl $3 = default value
4225 +AC_DEFUN([CF_SUBST],
4226 +[AC_CACHE_VAL(cf_cv_subst_$2,[
4227 +AC_MSG_CHECKING(for $1 (symbol $2))
4228 +test -z "[$]$2" && $2=$3
4229 +AC_MSG_RESULT([$]$2)
4231 +cf_cv_subst_$2=[$]$2])
4232 +$2=${cf_cv_subst_$2}
4234 +dnl ---------------------------------------------------------------------------
4235 +dnl CF_SUBST_NCURSES_VERSION version: 7 updated: 2003/06/07 16:22:51
4236 +dnl ------------------------
4237 +dnl Get the version-number for use in shared-library naming, etc.
4238 +AC_DEFUN([CF_SUBST_NCURSES_VERSION],
4240 +NCURSES_MAJOR="`egrep '^NCURSES_MAJOR[[ ]]*=' $srcdir/dist.mk | sed -e 's/^[[^0-9]]*//'`"
4241 +NCURSES_MINOR="`egrep '^NCURSES_MINOR[[ ]]*=' $srcdir/dist.mk | sed -e 's/^[[^0-9]]*//'`"
4242 +NCURSES_PATCH="`egrep '^NCURSES_PATCH[[ ]]*=' $srcdir/dist.mk | sed -e 's/^[[^0-9]]*//'`"
4243 +cf_cv_abi_version=${NCURSES_MAJOR}
4244 +cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
4245 +dnl Show the computed version, for logging
4246 +cf_cv_timestamp=`date`
4247 +AC_MSG_RESULT(Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp))
4248 +dnl We need these values in the generated headers
4249 +AC_SUBST(NCURSES_MAJOR)
4250 +AC_SUBST(NCURSES_MINOR)
4251 +AC_SUBST(NCURSES_PATCH)
4252 +dnl We need these values in the generated makefiles
4253 +AC_SUBST(cf_cv_rel_version)
4254 +AC_SUBST(cf_cv_abi_version)
4255 +AC_SUBST(cf_cv_builtin_bool)
4256 +AC_SUBST(cf_cv_header_stdbool_h)
4257 +AC_SUBST(cf_cv_type_of_bool)dnl
4259 +dnl ---------------------------------------------------------------------------
4260 +dnl CF_SYS_TIME_SELECT version: 4 updated: 2000/10/04 09:18:40
4261 +dnl ------------------
4262 +dnl Check if we can include <sys/time.h> with <sys/select.h>; this breaks on
4263 +dnl older SCO configurations.
4264 +AC_DEFUN([CF_SYS_TIME_SELECT],
4266 +AC_MSG_CHECKING(if sys/time.h works with sys/select.h)
4267 +AC_CACHE_VAL(cf_cv_sys_time_select,[
4269 +#include <sys/types.h>
4270 +#ifdef HAVE_SYS_TIME_H
4271 +#include <sys/time.h>
4273 +#ifdef HAVE_SYS_SELECT_H
4274 +#include <sys/select.h>
4276 +],[],[cf_cv_sys_time_select=yes],
4277 + [cf_cv_sys_time_select=no])
4279 +AC_MSG_RESULT($cf_cv_sys_time_select)
4280 +test "$cf_cv_sys_time_select" = yes && AC_DEFINE(HAVE_SYS_TIME_SELECT)
4282 +dnl ---------------------------------------------------------------------------
4283 +dnl CF_TYPEOF_CHTYPE version: 4 updated: 2000/10/04 09:18:40
4284 +dnl ----------------
4285 +dnl Determine the type we should use for chtype (and attr_t, which is treated
4286 +dnl as the same thing). We want around 32 bits, so on most machines want a
4287 +dnl long, but on newer 64-bit machines, probably want an int. If we're using
4288 +dnl wide characters, we have to have a type compatible with that, as well.
4289 +AC_DEFUN([CF_TYPEOF_CHTYPE],
4291 +AC_REQUIRE([CF_UNSIGNED_LITERALS])
4292 +AC_MSG_CHECKING([for type of chtype])
4293 +AC_CACHE_VAL(cf_cv_typeof_chtype,[
4295 +#ifdef USE_WIDEC_SUPPORT
4296 +#include <stddef.h> /* we want wchar_t */
4297 +#define WANT_BITS 39
4299 +#define WANT_BITS 31
4304 + FILE *fp = fopen("cf_test.out", "w");
4306 + char *result = "long";
4307 +#ifdef USE_WIDEC_SUPPORT
4309 + * If wchar_t is smaller than a long, it must be an int or a
4310 + * short. We prefer not to use a short anyway.
4312 + if (sizeof(unsigned long) > sizeof(wchar_t))
4315 + if (sizeof(unsigned long) > sizeof(unsigned int)) {
4318 + for (n = 0; n < WANT_BITS; n++) {
4319 + unsigned int y = (x >> n);
4320 + if (y != 1 || x == 0) {
4326 + * If x is nonzero, an int is big enough for the bits
4329 + result = (x != 0) ? "int" : "long";
4331 + fputs(result, fp);
4337 + [cf_cv_typeof_chtype=`cat cf_test.out`],
4338 + [cf_cv_typeof_chtype=long],
4339 + [cf_cv_typeof_chtype=long])
4342 +AC_MSG_RESULT($cf_cv_typeof_chtype)
4344 +AC_SUBST(cf_cv_typeof_chtype)
4345 +AC_DEFINE_UNQUOTED(TYPEOF_CHTYPE,$cf_cv_typeof_chtype)
4348 +test "$cf_cv_unsigned_literals" = yes && cf_cv_1UL="${cf_cv_1UL}U"
4349 +test "$cf_cv_typeof_chtype" = long && cf_cv_1UL="${cf_cv_1UL}L"
4350 +AC_SUBST(cf_cv_1UL)
4353 +dnl ---------------------------------------------------------------------------
4354 +dnl CF_TYPE_SIGACTION version: 3 updated: 2000/08/12 23:18:52
4355 +dnl -----------------
4357 +AC_DEFUN([CF_TYPE_SIGACTION],
4359 +AC_MSG_CHECKING([for type sigaction_t])
4360 +AC_CACHE_VAL(cf_cv_type_sigaction,[
4362 +#include <signal.h>],
4364 + [cf_cv_type_sigaction=yes],
4365 + [cf_cv_type_sigaction=no])])
4366 +AC_MSG_RESULT($cf_cv_type_sigaction)
4367 +test "$cf_cv_type_sigaction" = yes && AC_DEFINE(HAVE_TYPE_SIGACTION)
4369 +dnl ---------------------------------------------------------------------------
4370 +dnl CF_UNSIGNED_LITERALS version: 2 updated: 1998/02/07 22:10:16
4371 +dnl --------------------
4372 +dnl Test if the compiler supports 'U' and 'L' suffixes. Only old compilers
4373 +dnl won't, but they're still there.
4374 +AC_DEFUN([CF_UNSIGNED_LITERALS],
4376 +AC_MSG_CHECKING([if unsigned literals are legal])
4377 +AC_CACHE_VAL(cf_cv_unsigned_literals,[
4378 + AC_TRY_COMPILE([],[long x = 1L + 1UL + 1U + 1],
4379 + [cf_cv_unsigned_literals=yes],
4380 + [cf_cv_unsigned_literals=no])
4382 +AC_MSG_RESULT($cf_cv_unsigned_literals)
4384 +dnl ---------------------------------------------------------------------------
4385 +dnl CF_UPPER version: 5 updated: 2001/01/29 23:40:59
4387 +dnl Make an uppercase version of a variable
4388 +dnl $1=uppercase($2)
4389 +AC_DEFUN([CF_UPPER],
4391 +$1=`echo "$2" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4393 +dnl ---------------------------------------------------------------------------
4394 +dnl CF_VERBOSE version: 2 updated: 1997/09/05 10:45:14
4396 +dnl Use AC_VERBOSE w/o the warnings
4397 +AC_DEFUN([CF_VERBOSE],
4398 +[test -n "$verbose" && echo " $1" 1>&AC_FD_MSG
4400 +dnl ---------------------------------------------------------------------------
4401 +dnl CF_WCHAR_TYPE version: 2 updated: 2004/01/17 19:18:20
4403 +dnl Check if type wide-character type $1 is declared, and if so, which header
4404 +dnl file is needed. The second parameter is used to set a shell variable when
4405 +dnl the type is not found. The first parameter sets a shell variable for the
4406 +dnl opposite sense.
4407 +AC_DEFUN([CF_WCHAR_TYPE],
4409 +# This is needed on Tru64 5.0 to declare $1
4410 +AC_CACHE_CHECK(if we must include wchar.h to declare $1,cf_cv_$1,[
4412 +#include <stdlib.h>
4413 +#include <stdarg.h>
4415 +#ifdef HAVE_LIBUTF8_H
4416 +#include <libutf8.h>
4421 +#include <stdlib.h>
4422 +#include <stdarg.h>
4425 +#ifdef HAVE_LIBUTF8_H
4426 +#include <libutf8.h>
4430 + [cf_cv_$1=unknown])])])
4432 +if test "$cf_cv_$1" = yes ; then
4433 + AC_DEFINE(NEED_WCHAR_H)
4438 +# if we do not find $1 in either place, use substitution to provide a fallback.
4439 +if test "$cf_cv_$1" = unknown ; then
4444 +# if we find $1 in either place, use substitution to provide a fallback.
4445 +if test "$cf_cv_$1" != unknown ; then
4450 +dnl ---------------------------------------------------------------------------
4451 +dnl CF_WITH_ABI_VERSION version: 1 updated: 2003/09/20 18:12:49
4452 +dnl -------------------
4453 +dnl Allow library's ABI to be overridden. Generally this happens when a
4454 +dnl packager has incremented the ABI past that used in the original package,
4455 +dnl and wishes to keep doing this.
4457 +dnl $1 is the package name, if any, to derive a corresponding {package}_ABI
4459 +AC_DEFUN([CF_WITH_ABI_VERSION],[
4460 +test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
4461 +AC_ARG_WITH(abi-version,
4462 +[ --with-abi-version=XXX override derived ABI version],
4463 +[AC_MSG_WARN(overriding ABI version $cf_cv_abi_version to $withval)
4464 + cf_cv_abi_version=$withval])
4465 + CF_NUMBER_SYNTAX($cf_cv_abi_version,ABI version)
4467 +$1_ABI=$cf_cv_abi_version
4470 +dnl ---------------------------------------------------------------------------
4471 +dnl CF_WITH_DBMALLOC version: 2 updated: 2002/12/29 21:11:45
4472 +dnl ----------------
4473 +dnl Configure-option for dbmalloc
4474 +AC_DEFUN([CF_WITH_DBMALLOC],[
4475 +AC_MSG_CHECKING(if you want to link with dbmalloc for testing)
4476 +AC_ARG_WITH(dbmalloc,
4477 + [ --with-dbmalloc test: use Conor Cahill's dbmalloc library],
4478 + [with_dbmalloc=$withval],
4479 + [with_dbmalloc=no])
4480 +AC_MSG_RESULT($with_dbmalloc)
4481 +if test $with_dbmalloc = yes ; then
4482 + AC_CHECK_LIB(dbmalloc,debug_malloc)
4485 +dnl ---------------------------------------------------------------------------
4486 +dnl CF_WITH_DMALLOC version: 2 updated: 2002/12/29 21:11:45
4487 +dnl ---------------
4488 +dnl Configure-option for dmalloc
4489 +AC_DEFUN([CF_WITH_DMALLOC],[
4490 +AC_MSG_CHECKING(if you want to link with dmalloc for testing)
4491 +AC_ARG_WITH(dmalloc,
4492 + [ --with-dmalloc test: use Gray Watson's dmalloc library],
4493 + [with_dmalloc=$withval],
4494 + [with_dmalloc=no])
4495 +AC_MSG_RESULT($with_dmalloc)
4496 +if test $with_dmalloc = yes ; then
4497 + AC_CHECK_LIB(dmalloc,dmalloc_debug)
4500 +dnl ---------------------------------------------------------------------------
4501 +dnl CF_WITH_LIBTOOL version: 9 updated: 2004/01/16 14:55:37
4502 +dnl ---------------
4503 +dnl Provide a configure option to incorporate libtool. Define several useful
4504 +dnl symbols for the makefile rules.
4506 +dnl The reference to AC_PROG_LIBTOOL does not normally work, since it uses
4507 +dnl macros from libtool.m4 which is in the aclocal directory of automake.
4508 +dnl Following is a simple script which turns on the AC_PROG_LIBTOOL macro.
4509 +dnl But that still does not work properly since the macro is expanded outside
4510 +dnl the CF_WITH_LIBTOOL macro:
4513 +dnl ACLOCAL=`aclocal --print-ac-dir`
4514 +dnl if test -z "$ACLOCAL" ; then
4515 +dnl echo cannot find aclocal directory
4517 +dnl elif test ! -f $ACLOCAL/libtool.m4 ; then
4518 +dnl echo cannot find libtool.m4 file
4522 +dnl LOCAL=aclocal.m4
4523 +dnl ORIG=aclocal.m4.orig
4525 +dnl trap "mv $ORIG $LOCAL" 0 1 2 5 15
4527 +dnl mv $LOCAL $ORIG
4529 +dnl # sed the LIBTOOL= assignment to omit the current directory?
4530 +dnl sed -e 's/^LIBTOOL=.*/LIBTOOL=${LIBTOOL-libtool}/' $ACLOCAL/libtool.m4 >>$LOCAL
4531 +dnl cat $ORIG >>$LOCAL
4533 +dnl autoconf-257 $*
4535 +AC_DEFUN([CF_WITH_LIBTOOL],
4537 +ifdef([AC_PROG_LIBTOOL],,[
4540 +# common library maintenance symbols that are convenient for libtool scripts:
4541 +LIB_CREATE='$(AR) -cr'
4542 +LIB_OBJECT='$(OBJECTS)'
4546 +# symbols used to prop libtool up to enable it to determine what it should be
4554 +AC_MSG_CHECKING(if you want to build libraries with libtool)
4555 +AC_ARG_WITH(libtool,
4556 + [ --with-libtool generate libraries with libtool],
4557 + [with_libtool=$withval],
4558 + [with_libtool=no])
4559 +AC_MSG_RESULT($with_libtool)
4560 +if test "$with_libtool" != "no"; then
4561 +ifdef([AC_PROG_LIBTOOL],[
4562 + # missing_content_AC_PROG_LIBTOOL{{
4564 + # missing_content_AC_PROG_LIBTOOL}}
4566 + if test "$with_libtool" != "yes" ; then
4567 + CF_PATH_SYNTAX(with_libtool)
4568 + LIBTOOL=$with_libtool
4570 + AC_PATH_PROG(LIBTOOL,libtool)
4572 + if test -z "$LIBTOOL" ; then
4573 + AC_MSG_ERROR(Cannot find libtool)
4576 + LIB_CREATE='$(LIBTOOL) --mode=link $(CC) -rpath $(DESTDIR)$(libdir) -version-info `cut -f1 $(srcdir)/VERSION` -o'
4577 + LIB_OBJECT='$(OBJECTS:.o=.lo)'
4579 + LIB_CLEAN='$(LIBTOOL) --mode=clean'
4580 + LIB_COMPILE='$(LIBTOOL) --mode=compile'
4581 + LIB_LINK='$(LIBTOOL) --mode=link'
4582 + LIB_INSTALL='$(LIBTOOL) --mode=install'
4583 + LIB_UNINSTALL='$(LIBTOOL) --mode=uninstall'
4586 + # Show the version of libtool
4587 + AC_MSG_CHECKING(version of libtool)
4589 + # Save the version in a cache variable - this is not entirely a good
4590 + # thing, but the version string from libtool is very ugly, and for
4591 + # bug reports it might be useful to have the original string.
4592 + cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '2,$d' -e 's/([[^)]]*)//g' -e 's/^[[^1-9]]*//' -e 's/[[^0-9.]].*//'`
4593 + AC_MSG_RESULT($cf_cv_libtool_version)
4594 + if test -z "$cf_cv_libtool_version" ; then
4595 + AC_MSG_ERROR(This is not libtool)
4598 + # special hack to add --tag option for C++ compiler
4599 + case $cf_cv_libtool_version in
4600 + 1.[[5-9]]*|[[2-9]]*)
4601 + LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4604 + LIBTOOL_CXX="$LIBTOOL"
4612 +test -z "$LIBTOOL" && ECHO_LT=
4615 +AC_SUBST(LIBTOOL_CXX)
4617 +AC_SUBST(LIB_CREATE)
4618 +AC_SUBST(LIB_OBJECT)
4619 +AC_SUBST(LIB_SUFFIX)
4622 +AC_SUBST(LIB_CLEAN)
4623 +AC_SUBST(LIB_COMPILE)
4625 +AC_SUBST(LIB_INSTALL)
4626 +AC_SUBST(LIB_UNINSTALL)
4629 +dnl ---------------------------------------------------------------------------
4630 +dnl CF_WITH_PATH version: 6 updated: 1998/10/11 00:40:17
4632 +dnl Wrapper for AC_ARG_WITH to ensure that user supplies a pathname, not just
4633 +dnl defaulting to yes/no.
4635 +dnl $1 = option name
4637 +dnl $3 = environment variable to set
4638 +dnl $4 = default value, shown in the help-message, must be a constant
4639 +dnl $5 = default value, if it's an expression & cannot be in the help-message
4641 +AC_DEFUN([CF_WITH_PATH],
4642 +[AC_ARG_WITH($1,[$2 ](default: ifelse($4,,empty,$4)),,
4643 +ifelse($4,,[withval="${$3}"],[withval="${$3-ifelse($5,,$4,$5)}"]))dnl
4644 +CF_PATH_SYNTAX(withval)
4648 +dnl ---------------------------------------------------------------------------
4649 +dnl CF_WITH_PATHLIST version: 5 updated: 2001/12/10 01:28:30
4650 +dnl ----------------
4651 +dnl Process an option specifying a list of colon-separated paths.
4653 +dnl $1 = option name
4655 +dnl $3 = environment variable to set
4656 +dnl $4 = default value, shown in the help-message, must be a constant
4657 +dnl $5 = default value, if it's an expression & cannot be in the help-message
4658 +dnl $6 = flag to tell if we want to define or substitute
4660 +AC_DEFUN([CF_WITH_PATHLIST],[
4661 +AC_REQUIRE([CF_PATHSEP])
4662 +AC_ARG_WITH($1,[$2 ](default: ifelse($4,,empty,$4)),,
4663 +ifelse($4,,[withval=${$3}],[withval=${$3-ifelse($5,,$4,$5)}]))dnl
4665 +IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATHSEP}"
4667 +for cf_src_path in $withval
4669 + CF_PATH_SYNTAX(cf_src_path)
4670 + test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
4671 + cf_dst_path="${cf_dst_path}${cf_src_path}"
4676 +# Strip single quotes from the value, e.g., when it was supplied as a literal
4678 +case $cf_dst_path in #(vi
4680 + cf_dst_path=`echo $cf_dst_path |sed -e s/\'// -e s/\'\$//`
4683 +cf_dst_path=`echo "$cf_dst_path" | sed -e 's/\\\\/\\\\\\\\/g'`
4686 +eval '$3="$cf_dst_path"'
4690 +dnl ---------------------------------------------------------------------------
4691 +dnl CF_WITH_REL_VERSION version: 1 updated: 2003/09/20 18:12:49
4692 +dnl -------------------
4693 +dnl Allow library's release-version to be overridden. Generally this happens when a
4694 +dnl packager has incremented the release-version past that used in the original package,
4695 +dnl and wishes to keep doing this.
4697 +dnl $1 is the package name, if any, to derive corresponding {package}_MAJOR
4698 +dnl and {package}_MINOR symbols
4700 +AC_DEFUN([CF_WITH_REL_VERSION],[
4701 +test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
4702 +AC_ARG_WITH(rel-version,
4703 +[ --with-rel-version=XXX override derived release version],
4704 +[AC_MSG_WARN(overriding release version $cf_cv_rel_version to $withval)
4705 + cf_cv_rel_version=$withval])
4707 + CF_NUMBER_SYNTAX($cf_cv_rel_version,Release version)
4709 + $1_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
4710 + $1_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[[^.]]*//' -e 's/^\.//' -e 's/\..*//'`
4711 + CF_NUMBER_SYNTAX([$]$1_MAJOR,Release major-version)
4712 + CF_NUMBER_SYNTAX([$]$1_MINOR,Release minor-version)
4715 +dnl ---------------------------------------------------------------------------
4716 +dnl CF_WITH_SYSMOUSE version: 2 updated: 2003/03/22 19:13:43
4717 +dnl ----------------
4718 +dnl If we can compile with sysmouse, make it available unless it is not wanted.
4719 +AC_DEFUN([CF_WITH_SYSMOUSE],[
4720 +# not everyone has "test -c"
4721 +if test -c /dev/sysmouse 2>/dev/null ; then
4722 +AC_MSG_CHECKING(if you want to use sysmouse)
4723 +AC_ARG_WITH(sysmouse,
4724 + [ --with-sysmouse use sysmouse (FreeBSD console)],
4725 + [cf_with_sysmouse=$withval],
4726 + [cf_with_sysmouse=maybe])
4727 + if test "$cf_with_sysmouse" != no ; then
4729 +#include <osreldate.h>
4730 +#if (__FreeBSD_version >= 400017)
4731 +#include <sys/consio.h>
4732 +#include <sys/fbio.h>
4734 +#include <machine/console.h>
4737 + struct mouse_info the_mouse;
4738 + ioctl(0, CONS_MOUSECTL, &the_mouse);
4739 +],[cf_with_sysmouse=yes],[cf_with_sysmouse=no])
4741 +AC_MSG_RESULT($cf_with_sysmouse)
4742 +test "$cf_with_sysmouse" = yes && AC_DEFINE(USE_SYSMOUSE)
4745 +dnl ---------------------------------------------------------------------------
4746 +dnl CF_XOPEN_SOURCE version: 11 updated: 2004/01/26 20:58:41
4747 +dnl ---------------
4748 +dnl Try to get _XOPEN_SOURCE defined properly that we can use POSIX functions,
4749 +dnl or adapt to the vendor's definitions to get equivalent functionality.
4750 +AC_DEFUN([CF_XOPEN_SOURCE],[
4751 +case $host_os in #(vi
4753 + CPPFLAGS="$CPPFLAGS -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600"
4756 + CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
4759 + CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
4765 + # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
4768 + # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
4771 + # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
4774 + CPPFLAGS="$CPPFLAGS -D_OSF_SOURCE"
4777 + # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
4780 + CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
4783 + AC_CACHE_CHECK(if we should define _XOPEN_SOURCE,cf_cv_xopen_source,[
4784 + AC_TRY_COMPILE([#include <sys/types.h>],[
4785 +#ifndef _XOPEN_SOURCE
4788 + [cf_cv_xopen_source=no],
4789 + [cf_save="$CPPFLAGS"
4790 + CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
4791 + AC_TRY_COMPILE([#include <sys/types.h>],[
4792 +#ifdef _XOPEN_SOURCE
4795 + [cf_cv_xopen_source=no],
4796 + [cf_cv_xopen_source=yes])
4797 + CPPFLAGS="$cf_save"
4800 +test "$cf_cv_xopen_source" = yes && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
4802 + # FreeBSD 5.x headers demand this...
4803 + AC_CACHE_CHECK(if we should define _POSIX_C_SOURCE,cf_cv_xopen_source,[
4804 + AC_TRY_COMPILE([#include <sys/types.h>],[
4805 +#ifndef _POSIX_C_SOURCE
4808 + [cf_cv_xopen_source=no],
4809 + [cf_save="$CPPFLAGS"
4810 + CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE"
4811 + AC_TRY_COMPILE([#include <sys/types.h>],[
4812 +#ifdef _POSIX_C_SOURCE
4815 + [cf_cv_xopen_source=no],
4816 + [cf_cv_xopen_source=yes])
4817 + CPPFLAGS="$cf_save"
4820 +test "$cf_cv_xopen_source" = yes && CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE"
4825 +++ ncurses-5.4/m4/templates.m4
4827 +AH_TEMPLATE([BROKEN_LINKER], [too lazy to enter descriptions])
4828 +AH_TEMPLATE([BSD_TPUTS], [too lazy to enter descriptions])
4829 +AH_TEMPLATE([CC_HAS_INLINE_FUNCS], [too lazy to enter descriptions])
4830 +AH_TEMPLATE([CC_HAS_PROTOS], [too lazy to enter descriptions])
4831 +AH_TEMPLATE([CPP_HAS_PARAM_INIT], [too lazy to enter descriptions])
4832 +AH_TEMPLATE([CPP_HAS_VSCAN_FUNC], [too lazy to enter descriptions])
4833 +AH_TEMPLATE([HAVE_BIG_CORE], [too lazy to enter descriptions])
4834 +AH_TEMPLATE([HAVE_BSD_CGETENT], [too lazy to enter descriptions])
4835 +AH_TEMPLATE([HAVE_BUILTIN_H], [too lazy to enter descriptions])
4836 +AH_TEMPLATE([HAVE_CURSES_VERSION], [too lazy to enter descriptions])
4837 +AH_TEMPLATE([HAVE_GETTIMEOFDAY], [too lazy to enter descriptions])
4838 +AH_TEMPLATE([HAVE_GPP_BUILTIN_H], [too lazy to enter descriptions])
4839 +AH_TEMPLATE([HAVE_GXX_BUILTIN_H], [too lazy to enter descriptions])
4840 +AH_TEMPLATE([HAVE_HAS_KEY], [too lazy to enter descriptions])
4841 +AH_TEMPLATE([HAVE_ISASCII], [too lazy to enter descriptions])
4842 +AH_TEMPLATE([HAVE_LIBGPM], [too lazy to enter descriptions])
4843 +AH_TEMPLATE([HAVE_LIBUTF8_H], [too lazy to enter descriptions])
4844 +AH_TEMPLATE([HAVE_MKSTEMP], [too lazy to enter descriptions])
4845 +AH_TEMPLATE([HAVE_NC_ALLOC_H], [too lazy to enter descriptions])
4846 +AH_TEMPLATE([HAVE_REGEXPR_H_FUNCS], [too lazy to enter descriptions])
4847 +AH_TEMPLATE([HAVE_REGEXP_H_FUNCS], [too lazy to enter descriptions])
4848 +AH_TEMPLATE([HAVE_REGEX_H_FUNCS], [too lazy to enter descriptions])
4849 +AH_TEMPLATE([HAVE_RESIZETERM], [too lazy to enter descriptions])
4850 +AH_TEMPLATE([HAVE_RESIZE_TERM], [too lazy to enter descriptions])
4851 +AH_TEMPLATE([HAVE_SIZECHANGE], [too lazy to enter descriptions])
4852 +AH_TEMPLATE([HAVE_SLK_COLOR], [too lazy to enter descriptions])
4853 +AH_TEMPLATE([HAVE_SYS_TIME_SELECT], [too lazy to enter descriptions])
4854 +AH_TEMPLATE([HAVE_TCGETATTR], [too lazy to enter descriptions])
4855 +AH_TEMPLATE([HAVE_TYPE_SIGACTION], [too lazy to enter descriptions])
4856 +AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS], [too lazy to enter descriptions])
4857 +AH_TEMPLATE([HAVE_VFSCANF], [too lazy to enter descriptions])
4858 +AH_TEMPLATE([HAVE_VSSCANF], [too lazy to enter descriptions])
4859 +AH_TEMPLATE([HAVE_WORKING_POLL], [too lazy to enter descriptions])
4860 +AH_TEMPLATE([HAVE_WRESIZE], [too lazy to enter descriptions])
4861 +AH_TEMPLATE([HAVE__DOSCAN], [too lazy to enter descriptions])
4862 +AH_TEMPLATE([MIXEDCASE_FILENAMES], [too lazy to enter descriptions])
4863 +AH_TEMPLATE([NCURSES_EXPANDED], [too lazy to enter descriptions])
4864 +AH_TEMPLATE([NCURSES_EXT_FUNCS], [too lazy to enter descriptions])
4865 +AH_TEMPLATE([NCURSES_NOMACROS], [too lazy to enter descriptions])
4866 +AH_TEMPLATE([NCURSES_NO_PADDING], [too lazy to enter descriptions])
4867 +AH_TEMPLATE([NCURSES_PATHSEP], [too lazy to enter descriptions])
4868 +AH_TEMPLATE([NCURSES_VERSION_STRING], [too lazy to enter descriptions])
4869 +AH_TEMPLATE([NDEBUG], [too lazy to enter descriptions])
4870 +AH_TEMPLATE([NEED_WCHAR_H], [too lazy to enter descriptions])
4871 +AH_TEMPLATE([NO_LEAKS], [too lazy to enter descriptions])
4872 +AH_TEMPLATE([PROG_EXT], [too lazy to enter descriptions])
4873 +AH_TEMPLATE([PURE_TERMINFO], [too lazy to enter descriptions])
4874 +AH_TEMPLATE([SVR4_ACTION], [too lazy to enter descriptions])
4875 +AH_TEMPLATE([SVR4_TERMIO], [too lazy to enter descriptions])
4876 +AH_TEMPLATE([SYSTEM_NAME], [too lazy to enter descriptions])
4877 +AH_TEMPLATE([TERMINFO], [too lazy to enter descriptions])
4878 +AH_TEMPLATE([TERMINFO_DIRS], [too lazy to enter descriptions])
4879 +AH_TEMPLATE([TERMPATH], [too lazy to enter descriptions])
4880 +AH_TEMPLATE([TYPEOF_CHTYPE], [too lazy to enter descriptions])
4881 +AH_TEMPLATE([USE_ASSUMED_COLOR], [too lazy to enter descriptions])
4882 +AH_TEMPLATE([USE_COLORFGBG], [too lazy to enter descriptions])
4883 +AH_TEMPLATE([USE_DATABASE], [too lazy to enter descriptions])
4884 +AH_TEMPLATE([USE_GETCAP], [too lazy to enter descriptions])
4885 +AH_TEMPLATE([USE_GETCAP_CACHE], [too lazy to enter descriptions])
4886 +AH_TEMPLATE([USE_HARD_TABS], [too lazy to enter descriptions])
4887 +AH_TEMPLATE([USE_HASHMAP], [too lazy to enter descriptions])
4888 +AH_TEMPLATE([USE_HOME_TERMINFO], [too lazy to enter descriptions])
4889 +AH_TEMPLATE([USE_LINKS], [too lazy to enter descriptions])
4890 +AH_TEMPLATE([USE_MY_MEMMOVE], [too lazy to enter descriptions])
4891 +AH_TEMPLATE([USE_OK_BCOPY], [too lazy to enter descriptions])
4892 +AH_TEMPLATE([USE_RCS_IDS], [too lazy to enter descriptions])
4893 +AH_TEMPLATE([USE_ROOT_ENVIRON], [too lazy to enter descriptions])
4894 +AH_TEMPLATE([USE_SAFE_SPRINTF], [too lazy to enter descriptions])
4895 +AH_TEMPLATE([USE_SCROLL_HINTS], [too lazy to enter descriptions])
4896 +AH_TEMPLATE([USE_SIGWINCH], [too lazy to enter descriptions])
4897 +AH_TEMPLATE([USE_STDIO_VSCAN], [too lazy to enter descriptions])
4898 +AH_TEMPLATE([USE_STRSTREAM_VSCAN], [too lazy to enter descriptions])
4899 +AH_TEMPLATE([USE_STRSTREAM_VSCAN_CAST], [too lazy to enter descriptions])
4900 +AH_TEMPLATE([USE_SYMLINKS], [too lazy to enter descriptions])
4901 +AH_TEMPLATE([USE_SYSMOUSE], [too lazy to enter descriptions])
4902 +AH_TEMPLATE([USE_TERMCAP], [too lazy to enter descriptions])
4903 +AH_TEMPLATE([USE_WIDEC_SUPPORT], [too lazy to enter descriptions])
4904 +AH_TEMPLATE([USE_XMC_SUPPORT], [too lazy to enter descriptions])