Mercurial > hg > xemacs-beta
comparison configure.in @ 284:558f606b08ae r21-0b40
Import from CVS: tag r21-0b40
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:34:13 +0200 |
parents | c42ec1d1cded |
children | 57709be46d1b |
comparison
equal
deleted
inserted
replaced
283:fa3d41851a08 | 284:558f606b08ae |
---|---|
88 cat conftest.$ac_ext >&AC_FD_CC | 88 cat conftest.$ac_ext >&AC_FD_CC |
89 ifelse([$3], , , [ rm -fr conftest* | 89 ifelse([$3], , , [ rm -fr conftest* |
90 $3 | 90 $3 |
91 ])dnl | 91 ])dnl |
92 fi | 92 fi |
93 rm -fr conftest*]) | 93 rm -fr conftest*])dnl AC_TRY_RUN_NATIVE |
94 | 94 |
95 | 95 |
96 dnl Avoid spurious cross-compiling warnings from AC_TRY_RUN | 96 dnl Avoid spurious cross-compiling warnings from AC_TRY_RUN |
97 dnl XEmacs is unlikely to ever cross-compile | 97 dnl XEmacs is unlikely to ever cross-compile |
98 define([AC_TRY_RUN],[AC_TRY_RUN_NATIVE([$1], [$2], [$3])])dnl | 98 define([AC_TRY_RUN],[AC_TRY_RUN_NATIVE([$1], [$2], [$3])])dnl |
106 EOF | 106 EOF |
107 cat >> confdefs.h <<\EOF | 107 cat >> confdefs.h <<\EOF |
108 [#define] $1 ifelse($#, 2, [$2], 1) | 108 [#define] $1 ifelse($#, 2, [$2], 1) |
109 EOF | 109 EOF |
110 } | 110 } |
111 ]) | 111 ])dnl AC_DEFINE |
112 | 112 |
113 define([AC_DEFINE_UNQUOTED], | 113 define([AC_DEFINE_UNQUOTED], |
114 [{ test "$extra_verbose" = "yes" && cat << EOF | 114 [{ test "$extra_verbose" = "yes" && cat << EOF |
115 Defining $1[]ifelse($#, 2, [ = $2],) | 115 Defining $1[]ifelse($#, 2, [ = $2],) |
116 EOF | 116 EOF |
117 cat >> confdefs.h <<EOF | 117 cat >> confdefs.h <<EOF |
118 [#define] $1 ifelse($#, 2, [$2], 1) | 118 [#define] $1 ifelse($#, 2, [$2], 1) |
119 EOF | 119 EOF |
120 } | 120 } |
121 ]) | 121 ])dnl AC_DEFINE_UNQUOTED |
122 | |
123 | 122 |
124 dnl redefine AC_CHECK_LIB in accordance with our own value of ac_link | 123 dnl redefine AC_CHECK_LIB in accordance with our own value of ac_link |
125 dnl Add in extra kludgy check to support with_dnet=no | 124 dnl Add in extra kludgy check to support with_dnet=no |
126 dnl Add in extra LDFLAGS arg, which PRECEDE libs | 125 dnl Add in extra LDFLAGS arg, which PRECEDE libs |
127 dnl Support --with-dnet=no | 126 dnl Support --with-dnet=no |
136 else | 135 else |
137 ])] | 136 ])] |
138 AC_CHECK_LIB_ORIG_HACKED([$1],[$2],[$3],[$4],[$5], [$6]) | 137 AC_CHECK_LIB_ORIG_HACKED([$1],[$2],[$3],[$4],[$5], [$6]) |
139 [ifelse([$1],dnet,[fi | 138 [ifelse([$1],dnet,[fi |
140 ])]dnl | 139 ])]dnl |
141 ) | 140 )dnl AC_CHECK_LIB |
142 | 141 |
143 define([AC_CHECK_LIB_ORIG_HACKED], | 142 define([AC_CHECK_LIB_ORIG_HACKED], |
144 [ifelse([$5],,AC_MSG_CHECKING([for $2 in -l$1]), | 143 [ifelse([$5],,AC_MSG_CHECKING([for $2 in -l$1]), |
145 xe_msg_checking="for [$2] in -l[$1]" | 144 xe_msg_checking="for [$2] in -l[$1]" |
146 test -n "[$5]" && xe_msg_checking="$xe_msg_checking using extra libs [$5]" | 145 test -n "[$5]" && xe_msg_checking="$xe_msg_checking using extra libs [$5]" |
181 else | 180 else |
182 AC_MSG_RESULT(no) | 181 AC_MSG_RESULT(no) |
183 ifelse([$4], , , [$4 | 182 ifelse([$4], , , [$4 |
184 ])dnl | 183 ])dnl |
185 fi | 184 fi |
186 ]) | 185 ])dnl AC_CHECK_LIB_ORIG_HACKED |
187 | 186 |
188 | 187 |
189 dnl AC_LANG_C() | 188 dnl AC_LANG_C() |
190 define([AC_LANG_C], | 189 define([AC_LANG_C], |
191 [define([AC_LANG], [C])dnl | 190 [define([AC_LANG], [C])dnl |
199 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' | 198 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' |
200 ac_cpp='$CPP '"$xe_cppflags" | 199 ac_cpp='$CPP '"$xe_cppflags" |
201 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&AC_FD_CC' | 200 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&AC_FD_CC' |
202 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&AC_FD_CC' | 201 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&AC_FD_CC' |
203 cross_compiling=no | 202 cross_compiling=no |
204 ]) | 203 ]) dnl AC_LANG_C |
205 | 204 |
206 dnl The construct foo=`echo $w1 $w2 $w3` fails on some systems if $w1 = -e or -n | 205 dnl The construct foo=`echo $w1 $w2 $w3` fails on some systems if $w1 = -e or -n |
207 dnl So we use the following instead. | 206 dnl So we use the following instead. |
208 dnl XE_SPACE(var, words) | 207 dnl XE_SPACE(var, words) |
209 define([XE_SPACE],[ | 208 define([XE_SPACE],[ |
210 T="" | 209 T="" |
211 for W in $2; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done | 210 for W in $2; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done |
212 $1="$T" | 211 $1="$T" |
213 ])dnl | 212 ])dnl XE_SPACE |
214 | 213 |
215 dnl XE_ADD_OBJS(foo.o ...) | 214 dnl XE_ADD_OBJS(foo.o ...) |
216 define([XE_ADD_OBJS], | 215 define([XE_ADD_OBJS], |
217 [extra_objs="$extra_objs [$1]" && dnl | 216 [extra_objs="$extra_objs [$1]" && dnl |
218 if test "$extra_verbose" = "yes"; then | 217 if test "$extra_verbose" = "yes"; then |
219 echo " xemacs will be linked with \"[$1]\"" | 218 echo " xemacs will be linked with \"[$1]\"" |
220 fi]) | 219 fi])dnl XE_ADD_OBJS |
221 | 220 |
222 dnl XE_APPEND(value, varname) | 221 dnl XE_APPEND(value, varname) |
223 define([XE_APPEND], | 222 define([XE_APPEND], |
224 [[$2]="$[$2] [$1]" && dnl | 223 [[$2]="$[$2] [$1]" && dnl |
225 if test "$extra_verbose" = "yes"; then echo " Appending \"[$1]\" to \$[$2]"; fi]) | 224 if test "$extra_verbose" = "yes"; then echo " Appending \"[$1]\" to \$[$2]"; fi]) |
233 dnl Initialize some variables set by options. | 232 dnl Initialize some variables set by options. |
234 dnl The variables have the same names as the options, with | 233 dnl The variables have the same names as the options, with |
235 dnl dashes changed to underlines. | 234 dnl dashes changed to underlines. |
236 | 235 |
237 define([AC_INIT_PARSE_ARGS],[ | 236 define([AC_INIT_PARSE_ARGS],[ |
237 | |
238 dnl Get sane consistent behavior from various shells | |
239 dnl Avoid losing with weird user CDPATHs | |
240 | |
241 if test -n "$ZSH_VERSION"; then | |
242 dnl zsh's Bourne shell emulation options | |
243 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO | |
244 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH | |
245 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS | |
246 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES | |
247 dnl zsh-3.1-beta drops core on the following | |
248 dnl unset CDPATH | |
249 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi | |
250 elif test -n "$BASH_VERSION"; then | |
251 dnl Use Posix mode with bash | |
252 set -o posix | |
253 unset CDPATH | |
254 else | |
255 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi | |
256 fi | |
257 | |
238 dnl Initialize some variables set by options. | 258 dnl Initialize some variables set by options. |
239 dnl The variables have the same names as the options, with | 259 dnl The variables have the same names as the options, with |
240 dnl dashes changed to underlines. | 260 dnl dashes changed to underlines. |
241 exec_prefix=NONE | 261 exec_prefix=NONE |
242 host=NONE | 262 host=NONE |
252 srcdir= | 272 srcdir= |
253 target=NONE | 273 target=NONE |
254 verbose= | 274 verbose= |
255 x_includes=NONE | 275 x_includes=NONE |
256 x_libraries=NONE | 276 x_libraries=NONE |
257 CDPATH=.; export CDPATH | |
258 | |
259 dnl Allow this script to work with zsh, by setting sh emulation options | |
260 if test -n "$ZSH_VERSION"; then | |
261 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO | |
262 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH | |
263 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS | |
264 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES | |
265 fi | |
266 | 277 |
267 dnl Installation directory options. | 278 dnl Installation directory options. |
268 dnl These are left unexpanded so users can "make install exec_prefix=/foo" | 279 dnl These are left unexpanded so users can "make install exec_prefix=/foo" |
269 dnl and all the variables that are supposed to be based on exec_prefix | 280 dnl and all the variables that are supposed to be based on exec_prefix |
270 dnl by default will actually change. | 281 dnl by default will actually change. |
287 dnl Initialize some other variables. | 298 dnl Initialize some other variables. |
288 subdirs= | 299 subdirs= |
289 MFLAGS= MAKEFLAGS= | 300 MFLAGS= MAKEFLAGS= |
290 dnl Maximum number of lines to put in a shell here document. | 301 dnl Maximum number of lines to put in a shell here document. |
291 ac_max_here_lines=12 | 302 ac_max_here_lines=12 |
292 ])dnl | 303 ])dnl AC_INIT_PARSE_ARGS |
304 | |
293 AC_INIT(src/lisp.h)dnl | 305 AC_INIT(src/lisp.h)dnl |
294 AC_CONFIG_HEADER(src/config.h lwlib/config.h) | 306 AC_CONFIG_HEADER(src/config.h lwlib/config.h) |
295 dnl Remove any more than one leading "." element from the path name. | 307 dnl Remove any more than one leading "." element from the path name. |
296 dnl If we do not remove them, then another "./" will be prepended to | 308 dnl If we do not remove them, then another "./" will be prepended to |
297 dnl the file name each time we use config.status, and the program name | 309 dnl the file name each time we use config.status, and the program name |
785 test -z "$use_indexed_lrecord_implementation" && \ | 797 test -z "$use_indexed_lrecord_implementation" && \ |
786 use_indexed_lrecord_implementation="$gung_ho" | 798 use_indexed_lrecord_implementation="$gung_ho" |
787 fi | 799 fi |
788 if test "$use_minimal_tagbits" = "no"; then | 800 if test "$use_minimal_tagbits" = "no"; then |
789 test "$with_dlmalloc" = "yes" && \ | 801 test "$with_dlmalloc" = "yes" && \ |
790 USAGE_ERROR(--with-dlmalloc=yes requires --use-minimal-tagbits=yes) | 802 USAGE_ERROR("--with-dlmalloc requires --use-minimal-tagbits") |
791 with_dlmalloc=no | 803 with_dlmalloc=no |
792 fi | 804 fi |
793 | 805 |
794 dnl# Ignore useless run-in-place flag | 806 dnl XE_CHECK_FEATURE_DEPENDENCY(feature1, feature2) |
807 define([XE_CHECK_FEATURE_DEPENDENCY], | |
808 [if test "$with_$1 $with_$2" = "yes no"; then | |
809 USAGE_ERROR("--with-$1 requires --with-$2") | |
810 elif test "$with_$2" = "no" ; then with_$1=no | |
811 elif test "$with_$1" = "yes"; then with_$2=yes | |
812 fi | |
813 ]) | |
814 | |
815 dnl CDE requires tooltalk | |
816 XE_CHECK_FEATURE_DEPENDENCY(cde, tooltalk) | |
817 | |
818 dnl Ignore useless run-in-place flag | |
795 if test "$run_in_place" = "yes"; then | 819 if test "$run_in_place" = "yes"; then |
796 AC_MSG_WARN("The --run-in-place option is ignored because it is unnecessary.") | 820 AC_MSG_WARN("The --run-in-place option is ignored because it is unnecessary.") |
797 fi | 821 fi |
798 | 822 |
799 dnl Find the source directory. | 823 dnl Find the source directory. |
1487 dnl Determine the compiler, set up for feature testing | 1511 dnl Determine the compiler, set up for feature testing |
1488 dnl -------------------------------------------------- | 1512 dnl -------------------------------------------------- |
1489 | 1513 |
1490 dnl Sun Development environment support | 1514 dnl Sun Development environment support |
1491 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias | 1515 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias |
1516 XE_CHECK_FEATURE_DEPENDENCY(workshop, tooltalk) | |
1492 if test "$with_workshop" = "yes"; then | 1517 if test "$with_workshop" = "yes"; then |
1493 AC_DEFINE(SUNPRO) | 1518 AC_DEFINE(SUNPRO) |
1494 XE_ADD_OBJS(sunpro.o) | 1519 XE_ADD_OBJS(sunpro.o) |
1495 with_tooltalk=yes | |
1496 fi | 1520 fi |
1497 | 1521 |
1498 if test "$with_clash_detection" = "yes"; then | 1522 if test "$with_clash_detection" = "yes"; then |
1499 AC_DEFINE(CLASH_DETECTION) | 1523 AC_DEFINE(CLASH_DETECTION) |
1500 XE_ADD_OBJS(filelock.o) | 1524 XE_ADD_OBJS(filelock.o) |
1583 define([CPP_to_sh], | 1607 define([CPP_to_sh], |
1584 [[#]ifndef [$1] | 1608 [[#]ifndef [$1] |
1585 [#]define [$1]ifelse([$3],,, [ "$3"]) | 1609 [#]define [$1]ifelse([$3],,, [ "$3"]) |
1586 [#]endif | 1610 [#]endif |
1587 configure___ [$2]=[$1] | 1611 configure___ [$2]=[$1] |
1588 ]) | 1612 ])dnl CPP_to_sh |
1589 | 1613 |
1590 dnl CPP_boolean_to_sh(CPP_SYMBOL, SH_VAR) | 1614 dnl CPP_boolean_to_sh(CPP_SYMBOL, SH_VAR) |
1591 define([CPP_boolean_to_sh], | 1615 define([CPP_boolean_to_sh], |
1592 [[#]ifdef [$1] | 1616 [[#]ifdef [$1] |
1593 configure___ [$2]=yes | 1617 configure___ [$2]=yes |
1594 [#]else | 1618 [#]else |
1595 configure___ [$2]=no | 1619 configure___ [$2]=no |
1596 [#]endif | 1620 [#]endif |
1597 ]) | 1621 ])dnl CPP_boolean_to_sh |
1598 | 1622 |
1599 | 1623 cat > $tempcname <<EOF |
1600 echo > $tempcname | |
1601 | |
1602 echo ' | |
1603 #define NOT_C_CODE | 1624 #define NOT_C_CODE |
1604 #define C_SWITCH_SITE | 1625 #define C_SWITCH_SITE |
1605 #define C_SWITCH_X_SITE | 1626 #define C_SWITCH_X_SITE |
1606 #define LD_SWITCH_SITE | 1627 #define LD_SWITCH_SITE |
1607 #define LD_SWITCH_X_SITE | 1628 #define LD_SWITCH_X_SITE |
1608 #define LD_SWITCH_X_SITE_AUX | 1629 #define LD_SWITCH_X_SITE_AUX |
1609 #define OS_RELEASE '$os_release' | 1630 #define OS_RELEASE $os_release |
1610 #include "'$srcdir'/src/'$opsysfile'" | 1631 #include "$srcdir/src/$opsysfile" |
1611 #include "'$srcdir'/src/'$machfile'" | 1632 #include "$srcdir/src/$machfile" |
1612 | 1633 |
1613 CPP_to_sh(LIBS_MACHINE, libs_machine) | 1634 CPP_to_sh(LIBS_MACHINE, libs_machine) |
1614 CPP_to_sh(LIBS_SYSTEM, libs_system) | 1635 CPP_to_sh(LIBS_SYSTEM, libs_system) |
1615 CPP_to_sh(LIBS_TERMCAP, libs_termcap) | 1636 CPP_to_sh(LIBS_TERMCAP, libs_termcap) |
1616 CPP_to_sh(LIB_STANDARD, libs_standard) | 1637 CPP_to_sh(LIB_STANDARD, libs_standard) |
1617 | 1638 |
1618 ' >> $tempcname | |
1619 echo ' | |
1620 | |
1621 CPP_to_sh(OBJECTS_MACHINE, objects_machine) | 1639 CPP_to_sh(OBJECTS_MACHINE, objects_machine) |
1622 CPP_to_sh(OBJECTS_SYSTEM, objects_system) | 1640 CPP_to_sh(OBJECTS_SYSTEM, objects_system) |
1623 | 1641 |
1624 CPP_to_sh(C_SWITCH_MACHINE, c_switch_machine) | 1642 CPP_to_sh(C_SWITCH_MACHINE, c_switch_machine) |
1625 CPP_to_sh(C_SWITCH_SYSTEM, c_switch_system) | 1643 CPP_to_sh(C_SWITCH_SYSTEM, c_switch_system) |
1629 | 1647 |
1630 CPP_to_sh(UNEXEC, unexec, unexec.o) | 1648 CPP_to_sh(UNEXEC, unexec, unexec.o) |
1631 | 1649 |
1632 CPP_to_sh(LD_SWITCH_SHARED, ld_switch_shared, -c) | 1650 CPP_to_sh(LD_SWITCH_SHARED, ld_switch_shared, -c) |
1633 | 1651 |
1634 ' >> $tempcname | |
1635 echo ' | |
1636 | |
1637 #ifdef ORDINARY_LINK | 1652 #ifdef ORDINARY_LINK |
1638 #define LD "$(CC) $(CFLAGS)" | 1653 #define LD "\$(CC) \$(CFLAGS)" |
1639 #else /* no ORDINARY LINK */ | 1654 #else /* no ORDINARY LINK */ |
1640 #ifdef COFF_ENCAPSULATE | 1655 #ifdef COFF_ENCAPSULATE |
1641 #define LD "$(CC) -nostdlib" | 1656 #define LD "\$(CC) -nostdlib" |
1642 #else /* not COFF_ENCAPSULATE */ | 1657 #else /* not COFF_ENCAPSULATE */ |
1643 #ifdef LINKER | 1658 #ifdef LINKER |
1644 #define LD LINKER | 1659 #define LD LINKER |
1645 #else /* ! defined (LINKER) */ | 1660 #else /* ! defined (LINKER) */ |
1646 #define LD "ld" | 1661 #define LD "ld" |
1649 #endif /* not ORDINARY_LINK */ | 1664 #endif /* not ORDINARY_LINK */ |
1650 configure___ ld=LD | 1665 configure___ ld=LD |
1651 | 1666 |
1652 CPP_to_sh(LIB_GCC, lib_gcc) | 1667 CPP_to_sh(LIB_GCC, lib_gcc) |
1653 CPP_to_sh(LD_TEXT_START_ADDR, ld_text_start_addr) | 1668 CPP_to_sh(LD_TEXT_START_ADDR, ld_text_start_addr) |
1654 | |
1655 ' >> $tempcname | |
1656 echo ' | |
1657 | 1669 |
1658 #if ! defined (ORDINARY_LINK) && !defined (START_FILES) | 1670 #if ! defined (ORDINARY_LINK) && !defined (START_FILES) |
1659 #ifdef NO_REMAP | 1671 #ifdef NO_REMAP |
1660 #ifdef COFF_ENCAPSULATE | 1672 #ifdef COFF_ENCAPSULATE |
1661 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o" | 1673 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o" |
1674 CPP_boolean_to_sh(ORDINARY_LINK, ordinary_link) | 1686 CPP_boolean_to_sh(ORDINARY_LINK, ordinary_link) |
1675 CPP_boolean_to_sh(SYSTEM_MALLOC, system_malloc) | 1687 CPP_boolean_to_sh(SYSTEM_MALLOC, system_malloc) |
1676 CPP_boolean_to_sh(TERMINFO, have_terminfo) | 1688 CPP_boolean_to_sh(TERMINFO, have_terminfo) |
1677 CPP_boolean_to_sh(MAIL_USE_FLOCK, mail_use_flock) | 1689 CPP_boolean_to_sh(MAIL_USE_FLOCK, mail_use_flock) |
1678 CPP_boolean_to_sh(MAIL_USE_LOCKF, mail_use_lockf) | 1690 CPP_boolean_to_sh(MAIL_USE_LOCKF, mail_use_lockf) |
1679 | 1691 EOF |
1680 ' >> $tempcname | 1692 |
1681 dnl The value of CPP is a quoted variable reference, so we need to do this | 1693 dnl The value of CPP is a quoted variable reference, so we need to do this |
1682 dnl to get its actual value... | 1694 dnl to get its actual value... |
1683 CPP=`eval "echo $CPP"` | 1695 CPP=`eval "echo $CPP"` |
1684 define(TAB, [ ])dnl | 1696 define(TAB, [ ])dnl |
1685 changequote(, )dnl | 1697 changequote(, )dnl |
2515 dnl This one is for the static initializeds variables in | 2527 dnl This one is for the static initializeds variables in |
2516 dnl offix.c, so that the thing is dumped after lastfile.o | 2528 dnl offix.c, so that the thing is dumped after lastfile.o |
2517 AC_SUBST(dnd_objs) | 2529 AC_SUBST(dnd_objs) |
2518 | 2530 |
2519 dnl Autodetect tooltalk | 2531 dnl Autodetect tooltalk |
2520 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk | |
2521 if test "$with_tooltalk" != "no" ; then | 2532 if test "$with_tooltalk" != "no" ; then |
2522 dnl autodetect the location of tt_c.h | 2533 dnl autodetect the location of tt_c.h |
2523 dnl tt_c.h might be in Tt or desktop include directories | 2534 dnl tt_c.h might be in Tt or desktop include directories |
2524 for dir in "" "Tt/" "desktop/" ; do | 2535 for dir in "" "Tt/" "desktop/" ; do |
2525 AC_CHECK_HEADER(${dir}tt_c.h, tt_c_h_path="${dir}tt_c.h" && break) | 2536 AC_CHECK_HEADER(${dir}tt_c.h, tt_c_h_path="${dir}tt_c.h"; break) |
2526 done | 2537 done |
2527 test -z "$tt_c_h_path" && with_tooltalk=no | 2538 if test -z "$tt_c_h_path"; then |
2539 if test "$with_tooltalk" = "yes"; then | |
2540 USAGE_ERROR("Unable to find required tooltalk header files.") | |
2541 fi | |
2542 with_tooltalk=no | |
2543 fi | |
2528 fi | 2544 fi |
2529 if test "$with_tooltalk" != "no" ; then | 2545 if test "$with_tooltalk" != "no" ; then |
2530 for extra_libs in "" "-lI18N -lce" "-lcxx"; do | 2546 for extra_libs in "" "-lI18N -lce" "-lcxx"; do |
2531 AC_CHECK_LIB(tt, tt_message_create, | 2547 AC_CHECK_LIB(tt, tt_message_create, |
2532 with_tooltalk=yes tt_libs="-ltt $extra_libs"; break, [:],$extra_libs) | 2548 tt_libs="-ltt $extra_libs"; break, [:],$extra_libs) |
2533 done | 2549 done |
2534 fi | 2550 if test -z "$tt_libs"; then |
2535 test -z "$with_tooltalk" && with_tooltalk=no | 2551 if test "$with_tooltalk" = "yes"; then |
2552 USAGE_ERROR("Unable to find required tooltalk libraries.") | |
2553 fi | |
2554 with_tooltalk=no | |
2555 fi | |
2556 fi | |
2557 test -z "$with_tooltalk" && with_tooltalk=yes | |
2536 if test "$with_tooltalk" = "yes"; then | 2558 if test "$with_tooltalk" = "yes"; then |
2537 AC_DEFINE(TOOLTALK) | 2559 AC_DEFINE(TOOLTALK) |
2538 AC_DEFINE_UNQUOTED(TT_C_H_PATH, "$tt_c_h_path") | 2560 AC_DEFINE_UNQUOTED(TT_C_H_PATH, "$tt_c_h_path") |
2539 XE_PREPEND($tt_libs, libs_x) | 2561 XE_PREPEND($tt_libs, libs_x) |
2540 XE_ADD_OBJS(tooltalk.o) | 2562 XE_ADD_OBJS(tooltalk.o) |
2912 test -z "$with_wnn" && with_wnn=yes | 2934 test -z "$with_wnn" && with_wnn=yes |
2913 if test "$with_wnn" = "yes"; then | 2935 if test "$with_wnn" = "yes"; then |
2914 AC_DEFINE(HAVE_WNN) | 2936 AC_DEFINE(HAVE_WNN) |
2915 XE_PREPEND(-lwnn, libs_x) | 2937 XE_PREPEND(-lwnn, libs_x) |
2916 XE_ADD_OBJS(mule-wnnfns.o) | 2938 XE_ADD_OBJS(mule-wnnfns.o) |
2917 AC_CHECK_LIB(wnn, jl_fi_dic_list, with_wnn6=yes) | 2939 if test "$with_wnn6" != "no"; then |
2918 test "$with_wnn6" = "yes" && AC_DEFINE(WNN6) | 2940 AC_CHECK_LIB(wnn, jl_fi_dic_list, with_wnn6=yes) |
2941 test "$with_wnn6" = "yes" && AC_DEFINE(WNN6) | |
2942 fi | |
2919 fi | 2943 fi |
2920 | 2944 |
2921 dnl Autodetect canna | 2945 dnl Autodetect canna |
2922 canna_includes_found=no | 2946 canna_includes_found=no |
2923 if test "$with_canna" != "no"; then | 2947 if test "$with_canna" != "no"; then |
3161 [static struct sockaddr_un x; x.sun_len = 1;], | 3185 [static struct sockaddr_un x; x.sun_len = 1;], |
3162 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SOCKADDR_SUN_LEN)], | 3186 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SOCKADDR_SUN_LEN)], |
3163 [AC_MSG_RESULT(no)]) | 3187 [AC_MSG_RESULT(no)]) |
3164 AC_MSG_CHECKING("for ip_mreq struct in netinet/in.h") | 3188 AC_MSG_CHECKING("for ip_mreq struct in netinet/in.h") |
3165 AC_TRY_LINK([ | 3189 AC_TRY_LINK([ |
3190 #include <sys/types.h> | |
3166 #include <netinet/in.h> | 3191 #include <netinet/in.h> |
3167 ], | 3192 ], |
3168 [static struct ip_mreq x;], | 3193 [static struct ip_mreq x;], |
3169 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MULTICAST)], | 3194 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MULTICAST)], |
3170 [AC_MSG_RESULT(no)])])])]) | 3195 [AC_MSG_RESULT(no)])])])]) |